@lucca-front/scss 8.1.5-rc.1 → 8.2.0-rc.2
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/lucca-front.min.css +5 -1
- package/package.json +1 -1
- package/src/components/_action-icon.scss +78 -36
- package/src/components/_button.scss +40 -28
- package/src/components/_callout.scss +20 -20
- package/src/components/_label.scss +9 -3
- package/src/components/_menu.scss +25 -9
- package/src/components/_table-of-content.scss +44 -64
- package/src/components/_table.scss +169 -138
- package/src/components/_tag.scss +4 -3
- package/src/components/_toasts.scss +97 -1
- package/src/components/inputs/checkbox/_checkbox.scss +95 -74
- package/src/components/inputs/radio/_radio.scss +85 -66
- package/src/components/inputs/radio-buttons/_radio-buttons.scss +19 -61
- package/src/components/inputs/switch/_switch.scss +30 -38
- package/src/theming/components/_action-icon.theme.scss +8 -3
- package/src/theming/components/_button.theme.scss +4 -1
- package/src/theming/components/_checkbox.theme.scss +1 -2
- package/src/theming/components/_radio-buttons.theme.scss +2 -2
- package/src/theming/components/_radio.theme.scss +2 -6
- package/src/theming/components/_switch.theme.scss +7 -2
- package/src/theming/components/_table-of-content.theme.scss +2 -7
package/package.json
CHANGED
|
@@ -1,22 +1,3 @@
|
|
|
1
|
-
// MIXINS
|
|
2
|
-
// ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
|
|
3
|
-
|
|
4
|
-
@mixin actionIconColoring($palette) {
|
|
5
|
-
color: _color($palette, 500);
|
|
6
|
-
|
|
7
|
-
&:hover {
|
|
8
|
-
&:not([disabled]) {
|
|
9
|
-
background-color: _color($palette, "50");
|
|
10
|
-
color: _color($palette);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
&:focus {
|
|
15
|
-
color: _color($palette);
|
|
16
|
-
box-shadow: 0 2px 8px rgba(0, 0, 0, .04), 0 1px 2px rgba(0, 0, 0, .06), 0 0 0 4px _color($palette, "50");
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
1
|
// CLASSES
|
|
21
2
|
// ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
|
|
22
3
|
|
|
@@ -25,9 +6,9 @@
|
|
|
25
6
|
border: 0;
|
|
26
7
|
border-radius: _component("commons.border.radius");
|
|
27
8
|
color: _component("actionIcon.color");
|
|
28
|
-
height:
|
|
29
|
-
width:
|
|
30
|
-
transition: background-color _theme("commons.animations.durations.fast") ease, color _theme("commons.animations.durations.fast") ease
|
|
9
|
+
height: 2.5rem;
|
|
10
|
+
width: 2.5rem;
|
|
11
|
+
transition: background-color _theme("commons.animations.durations.fast") ease, color _theme("commons.animations.durations.fast") ease;
|
|
31
12
|
vertical-align: middle;
|
|
32
13
|
text-decoration: none;
|
|
33
14
|
display: inline-flex;
|
|
@@ -36,19 +17,25 @@
|
|
|
36
17
|
cursor: pointer;
|
|
37
18
|
|
|
38
19
|
& + & {
|
|
39
|
-
margin-left:
|
|
20
|
+
margin-left: 2px;
|
|
40
21
|
}
|
|
41
22
|
|
|
42
|
-
&:
|
|
43
|
-
&:
|
|
23
|
+
&:not([disabled], .is-disabled) {
|
|
24
|
+
&:hover {
|
|
44
25
|
background-color: _component("actionIcon.hover.background");
|
|
45
26
|
color: _component("actionIcon.hover.color");
|
|
46
27
|
}
|
|
47
|
-
}
|
|
48
28
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
29
|
+
&:focus {
|
|
30
|
+
background-color: _component("actionIcon.focus.background");
|
|
31
|
+
color: _component("actionIcon.focus.color");
|
|
32
|
+
outline: none;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&:active {
|
|
36
|
+
background-color: _component("actionIcon.default-palette.100");
|
|
37
|
+
color: _component("actionIcon.default-palette.800");
|
|
38
|
+
}
|
|
52
39
|
}
|
|
53
40
|
|
|
54
41
|
.lucca-icon, .#{_theme("icons.prefix", true)} {
|
|
@@ -64,24 +51,75 @@
|
|
|
64
51
|
&.mod-invert {
|
|
65
52
|
color: _component("actionIcon.invert.color");
|
|
66
53
|
|
|
67
|
-
&:
|
|
68
|
-
&:
|
|
54
|
+
&:not([disabled], .is-disabled) {
|
|
55
|
+
&:hover, &:focus {
|
|
69
56
|
background-color: rgba(255, 255, 255, .1);
|
|
70
57
|
color: _component("actionIcon.invert.color");
|
|
71
58
|
}
|
|
59
|
+
|
|
60
|
+
&:active {
|
|
61
|
+
background-color: rgba(255, 255, 255, .2);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&.mod-outlined {
|
|
67
|
+
box-shadow: 0 0 0 1px _color("grey", 400);
|
|
68
|
+
|
|
69
|
+
& + & {
|
|
70
|
+
margin-left: 6px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&:hover {
|
|
74
|
+
box-shadow: 0 0 0 1px _color("grey", 400), _theme("commons.box-shadow.xs");
|
|
72
75
|
}
|
|
73
76
|
|
|
74
77
|
&:focus {
|
|
75
|
-
box-shadow: 0
|
|
78
|
+
box-shadow: 0 0 0 1px _component("actionIcon.default-palette.400"), 0 0 0 4px _component("actionIcon.default-palette.100");
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&:active {
|
|
82
|
+
background-color: _color("grey", 200);
|
|
83
|
+
color: _color("grey", 800);
|
|
84
|
+
box-shadow: 0 0 0 1px _component("actionIcon.default-palette.500"), 0 0 0 4px _component("actionIcon.default-palette.200");
|
|
76
85
|
}
|
|
77
86
|
}
|
|
78
87
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
88
|
+
&.mod-delete {
|
|
89
|
+
&:hover {
|
|
90
|
+
background-color: _color("error", 50);
|
|
91
|
+
color: _color("error", 800);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&:focus {
|
|
95
|
+
background-color: _color("error", 100);
|
|
96
|
+
color: _color("error", 800);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&:active {
|
|
100
|
+
background-color: _color("error", 200);
|
|
101
|
+
color: _color("error", 800);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&.mod-outlined {
|
|
105
|
+
&:hover {
|
|
106
|
+
box-shadow: 0 0 0 1px _color("error", 400), _theme("commons.box-shadow.xs");
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
&:focus {
|
|
110
|
+
box-shadow: 0 0 0 1px _color("error", 400), 0 0 0 4px _color("error", 100);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
&:active {
|
|
114
|
+
box-shadow: 0 0 0 1px _color("error", 400), 0 0 0 4px _color("error", 100);
|
|
115
|
+
}
|
|
83
116
|
}
|
|
84
117
|
}
|
|
118
|
+
|
|
119
|
+
&.mod-small {
|
|
120
|
+
height: 2rem;
|
|
121
|
+
width: 2rem;
|
|
122
|
+
}
|
|
85
123
|
}
|
|
86
124
|
|
|
87
125
|
|
|
@@ -93,6 +131,10 @@
|
|
|
93
131
|
color: _color("grey", 500);
|
|
94
132
|
pointer-events: none;
|
|
95
133
|
cursor: default;
|
|
134
|
+
|
|
135
|
+
&.mod-outlined {
|
|
136
|
+
box-shadow: 0 0 0 1px _color("grey", 200);
|
|
137
|
+
}
|
|
96
138
|
}
|
|
97
139
|
|
|
98
140
|
&.is-loading {
|
|
@@ -28,11 +28,26 @@
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
@mixin buttonLinkColoring($palette) {
|
|
31
|
+
@mixin buttonLinkColoring($palette, $activeShadowPalette) {
|
|
32
|
+
color: _color($palette, 700);
|
|
33
|
+
|
|
32
34
|
&:not([disabled], .is-disabled) {
|
|
35
|
+
&:hover {
|
|
36
|
+
background-color: _color($palette, 50);
|
|
37
|
+
box-shadow: none;
|
|
38
|
+
}
|
|
39
|
+
|
|
33
40
|
&:focus {
|
|
34
|
-
|
|
35
|
-
|
|
41
|
+
background-color: _color($palette, 50);
|
|
42
|
+
box-shadow: _theme('commons.box-shadow.xs'), 0 0 0 4px _color($activeShadowPalette, 100),
|
|
43
|
+
inset 0 0 0 1px _color($activeShadowPalette, 400);
|
|
44
|
+
outline: none;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&:active {
|
|
48
|
+
background-color: _color($palette, 100);
|
|
49
|
+
box-shadow: _theme('commons.box-shadow.xs'), 0 0 0 4px _color($activeShadowPalette, 200),
|
|
50
|
+
inset 0 0 0 1px _color($activeShadowPalette, 500);
|
|
36
51
|
}
|
|
37
52
|
}
|
|
38
53
|
}
|
|
@@ -45,20 +60,20 @@
|
|
|
45
60
|
&:hover {
|
|
46
61
|
background-color: _color($palette, 100);
|
|
47
62
|
color: _color($palette);
|
|
48
|
-
box-shadow: _theme('commons.
|
|
63
|
+
box-shadow: _theme('commons.box-shadow.xs'), inset 0 0 0 1px _color($palette, 400);
|
|
49
64
|
}
|
|
50
65
|
|
|
51
66
|
&:focus {
|
|
52
67
|
background-color: _color($palette, 100);
|
|
53
68
|
color: _color($palette);
|
|
54
|
-
box-shadow: _theme('commons.
|
|
69
|
+
box-shadow: _theme('commons.box-shadow.xs'), 0 0 0 4px _color($palette, 100), inset 0 0 0 1px _color($palette, 400);
|
|
55
70
|
outline: none;
|
|
56
71
|
}
|
|
57
72
|
|
|
58
73
|
&:active {
|
|
59
74
|
background-color: _color($palette, 200);
|
|
60
75
|
color: _color($palette);
|
|
61
|
-
box-shadow: _theme('commons.
|
|
76
|
+
box-shadow: _theme('commons.box-shadow.xs'), 0 0 0 4px _color($palette, 200), inset 0 0 0 1px _color($palette, 500);
|
|
62
77
|
}
|
|
63
78
|
}
|
|
64
79
|
|
|
@@ -163,38 +178,32 @@
|
|
|
163
178
|
}
|
|
164
179
|
}
|
|
165
180
|
|
|
166
|
-
&.mod-link
|
|
181
|
+
&.mod-link, // legacy class
|
|
182
|
+
&.mod-text {
|
|
167
183
|
background-color: transparent;
|
|
168
|
-
|
|
184
|
+
box-shadow: none;
|
|
185
|
+
padding: _component('button.mod-text.padding');
|
|
169
186
|
|
|
170
187
|
// default color
|
|
171
|
-
@include buttonLinkColoring('button.default-palette');
|
|
188
|
+
@include buttonLinkColoring('grey', 'button.default-palette');
|
|
172
189
|
|
|
173
190
|
// palette colors
|
|
174
191
|
@each $name, $palette in _getMap('palettes') {
|
|
175
192
|
&.palette-#{$name} {
|
|
176
|
-
@include buttonLinkColoring($name);
|
|
193
|
+
@include buttonLinkColoring($name, $name);
|
|
177
194
|
}
|
|
178
195
|
}
|
|
179
196
|
|
|
180
|
-
&:hover {
|
|
181
|
-
box-shadow: none;
|
|
182
|
-
background-color: _color('primary', 50);
|
|
183
|
-
color: _color('primary');
|
|
184
|
-
}
|
|
185
|
-
|
|
186
197
|
&.mod-invert {
|
|
187
198
|
color: _color('white');
|
|
188
199
|
|
|
189
|
-
&:
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
background-color: rgba(255, 255, 255, 0.1);
|
|
193
|
-
color: _color('white');
|
|
194
|
-
}
|
|
200
|
+
&:hover,
|
|
201
|
+
&:focus {
|
|
202
|
+
box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
|
|
195
203
|
|
|
196
|
-
&:
|
|
197
|
-
|
|
204
|
+
&:not([disabled]) {
|
|
205
|
+
background-color: rgba(_color('white'), 0.1);
|
|
206
|
+
color: _color('white');
|
|
198
207
|
}
|
|
199
208
|
}
|
|
200
209
|
}
|
|
@@ -228,20 +237,22 @@
|
|
|
228
237
|
&:hover {
|
|
229
238
|
background-color: _color('grey', 100);
|
|
230
239
|
color: _color('text.default');
|
|
231
|
-
box-shadow:
|
|
240
|
+
box-shadow: 0 2px 8px rgba(19, 29, 53, 0.04), 0 1px 2px rgba(19, 29, 53, 0.06), inset 0 0 0 1px _color('grey', '400');
|
|
232
241
|
}
|
|
233
242
|
|
|
234
243
|
&:focus {
|
|
235
244
|
background-color: _color('grey', 100);
|
|
236
245
|
color: _color('text.default');
|
|
237
|
-
box-shadow:
|
|
246
|
+
box-shadow: 0 2px 8px rgba(19, 29, 53, 0.04), 0 1px 2px rgba(19, 29, 53, 0.06), 0 0 0 4px _color('primary', 100),
|
|
247
|
+
inset 0 0 0 1px _color('primary', '400');
|
|
238
248
|
outline: none;
|
|
239
249
|
}
|
|
240
250
|
|
|
241
251
|
&:active {
|
|
242
252
|
background-color: _color('grey', 200);
|
|
243
253
|
color: _color('text.default');
|
|
244
|
-
box-shadow:
|
|
254
|
+
box-shadow: 0 2px 8px rgba(19, 29, 53, 0.04), 0 1px 2px rgba(19, 29, 53, 0.06), 0 0 0 4px _color('primary', '200'),
|
|
255
|
+
inset 0 0 0 1px _color('primary', '500');
|
|
245
256
|
}
|
|
246
257
|
}
|
|
247
258
|
|
|
@@ -328,7 +339,8 @@
|
|
|
328
339
|
border-color: _color('grey', 200);
|
|
329
340
|
}
|
|
330
341
|
|
|
331
|
-
&.mod-link
|
|
342
|
+
&.mod-link,
|
|
343
|
+
&.mod-text {
|
|
332
344
|
color: _color('grey', 500);
|
|
333
345
|
background-color: transparent;
|
|
334
346
|
}
|
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
.callout {
|
|
2
|
-
background-color: _component(
|
|
3
|
-
border-radius: _theme(
|
|
4
|
-
border: _theme(
|
|
5
|
-
margin: _component(
|
|
6
|
-
padding: _component(
|
|
2
|
+
background-color: _component('callout.background');
|
|
3
|
+
border-radius: _theme('commons.border.radius');
|
|
4
|
+
border: _theme('commons.divider.width') solid _color('grey', 200, true);
|
|
5
|
+
margin: _component('callout.margin');
|
|
6
|
+
padding: _component('callout.padding');
|
|
7
7
|
position: relative;
|
|
8
|
+
color: _color('grey', 800);
|
|
8
9
|
|
|
9
|
-
a {
|
|
10
|
-
color:
|
|
10
|
+
a, .link {
|
|
11
|
+
color: _color('grey', 800);
|
|
11
12
|
|
|
12
13
|
&:hover {
|
|
13
14
|
color: inherit;
|
|
14
|
-
opacity: .8;
|
|
15
|
+
opacity: 0.8;
|
|
15
16
|
}
|
|
16
17
|
}
|
|
17
18
|
}
|
|
18
19
|
|
|
19
20
|
.callout-title {
|
|
20
21
|
font-weight: 600;
|
|
21
|
-
margin-bottom: _theme(
|
|
22
|
+
margin-bottom: _theme('spacings.smallest');
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
.callout-kill {
|
|
@@ -29,13 +30,13 @@
|
|
|
29
30
|
height: 1.5rem;
|
|
30
31
|
padding: 0;
|
|
31
32
|
position: absolute;
|
|
32
|
-
right: _theme(
|
|
33
|
-
top: .5rem;
|
|
33
|
+
right: _theme('spacings.small');
|
|
34
|
+
top: 0.5rem;
|
|
34
35
|
transition: 150ms background-color ease;
|
|
35
36
|
width: 1rem;
|
|
36
37
|
|
|
37
38
|
&::before {
|
|
38
|
-
@include makeIcon(
|
|
39
|
+
@include makeIcon('cross');
|
|
39
40
|
}
|
|
40
41
|
|
|
41
42
|
&:hover {
|
|
@@ -45,8 +46,8 @@
|
|
|
45
46
|
|
|
46
47
|
.callout-icon {
|
|
47
48
|
position: absolute;
|
|
48
|
-
top: .4rem;
|
|
49
|
-
left: .75rem;
|
|
49
|
+
top: 0.4rem;
|
|
50
|
+
left: 0.75rem;
|
|
50
51
|
width: 2rem;
|
|
51
52
|
margin: auto;
|
|
52
53
|
border-radius: 50%;
|
|
@@ -68,14 +69,14 @@
|
|
|
68
69
|
}
|
|
69
70
|
|
|
70
71
|
&.mod-small {
|
|
71
|
-
font-size: _theme(
|
|
72
|
-
line-height: _theme(
|
|
72
|
+
font-size: _theme('sizes.small.font-size');
|
|
73
|
+
line-height: _theme('sizes.small.line-height');
|
|
73
74
|
|
|
74
75
|
&.mod-icon {
|
|
75
76
|
padding-left: 2.8rem;
|
|
76
77
|
|
|
77
78
|
.callout-icon {
|
|
78
|
-
top: .4rem;
|
|
79
|
+
top: 0.4rem;
|
|
79
80
|
|
|
80
81
|
.lucca-icon {
|
|
81
82
|
font-size: 1rem;
|
|
@@ -91,11 +92,10 @@
|
|
|
91
92
|
|
|
92
93
|
@mixin calloutDefaultPalette($palette) {
|
|
93
94
|
background-color: _color($palette, 100);
|
|
94
|
-
|
|
95
|
-
border: _theme("commons.divider.width") solid _color($palette, 200);
|
|
95
|
+
border: _theme('commons.divider.width') solid _color($palette, 200);
|
|
96
96
|
}
|
|
97
97
|
.callout {
|
|
98
|
-
@each $name, $palette in _getMap(
|
|
98
|
+
@each $name, $palette in _getMap('palettes') {
|
|
99
99
|
&.palette-#{$name} {
|
|
100
100
|
@include calloutDefaultPalette($name);
|
|
101
101
|
}
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
// ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
|
|
18
18
|
.label {
|
|
19
19
|
@mixin labelColoring($palette) {
|
|
20
|
-
background-color: _color($palette,
|
|
21
|
-
color: _color($palette,
|
|
20
|
+
background-color: _color($palette, 100);
|
|
21
|
+
color: _color($palette, 900);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
@include labelColoring("label.default-palette");
|
|
@@ -38,13 +38,15 @@
|
|
|
38
38
|
height: _theme("sizes.standard.line-height");
|
|
39
39
|
min-width: _theme("sizes.standard.line-height");
|
|
40
40
|
line-height: _theme("sizes.standard.line-height");
|
|
41
|
-
font-
|
|
41
|
+
font-size: _theme("sizes.smaller.font-size");
|
|
42
|
+
|
|
42
43
|
&.size-small {
|
|
43
44
|
height: 1.25rem;
|
|
44
45
|
min-width: 1.25rem;
|
|
45
46
|
padding: 0 .25rem;
|
|
46
47
|
line-height: 1.25rem;
|
|
47
48
|
}
|
|
49
|
+
|
|
48
50
|
&.size-smaller {
|
|
49
51
|
height: 1rem;
|
|
50
52
|
min-width: 1rem;
|
|
@@ -52,18 +54,22 @@
|
|
|
52
54
|
line-height: 1rem;
|
|
53
55
|
}
|
|
54
56
|
}
|
|
57
|
+
|
|
55
58
|
&.mod-icon {
|
|
56
59
|
display: inline-flex;
|
|
57
60
|
align-items: center;
|
|
58
61
|
padding-left: .6rem;
|
|
59
62
|
padding-right: .6rem;
|
|
63
|
+
|
|
60
64
|
.label-icon {
|
|
61
65
|
font-size: _theme("sizes.standard.font-size");
|
|
62
66
|
margin-right: .25rem;
|
|
67
|
+
|
|
63
68
|
&:last-child {
|
|
64
69
|
margin-right: 0;
|
|
65
70
|
margin-left: .25rem;
|
|
66
71
|
}
|
|
72
|
+
|
|
67
73
|
&:only-child {
|
|
68
74
|
margin: 0;
|
|
69
75
|
}
|
|
@@ -17,7 +17,9 @@
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
.label {
|
|
20
|
-
margin-right: 0
|
|
20
|
+
margin-right: 0;
|
|
21
|
+
background-color: _color('grey', 100);
|
|
22
|
+
color: _color('grey', 700);
|
|
21
23
|
}
|
|
22
24
|
}
|
|
23
25
|
|
|
@@ -31,8 +33,9 @@
|
|
|
31
33
|
|
|
32
34
|
.menu-link, // legacy syntax
|
|
33
35
|
.menu-list-item-action {
|
|
36
|
+
@include buttonReset;
|
|
34
37
|
border-radius: _theme('commons.border.radius');
|
|
35
|
-
color: _color('grey',
|
|
38
|
+
color: _color('grey', 700);
|
|
36
39
|
padding: _component('menu.padding');
|
|
37
40
|
position: relative;
|
|
38
41
|
text-decoration: none;
|
|
@@ -41,7 +44,7 @@
|
|
|
41
44
|
display: block;
|
|
42
45
|
|
|
43
46
|
&::after {
|
|
44
|
-
background-color:
|
|
47
|
+
background-color: _component('menu.default-palette.700');
|
|
45
48
|
border-radius: _theme('commons.border.radius')
|
|
46
49
|
_theme('commons.border.radius') 0 0;
|
|
47
50
|
bottom: 0;
|
|
@@ -56,13 +59,18 @@
|
|
|
56
59
|
z-index: 1;
|
|
57
60
|
}
|
|
58
61
|
|
|
59
|
-
&:not(.is-disabled) {
|
|
62
|
+
&:not(.is-disabled, [disabled]) {
|
|
60
63
|
&:focus-visible,
|
|
61
64
|
&:hover {
|
|
62
65
|
&:not(.is-active, [aria-current='page']) {
|
|
63
66
|
color: _color("grey", "900");
|
|
64
67
|
}
|
|
65
68
|
|
|
69
|
+
.label {
|
|
70
|
+
background-color: _component('menu.default-palette.100');
|
|
71
|
+
color: _component('menu.default-palette.700');
|
|
72
|
+
}
|
|
73
|
+
|
|
66
74
|
&::after {
|
|
67
75
|
transform: scale(0.75);
|
|
68
76
|
}
|
|
@@ -101,7 +109,10 @@
|
|
|
101
109
|
}
|
|
102
110
|
|
|
103
111
|
.label {
|
|
104
|
-
|
|
112
|
+
height: _theme("sizes.small.line-height");
|
|
113
|
+
min-width: _theme("sizes.small.line-height");
|
|
114
|
+
line-height: _theme("sizes.small.line-height");
|
|
115
|
+
padding: 0;
|
|
105
116
|
}
|
|
106
117
|
|
|
107
118
|
.menu-link {
|
|
@@ -118,18 +129,23 @@
|
|
|
118
129
|
.menu-list-item-action {
|
|
119
130
|
&.is-active, // legacy syntax
|
|
120
131
|
&[aria-current="page"] {
|
|
121
|
-
color:
|
|
132
|
+
color: _component('menu.default-palette.700');
|
|
133
|
+
|
|
134
|
+
.label {
|
|
135
|
+
background-color: _component('menu.default-palette.100');
|
|
136
|
+
color: _component('menu.default-palette.700');
|
|
137
|
+
}
|
|
122
138
|
|
|
123
139
|
&::after {
|
|
124
|
-
background-color:
|
|
140
|
+
background-color: _component('menu.default-palette.700');
|
|
125
141
|
transform: scale(1);
|
|
126
142
|
}
|
|
127
143
|
}
|
|
128
144
|
|
|
129
|
-
&.is-disabled {
|
|
145
|
+
&.is-disabled, &[disabled] {
|
|
130
146
|
&,
|
|
131
147
|
.label {
|
|
132
|
-
color: _color('grey',
|
|
148
|
+
color: _color('grey', 500);
|
|
133
149
|
pointer-events: none;
|
|
134
150
|
}
|
|
135
151
|
}
|
|
@@ -5,77 +5,39 @@
|
|
|
5
5
|
position: sticky;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
.tableOfContent-
|
|
8
|
+
.tableOfContent-list {
|
|
9
|
+
@include listReset;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.tableOfContent-list-item-action {
|
|
13
|
+
@include buttonReset;
|
|
9
14
|
border-radius: _theme("commons.border.radius");
|
|
10
|
-
color: _color("
|
|
15
|
+
color: _color("grey", 700);
|
|
11
16
|
cursor: pointer;
|
|
12
17
|
display: block;
|
|
13
18
|
outline: none;
|
|
14
|
-
padding: _component("tableOfContent.
|
|
19
|
+
padding: _component("tableOfContent.padding");
|
|
15
20
|
position: relative;
|
|
16
21
|
transition: all _theme("commons.animations.durations.standard") ease;
|
|
17
22
|
text-decoration: none;
|
|
23
|
+
width: auto;
|
|
18
24
|
|
|
19
|
-
&:
|
|
20
|
-
background-color: white;
|
|
21
|
-
color: _component("tableOfContent.default-palette.color");
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
&::before {
|
|
25
|
-
content: "";
|
|
26
|
-
position: absolute;
|
|
27
|
-
top: 0;
|
|
28
|
-
left: 0;
|
|
29
|
-
bottom: 0;
|
|
30
|
-
width: _component("tableOfContent.item.border-width");
|
|
31
|
-
background-color: _component("tableOfContent.default-palette.color");
|
|
32
|
-
transform: scaleY(0);
|
|
33
|
-
opacity: 0;
|
|
34
|
-
transition: all _theme("commons.animations.durations.fast") ease;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
// MODS
|
|
40
|
-
// ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
|
|
41
|
-
|
|
42
|
-
.tableOfContent {
|
|
43
|
-
&.mod-grey {
|
|
44
|
-
.tableOfContent-item {
|
|
45
|
-
&:hover {
|
|
46
|
-
background-color: _theme("commons.background.base");
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
// PALETTES
|
|
54
|
-
// ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
|
|
55
|
-
|
|
56
|
-
@mixin tableOfContentColoring($palette) {
|
|
57
|
-
.tableOfContent-item {
|
|
25
|
+
&:not(.is-disabled, [disabled]) {
|
|
58
26
|
&:hover {
|
|
59
|
-
color: _color(
|
|
27
|
+
background-color: _color("grey", 50);
|
|
28
|
+
color: _color("grey", 700);
|
|
60
29
|
}
|
|
61
30
|
|
|
62
|
-
|
|
63
|
-
background-color: _color(
|
|
31
|
+
&:focus {
|
|
32
|
+
background-color: _color("grey", 50);
|
|
33
|
+
color: _color("grey", 700);
|
|
34
|
+
box-shadow: 0 0 0 4px _component("tableOfContent.default-palette.100"), inset 0 0 0 1px _component("tableOfContent.default-palette.300");
|
|
64
35
|
}
|
|
65
|
-
&.is-active {
|
|
66
|
-
color: _color($palette);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.tableOfContent {
|
|
72
|
-
// default color
|
|
73
|
-
@include tableOfContentColoring("tableOfContent.default-palette");
|
|
74
36
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
37
|
+
&:active {
|
|
38
|
+
background-color: _color("grey", 100);
|
|
39
|
+
color: _color("grey", 700);
|
|
40
|
+
box-shadow: 0 0 0 4px _component("tableOfContent.default-palette.200"), inset 0 0 0 1px _component("tableOfContent.default-palette.400");
|
|
79
41
|
}
|
|
80
42
|
}
|
|
81
43
|
}
|
|
@@ -84,13 +46,31 @@
|
|
|
84
46
|
// STATES
|
|
85
47
|
// ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
|
|
86
48
|
|
|
87
|
-
.tableOfContent-item {
|
|
88
|
-
|
|
89
|
-
|
|
49
|
+
.tableOfContent-list-item-action {
|
|
50
|
+
&:not(.is-disabled, [disabled]) {
|
|
51
|
+
&.is-active {
|
|
52
|
+
background-color: _component("tableOfContent.default-palette.50");
|
|
53
|
+
color: _component("tableOfContent.default-palette.700");
|
|
90
54
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
55
|
+
&:hover {
|
|
56
|
+
background-color: _component("tableOfContent.default-palette.100");
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&:focus {
|
|
60
|
+
background-color: _component("tableOfContent.default-palette.100");
|
|
61
|
+
box-shadow: 0 0 0 4px _component("tableOfContent.default-palette.200"), inset 0 0 0 1px _component("tableOfContent.default-palette.400");
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&:active {
|
|
65
|
+
background-color: _component("tableOfContent.default-palette.200");
|
|
66
|
+
box-shadow: 0 0 0 4px _component("tableOfContent.default-palette.300"), inset 0 0 0 1px _component("tableOfContent.default-palette.500");
|
|
67
|
+
color: _color("grey", 700);
|
|
68
|
+
}
|
|
94
69
|
}
|
|
95
70
|
}
|
|
71
|
+
|
|
72
|
+
&:is(.is-disabled, [disabled]) {
|
|
73
|
+
color: _color("grey", 500);
|
|
74
|
+
pointer-events: none;
|
|
75
|
+
}
|
|
96
76
|
}
|