@clayui/css 3.38.0 → 3.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +7 -2
- package/lib/css/atlas.css +819 -966
- package/lib/css/atlas.css.map +1 -1
- package/lib/css/base.css +668 -814
- package/lib/css/base.css.map +1 -1
- package/lib/css/cadmin.css +1013 -881
- package/lib/css/cadmin.css.map +1 -1
- package/lib/images/icons/geolocation.svg +1 -1
- package/lib/images/icons/heading.svg +9 -0
- package/lib/images/icons/icons.svg +1 -1
- package/lib/images/icons/maps.svg +10 -0
- package/lib/images/icons/order-ascending.svg +11 -0
- package/lib/images/icons/order-descending.svg +11 -0
- package/package.json +5 -3
- package/src/images/icons/geolocation.svg +1 -1
- package/src/images/icons/heading.svg +9 -0
- package/src/images/icons/maps.svg +10 -0
- package/src/images/icons/order-ascending.svg +11 -0
- package/src/images/icons/order-descending.svg +11 -0
- package/src/scss/_mixins.scss +1 -0
- package/src/scss/atlas/variables/_alerts.scss +10 -0
- package/src/scss/atlas/variables/_breadcrumbs.scss +4 -2
- package/src/scss/atlas/variables/_cards.scss +2 -2
- package/src/scss/atlas/variables/_custom-forms.scss +190 -14
- package/src/scss/atlas/variables/_dropdowns.scss +188 -17
- package/src/scss/atlas/variables/_forms.scss +33 -1
- package/src/scss/atlas/variables/_globals.scss +14 -1
- package/src/scss/atlas/variables/_labels.scss +171 -71
- package/src/scss/atlas/variables/_navs.scss +20 -8
- package/src/scss/atlas/variables/_pagination.scss +2 -2
- package/src/scss/atlas/variables/_sheets.scss +4 -2
- package/src/scss/atlas/variables/_stickers.scss +167 -3
- package/src/scss/atlas/variables/_tables.scss +58 -28
- package/src/scss/cadmin/components/_alerts.scss +1 -17
- package/src/scss/cadmin/components/_cards.scss +14 -16
- package/src/scss/cadmin/components/_custom-forms.scss +15 -165
- package/src/scss/cadmin/components/_dropdowns.scss +66 -205
- package/src/scss/cadmin/components/_form-validation.scss +10 -237
- package/src/scss/cadmin/components/_forms.scss +1 -1
- package/src/scss/cadmin/components/_grid.scss +20 -20
- package/src/scss/cadmin/components/_icons.scss +1 -6
- package/src/scss/cadmin/components/_images.scss +1 -1
- package/src/scss/cadmin/components/_input-groups.scss +17 -14
- package/src/scss/cadmin/components/_labels.scss +33 -101
- package/src/scss/cadmin/components/_list-group.scss +4 -4
- package/src/scss/cadmin/components/_modals.scss +1 -1
- package/src/scss/cadmin/components/_multi-step-nav.scss +2 -2
- package/src/scss/cadmin/components/_navbar.scss +2 -2
- package/src/scss/cadmin/components/_popovers.scss +34 -30
- package/src/scss/cadmin/components/_reboot.scss +1 -8
- package/src/scss/cadmin/components/_sidebar.scss +1 -1
- package/src/scss/cadmin/components/_stickers.scss +39 -94
- package/src/scss/cadmin/components/_toggle-switch.scss +20 -358
- package/src/scss/cadmin/components/_tooltip.scss +16 -14
- package/src/scss/cadmin/components/_type.scss +9 -1
- package/src/scss/cadmin/variables/_alerts.scss +38 -14
- package/src/scss/cadmin/variables/_breadcrumbs.scss +10 -6
- package/src/scss/cadmin/variables/_cards.scss +96 -28
- package/src/scss/cadmin/variables/_custom-forms.scss +262 -20
- package/src/scss/cadmin/variables/_dropdowns.scss +449 -137
- package/src/scss/cadmin/variables/_forms.scss +356 -5
- package/src/scss/cadmin/variables/_globals.scss +15 -1
- package/src/scss/cadmin/variables/_icons.scss +15 -2
- package/src/scss/cadmin/variables/_labels.scss +288 -101
- package/src/scss/cadmin/variables/_links.scss +9 -7
- package/src/scss/cadmin/variables/_menubar.scss +4 -4
- package/src/scss/cadmin/variables/_multi-step-nav.scss +2 -2
- package/src/scss/cadmin/variables/_navbar.scss +2 -2
- package/src/scss/cadmin/variables/_navs.scss +2 -2
- package/src/scss/cadmin/variables/_stickers.scss +258 -45
- package/src/scss/cadmin/variables/_tables.scss +1 -1
- package/src/scss/cadmin/variables/_timelines.scss +1 -1
- package/src/scss/cadmin/variables/_toggle-switch.scss +404 -1
- package/src/scss/cadmin/variables/_type.scss +3 -0
- package/src/scss/components/_alerts.scss +5 -17
- package/src/scss/components/_cards.scss +7 -7
- package/src/scss/components/_carousel.scss +2 -2
- package/src/scss/components/_custom-forms.scss +20 -164
- package/src/scss/components/_dropdowns.scss +52 -209
- package/src/scss/components/_form-validation.scss +8 -237
- package/src/scss/components/_forms.scss +66 -9
- package/src/scss/components/_grid.scss +15 -17
- package/src/scss/components/_icons.scss +4 -9
- package/src/scss/components/_images.scss +1 -1
- package/src/scss/components/_input-groups.scss +17 -14
- package/src/scss/components/_jumbotron.scss +1 -1
- package/src/scss/components/_labels.scss +29 -99
- package/src/scss/components/_list-group.scss +4 -4
- package/src/scss/components/_modals.scss +1 -1
- package/src/scss/components/_multi-step-nav.scss +2 -2
- package/src/scss/components/_navbar.scss +2 -2
- package/src/scss/components/_popovers.scss +30 -30
- package/src/scss/components/_reboot.scss +3 -39
- package/src/scss/components/_side-navigation.scss +2 -2
- package/src/scss/components/_sidebar.scss +1 -1
- package/src/scss/components/_stickers.scss +36 -94
- package/src/scss/components/_toggle-switch.scss +36 -351
- package/src/scss/components/_tooltip.scss +14 -14
- package/src/scss/components/_type.scss +9 -1
- package/src/scss/components/_utilities-functional-important.scss +4 -3
- package/src/scss/functions/_global-functions.scss +26 -6
- package/src/scss/functions/_lx-icons-generated.scss +125 -117
- package/src/scss/functions/_polyfills.scss +17 -0
- package/src/scss/functions/_type-conversion-functions.scss +5 -4
- package/src/scss/mixins/_alerts.scss +25 -0
- package/src/scss/mixins/_aspect-ratio.scss +1 -1
- package/src/scss/mixins/_buttons.scss +256 -15
- package/src/scss/mixins/_cards.scss +610 -114
- package/src/scss/mixins/_custom-forms.scss +668 -0
- package/src/scss/mixins/_dropdown-menu.scss +168 -48
- package/src/scss/mixins/_forms.scss +427 -12
- package/src/scss/mixins/_globals.scss +244 -234
- package/src/scss/mixins/_grid.scss +13 -15
- package/src/scss/mixins/_labels.scss +331 -97
- package/src/scss/mixins/_links.scss +453 -33
- package/src/scss/mixins/_navbar.scss +10 -10
- package/src/scss/mixins/_rfs.scss +14 -9
- package/src/scss/mixins/_stickers.scss +168 -17
- package/src/scss/mixins/_toggle-switch.scss +1076 -14
- package/src/scss/variables/_alerts.scss +38 -14
- package/src/scss/variables/_breadcrumbs.scss +8 -4
- package/src/scss/variables/_cards.scss +46 -8
- package/src/scss/variables/_custom-forms.scss +253 -18
- package/src/scss/variables/_dropdowns.scss +583 -132
- package/src/scss/variables/_forms.scss +304 -2
- package/src/scss/variables/_globals.scss +54 -1
- package/src/scss/variables/_icons.scss +60 -9
- package/src/scss/variables/_labels.scss +303 -107
- package/src/scss/variables/_links.scss +15 -13
- package/src/scss/variables/_menubar.scss +4 -4
- package/src/scss/variables/_multi-step-nav.scss +2 -2
- package/src/scss/variables/_navbar.scss +2 -2
- package/src/scss/variables/_navs.scss +37 -17
- package/src/scss/variables/_pagination.scss +15 -13
- package/src/scss/variables/_sheets.scss +4 -2
- package/src/scss/variables/_stickers.scss +327 -50
- package/src/scss/variables/_tables.scss +25 -9
- package/src/scss/variables/_timelines.scss +1 -1
- package/src/scss/variables/_toggle-switch.scss +404 -5
- package/src/scss/variables/_type.scss +3 -0
|
@@ -1,44 +1,5 @@
|
|
|
1
1
|
.sticker {
|
|
2
|
-
|
|
3
|
-
border-color: $cadmin-sticker-border-color;
|
|
4
|
-
|
|
5
|
-
@include border-radius($cadmin-sticker-border-radius);
|
|
6
|
-
|
|
7
|
-
border-style: $cadmin-sticker-border-style;
|
|
8
|
-
border-width: $cadmin-sticker-border-width;
|
|
9
|
-
color: $cadmin-sticker-color;
|
|
10
|
-
|
|
11
|
-
@include clay-monospace($cadmin-sticker-size);
|
|
12
|
-
|
|
13
|
-
display: inline-flex;
|
|
14
|
-
font-size: $cadmin-sticker-font-size;
|
|
15
|
-
font-weight: $cadmin-sticker-font-weight;
|
|
16
|
-
justify-content: center;
|
|
17
|
-
position: relative;
|
|
18
|
-
text-align: center;
|
|
19
|
-
vertical-align: middle;
|
|
20
|
-
|
|
21
|
-
> .inline-item {
|
|
22
|
-
font-size: $cadmin-sticker-inline-item-font-size;
|
|
23
|
-
justify-content: center;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
> .inline-item .lexicon-icon,
|
|
27
|
-
.lexicon-icon {
|
|
28
|
-
margin-top: 0;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
&.rounded .sticker-overlay {
|
|
32
|
-
border-radius: $cadmin-rounded-border-radius;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
&.rounded-circle .sticker-overlay {
|
|
36
|
-
border-radius: $cadmin-rounded-circle-border-radius;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
&.rounded-0 .sticker-overlay {
|
|
40
|
-
border-radius: 0;
|
|
41
|
-
}
|
|
2
|
+
@include clay-sticker-variant($cadmin-sticker);
|
|
42
3
|
}
|
|
43
4
|
|
|
44
5
|
.sticker-img {
|
|
@@ -47,70 +8,55 @@
|
|
|
47
8
|
}
|
|
48
9
|
|
|
49
10
|
.sticker-overlay {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
@include border-radius($cadmin-sticker-border-radius);
|
|
53
|
-
|
|
54
|
-
bottom: 0;
|
|
55
|
-
display: flex;
|
|
56
|
-
justify-content: center;
|
|
57
|
-
left: 0;
|
|
58
|
-
overflow: hidden;
|
|
59
|
-
position: absolute;
|
|
60
|
-
right: 0;
|
|
61
|
-
top: 0;
|
|
11
|
+
@include clay-css($cadmin-sticker-overlay);
|
|
62
12
|
}
|
|
63
13
|
|
|
64
14
|
// Sticker Positions
|
|
65
15
|
|
|
66
16
|
.sticker-bottom-left {
|
|
67
|
-
|
|
68
|
-
left: $cadmin-sticker-inside-offset;
|
|
69
|
-
position: absolute;
|
|
70
|
-
right: auto;
|
|
71
|
-
top: auto;
|
|
17
|
+
@include clay-css($cadmin-sticker-bottom-left);
|
|
72
18
|
}
|
|
73
19
|
|
|
74
20
|
.sticker-bottom-right {
|
|
75
|
-
|
|
76
|
-
left: auto;
|
|
77
|
-
position: absolute;
|
|
78
|
-
right: $cadmin-sticker-inside-offset;
|
|
79
|
-
top: auto;
|
|
21
|
+
@include clay-css($cadmin-sticker-bottom-right);
|
|
80
22
|
}
|
|
81
23
|
|
|
82
24
|
.sticker-top-left {
|
|
83
|
-
|
|
84
|
-
position: absolute;
|
|
85
|
-
top: $cadmin-sticker-inside-offset;
|
|
25
|
+
@include clay-css($cadmin-sticker-top-left);
|
|
86
26
|
}
|
|
87
27
|
|
|
88
28
|
.sticker-top-right {
|
|
89
|
-
|
|
90
|
-
position: absolute;
|
|
91
|
-
right: $cadmin-sticker-inside-offset;
|
|
92
|
-
top: $cadmin-sticker-inside-offset;
|
|
29
|
+
@include clay-css($cadmin-sticker-top-right);
|
|
93
30
|
}
|
|
94
31
|
|
|
95
32
|
.sticker-outside {
|
|
96
|
-
|
|
97
|
-
top: $cadmin-sticker-outside-offset;
|
|
33
|
+
@include clay-css($cadmin-sticker-outside);
|
|
98
34
|
|
|
99
35
|
&.sticker-bottom-left {
|
|
100
|
-
bottom:
|
|
101
|
-
|
|
36
|
+
$bottom-left: setter(
|
|
37
|
+
map-get($cadmin-sticker-outside, sticker-bottom-left),
|
|
38
|
+
()
|
|
39
|
+
);
|
|
40
|
+
|
|
41
|
+
@include clay-css($bottom-left);
|
|
102
42
|
}
|
|
103
43
|
|
|
104
44
|
&.sticker-bottom-right {
|
|
105
|
-
bottom:
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
45
|
+
$bottom-right: setter(
|
|
46
|
+
map-get($cadmin-sticker-outside, sticker-bottom-right),
|
|
47
|
+
()
|
|
48
|
+
);
|
|
49
|
+
|
|
50
|
+
@include clay-css($bottom-right);
|
|
109
51
|
}
|
|
110
52
|
|
|
111
53
|
&.sticker-top-right {
|
|
112
|
-
|
|
113
|
-
|
|
54
|
+
$top-right: setter(
|
|
55
|
+
map-get($cadmin-sticker-outside, sticker-top-right),
|
|
56
|
+
()
|
|
57
|
+
);
|
|
58
|
+
|
|
59
|
+
@include clay-css($top-right);
|
|
114
60
|
}
|
|
115
61
|
}
|
|
116
62
|
|
|
@@ -122,31 +68,30 @@
|
|
|
122
68
|
|
|
123
69
|
// Sticker Sizes
|
|
124
70
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
.sticker-lg {
|
|
130
|
-
@include clay-sticker-size($cadmin-sticker-lg);
|
|
131
|
-
}
|
|
71
|
+
@each $cadmin-selector, $cadmin-value in $cadmin-sticker-sizes {
|
|
72
|
+
%#{$cadmin-selector} {
|
|
73
|
+
@include clay-sticker-variant($cadmin-value);
|
|
74
|
+
}
|
|
132
75
|
|
|
133
|
-
|
|
134
|
-
|
|
76
|
+
.#{$cadmin-selector} {
|
|
77
|
+
@extend %#{$cadmin-selector} !optional;
|
|
78
|
+
}
|
|
135
79
|
}
|
|
136
80
|
|
|
137
81
|
// Sticker Variants
|
|
138
82
|
|
|
139
83
|
@each $cadmin-color, $cadmin-value in $cadmin-sticker-palette {
|
|
84
|
+
%sticker-#{$cadmin-color} {
|
|
85
|
+
@include clay-sticker-variant($cadmin-value);
|
|
86
|
+
}
|
|
87
|
+
|
|
140
88
|
.sticker-#{$cadmin-color} {
|
|
141
|
-
|
|
142
|
-
border-color: map-get($cadmin-value, border-color);
|
|
143
|
-
color: map-get($cadmin-value, color);
|
|
89
|
+
@extend %sticker-#{$cadmin-color} !optional;
|
|
144
90
|
}
|
|
145
91
|
}
|
|
146
92
|
|
|
147
93
|
// Sticker Circle
|
|
148
94
|
|
|
149
|
-
.sticker-circle
|
|
150
|
-
|
|
151
|
-
@include border-radius($cadmin-sticker-circle-border-radius);
|
|
95
|
+
.sticker-circle {
|
|
96
|
+
@include clay-sticker-variant($cadmin-sticker-circle);
|
|
152
97
|
}
|
|
@@ -1,391 +1,53 @@
|
|
|
1
|
-
// Simple Toggle Switch
|
|
2
|
-
|
|
3
|
-
.simple-toggle-switch {
|
|
4
|
-
&.toggle-switch {
|
|
5
|
-
align-items: center;
|
|
6
|
-
display: inline-flex;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.toggle-switch-check + .toggle-switch-label {
|
|
10
|
-
margin-right: $cadmin-simple-toggle-switch-label-spacer-x;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.toggle-switch-label + .toggle-switch-check-bar {
|
|
14
|
-
margin-left: $cadmin-simple-toggle-switch-label-spacer-x;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.toggle-switch-label {
|
|
18
|
-
line-height: $cadmin-simple-toggle-switch-label-line-height;
|
|
19
|
-
margin-bottom: 0;
|
|
20
|
-
max-width: calc(
|
|
21
|
-
100% - #{clay-data-label-text-position(
|
|
22
|
-
$cadmin-toggle-switch-bar-width,
|
|
23
|
-
$cadmin-toggle-switch-bar-padding
|
|
24
|
-
)}
|
|
25
|
-
);
|
|
26
|
-
|
|
27
|
-
@include clay-scale-component {
|
|
28
|
-
max-width: calc(
|
|
29
|
-
100% - #{clay-data-label-text-position(
|
|
30
|
-
$cadmin-toggle-switch-bar-width-mobile,
|
|
31
|
-
$cadmin-toggle-switch-bar-padding-mobile
|
|
32
|
-
)}
|
|
33
|
-
);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.simple-toggle-switch-reverse {
|
|
39
|
-
.toggle-switch-label {
|
|
40
|
-
margin-right: $cadmin-simple-toggle-switch-label-spacer-x;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.toggle-switch-check-bar {
|
|
44
|
-
order: 5;
|
|
45
|
-
|
|
46
|
-
.toggle-switch-bar {
|
|
47
|
-
order: 0;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.toggle-switch-bar {
|
|
52
|
-
order: 5;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
1
|
// Toggle Switch
|
|
57
2
|
|
|
58
|
-
label.toggle-switch {
|
|
59
|
-
cursor: $cadmin-toggle-switch-cursor;
|
|
60
|
-
|
|
61
|
-
&.disabled {
|
|
62
|
-
cursor: $cadmin-toggle-switch-disabled-cursor;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
3
|
.toggle-switch {
|
|
67
|
-
|
|
68
|
-
font-weight: $cadmin-toggle-switch-font-weight;
|
|
69
|
-
max-width: 100%;
|
|
70
|
-
position: relative;
|
|
71
|
-
|
|
72
|
-
&.disabled {
|
|
73
|
-
.toggle-switch-label {
|
|
74
|
-
color: $cadmin-toggle-switch-label-disabled-color;
|
|
75
|
-
cursor: $cadmin-toggle-switch-disabled-cursor;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.toggle-switch-text {
|
|
79
|
-
color: $cadmin-toggle-switch-text-disabled-color;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
4
|
+
@include clay-toggle-switch-variant($cadmin-toggle-switch);
|
|
82
5
|
}
|
|
83
6
|
|
|
84
7
|
.toggle-switch-check-bar {
|
|
85
|
-
|
|
86
|
-
position: relative;
|
|
8
|
+
@include clay-css($cadmin-toggle-switch-check-bar);
|
|
87
9
|
}
|
|
88
10
|
|
|
89
11
|
.toggle-switch-bar {
|
|
90
|
-
|
|
91
|
-
display: block;
|
|
92
|
-
min-width: $cadmin-toggle-switch-bar-width;
|
|
93
|
-
text-transform: uppercase;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.toggle-switch-icon {
|
|
97
|
-
font-size: $cadmin-toggle-switch-bar-font-size;
|
|
98
|
-
|
|
99
|
-
.lexicon-icon {
|
|
100
|
-
margin-top: -0.2em;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.button-icon {
|
|
105
|
-
font-size: $cadmin-toggle-switch-button-font-size;
|
|
106
|
-
}
|
|
12
|
+
@include clay-toggle-switch-bar-variant($cadmin-toggle-switch-bar);
|
|
107
13
|
}
|
|
108
14
|
|
|
109
15
|
.toggle-switch-check {
|
|
110
|
-
|
|
111
|
-
font-size: 62.5%;
|
|
112
|
-
height: $cadmin-toggle-switch-bar-height;
|
|
113
|
-
opacity: 0;
|
|
114
|
-
position: absolute;
|
|
115
|
-
width: $cadmin-toggle-switch-bar-width;
|
|
116
|
-
z-index: 2;
|
|
117
|
-
|
|
118
|
-
@include clay-scale-component {
|
|
119
|
-
height: $cadmin-toggle-switch-bar-height-mobile;
|
|
120
|
-
width: $cadmin-toggle-switch-bar-width-mobile;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
&:empty ~ .toggle-switch-bar {
|
|
124
|
-
display: inline-flex;
|
|
125
|
-
font-size: $cadmin-toggle-switch-bar-font-size;
|
|
126
|
-
height: $cadmin-toggle-switch-bar-height;
|
|
127
|
-
line-height: $cadmin-toggle-switch-bar-height;
|
|
128
|
-
position: relative;
|
|
129
|
-
text-indent: 0;
|
|
130
|
-
|
|
131
|
-
-ms-user-select: none;
|
|
132
|
-
user-select: none;
|
|
133
|
-
|
|
134
|
-
&:after {
|
|
135
|
-
background-color: $cadmin-toggle-switch-button-bg;
|
|
136
|
-
border-color: $cadmin-toggle-switch-button-border-color;
|
|
137
|
-
|
|
138
|
-
@include border-radius($cadmin-toggle-switch-button-border-radius);
|
|
139
|
-
|
|
140
|
-
border-style: solid;
|
|
141
|
-
border-width: $cadmin-toggle-switch-button-border-width;
|
|
142
|
-
bottom: $cadmin-toggle-switch-bar-padding;
|
|
143
|
-
content: '';
|
|
144
|
-
display: block;
|
|
145
|
-
height: $cadmin-toggle-switch-button-width;
|
|
146
|
-
left: $cadmin-toggle-switch-bar-padding;
|
|
147
|
-
position: absolute;
|
|
148
|
-
top: $cadmin-toggle-switch-bar-padding;
|
|
149
|
-
transition: $cadmin-toggle-switch-transition;
|
|
150
|
-
width: $cadmin-toggle-switch-button-width;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
&:before {
|
|
154
|
-
background-color: $cadmin-toggle-switch-bar-bg;
|
|
155
|
-
border-color: $cadmin-toggle-switch-bar-border-color;
|
|
156
|
-
|
|
157
|
-
@include border-radius($cadmin-toggle-switch-bar-border-radius);
|
|
158
|
-
|
|
159
|
-
border-style: solid;
|
|
160
|
-
border-width: $cadmin-toggle-switch-bar-border-width;
|
|
161
|
-
bottom: 0;
|
|
162
|
-
content: ' ';
|
|
163
|
-
display: block;
|
|
164
|
-
left: 0;
|
|
165
|
-
position: absolute;
|
|
166
|
-
top: 0;
|
|
167
|
-
transition: $cadmin-toggle-switch-transition;
|
|
168
|
-
width: $cadmin-toggle-switch-bar-width;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
.toggle-switch-handle {
|
|
172
|
-
&:after {
|
|
173
|
-
content: attr(data-label-off);
|
|
174
|
-
margin-left: clay-data-label-text-position(
|
|
175
|
-
$cadmin-toggle-switch-bar-width,
|
|
176
|
-
$cadmin-toggle-switch-bar-padding
|
|
177
|
-
);
|
|
178
|
-
transition: $cadmin-toggle-switch-transition;
|
|
179
|
-
white-space: nowrap;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
&:before {
|
|
183
|
-
transition: $cadmin-toggle-switch-transition;
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
.toggle-switch-icon {
|
|
188
|
-
color: $cadmin-toggle-switch-bar-icon-color;
|
|
189
|
-
left: $cadmin-toggle-switch-bar-padding;
|
|
190
|
-
line-height: $cadmin-toggle-switch-button-width;
|
|
191
|
-
position: absolute;
|
|
192
|
-
text-align: center;
|
|
193
|
-
text-indent: 0;
|
|
194
|
-
top: $cadmin-toggle-switch-bar-padding;
|
|
195
|
-
transition: $cadmin-toggle-switch-transition;
|
|
196
|
-
width: $cadmin-toggle-switch-button-width;
|
|
197
|
-
z-index: 1;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
.toggle-switch-icon-on {
|
|
201
|
-
left: $cadmin-toggle-switch-bar-padding;
|
|
202
|
-
opacity: 0;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
.toggle-switch-icon-off {
|
|
206
|
-
left: $cadmin-toggle-switch-bar-width -
|
|
207
|
-
$cadmin-toggle-switch-bar-padding -
|
|
208
|
-
$cadmin-toggle-switch-button-width;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
.button-icon {
|
|
212
|
-
color: $cadmin-toggle-switch-button-icon-color;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
.button-icon-on {
|
|
216
|
-
opacity: 0;
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
&:checked ~ .toggle-switch-bar {
|
|
221
|
-
&:after {
|
|
222
|
-
background-color: $cadmin-toggle-switch-button-on-bg;
|
|
223
|
-
border-color: $cadmin-toggle-switch-button-on-border-color;
|
|
224
|
-
|
|
225
|
-
@include border-radius(
|
|
226
|
-
$cadmin-toggle-switch-button-on-border-radius
|
|
227
|
-
);
|
|
228
|
-
|
|
229
|
-
border-style: solid;
|
|
230
|
-
border-width: $cadmin-toggle-switch-button-border-width;
|
|
231
|
-
left: $cadmin-toggle-switch-bar-width -
|
|
232
|
-
$cadmin-toggle-switch-bar-padding -
|
|
233
|
-
$cadmin-toggle-switch-button-width;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
&:before {
|
|
237
|
-
background-color: $cadmin-toggle-switch-bar-on-bg;
|
|
238
|
-
border-color: $cadmin-toggle-switch-bar-on-border-color;
|
|
239
|
-
|
|
240
|
-
@include border-radius($cadmin-toggle-switch-bar-border-radius);
|
|
241
|
-
|
|
242
|
-
border-style: solid;
|
|
243
|
-
border-width: $cadmin-toggle-switch-bar-border-width;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
.toggle-switch-handle:after {
|
|
247
|
-
content: attr(data-label-on);
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
.toggle-switch-icon {
|
|
251
|
-
color: $cadmin-toggle-switch-bar-on-icon-color;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
.button-icon {
|
|
255
|
-
color: $cadmin-toggle-switch-button-on-icon-color;
|
|
256
|
-
left: $cadmin-toggle-switch-bar-width -
|
|
257
|
-
$cadmin-toggle-switch-bar-padding -
|
|
258
|
-
$cadmin-toggle-switch-button-width;
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
.button-icon-on,
|
|
262
|
-
.toggle-switch-icon-on {
|
|
263
|
-
opacity: 1;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
.button-icon-off,
|
|
267
|
-
.toggle-switch-icon-off {
|
|
268
|
-
opacity: 0;
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
&:disabled,
|
|
273
|
-
&.disabled {
|
|
274
|
-
~ .toggle-switch-bar {
|
|
275
|
-
cursor: $cadmin-toggle-switch-disabled-cursor;
|
|
276
|
-
opacity: $cadmin-toggle-switch-disabled-opacity;
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
&:focus ~ .toggle-switch-bar:before {
|
|
281
|
-
box-shadow: $cadmin-toggle-switch-bar-focus-box-shadow;
|
|
282
|
-
}
|
|
16
|
+
@include clay-toggle-switch-check-variant($cadmin-toggle-switch-check);
|
|
283
17
|
}
|
|
284
18
|
|
|
285
19
|
.toggle-switch-label {
|
|
286
|
-
|
|
287
|
-
margin-bottom: 2px;
|
|
20
|
+
@include clay-css($cadmin-toggle-switch-label);
|
|
288
21
|
}
|
|
289
22
|
|
|
290
23
|
.toggle-switch-text {
|
|
291
|
-
|
|
292
|
-
font-size: $cadmin-toggle-switch-text-font-size;
|
|
24
|
+
@include clay-css($cadmin-toggle-switch-text);
|
|
293
25
|
}
|
|
294
26
|
|
|
295
27
|
.toggle-switch-text-left {
|
|
296
|
-
|
|
297
|
-
line-height: $cadmin-toggle-switch-bar-height;
|
|
298
|
-
margin-right: 8px;
|
|
28
|
+
@include clay-css($cadmin-toggle-switch-text-left);
|
|
299
29
|
}
|
|
300
30
|
|
|
301
31
|
.toggle-switch-text-right {
|
|
302
|
-
|
|
303
|
-
line-height: $cadmin-toggle-switch-bar-height;
|
|
304
|
-
margin-left: 8px;
|
|
32
|
+
@include clay-css($cadmin-toggle-switch-text-right);
|
|
305
33
|
}
|
|
306
34
|
|
|
307
|
-
|
|
308
|
-
.toggle-switch-bar {
|
|
309
|
-
.toggle-switch-handle {
|
|
310
|
-
min-width: $cadmin-toggle-switch-bar-width-mobile;
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
.toggle-switch-icon {
|
|
314
|
-
font-size: $cadmin-toggle-switch-bar-font-size-mobile;
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
.button-icon {
|
|
318
|
-
font-size: $cadmin-toggle-switch-button-font-size-mobile;
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
.toggle-switch-check {
|
|
323
|
-
&:empty ~ .toggle-switch-bar {
|
|
324
|
-
height: $cadmin-toggle-switch-bar-height-mobile;
|
|
325
|
-
line-height: $cadmin-toggle-switch-bar-height-mobile;
|
|
326
|
-
text-indent: 0;
|
|
327
|
-
|
|
328
|
-
&:after {
|
|
329
|
-
bottom: $cadmin-toggle-switch-bar-padding-mobile;
|
|
330
|
-
height: $cadmin-toggle-switch-button-width-mobile;
|
|
331
|
-
left: $cadmin-toggle-switch-bar-padding-mobile;
|
|
332
|
-
top: $cadmin-toggle-switch-bar-padding-mobile;
|
|
333
|
-
width: $cadmin-toggle-switch-button-width-mobile;
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
&:before {
|
|
337
|
-
width: $cadmin-toggle-switch-bar-width-mobile;
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
.toggle-switch-handle:after {
|
|
341
|
-
margin-left: clay-data-label-text-position(
|
|
342
|
-
$cadmin-toggle-switch-bar-width-mobile,
|
|
343
|
-
$cadmin-toggle-switch-bar-padding-mobile
|
|
344
|
-
);
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
.toggle-switch-icon {
|
|
348
|
-
left: $cadmin-toggle-switch-bar-padding-mobile;
|
|
349
|
-
line-height: $cadmin-toggle-switch-button-width-mobile;
|
|
350
|
-
top: $cadmin-toggle-switch-bar-padding-mobile;
|
|
351
|
-
width: $cadmin-toggle-switch-button-width-mobile;
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
.toggle-switch-icon-on {
|
|
355
|
-
left: $cadmin-toggle-switch-bar-padding-mobile;
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
.toggle-switch-icon-off {
|
|
359
|
-
left: $cadmin-toggle-switch-bar-width-mobile -
|
|
360
|
-
$cadmin-toggle-switch-bar-padding-mobile -
|
|
361
|
-
$cadmin-toggle-switch-button-width-mobile;
|
|
362
|
-
}
|
|
363
|
-
}
|
|
35
|
+
// Simple Toggle Switch
|
|
364
36
|
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
left: $cadmin-toggle-switch-bar-width-mobile -
|
|
368
|
-
$cadmin-toggle-switch-bar-padding-mobile -
|
|
369
|
-
$cadmin-toggle-switch-button-width-mobile;
|
|
370
|
-
}
|
|
37
|
+
.simple-toggle-switch {
|
|
38
|
+
@include clay-toggle-switch-variant($cadmin-simple-toggle-switch);
|
|
371
39
|
|
|
372
|
-
|
|
373
|
-
margin-left: clay-data-label-text-position(
|
|
374
|
-
$cadmin-toggle-switch-bar-width-mobile,
|
|
375
|
-
$cadmin-toggle-switch-bar-padding-mobile
|
|
376
|
-
);
|
|
377
|
-
}
|
|
40
|
+
// deprecated
|
|
378
41
|
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
$cadmin-toggle-switch-bar-padding-mobile -
|
|
382
|
-
$cadmin-toggle-switch-button-width-mobile;
|
|
383
|
-
}
|
|
384
|
-
}
|
|
42
|
+
.toggle-switch-check + .toggle-switch-label {
|
|
43
|
+
margin-right: $cadmin-simple-toggle-switch-label-spacer-x;
|
|
385
44
|
}
|
|
386
45
|
|
|
387
|
-
.toggle-switch-
|
|
388
|
-
|
|
389
|
-
line-height: $cadmin-toggle-switch-bar-height-mobile;
|
|
46
|
+
.toggle-switch-label + .toggle-switch-check-bar {
|
|
47
|
+
margin-left: $cadmin-simple-toggle-switch-label-spacer-x;
|
|
390
48
|
}
|
|
391
49
|
}
|
|
50
|
+
|
|
51
|
+
.simple-toggle-switch-reverse {
|
|
52
|
+
@include clay-toggle-switch-variant($cadmin-simple-toggle-switch-reverse);
|
|
53
|
+
}
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
&::before {
|
|
71
71
|
border-top-color: $cadmin-tooltip-arrow-color;
|
|
72
72
|
border-width: $cadmin-tooltip-arrow-height
|
|
73
|
-
($cadmin-tooltip-arrow-width
|
|
73
|
+
($cadmin-tooltip-arrow-width * 0.5) 0;
|
|
74
74
|
top: 0;
|
|
75
75
|
}
|
|
76
76
|
}
|
|
@@ -86,8 +86,9 @@
|
|
|
86
86
|
|
|
87
87
|
&::before {
|
|
88
88
|
border-right-color: $cadmin-tooltip-arrow-color;
|
|
89
|
-
border-width: ($cadmin-tooltip-arrow-width
|
|
90
|
-
$cadmin-tooltip-arrow-height ($cadmin-tooltip-arrow-width
|
|
89
|
+
border-width: ($cadmin-tooltip-arrow-width * 0.5)
|
|
90
|
+
$cadmin-tooltip-arrow-height ($cadmin-tooltip-arrow-width * 0.5)
|
|
91
|
+
0;
|
|
91
92
|
right: 0;
|
|
92
93
|
}
|
|
93
94
|
}
|
|
@@ -101,7 +102,7 @@
|
|
|
101
102
|
|
|
102
103
|
&::before {
|
|
103
104
|
border-bottom-color: $cadmin-tooltip-arrow-color;
|
|
104
|
-
border-width: 0 ($cadmin-tooltip-arrow-width
|
|
105
|
+
border-width: 0 ($cadmin-tooltip-arrow-width * 0.5)
|
|
105
106
|
$cadmin-tooltip-arrow-height;
|
|
106
107
|
bottom: 0;
|
|
107
108
|
}
|
|
@@ -118,8 +119,8 @@
|
|
|
118
119
|
|
|
119
120
|
&::before {
|
|
120
121
|
border-left-color: $cadmin-tooltip-arrow-color;
|
|
121
|
-
border-width: ($cadmin-tooltip-arrow-width
|
|
122
|
-
($cadmin-tooltip-arrow-width
|
|
122
|
+
border-width: ($cadmin-tooltip-arrow-width * 0.5) 0
|
|
123
|
+
($cadmin-tooltip-arrow-width * 0.5) $cadmin-tooltip-arrow-height;
|
|
123
124
|
left: 0;
|
|
124
125
|
}
|
|
125
126
|
}
|
|
@@ -151,7 +152,7 @@
|
|
|
151
152
|
.clay-tooltip-top {
|
|
152
153
|
.arrow {
|
|
153
154
|
left: 50%;
|
|
154
|
-
margin-left: -($cadmin-tooltip-arrow-width
|
|
155
|
+
margin-left: math-sign($cadmin-tooltip-arrow-width * 0.5);
|
|
155
156
|
}
|
|
156
157
|
}
|
|
157
158
|
|
|
@@ -172,7 +173,7 @@
|
|
|
172
173
|
.clay-tooltip-left,
|
|
173
174
|
.clay-tooltip-right {
|
|
174
175
|
.arrow {
|
|
175
|
-
margin-top: -($cadmin-tooltip-arrow-width
|
|
176
|
+
margin-top: math-sign($cadmin-tooltip-arrow-width * 0.5);
|
|
176
177
|
top: 50%;
|
|
177
178
|
}
|
|
178
179
|
}
|
|
@@ -203,7 +204,7 @@
|
|
|
203
204
|
|
|
204
205
|
&::before {
|
|
205
206
|
border-bottom-color: $cadmin-tooltip-arrow-color;
|
|
206
|
-
border-width: 0 ($cadmin-tooltip-arrow-width
|
|
207
|
+
border-width: 0 ($cadmin-tooltip-arrow-width * 0.5)
|
|
207
208
|
$cadmin-tooltip-arrow-height;
|
|
208
209
|
bottom: 0;
|
|
209
210
|
}
|
|
@@ -231,8 +232,8 @@
|
|
|
231
232
|
|
|
232
233
|
&::before {
|
|
233
234
|
border-left-color: $cadmin-tooltip-arrow-color;
|
|
234
|
-
border-width: ($cadmin-tooltip-arrow-width
|
|
235
|
-
($cadmin-tooltip-arrow-width
|
|
235
|
+
border-width: ($cadmin-tooltip-arrow-width * 0.5) 0
|
|
236
|
+
($cadmin-tooltip-arrow-width * 0.5) $cadmin-tooltip-arrow-height;
|
|
236
237
|
left: 0;
|
|
237
238
|
}
|
|
238
239
|
}
|
|
@@ -259,8 +260,9 @@
|
|
|
259
260
|
|
|
260
261
|
&::before {
|
|
261
262
|
border-right-color: $cadmin-tooltip-arrow-color;
|
|
262
|
-
border-width: ($cadmin-tooltip-arrow-width
|
|
263
|
-
$cadmin-tooltip-arrow-height ($cadmin-tooltip-arrow-width
|
|
263
|
+
border-width: ($cadmin-tooltip-arrow-width * 0.5)
|
|
264
|
+
$cadmin-tooltip-arrow-height ($cadmin-tooltip-arrow-width * 0.5)
|
|
265
|
+
0;
|
|
264
266
|
right: 0;
|
|
265
267
|
}
|
|
266
268
|
}
|
|
@@ -286,7 +288,7 @@
|
|
|
286
288
|
&::before {
|
|
287
289
|
border-top-color: $cadmin-tooltip-arrow-color;
|
|
288
290
|
border-width: $cadmin-tooltip-arrow-height
|
|
289
|
-
($cadmin-tooltip-arrow-width
|
|
291
|
+
($cadmin-tooltip-arrow-width * 0.5) 0;
|
|
290
292
|
top: 0;
|
|
291
293
|
}
|
|
292
294
|
}
|