@eui/styles 15.0.0-rc.2 → 15.0.0-rc.21
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/dist/styles/eui-ecl-ec.css +2 -1
- package/dist/styles/eui-ecl-ec.css.map +1 -1
- package/dist/styles/eui-ecl-eu.css +2 -1
- package/dist/styles/eui-ecl-eu.css.map +1 -1
- package/dist/styles/eui-extra-utilities.css.map +1 -1
- package/dist/styles/eui-legacy-bootstrap.css.map +1 -1
- package/dist/styles/eui-legacy-icons-font.css.map +1 -1
- package/dist/styles/eui-legacy-utilities.css.map +1 -1
- package/dist/styles/eui-legacy.css +2 -2
- package/dist/styles/eui-legacy.css.map +1 -1
- package/dist/styles/eui-print.css +1 -1
- package/dist/styles/eui-print.css.map +1 -1
- package/dist/styles/eui-showcase-all.css +2 -2
- package/dist/styles/eui-showcase-all.css.map +1 -1
- package/dist/styles/eui.css +2 -2
- package/dist/styles/eui.css.map +1 -1
- package/package.json +1 -1
- package/src/styles/01-ecl/_module-ec.scss +2 -0
- package/src/styles/01-ecl/_module-eu.scss +2 -0
- package/src/styles/02-base/mixins/_eui-input.scss +14 -2
- package/src/styles/02-base/mixins/_module.scss +0 -2
- package/src/styles/02b-base-vars/_layout.vars.scss +4 -4
- package/src/styles/05-material/_module.scss +20 -25
- package/src/styles/05-material/compiled/_full.scss +685 -0
- package/src/styles/05-material/compiled/_sources.scss +382 -0
- package/src/styles/05-material/{_old-v14-material/components → overrides}/_calendar.scss +2 -0
- package/src/styles/05-material/{_old-v14-material/components → overrides}/_cdk-drag.scss +5 -11
- package/src/styles/05-material/overrides/{_cdk.scss → _cdk-global-scrollblock.scss} +1 -5
- package/src/styles/05-material/{_old-v14-material/components → overrides}/_cdk-overlay-container.scss +0 -0
- package/src/styles/05-material/overrides/_cdk-overlay-pane.scss +4 -0
- package/src/styles/05-material/{_old-v14-material/components → overrides}/_module.scss +0 -6
- package/src/styles/06-shared/_default.scss +11 -0
- package/src/styles/06-shared/_module.scss +1 -0
- package/src/styles/06-shared/_typography.scss +0 -6
- package/src/styles/07-elements/_module-legacy.scss +1 -2
- package/src/styles/eui-showcase-all-dev.scss +2 -1
- package/src/styles/eui-showcase-all.scss +2 -1
- package/src/styles/02-base/mixins/_eui-svg-icons-content.scss +0 -18
- package/src/styles/05-material/_old-v14-material/_module.scss +0 -2
- package/src/styles/05-material/_old-v14-material/components/_button.scss +0 -133
- package/src/styles/05-material/_old-v14-material/components/_cdk-global-scrollblock.scss +0 -16
- package/src/styles/05-material/_old-v14-material/components/_cdk-overlay-pane.scss +0 -4
- package/src/styles/05-material/_old-v14-material/components/_checkbox.scss +0 -53
- package/src/styles/05-material/_old-v14-material/components/_input.scss +0 -13
- package/src/styles/05-material/_old-v14-material/components/_option.scss +0 -5
- package/src/styles/05-material/_old-v14-material/components/_radio.scss +0 -66
- package/src/styles/05-material/_old-v14-material/components/_tooltip.scss +0 -290
- package/src/styles/05-material/_old-v14-material/themes/default/_module.scss +0 -2
- package/src/styles/05-material/_old-v14-material/themes/default/_theme.scss +0 -9
- package/src/styles/05-material/_old-v14-material/themes/default/_variables.scss +0 -64
- package/src/styles/05-material/_overrides.scss +0 -1
- package/src/styles/05-material/overrides/_tooltip.scss +0 -290
- package/src/styles/07-elements/legacy/_input-checkbox-default.scss +0 -368
- package/src/styles/07-elements/legacy/_input-radio-default.scss +0 -289
|
@@ -1,290 +0,0 @@
|
|
|
1
|
-
/* eUI Tooltip styles overrides and customizations based on Angular Material Tooltip
|
|
2
|
-
Features :
|
|
3
|
-
- added material shadow by default
|
|
4
|
-
- added optional arrows display based on tooltip position and color state class
|
|
5
|
-
- allow multi-lines feature with pre-line white space setting
|
|
6
|
-
- allow tooltip content alignments (default: centered)
|
|
7
|
-
- custom spacings
|
|
8
|
-
- set minimum width (2rem)
|
|
9
|
-
- custom font styling (letter spacing)
|
|
10
|
-
- set default tooltip borders to be squared
|
|
11
|
-
- optional tooltip rounded borders
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
$tooltip-background-color: rgba(37, 36, 36, 0.9); // MD rgba(97,97,97,.9);
|
|
15
|
-
$tooltip-arrow-width: 8px;
|
|
16
|
-
|
|
17
|
-
// Each Tooltip is instanciated within the cdk-overlay-container
|
|
18
|
-
// with its own life cycle based on optional show/hide delay
|
|
19
|
-
.cdk-overlay-container {
|
|
20
|
-
.cdk-overlay-pane.mat-tooltip-panel {
|
|
21
|
-
.mat-tooltip {
|
|
22
|
-
--eui-base-border-radius: 4px; // Override root default (MD)
|
|
23
|
-
|
|
24
|
-
background-color: $tooltip-background-color;
|
|
25
|
-
border-radius: 0 !important; // defaut squared
|
|
26
|
-
box-shadow: v(eui-base-shadow-4);
|
|
27
|
-
color: v(eui-base-color-white) !important; // default font color
|
|
28
|
-
font-size: v(eui-base-font-size-xs);
|
|
29
|
-
letter-spacing: 0.5px;
|
|
30
|
-
margin: v(eui-base-spacing-m) !important; // This controls the spacing from tooltip to parent element
|
|
31
|
-
max-width: 50vw;
|
|
32
|
-
min-width: v(eui-base-spacing-2xl);
|
|
33
|
-
overflow: visible !important; // Mandatory for arrows to be displayed
|
|
34
|
-
padding-left: v(eui-base-spacing-xs) !important; // We must control the paddings from which arrow's positions are set
|
|
35
|
-
padding-right: v(eui-base-spacing-xs) !important;
|
|
36
|
-
padding-bottom: v(eui-base-spacing-xs) !important;
|
|
37
|
-
padding-top: v(eui-base-spacing-xs) !important;
|
|
38
|
-
text-align: center; // default (see optional content alignment)
|
|
39
|
-
text-overflow: ellipsis;
|
|
40
|
-
white-space: pre-line; // Allow multi-lines tooltip
|
|
41
|
-
|
|
42
|
-
// ARROWS COMMON BASE
|
|
43
|
-
&:before {
|
|
44
|
-
border-color: transparent;
|
|
45
|
-
border-style: solid;
|
|
46
|
-
border-width: $tooltip-arrow-width;
|
|
47
|
-
bottom: 0;
|
|
48
|
-
content: '';
|
|
49
|
-
display: block;
|
|
50
|
-
height: 0;
|
|
51
|
-
position: absolute;
|
|
52
|
-
width: 0;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
&.eui-tooltip {
|
|
56
|
-
white-space: pre-line; // Allow multi-lines tooltip
|
|
57
|
-
|
|
58
|
-
// COLOR STATES
|
|
59
|
-
&.eui-tooltip--primary {
|
|
60
|
-
background-color: v(eui-base-color-primary-100);
|
|
61
|
-
color: v(eui-base-color-white);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
&.eui-tooltip--secondary {
|
|
65
|
-
background-color: v(eui-base-color-grey-15);
|
|
66
|
-
color: v(eui-base-color-grey-100) !important;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
&.eui-tooltip--info {
|
|
70
|
-
background-color: v(eui-base-color-info-100);
|
|
71
|
-
color: v(eui-base-color-white);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
&.eui-tooltip--success {
|
|
75
|
-
background-color: v(eui-base-color-success-100);
|
|
76
|
-
color: v(eui-base-color-white);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
&.eui-tooltip--warning {
|
|
80
|
-
background-color: v(eui-base-color-warning-100);
|
|
81
|
-
color: v(eui-base-color-black) !important; // WCAG2 AA compliant
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
&.eui-tooltip--danger {
|
|
85
|
-
background-color: v(eui-base-color-danger-100);
|
|
86
|
-
color: v(eui-base-color-white);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
&.eui-tooltip--accent {
|
|
90
|
-
color: v(eui-base-color-black) !important; // WCAG2 AA compliant
|
|
91
|
-
background-color: v(eui-base-color-accent-100);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
&.eui-tooltip--rounded {
|
|
95
|
-
border-radius: v(eui-base-border-radius) !important;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
// CONTENT ALIGNMENT
|
|
99
|
-
&.eui-tooltip--content-center {
|
|
100
|
-
text-align: center;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
&.eui-tooltip--content-left {
|
|
104
|
-
text-align: left;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
&.eui-tooltip--content-right {
|
|
108
|
-
text-align: right;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
&.eui-tooltip--content-justify {
|
|
112
|
-
hyphens: auto;
|
|
113
|
-
text-align: justify;
|
|
114
|
-
word-break: break-word;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
// SHOW ARROWS
|
|
118
|
-
&.eui-tooltip--arrows {
|
|
119
|
-
|
|
120
|
-
// TOOLTIP POSITION TOP (default)
|
|
121
|
-
&.eui-tooltip--above {
|
|
122
|
-
// ADD BOTTOM ARROW
|
|
123
|
-
&:before {
|
|
124
|
-
border-color: $tooltip-background-color transparent transparent transparent;
|
|
125
|
-
left: calc(50% - #{$tooltip-arrow-width});
|
|
126
|
-
transform: translate(0, $tooltip-arrow-width * 2);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
&.eui-tooltip {
|
|
130
|
-
&--primary:before { border-color: v(eui-base-color-primary-100) transparent transparent transparent; }
|
|
131
|
-
&--secondary:before { border-color: v(eui-base-color-grey-15) transparent transparent transparent; }
|
|
132
|
-
&--info:before { border-color: v(eui-base-color-info-100) transparent transparent transparent; }
|
|
133
|
-
&--success:before { border-color: v(eui-base-color-success-100) transparent transparent transparent; }
|
|
134
|
-
&--warning:before { border-color: v(eui-base-color-warning-100) transparent transparent transparent; }
|
|
135
|
-
&--danger:before { border-color: v(eui-base-color-danger-100) transparent transparent transparent; }
|
|
136
|
-
&--accent:before { border-color: v(eui-base-color-accent-100) transparent transparent transparent; }
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
// TOOLTIP POSITION BOTTOM
|
|
141
|
-
&.eui-tooltip--below {
|
|
142
|
-
// ADD TOP ARROW
|
|
143
|
-
&:before {
|
|
144
|
-
border-color: transparent transparent $tooltip-background-color transparent;
|
|
145
|
-
left: calc(50% - #{$tooltip-arrow-width});
|
|
146
|
-
top: 0;
|
|
147
|
-
transform: translate(0, -100%);
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
&.eui-tooltip {
|
|
151
|
-
&--primary:before { border-color: transparent transparent v(eui-base-color-primary-100) transparent; }
|
|
152
|
-
&--secondary:before { border-color: transparent transparent v(eui-base-color-grey-15) transparent; }
|
|
153
|
-
&--info:before { border-color: transparent transparent v(eui-base-color-info-100) transparent; }
|
|
154
|
-
&--success:before { border-color: transparent transparent v(eui-base-color-success-100) transparent; }
|
|
155
|
-
&--warning:before { border-color: transparent transparent v(eui-base-color-warning-100) transparent; }
|
|
156
|
-
&--danger:before { border-color: transparent transparent v(eui-base-color-danger-100) transparent; }
|
|
157
|
-
&--accent:before { border-color: transparent transparent v(eui-base-color-accent-100) transparent; }
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
// TOOLTIP POSITION LEFT
|
|
162
|
-
&.eui-tooltip--left,
|
|
163
|
-
&.eui-tooltip--before {
|
|
164
|
-
// ADD RIGHT ARROW
|
|
165
|
-
&:before {
|
|
166
|
-
border-color: transparent transparent transparent $tooltip-background-color;
|
|
167
|
-
right: -$tooltip-arrow-width;
|
|
168
|
-
top: 50%;
|
|
169
|
-
transform: translate($tooltip-arrow-width, -$tooltip-arrow-width);
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
&.eui-tooltip {
|
|
173
|
-
&--primary:before { border-color: transparent transparent transparent v(eui-base-color-primary-100); }
|
|
174
|
-
&--secondary:before { border-color: transparent transparent transparent v(eui-base-color-grey-15); }
|
|
175
|
-
&--info:before { border-color: transparent transparent transparent v(eui-base-color-info-100); }
|
|
176
|
-
&--success:before { border-color: transparent transparent transparent v(eui-base-color-success-100); }
|
|
177
|
-
&--warning:before { border-color: transparent transparent transparent v(eui-base-color-warning-100); }
|
|
178
|
-
&--danger:before { border-color: transparent transparent transparent v(eui-base-color-danger-100); }
|
|
179
|
-
&--accent:before { border-color: transparent transparent transparent v(eui-base-color-accent-100); }
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
// TOOLTIP POSITION RIGHT
|
|
184
|
-
&.eui-tooltip--right,
|
|
185
|
-
&.eui-tooltip--after {
|
|
186
|
-
// ADD LEFT ARROW
|
|
187
|
-
&:before {
|
|
188
|
-
border-color: transparent $tooltip-background-color transparent transparent;
|
|
189
|
-
left: -$tooltip-arrow-width;
|
|
190
|
-
top: 50%;
|
|
191
|
-
transform: translate(-$tooltip-arrow-width, -$tooltip-arrow-width);
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
&.eui-tooltip {
|
|
195
|
-
&--primary:before { border-color: transparent v(eui-base-color-primary-100) transparent transparent; }
|
|
196
|
-
&--secondary:before { border-color: transparent v(eui-base-color-grey-15) transparent transparent; }
|
|
197
|
-
&--info:before { border-color: transparent v(eui-base-color-info-100) transparent transparent; }
|
|
198
|
-
&--success:before { border-color: transparent v(eui-base-color-success-100) transparent transparent; }
|
|
199
|
-
&--warning:before { border-color: transparent v(eui-base-color-warning-100) transparent transparent; }
|
|
200
|
-
&--danger:before { border-color: transparent v(eui-base-color-danger-100) transparent transparent; }
|
|
201
|
-
&--accent:before { border-color: transparent v(eui-base-color-accent-100) transparent transparent; }
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
// In case when we have a tooltip to be shown below, but that's not possible because of bottom of the page.
|
|
211
|
-
.cdk-overlay-container {
|
|
212
|
-
.cdk-overlay-pane.mat-tooltip-panel-above {
|
|
213
|
-
.mat-tooltip {
|
|
214
|
-
&.eui-tooltip {
|
|
215
|
-
&.eui-tooltip--arrows {
|
|
216
|
-
&.eui-tooltip--below {
|
|
217
|
-
&:before {
|
|
218
|
-
border-color: $tooltip-background-color transparent transparent transparent;
|
|
219
|
-
left: calc(50% - #{$tooltip-arrow-width});
|
|
220
|
-
top: auto;
|
|
221
|
-
transform: translate(0, $tooltip-arrow-width * 2);
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
// When we have a tooltip tp be shown above, but that's not possible because of the top of the page. Arrow should be flipped.
|
|
231
|
-
.cdk-overlay-container {
|
|
232
|
-
.cdk-overlay-pane.mat-tooltip-panel-below {
|
|
233
|
-
.mat-tooltip {
|
|
234
|
-
&.eui-tooltip {
|
|
235
|
-
&.eui-tooltip--arrows {
|
|
236
|
-
&.eui-tooltip--above {
|
|
237
|
-
&:before {
|
|
238
|
-
border-color: transparent transparent $tooltip-background-color transparent;
|
|
239
|
-
top: 0;
|
|
240
|
-
transform: translate(0, -100%);
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
// When the tooltip should appear on the left, but it reaches end of the page.
|
|
250
|
-
.cdk-overlay-container {
|
|
251
|
-
.cdk-overlay-pane.mat-tooltip-panel-left {
|
|
252
|
-
.mat-tooltip {
|
|
253
|
-
&.eui-tooltip {
|
|
254
|
-
&.eui-tooltip--arrows {
|
|
255
|
-
&.eui-tooltip--right,
|
|
256
|
-
&.eui-tooltip--after {
|
|
257
|
-
&:before {
|
|
258
|
-
border-color: transparent transparent transparent $tooltip-background-color;
|
|
259
|
-
right: -$tooltip-arrow-width;
|
|
260
|
-
left: auto;
|
|
261
|
-
transform: translate($tooltip-arrow-width, -$tooltip-arrow-width);
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
// When the tooltip should appear on the right, but it reaches end of the page.
|
|
271
|
-
.cdk-overlay-container {
|
|
272
|
-
.cdk-overlay-pane.mat-tooltip-panel-right {
|
|
273
|
-
.mat-tooltip {
|
|
274
|
-
&.eui-tooltip {
|
|
275
|
-
&.eui-tooltip--arrows {
|
|
276
|
-
&.eui-tooltip--left,
|
|
277
|
-
&.eui-tooltip--before {
|
|
278
|
-
&:before {
|
|
279
|
-
border-color: transparent $tooltip-background-color transparent transparent;
|
|
280
|
-
left: -$tooltip-arrow-width;
|
|
281
|
-
right: auto;
|
|
282
|
-
top: 50%;
|
|
283
|
-
transform: translate(-$tooltip-arrow-width, -$tooltip-arrow-width);
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
}
|
|
@@ -1,368 +0,0 @@
|
|
|
1
|
-
////////////////////////////////////////////////////////////////////////////////
|
|
2
|
-
// DEFAULT CHECKBOX STYLE
|
|
3
|
-
// Duplicated selectors are present for better understanding
|
|
4
|
-
////////////////////////////////////////////////////////////////////////////////
|
|
5
|
-
// stylelint-disable no-descending-specificity
|
|
6
|
-
// stylelint-disable no-duplicate-selectors
|
|
7
|
-
|
|
8
|
-
input[type="checkbox"]:not(.eui-input-checkbox):not(.cdk-visually-hidden) {
|
|
9
|
-
// Hide the default checkbox (equivalent as Material cdk-visually-hidden we exclude)
|
|
10
|
-
-webkit-appearance: none;
|
|
11
|
-
-moz-appearance: none;
|
|
12
|
-
border: 0;
|
|
13
|
-
clip: rect(0 0 0 0);
|
|
14
|
-
height: 1px;
|
|
15
|
-
opacity: 0;
|
|
16
|
-
overflow: hidden;
|
|
17
|
-
padding: 0;
|
|
18
|
-
position: absolute;
|
|
19
|
-
width: 1px;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
table {
|
|
23
|
-
// Show default checkbox
|
|
24
|
-
input[type="checkbox"]:not(.eui-input-checkbox):not(.cdk-visually-hidden) {
|
|
25
|
-
border: inherit;
|
|
26
|
-
clip: auto !important;
|
|
27
|
-
height: calc(#{v(eui-base-spacing-m)} + #{v(eui-base-spacing-2xs)}) !important;
|
|
28
|
-
opacity: 1;
|
|
29
|
-
overflow: visible;
|
|
30
|
-
padding: 0;
|
|
31
|
-
width: calc(#{v(eui-base-spacing-m)} + #{v(eui-base-spacing-2xs)}) !important;
|
|
32
|
-
|
|
33
|
-
// Force hiding default input checkbox when using ux-form-control (EUI-4602, EUI-4638)
|
|
34
|
-
&.ux-input__checkbox,
|
|
35
|
-
&.mat-slide-toggle-input {
|
|
36
|
-
clip: rect(0 0 0 0) !important;
|
|
37
|
-
|
|
38
|
-
&::after,
|
|
39
|
-
&::before {
|
|
40
|
-
content: none !important;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
[type="checkbox"]:not(.eui-input-checkbox):not(.cdk-visually-hidden) {
|
|
47
|
-
-moz-appearance: initial; // Hack for Firefox browsers which does not support after/before pseudos on input type
|
|
48
|
-
|
|
49
|
-
// WITHOUT LABEL
|
|
50
|
-
/////////////////
|
|
51
|
-
&.ux-checkbox {
|
|
52
|
-
clip: auto;
|
|
53
|
-
height: calc(#{v(eui-base-spacing-m)} + #{v(eui-base-spacing-2xs)}); // 1.25rem = 20px
|
|
54
|
-
left: 0;
|
|
55
|
-
opacity: 1;
|
|
56
|
-
position: relative;
|
|
57
|
-
width: calc(#{v(eui-base-spacing-m)} + #{v(eui-base-spacing-2xs)}); // 1.25rem = 20px
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
// Unchecked
|
|
61
|
-
// The checkbox
|
|
62
|
-
&::after {
|
|
63
|
-
background: transparent;
|
|
64
|
-
content: '';
|
|
65
|
-
left: 3px;
|
|
66
|
-
position: absolute;
|
|
67
|
-
top: 0;
|
|
68
|
-
}
|
|
69
|
-
// The box
|
|
70
|
-
&::before {
|
|
71
|
-
background: v(eui-base-color-white);
|
|
72
|
-
border: 2px solid v(eui-base-color-grey-15);
|
|
73
|
-
border-radius: 0;
|
|
74
|
-
clip: auto !important;
|
|
75
|
-
content: '';
|
|
76
|
-
cursor: pointer;
|
|
77
|
-
display: inline-block;
|
|
78
|
-
height: calc(#{v(eui-base-spacing-m)} + #{v(eui-base-spacing-2xs)});
|
|
79
|
-
margin-right: v(eui-base-spacing-m);
|
|
80
|
-
opacity: 1;
|
|
81
|
-
position: relative;
|
|
82
|
-
text-align: center;
|
|
83
|
-
transition: all 250ms ease;
|
|
84
|
-
vertical-align: top;
|
|
85
|
-
width: calc(#{v(eui-base-spacing-m)} + #{v(eui-base-spacing-2xs)});
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
// Checked
|
|
89
|
-
&:checked {
|
|
90
|
-
// The checkbox
|
|
91
|
-
&::after {
|
|
92
|
-
background: transparent;
|
|
93
|
-
color: v(eui-base-color-white);
|
|
94
|
-
// content: $eui-icon-check-m !important; // TO DO v15 svg remplacement
|
|
95
|
-
font-family: eui-icons, sans-serif;
|
|
96
|
-
font-weight: bold;
|
|
97
|
-
}
|
|
98
|
-
// The box
|
|
99
|
-
&::before {
|
|
100
|
-
background: v(eui-base-color-primary-100);
|
|
101
|
-
border: 2px solid v(eui-base-color-grey-20);
|
|
102
|
-
border-radius: 0;
|
|
103
|
-
clip: auto !important;
|
|
104
|
-
content: '';
|
|
105
|
-
cursor: pointer;
|
|
106
|
-
display: inline-block;
|
|
107
|
-
height: calc(#{v(eui-base-spacing-m)} + #{v(eui-base-spacing-2xs)});
|
|
108
|
-
margin-right: v(eui-base-spacing-m);
|
|
109
|
-
opacity: 1;
|
|
110
|
-
position: relative;
|
|
111
|
-
text-align: center;
|
|
112
|
-
transition: all 250ms ease;
|
|
113
|
-
vertical-align: top;
|
|
114
|
-
width: calc(#{v(eui-base-spacing-m)} + #{v(eui-base-spacing-2xs)});
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
&:disabled {
|
|
119
|
-
color: v(eui-base-color-grey-25);
|
|
120
|
-
pointer-events: none;
|
|
121
|
-
// The box
|
|
122
|
-
&::before {
|
|
123
|
-
background: v(eui-base-color-grey-10);
|
|
124
|
-
border-color: v(eui-base-color-grey-15);
|
|
125
|
-
color: v(eui-base-color-white);
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
// The checkbox
|
|
129
|
-
&:checked::after {
|
|
130
|
-
background: transparent;
|
|
131
|
-
color: v(eui-base-color-grey-20);
|
|
132
|
-
// content: $eui-icon-check-m !important; // TO DO v15 svg remplacement
|
|
133
|
-
font-family: eui-icons, sans-serif;
|
|
134
|
-
font-weight: bold;
|
|
135
|
-
position: relative;
|
|
136
|
-
top: -20px;
|
|
137
|
-
|
|
138
|
-
.eui-t-compact & {
|
|
139
|
-
top: -15px;
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
&:checked {
|
|
144
|
-
&::before {
|
|
145
|
-
background-color: v(eui-base-color-grey-10);
|
|
146
|
-
border: 2px solid v(eui-base-color-grey-15);
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
&:focus {
|
|
152
|
-
outline: 1px solid transparent;
|
|
153
|
-
outline-color: v(eui-base-color-accent-120);
|
|
154
|
-
outline-offset: -1px;
|
|
155
|
-
|
|
156
|
-
&::before {
|
|
157
|
-
@include eui-accessible-focus-outline();
|
|
158
|
-
// @include eui-box-shadow-hover;
|
|
159
|
-
box-shadow: v(eui-base-shadow-2);
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
&[readonly] {
|
|
164
|
-
background: v(eui-base-color-grey-25);
|
|
165
|
-
background-image: none;
|
|
166
|
-
box-shadow: none;
|
|
167
|
-
cursor: not-allowed;
|
|
168
|
-
outline: none;
|
|
169
|
-
pointer-events: none;
|
|
170
|
-
|
|
171
|
-
// Unchecked
|
|
172
|
-
// The checkbox
|
|
173
|
-
&::after {
|
|
174
|
-
content: '';
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
// The box
|
|
178
|
-
&::before {
|
|
179
|
-
background: v(eui-base-color-grey-20);
|
|
180
|
-
border: 2px solid v(eui-base-color-grey-15);
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
// Checked
|
|
184
|
-
&:checked {
|
|
185
|
-
// The checkbox
|
|
186
|
-
&::after {
|
|
187
|
-
color: v(eui-base-color-white);
|
|
188
|
-
// content: $eui-icon-check-m !important; // TO DO v15 svg remplacement
|
|
189
|
-
font-family: eui-icons, sans-serif;
|
|
190
|
-
font-weight: bold;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
// The box
|
|
194
|
-
&::before {
|
|
195
|
-
background: v(eui-base-color-grey-20);
|
|
196
|
-
border: 2px solid v(eui-base-color-grey-15);
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
// WITH LABEL
|
|
202
|
-
/////////////////
|
|
203
|
-
// Unchecked
|
|
204
|
-
+ label {
|
|
205
|
-
margin-bottom: v(eui-base-spacing-xs);
|
|
206
|
-
margin-top: v(eui-base-spacing-xs);
|
|
207
|
-
|
|
208
|
-
&:hover {
|
|
209
|
-
cursor: pointer;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
// The checkbox
|
|
213
|
-
&::after {
|
|
214
|
-
background: transparent;
|
|
215
|
-
content: '';
|
|
216
|
-
left: 2px;
|
|
217
|
-
position: absolute;
|
|
218
|
-
}
|
|
219
|
-
// The box
|
|
220
|
-
&::before {
|
|
221
|
-
background: v(eui-base-color-white);
|
|
222
|
-
border: 2px solid v(eui-base-color-grey-15);
|
|
223
|
-
border-radius: 0;
|
|
224
|
-
clip: auto !important;
|
|
225
|
-
content: '';
|
|
226
|
-
cursor: pointer;
|
|
227
|
-
display: inline-block;
|
|
228
|
-
flex-shrink: 0; // Fixes long label issue
|
|
229
|
-
height: calc(#{v(eui-base-spacing-m)} + #{v(eui-base-spacing-2xs)});
|
|
230
|
-
margin-right: v(eui-base-spacing-m);
|
|
231
|
-
opacity: 1;
|
|
232
|
-
position: relative;
|
|
233
|
-
text-align: center;
|
|
234
|
-
transition: all 250ms ease;
|
|
235
|
-
vertical-align: top;
|
|
236
|
-
width: calc(#{v(eui-base-spacing-m)} + #{v(eui-base-spacing-2xs)});
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
&:empty {
|
|
240
|
-
&::after {
|
|
241
|
-
content: none;
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
&::before {
|
|
245
|
-
content: none;
|
|
246
|
-
margin-right: 0;
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
// Checked
|
|
252
|
-
&:checked {
|
|
253
|
-
+ label:not(:empty) {
|
|
254
|
-
// The checkbox
|
|
255
|
-
&::after {
|
|
256
|
-
background: transparent;
|
|
257
|
-
color: v(eui-base-color-white);
|
|
258
|
-
// content: $eui-icon-check-m; // TO DO v15 svg remplacement
|
|
259
|
-
font-family: eui-icons, sans-serif;
|
|
260
|
-
font-weight: bold;
|
|
261
|
-
}
|
|
262
|
-
// The box
|
|
263
|
-
&::before {
|
|
264
|
-
background: v(eui-base-color-primary-100);
|
|
265
|
-
border: 2px solid v(eui-base-color-grey-35);
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
&:focus {
|
|
271
|
-
outline: 1px solid transparent;
|
|
272
|
-
outline-color: v(eui-base-color-accent-120);
|
|
273
|
-
outline-offset: -1px;
|
|
274
|
-
|
|
275
|
-
+ label:not(:empty) {
|
|
276
|
-
&::before {
|
|
277
|
-
@include eui-accessible-focus-outline();
|
|
278
|
-
// @include eui-box-shadow-hover;
|
|
279
|
-
box-shadow: v(eui-base-shadow-2);
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
&:disabled {
|
|
285
|
-
// Unchecked
|
|
286
|
-
+ label {
|
|
287
|
-
color: v(eui-base-color-grey-25);
|
|
288
|
-
pointer-events: none;
|
|
289
|
-
|
|
290
|
-
&::before {
|
|
291
|
-
background: v(eui-base-color-grey-10) !important;
|
|
292
|
-
border-color: v(eui-base-color-grey-15);
|
|
293
|
-
color: v(eui-base-color-white);
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
+ label::before,
|
|
298
|
-
&:checked + label::before {
|
|
299
|
-
background-color: v(eui-base-color-grey-20);
|
|
300
|
-
border-color: v(eui-base-color-grey-25);
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
// Checked
|
|
304
|
-
&:checked {
|
|
305
|
-
+ label:not(:empty) {
|
|
306
|
-
pointer-events: none;
|
|
307
|
-
|
|
308
|
-
// The checkbox
|
|
309
|
-
&::after {
|
|
310
|
-
border-color: v(eui-base-color-grey-20);
|
|
311
|
-
color: v(eui-base-color-grey-35);
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
// The box
|
|
315
|
-
&::before {
|
|
316
|
-
background: v(eui-base-color-grey-20);
|
|
317
|
-
border: 2px solid v(eui-base-color-grey-25);
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
&[readonly] {
|
|
324
|
-
background: v(eui-base-color-grey-25);
|
|
325
|
-
background-image: none;
|
|
326
|
-
box-shadow: none;
|
|
327
|
-
outline: none;
|
|
328
|
-
pointer-events: none;
|
|
329
|
-
|
|
330
|
-
// Unchecked
|
|
331
|
-
+ label:not(:empty) {
|
|
332
|
-
cursor: not-allowed;
|
|
333
|
-
pointer-events: none;
|
|
334
|
-
|
|
335
|
-
// The checkbox
|
|
336
|
-
&::after {
|
|
337
|
-
content: '';
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
// The box
|
|
341
|
-
&::before {
|
|
342
|
-
background: v(eui-base-color-grey-20);
|
|
343
|
-
border: 2px solid v(eui-base-color-grey-25);
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
// Checked
|
|
348
|
-
&:checked {
|
|
349
|
-
+ label:not(:empty) {
|
|
350
|
-
pointer-events: none;
|
|
351
|
-
|
|
352
|
-
// The checkbox
|
|
353
|
-
&::after {
|
|
354
|
-
color: v(eui-base-color-white);
|
|
355
|
-
// content: $eui-icon-check-m; // TO DO v15 svg remplacement
|
|
356
|
-
font-family: eui-icons, sans-serif;
|
|
357
|
-
font-weight: bold;
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
// The box
|
|
361
|
-
&::before {
|
|
362
|
-
background: v(eui-base-color-grey-20);
|
|
363
|
-
border: 2px solid v(eui-base-color-grey-25);
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
}
|