Skip to content

Commit 0ec4d88

Browse files
jnoordsijpxpm
andauthored
Load jquery-ui smoothness theme for elFinder (#89)
* Update jquery-ui to 1.14.2 in elfinder common scripts * Load jquery-ui smoothness theme for elFinder * Add custom styles to remove icon borders Co-authored-by: Pedro Martins <pxpm88@gmail.com> --------- Co-authored-by: Pedro Martins <pxpm88@gmail.com>
1 parent 049d004 commit 0ec4d88

2 files changed

Lines changed: 20 additions & 2 deletions

File tree

resources/views/common_scripts.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
@endif
88

99
{{-- jQuery UI and Smoothness theme --}}
10-
@basset('https://raw.githubusercontent.com/jquery/jquery-ui/refs/tags/1.13.2/dist/jquery-ui.min.js', true, [
11-
'integrity' => 'sha384-4D3G3GikQs6hLlLZGdz5wLFzuqE9v4yVGAcOH86y23JqBDPzj9viv0EqyfIa6YUL',
10+
@basset('https://cdn.jsdelivr.net/npm/jquery-ui@1.14.2/dist/jquery-ui.min.js', true, [
11+
'integrity' => 'sha384-tBcEcHGtNy7/Mx08+YxuvQ6v6s0N2jgehtFiT+bLtGwTj/txXtB/L5GqXfggm5sS',
1212
'crossorigin' => 'anonymous'
1313
])
1414

resources/views/common_styles.blade.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
@basset(base_path('vendor/studio-42/elfinder/img/icons-big.svg'))
55
@basset(base_path('vendor/studio-42/elfinder/img/logo.png'))
66
@basset(base_path('vendor/studio-42/elfinder/css/elfinder.min.css'))
7+
@basset('https://cdn.jsdelivr.net/npm/jquery-ui@1.14.2/dist/themes/smoothness/jquery-ui.min.css', true, [
8+
'integrity' => 'sha384-e4Bm/JKXqLbEnnDNLZIbB0u9VBy3H9D+TNdLb22ybxTLsmtWgRhQ3/BKEgJ13zU2',
9+
'crossorigin' => 'anonymous',
10+
])
711
@basset('https://cdn.jsdelivr.net/gh/RobiNN1/elFinder-Material-Theme@3.0.0/Material/css/theme.min.css')
812
@basset('https://cdn.jsdelivr.net/gh/RobiNN1/elFinder-Material-Theme@3.0.0/Material/images/loading.svg', false)
913
@basset('https://cdn.jsdelivr.net/gh/RobiNN1/elFinder-Material-Theme@3.0.0/Material/font/material.eot', false)
@@ -14,6 +18,20 @@
1418
@basset('https://cdn.jsdelivr.net/gh/RobiNN1/elFinder-Material-Theme@3.0.0/Material/font/material.ttf', false)
1519
@basset('https://cdn.jsdelivr.net/gh/RobiNN1/elFinder-Material-Theme@3.0.0/Material/font/material.woff2', false)
1620
@basset('https://cdn.jsdelivr.net/gh/RobiNN1/elFinder-Material-Theme@3.0.0/Material/css/theme-gray.min.css', false)
21+
@bassetBlock('elfinderCommonStyles.css')
22+
<style>
23+
.elfinder .elfinder-toolbar .elfinder-button,
24+
.elfinder .elfinder-toolbar .elfinder-button.ui-state-default,
25+
.elfinder .elfinder-toolbar .elfinder-button.ui-state-hover,
26+
.elfinder .elfinder-toolbar .elfinder-button.ui-state-active,
27+
.elfinder .elfinder-toolbar .elfinder-button.ui-state-focus {
28+
border: none !important;
29+
background: transparent !important;
30+
box-shadow: none !important;
31+
outline: none !important;
32+
}
33+
</style>
34+
@endBassetBlock
1735
<span data-elfinder-light-theme-url="{{ Basset::getUrl('https://cdn.jsdelivr.net/gh/RobiNN1/elFinder-Material-Theme@3.0.0/Material/css/theme-gray.min.css') }}" style="display:none"></span>
1836
@bassetBlock('elfinderThemeSwitcherScript.js')
1937
<script type="text/javascript">

0 commit comments

Comments
 (0)