Skip to content

Commit b84dfe6

Browse files
authored
Merge pull request #2123 from REJack/v3-dev
custom-switch, modal overlay, plugin updates & one bug fixed
2 parents 0cb792e + b8ffeb2 commit b84dfe6

File tree

436 files changed

+80560
-40142
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

436 files changed

+80560
-40142
lines changed

build/js/PushMenu.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ const PushMenu = (($) => {
8181
} else {
8282
return $(Selector.BODY).hasClass(ClassName.OPEN)
8383
}
84-
8584
}
8685

8786
toggle() {
@@ -140,7 +139,7 @@ const PushMenu = (($) => {
140139
$(this).data(DATA_KEY, data)
141140
}
142141

143-
if (operation === 'init') {
142+
if (operation === 'toggle') {
144143
data[operation]()
145144
}
146145
})

build/npm/Plugins.js

Lines changed: 57 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ const Plugins = [
1111
},
1212
// Bootstrap
1313
{
14-
from: 'node_modules/bootstrap/dist',
15-
to : 'plugins/bootstrap'
14+
from: 'node_modules/bootstrap/dist/js',
15+
to : 'plugins/bootstrap/js'
1616
},
1717
// Font Awesome
1818
{
@@ -23,16 +23,67 @@ const Plugins = [
2323
from: 'node_modules/@fortawesome/fontawesome-free/webfonts',
2424
to : 'plugins/fontawesome-free/webfonts'
2525
},
26-
// Chart.js 2
26+
// overlayScrollbars
27+
{
28+
from: 'node_modules/overlayscrollbars/js',
29+
to : 'plugins/overlayScrollbars/js'
30+
},
31+
{
32+
from: 'node_modules/overlayscrollbars/css',
33+
to : 'plugins/overlayScrollbars/css'
34+
},
35+
// Chart.js
2736
{
2837
from: 'node_modules/chart.js/dist/',
2938
to : 'plugins/chart.js'
3039
},
31-
// CKEditor
40+
// Summernote
41+
{
42+
from: 'node_modules/summernote/dist/',
43+
to : 'plugins/summernote'
44+
},
45+
// Bootstrap Slider
46+
{
47+
from: 'node_modules/bootstrap-slider/dist/',
48+
to : 'plugins/bootstrap-slider'
49+
},
50+
{
51+
from: 'node_modules/bootstrap-slider/dist/css',
52+
to : 'plugins/bootstrap-slider/css'
53+
},
54+
// Bootstrap Colorpicker
55+
{
56+
from: 'node_modules/bootstrap-colorpicker/dist/js',
57+
to : 'plugins/bootstrap-colorpicker/js'
58+
},
59+
{
60+
from: 'node_modules/bootstrap-colorpicker/dist/css',
61+
to : 'plugins/bootstrap-colorpicker/css'
62+
},
63+
// Tempusdominus Bootstrap 4
3264
{
33-
from: 'node_modules/@ckeditor/ckeditor5-build-classic/build/',
34-
to : 'plugins/ckeditor'
65+
from: 'node_modules/tempusdominus-bootstrap-4/build/js',
66+
to : 'plugins/tempusdominus-bootstrap-4/js'
3567
},
68+
{
69+
from: 'node_modules/tempusdominus-bootstrap-4/build/css',
70+
to : 'plugins/tempusdominus-bootstrap-4/css'
71+
},
72+
// Moment
73+
{
74+
from: 'node_modules/moment/min',
75+
to : 'plugins/moment'
76+
},
77+
{
78+
from: 'node_modules/moment/locale',
79+
to : 'plugins/moment/locale'
80+
},
81+
// FastClick
82+
{
83+
from: 'node_modules/fastclick/lib',
84+
to : 'plugins/fastclick'
85+
},
86+
3687
// DataTables
3788
{
3889
from: 'node_modules/datatables.net/js',
@@ -46,15 +97,6 @@ const Plugins = [
4697
from: 'node_modules/datatables.net-bs4/css',
4798
to: 'plugins/datatables'
4899
},
49-
// overlayScrollbars
50-
{
51-
from: 'node_modules/overlayscrollbars/js',
52-
to : 'plugins/overlayScrollbars/js'
53-
},
54-
{
55-
from: 'node_modules/overlayscrollbars/css',
56-
to : 'plugins/overlayScrollbars/css'
57-
},
58100

59101
// // Doc Assets
60102
// // AdminLTE Dist

build/scss/_cards.scss

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,4 +343,30 @@
343343
}
344344
}
345345
}
346+
347+
.card.bg-#{$name},
348+
.card.bg-#{$name}-gradient {
349+
.bootstrap-datetimepicker-widget {
350+
.table td,
351+
.table th {
352+
border: none;
353+
}
354+
355+
table thead tr:first-child th:hover,
356+
table td.day:hover,
357+
table td.hour:hover,
358+
table td.minute:hover,
359+
table td.second:hover {
360+
background: darken($color, 8%);
361+
color: color-yiq($color);
362+
}
363+
364+
365+
table td.active,
366+
table td.active:hover {
367+
background: lighten($color, 10%);
368+
color: color-yiq($color);
369+
}
370+
}
371+
}
346372
}

build/scss/_forms.scss

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,3 +230,50 @@ textarea.form-control {
230230
}
231231
}
232232
}
233+
234+
.custom-switch {
235+
@each $name, $color in $theme-colors {
236+
&.custom-switch-off-#{$name} {
237+
& .custom-control-input ~ .custom-control-label::before {
238+
background-color: #{$color};
239+
border-color: darken($color, 20%);
240+
}
241+
& .custom-control-input ~ .custom-control-label::after {
242+
background-color: darken($color, 25%);
243+
}
244+
}
245+
&.custom-switch-on-#{$name} {
246+
& .custom-control-input:checked ~ .custom-control-label::before {
247+
background-color: #{$color};
248+
border-color: darken($color, 20%);
249+
}
250+
& .custom-control-input:checked ~ .custom-control-label::after {
251+
background-color: lighten($color, 30%);
252+
}
253+
}
254+
}
255+
256+
// Background colors (colors)
257+
@each $name, $color in $colors {
258+
&.custom-switch-off-#{$name} {
259+
& .custom-control-input ~ .custom-control-label::before {
260+
background-color: #{$color};
261+
border-color: darken($color, 20%);
262+
}
263+
& .custom-control-input ~ .custom-control-label::after {
264+
background-color: darken($color, 25%);
265+
}
266+
}
267+
&.custom-switch-on-#{$name} {
268+
& .custom-control-input:checked ~ .custom-control-label::before {
269+
background-color: #{$color};
270+
border-color: darken($color, 20%);
271+
}
272+
& .custom-control-input:checked ~ .custom-control-label::after {
273+
background-color: lighten($color, 30%);
274+
}
275+
}
276+
}
277+
}
278+
279+

build/scss/_miscellaneous.scss

Lines changed: 31 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,14 @@ a.text-muted:hover {
7070
color: color-yiq($white) !important;
7171
}
7272

73+
// Gradient Background colors
74+
@each $name, $color in $theme-colors {
75+
.bg-#{$name}-gradient {
76+
@include gradient($color, $color, lighten($color, 10%));
77+
color: color-yiq($color);
78+
}
79+
}
80+
7381
// Disabled!
7482
[class^="bg-"].disabled {
7583
opacity: .65;
@@ -135,14 +143,6 @@ a.text-muted:hover {
135143
height: auto !important;
136144
}
137145

138-
// Gradient Background colors
139-
@each $name, $color in $theme-colors {
140-
.bg-#{$name}-gradient {
141-
@include gradient($color, $color, lighten($color, 10%));
142-
color: color-yiq($color);
143-
}
144-
}
145-
146146
// Description Block Extension
147147
.description-block {
148148
.description-icon {
@@ -363,6 +363,19 @@ a.text-muted:hover {
363363
}
364364

365365
// Modals
366+
.modal-dialog {
367+
.overlay {
368+
display: block;
369+
position: absolute;
370+
z-index: ($zindex-modal + 2);
371+
background: rgba(255, 255, 255, 0.7);
372+
top: 0;
373+
left: 0;
374+
width: 100%;
375+
height: 100%;
376+
}
377+
}
378+
366379
.modal-content {
367380
&.bg-warning {
368381
.modal-header,
@@ -381,4 +394,13 @@ a.text-muted:hover {
381394
color: $white;
382395
}
383396
}
384-
}
397+
}
398+
399+
// Background colors (colors)
400+
@each $name, $color in $colors {
401+
##{$name}.slider {
402+
.slider-selection {
403+
background: $color;
404+
}
405+
}
406+
}

0 commit comments

Comments
 (0)