@stackoverflow/stacks 1.6.4 → 1.6.6
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/css/stacks.css +147 -155
- package/dist/css/stacks.min.css +1 -1
- package/lib/css/components/activity-indicator.less +9 -5
- package/lib/css/components/avatars.less +14 -5
- package/lib/css/components/award-bling.less +2 -0
- package/lib/css/components/badges.less +25 -3
- package/lib/css/components/breadcrumbs.less +9 -5
- package/lib/css/components/button-groups.less +3 -0
- package/lib/css/components/buttons.less +27 -2
- package/lib/css/components/code-blocks.less +13 -0
- package/lib/css/components/empty-states.less +3 -3
- package/lib/css/components/expandable.less +60 -58
- package/lib/css/components/labels.less +14 -6
- package/lib/css/components/link-previews.less +19 -4
- package/lib/css/components/menu.less +4 -1
- package/lib/css/components/modals.less +5 -0
- package/lib/css/components/navigation.less +38 -46
- package/lib/css/components/notices.less +28 -7
- package/lib/css/components/pagination.less +2 -2
- package/lib/css/components/progress-bars.less +27 -5
- package/lib/css/components/prose.less +64 -23
- package/lib/css/components/sidebar-widgets.less +75 -67
- package/lib/css/components/spinner.less +21 -13
- package/lib/css/components/tags.less +21 -16
- package/lib/css/components/toggle-switches.less +12 -4
- package/lib/css/components/uploader.less +34 -16
- package/lib/css/components/user-cards.less +10 -1
- package/package.json +4 -4
|
@@ -1,75 +1,37 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
// So we use clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%), which is essentially the same
|
|
9
|
-
// as overflow: hidden, but unlike overflow, clip-path is interpolatable -- but only if the opposite state
|
|
10
|
-
// is also a polygon, and has the same vertice count. So our version of overflow: visible is a rectangle
|
|
11
|
-
// of 2x2 million pixels, which should be enough for everybody (TM).
|
|
12
|
-
//
|
|
13
|
-
// At the time of writing, clip-path works in Chrome, Firefox Beta, and Safari (with vendor prefix).
|
|
14
|
-
//
|
|
15
|
-
// In browsers that do not support this yet, we have to have another way to prevent the expandable content
|
|
16
|
-
// from being visible below the bottom edge during the transition, and the best I could come up with is
|
|
17
|
-
// transitioning to scaleY(0) with a timing function that's faster than the height-reducing transitions.
|
|
18
|
-
// This does kinda look like a deliberate effect, even more so if we also transition to transparency
|
|
19
|
-
// (which we therefore do), so I feel it's an okay fallback.
|
|
20
|
-
//
|
|
21
|
-
// We still set overflow to hidden in the collapsed state (which also applies to the collapsing transition),
|
|
22
|
-
// we just can't do that for the expanding transition.
|
|
23
|
-
//
|
|
24
|
-
// A major drawback of clip-path is that even though the content is clipped (not visible), it will still
|
|
25
|
-
// contribute to the document height. This caused a jumping around of the scrollbar (and possibly even
|
|
26
|
-
// of the viewport) when the expandable was at the bottom of the page, because once the negative bottom
|
|
27
|
-
// margin of the -expandable-group exceeds the actual height, any additional pixels were added on to the
|
|
28
|
-
// bottom. The fix is to set the -expandable-group's flex alignment to flex-start, which forces the
|
|
29
|
-
// (no longer visible) element itself to remain at the top, thereby forcing the excess pixels to be added
|
|
30
|
-
// above the top, not below the bottom. And because extending content above the document top will not do
|
|
31
|
-
// anything to the document height, there is no jumping during the transition.
|
|
32
|
-
// see custom property "--_ex-transition-duration"
|
|
33
|
-
|
|
34
|
-
// Per the answer referenced above, the component can only guarantee smooth transitions if above a minimum
|
|
35
|
-
// height and can only guarantee the element will be hidden is below a maximimum height.
|
|
36
|
-
// The minimum height has been set at 10px because that's below the height of a single line of text in an s-description.
|
|
37
|
-
// see custom properties "--_ex-min-expected-height" and "--_ex-content-mb"
|
|
38
|
-
|
|
39
|
-
.s-expandable {
|
|
40
|
-
// CONSTANTS
|
|
41
|
-
--_ex-clip-path: polygon(-1000000px -1000000px, 1000000px -1000000px, 1000000px 1000000px, -1000000px 1000000px);
|
|
42
|
-
--_ex-min-expected-height: 10px;
|
|
43
|
-
--_ex-transition-duration: 100ms;
|
|
44
|
-
// VARIABLES
|
|
1
|
+
.s-expandable { // [1]
|
|
2
|
+
// COMPONENT-SPECIFIC CONSTANTS
|
|
3
|
+
@ex-clip-path: polygon(-1000000px -1000000px, 1000000px -1000000px, 1000000px 1000000px, -1000000px 1000000px);
|
|
4
|
+
@ex-min-expected-height: 10px;
|
|
5
|
+
@ex-transition-duration: 100ms;
|
|
6
|
+
// COMPONENT-SPECIFIC CUSTOM PROPERTIES
|
|
45
7
|
--_ex-after-h: 10px;
|
|
46
8
|
--_ex-after-hmx: 0;
|
|
47
9
|
--_ex-after-transition:
|
|
48
|
-
height
|
|
49
|
-
max-height 0s
|
|
10
|
+
height @ex-transition-duration linear,
|
|
11
|
+
max-height 0s @ex-transition-duration linear;
|
|
50
12
|
--_ex-content-hmx: 1000000px;
|
|
51
13
|
--_ex-content-mb: 0;
|
|
52
14
|
--_ex-content-o: unset;
|
|
53
15
|
--_ex-content-transform: unset;
|
|
54
16
|
--_ex-content-transition:
|
|
55
|
-
margin-bottom
|
|
56
|
-
transform
|
|
57
|
-
opacity
|
|
17
|
+
margin-bottom @ex-transition-duration cubic-bezier(0, 0, 0, 1),
|
|
18
|
+
transform @ex-transition-duration cubic-bezier(1, 0, 1, 1),
|
|
19
|
+
opacity @ex-transition-duration cubic-bezier(1, 0, 1, 1);
|
|
58
20
|
|
|
59
21
|
&:not(.is-expanded) {
|
|
60
22
|
--_ex-after-h: 0;
|
|
61
|
-
--_ex-after-hmx:
|
|
62
|
-
--_ex-after-transition: height
|
|
23
|
+
--_ex-after-hmx: @ex-min-expected-height;
|
|
24
|
+
--_ex-after-transition: height @ex-min-expected-height linear;
|
|
63
25
|
--_ex-content-hmx: 0;
|
|
64
26
|
--_ex-content-mb: -1500px;
|
|
65
27
|
--_ex-content-o: 0;
|
|
66
28
|
--_ex-content-transform: scaleY(0);
|
|
67
29
|
--_ex-content-transition:
|
|
68
|
-
margin-bottom
|
|
69
|
-
visibility 0s
|
|
70
|
-
max-height 0s
|
|
71
|
-
transform
|
|
72
|
-
opacity
|
|
30
|
+
margin-bottom @ex-transition-duration cubic-bezier(1, 0, 1, 1),
|
|
31
|
+
visibility 0s @ex-transition-duration,
|
|
32
|
+
max-height 0s @ex-transition-duration,
|
|
33
|
+
transform @ex-transition-duration cubic-bezier(0, 1, 1, 1),
|
|
34
|
+
opacity @ex-transition-duration cubic-bezier(0, 1, 1, 1);
|
|
73
35
|
|
|
74
36
|
& .s-expandable--content {
|
|
75
37
|
@supports ((-webkit-clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%)) or (clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%))) {
|
|
@@ -83,6 +45,7 @@
|
|
|
83
45
|
overflow: hidden;
|
|
84
46
|
transition: none;
|
|
85
47
|
}
|
|
48
|
+
|
|
86
49
|
&:after {
|
|
87
50
|
height: var(--_ex-after-h);
|
|
88
51
|
max-height: var(--_ex-after-hmx);
|
|
@@ -92,6 +55,7 @@
|
|
|
92
55
|
content: '';
|
|
93
56
|
flex-basis: 0;
|
|
94
57
|
}
|
|
58
|
+
|
|
95
59
|
& &--content {
|
|
96
60
|
max-height: var(--_ex-content-hmx);
|
|
97
61
|
margin-bottom: var(--_ex-content-mb);
|
|
@@ -108,7 +72,45 @@
|
|
|
108
72
|
|
|
109
73
|
align-items: flex-start; // see comment above
|
|
110
74
|
display: flex;
|
|
111
|
-
-webkit-clip-path:
|
|
112
|
-
clip-path:
|
|
75
|
+
-webkit-clip-path: @ex-clip-path;
|
|
76
|
+
clip-path: @ex-clip-path;
|
|
113
77
|
transition: clip-path 0s var(--_ex-transition-duration), -webkit-clip-path 0s var(--_ex-transition-duration);
|
|
114
78
|
}
|
|
79
|
+
|
|
80
|
+
// [1] see http://stackoverflow.com/a/43965099 for how this works:
|
|
81
|
+
|
|
82
|
+
// Notes on the clip-path stuff: What we would really like is overflow: hidden during the transition,
|
|
83
|
+
// but not when the element is expanded. Unfortunately, although the CSS spec provides for it, there's
|
|
84
|
+
// no browser support yet for transitioning non-interpolatable properties, and therefore we cannot say
|
|
85
|
+
// "change overflow to visible *after* the transition".
|
|
86
|
+
//
|
|
87
|
+
// So we use clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%), which is essentially the same
|
|
88
|
+
// as overflow: hidden, but unlike overflow, clip-path is interpolatable -- but only if the opposite state
|
|
89
|
+
// is also a polygon, and has the same vertice count. So our version of overflow: visible is a rectangle
|
|
90
|
+
// of 2x2 million pixels, which should be enough for everybody (TM).
|
|
91
|
+
//
|
|
92
|
+
// At the time of writing, clip-path works in Chrome, Firefox Beta, and Safari (with vendor prefix).
|
|
93
|
+
//
|
|
94
|
+
// In browsers that do not support this yet, we have to have another way to prevent the expandable content
|
|
95
|
+
// from being visible below the bottom edge during the transition, and the best I could come up with is
|
|
96
|
+
// transitioning to scaleY(0) with a timing function that's faster than the height-reducing transitions.
|
|
97
|
+
// This does kinda look like a deliberate effect, even more so if we also transition to transparency
|
|
98
|
+
// (which we therefore do), so I feel it's an okay fallback.
|
|
99
|
+
//
|
|
100
|
+
// We still set overflow to hidden in the collapsed state (which also applies to the collapsing transition),
|
|
101
|
+
// we just can't do that for the expanding transition.
|
|
102
|
+
//
|
|
103
|
+
// A major drawback of clip-path is that even though the content is clipped (not visible), it will still
|
|
104
|
+
// contribute to the document height. This caused a jumping around of the scrollbar (and possibly even
|
|
105
|
+
// of the viewport) when the expandable was at the bottom of the page, because once the negative bottom
|
|
106
|
+
// margin of the -expandable-group exceeds the actual height, any additional pixels were added on to the
|
|
107
|
+
// bottom. The fix is to set the -expandable-group's flex alignment to flex-start, which forces the
|
|
108
|
+
// (no longer visible) element itself to remain at the top, thereby forcing the excess pixels to be added
|
|
109
|
+
// above the top, not below the bottom. And because extending content above the document top will not do
|
|
110
|
+
// anything to the document height, there is no jumping during the transition.
|
|
111
|
+
// see "@ex-transition-duration"
|
|
112
|
+
|
|
113
|
+
// Per the answer referenced above, the component can only guarantee smooth transitions if above a minimum
|
|
114
|
+
// height and can only guarantee the element will be hidden is below a maximimum height.
|
|
115
|
+
// The minimum height has been set at 10px because that's below the height of a single line of text in an s-description.
|
|
116
|
+
// see "@ex-min-expected-height" and "--_ex-content-mb"
|
|
@@ -5,15 +5,17 @@
|
|
|
5
5
|
&[for] {
|
|
6
6
|
cursor: pointer;
|
|
7
7
|
}
|
|
8
|
+
|
|
8
9
|
fieldset[disabled] &,
|
|
9
10
|
.is-disabled & {
|
|
10
|
-
cursor: not-allowed;
|
|
11
|
-
opacity: var(--_o-disabled-static);
|
|
12
|
-
|
|
13
11
|
.s-description {
|
|
14
12
|
opacity: unset;
|
|
15
13
|
}
|
|
14
|
+
|
|
15
|
+
cursor: not-allowed;
|
|
16
|
+
opacity: var(--_o-disabled-static);
|
|
16
17
|
}
|
|
18
|
+
|
|
17
19
|
.is-readonly & {
|
|
18
20
|
cursor: not-allowed;
|
|
19
21
|
}
|
|
@@ -23,12 +25,15 @@
|
|
|
23
25
|
&&__sm {
|
|
24
26
|
--_la-fs: var(--fs-caption);
|
|
25
27
|
}
|
|
28
|
+
|
|
26
29
|
&&__md {
|
|
27
30
|
--_la-fs: var(--fs-body3);
|
|
28
31
|
}
|
|
32
|
+
|
|
29
33
|
&&__lg {
|
|
30
34
|
--_la-fs: var(--fs-title);
|
|
31
35
|
}
|
|
36
|
+
|
|
32
37
|
&&__xl {
|
|
33
38
|
--_la-fs: var(--fs-headline1);
|
|
34
39
|
}
|
|
@@ -51,19 +56,21 @@
|
|
|
51
56
|
--_la-status-bg: var(--blue-100);
|
|
52
57
|
--_la-status-fc: var(--blue-700);
|
|
53
58
|
}
|
|
59
|
+
|
|
54
60
|
&__new {
|
|
55
61
|
--_la-status-bg: var(--green-100);
|
|
56
62
|
--_la-status-fc: var(--green-700);
|
|
57
|
-
|
|
63
|
+
|
|
58
64
|
.dark-mode({
|
|
59
65
|
--_la-status-bg: var(--green-050);
|
|
60
66
|
--_la-status-fc: var(--green-800);
|
|
61
67
|
});
|
|
62
68
|
}
|
|
69
|
+
|
|
63
70
|
&__required {
|
|
64
71
|
--_la-status-bg: var(--red-100);
|
|
65
72
|
--_la-status-fc: var(--red-700);
|
|
66
|
-
|
|
73
|
+
|
|
67
74
|
.dark-mode({
|
|
68
75
|
--_la-status-bg: var(--red-050);
|
|
69
76
|
--_la-status-fc: var(--red-800);
|
|
@@ -81,6 +88,7 @@
|
|
|
81
88
|
padding: var(--su2) var(--su8);
|
|
82
89
|
vertical-align: text-bottom;
|
|
83
90
|
}
|
|
91
|
+
|
|
84
92
|
.s-description,
|
|
85
93
|
.s-input-message {
|
|
86
94
|
font-weight: normal;
|
|
@@ -100,4 +108,4 @@
|
|
|
100
108
|
// [1] In Core, we have *many* instances of `.s-label--status` used without the `.s-label` parent.
|
|
101
109
|
// While I'd prefer to enforce the requirement of the parent class, it's too much of a lift at this moment.
|
|
102
110
|
// We'll come back to it, hopefully when we have a pill component to replace the current usage of `.s-label--status`
|
|
103
|
-
// without the base label class.
|
|
111
|
+
// without the base label class.
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
text-decoration: none;
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
+
|
|
33
34
|
& &--body {
|
|
34
35
|
*:last-child {
|
|
35
36
|
margin-bottom: 0;
|
|
@@ -38,6 +39,7 @@
|
|
|
38
39
|
font-size: var(--fs-body2);
|
|
39
40
|
padding: var(--su12);
|
|
40
41
|
}
|
|
42
|
+
|
|
41
43
|
& &--code {
|
|
42
44
|
pre {
|
|
43
45
|
border-radius: 0 !important;
|
|
@@ -45,47 +47,54 @@
|
|
|
45
47
|
max-height: 400px;
|
|
46
48
|
}
|
|
47
49
|
}
|
|
50
|
+
|
|
48
51
|
& &--details {
|
|
49
52
|
margin-top: var(--_lp-details-mt);
|
|
50
53
|
|
|
51
54
|
color: var(--black-500);
|
|
52
55
|
font-size: var(--fs-caption);
|
|
53
56
|
}
|
|
57
|
+
|
|
54
58
|
& &--footer {
|
|
55
59
|
flex-direction: var(--_lp-footer-fd);
|
|
56
60
|
|
|
57
61
|
background: var(--black-025);
|
|
58
62
|
border-bottom-left-radius: var(--br-sm);
|
|
59
63
|
border-bottom-right-radius: var(--br-sm);
|
|
60
|
-
border-top:
|
|
64
|
+
border-top: var(--su-static1) solid var(--bc-medium);
|
|
61
65
|
display: flex;
|
|
62
66
|
font-size: var(--fs-caption);
|
|
63
67
|
justify-content: space-between;
|
|
64
68
|
padding: var(--su12);
|
|
65
69
|
}
|
|
70
|
+
|
|
66
71
|
& &--header {
|
|
67
72
|
background: var(--black-025);
|
|
68
|
-
border-bottom:
|
|
73
|
+
border-bottom: var(--su-static1) solid var(--bc-medium);
|
|
69
74
|
border-top-left-radius: var(--br-sm);
|
|
70
75
|
border-top-right-radius: var(--br-sm);
|
|
71
76
|
display: flex;
|
|
72
77
|
padding: var(--su12) var(--su8);
|
|
73
78
|
}
|
|
79
|
+
|
|
74
80
|
& &--icon {
|
|
75
81
|
color: var(--black-800); // Set the default color of the integration's icon. Most likely this will be overridden by the integration icon's native colors.
|
|
76
82
|
margin-right: var(--su8);
|
|
77
83
|
}
|
|
84
|
+
|
|
78
85
|
& &--misc {
|
|
79
86
|
padding-left: var(--_lp-misc-pl);
|
|
80
87
|
padding-top: var(--_lp-misc-pt);
|
|
81
88
|
|
|
82
89
|
color: var(--black-500);
|
|
83
90
|
}
|
|
91
|
+
|
|
84
92
|
& &--title {
|
|
85
93
|
color: var(--black-900);
|
|
86
94
|
font-size: var(--fs-body3);
|
|
87
95
|
font-weight: bold;
|
|
88
96
|
}
|
|
97
|
+
|
|
89
98
|
& a&--title {
|
|
90
99
|
&:active,
|
|
91
100
|
&:hover{
|
|
@@ -94,14 +103,19 @@
|
|
|
94
103
|
color: var(--theme-link-color-hover);
|
|
95
104
|
}
|
|
96
105
|
}
|
|
106
|
+
|
|
97
107
|
&:active,
|
|
98
108
|
&:hover,
|
|
99
109
|
&.s-link__visited:active,
|
|
100
110
|
&.s-link__visited:hover,
|
|
101
111
|
&.s-link__visited:visited {
|
|
102
|
-
.highcontrast-mode({
|
|
112
|
+
.highcontrast-mode({
|
|
113
|
+
text-decoration: underline;
|
|
114
|
+
});
|
|
115
|
+
|
|
103
116
|
text-decoration: none;
|
|
104
117
|
}
|
|
118
|
+
|
|
105
119
|
&.s-link__visited:visited {
|
|
106
120
|
color: var(--theme-link-color);
|
|
107
121
|
}
|
|
@@ -110,6 +124,7 @@
|
|
|
110
124
|
cursor: pointer;
|
|
111
125
|
text-decoration: none;
|
|
112
126
|
}
|
|
127
|
+
|
|
113
128
|
& &--url {
|
|
114
129
|
max-width: 100%;
|
|
115
130
|
overflow: hidden;
|
|
@@ -117,7 +132,7 @@
|
|
|
117
132
|
white-space: nowrap;
|
|
118
133
|
}
|
|
119
134
|
|
|
120
|
-
border:
|
|
135
|
+
border: var(--su-static1) solid var(--bc-medium);
|
|
121
136
|
border-radius: var(--br-sm);
|
|
122
137
|
box-shadow: var(--bs-sm);
|
|
123
138
|
text-align: left;
|
|
@@ -15,21 +15,24 @@
|
|
|
15
15
|
height: var(--su-static1);
|
|
16
16
|
margin: var(--su8) 0;
|
|
17
17
|
}
|
|
18
|
+
|
|
18
19
|
& &--label {
|
|
19
20
|
&.is-disabled {
|
|
20
21
|
--_me-label-cursor: not-allowed;
|
|
21
22
|
}
|
|
22
23
|
|
|
24
|
+
border-top: var(--su-static1) solid var(--_me-label-btc);
|
|
23
25
|
cursor: var(--_me-label-cursor);
|
|
24
|
-
border-top: 1px solid var(--_me-label-btc);
|
|
25
26
|
padding: var(--su12);
|
|
26
27
|
}
|
|
28
|
+
|
|
27
29
|
& &--title {
|
|
28
30
|
color: var(--black-600);
|
|
29
31
|
font-size: var(--fs-fine);
|
|
30
32
|
padding: var(--su8) var(--su12);
|
|
31
33
|
text-transform: uppercase;
|
|
32
34
|
}
|
|
35
|
+
|
|
33
36
|
& li + &--title {
|
|
34
37
|
margin-top: var(--su12);
|
|
35
38
|
}
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
.bg-confetti-animated;
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
+
|
|
31
32
|
&&__full {
|
|
32
33
|
--_mo-hmx: calc(100% - var(--su48));
|
|
33
34
|
--_mo-wmx: calc(100% - var(--su48));
|
|
@@ -45,6 +46,7 @@
|
|
|
45
46
|
color: var(--fc-medium);
|
|
46
47
|
margin-bottom: var(--su24);
|
|
47
48
|
}
|
|
49
|
+
|
|
48
50
|
& &--close {
|
|
49
51
|
// [1] To override .s-btn class attributes
|
|
50
52
|
.svg-icon {
|
|
@@ -56,6 +58,7 @@
|
|
|
56
58
|
right: var(--su8);
|
|
57
59
|
top: var(--_mo-close-t);
|
|
58
60
|
}
|
|
61
|
+
|
|
59
62
|
& &--dialog {
|
|
60
63
|
.dark-mode({
|
|
61
64
|
--_mo-dialog-bg: var(--black-100);
|
|
@@ -78,9 +81,11 @@
|
|
|
78
81
|
will-change: visibility, z-index, opacity, transform; // Not supported by Edge
|
|
79
82
|
z-index: var(--zi-hide); // Make sure it's also below everything so we can't interact with it.
|
|
80
83
|
}
|
|
84
|
+
|
|
81
85
|
& &--footer {
|
|
82
86
|
margin-top: var(--su24);
|
|
83
87
|
}
|
|
88
|
+
|
|
84
89
|
& &--header {
|
|
85
90
|
color: var(--_mo-header-fc);
|
|
86
91
|
|
|
@@ -3,77 +3,71 @@
|
|
|
3
3
|
--_na-fw: wrap;
|
|
4
4
|
--_na-p: var(--su2) 0;
|
|
5
5
|
--_na-gap: var(--su4);
|
|
6
|
+
--_na-item-bg: none;
|
|
7
|
+
--_na-item-fc: var(--black-600);
|
|
8
|
+
--_na-item-fs: unset;
|
|
9
|
+
--_na-item-p: var(--su6) var(--su12);
|
|
10
|
+
--_na-item-py: var(--su12);
|
|
11
|
+
--_na-item-ws: nowrap;
|
|
12
|
+
--_na-item-bg-hover: var(--black-075);
|
|
13
|
+
--_na-item-fc-hover: var(--_na-item-fc);
|
|
14
|
+
--_na-item-selected-bg: var(--theme-primary-color);
|
|
15
|
+
--_na-item-selected-fc: var(--white);
|
|
16
|
+
--_na-item-selected-bg-hover: var(--theme-primary-600);
|
|
17
|
+
--_na-title-mt: var(--su16);
|
|
18
|
+
|
|
19
|
+
// CONTEXTUAL STYLES
|
|
20
|
+
.highcontrast-mode({
|
|
21
|
+
--_na-item-bg-hover: var(--black-600);
|
|
22
|
+
--_na-item-fc-hover: var(--black-100);
|
|
23
|
+
});
|
|
6
24
|
|
|
7
25
|
// MODIFIERS
|
|
8
26
|
&&__scroll {
|
|
9
27
|
--_na-fw: nowrap;
|
|
28
|
+
|
|
10
29
|
overflow-x: auto;
|
|
11
30
|
@scrollbar-styles();
|
|
12
31
|
}
|
|
13
|
-
|
|
32
|
+
|
|
14
33
|
&&__sm {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
--_na-item-p: var(--su4) var(--su12);
|
|
18
|
-
}
|
|
34
|
+
--_na-item-fs: var(--fs-caption);
|
|
35
|
+
--_na-item-p: var(--su4) var(--su12);
|
|
19
36
|
}
|
|
20
|
-
|
|
37
|
+
|
|
21
38
|
&&__vertical {
|
|
22
39
|
--_na-fd: column;
|
|
23
40
|
--_na-gap: 0;
|
|
24
41
|
--_na-p: 0;
|
|
25
|
-
|
|
26
|
-
.s-navigation--item {
|
|
27
|
-
--_na-item-ws: normal;
|
|
28
|
-
}
|
|
42
|
+
--_na-item-ws: normal;
|
|
29
43
|
}
|
|
30
44
|
|
|
31
45
|
// VARIANTS
|
|
32
46
|
&&__muted {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
--_na-item-fc: var(--black-800);
|
|
37
|
-
--_na-item-bg-hover: var(--_na-item-bg);
|
|
38
|
-
--_na-item-fc-hover: var(--_na-item-fc);
|
|
39
|
-
|
|
40
|
-
.highcontrast-mode({
|
|
41
|
-
--_na-item-bg: var(--black-800);
|
|
42
|
-
--_na-item-fc: var(--black-050);
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
// CHILD ELEMENTS
|
|
49
|
-
& &--item {
|
|
50
|
-
--_na-item-bg: none;
|
|
51
|
-
--_na-item-fc: var(--black-600);
|
|
52
|
-
--_na-item-fs: unset;
|
|
53
|
-
--_na-item-p: var(--su6) var(--su12);
|
|
54
|
-
--_na-item-py: var(--su12);
|
|
55
|
-
--_na-item-ws: nowrap;
|
|
56
|
-
// hover
|
|
57
|
-
--_na-item-bg-hover: var(--black-075);
|
|
58
|
-
--_na-item-fc-hover: var(--_na-item-fc);
|
|
47
|
+
--_na-item-selected-bg: var(--black-050);
|
|
48
|
+
--_na-item-selected-fc: var(--black-800);
|
|
49
|
+
--_na-item-selected-bg-hover: var(--_na-item-bg);
|
|
59
50
|
|
|
60
51
|
.highcontrast-mode({
|
|
61
|
-
--_na-item-bg
|
|
62
|
-
--_na-item-fc
|
|
52
|
+
--_na-item-selected-bg: var(--black-800);
|
|
53
|
+
--_na-item-selected-fc: var(--black-050);
|
|
54
|
+
--_na-item-selected-bg-hover: var(--black-900);
|
|
63
55
|
});
|
|
56
|
+
}
|
|
64
57
|
|
|
65
|
-
|
|
58
|
+
// CHILD ELEMENTS
|
|
59
|
+
& &--item {
|
|
66
60
|
&.is-selected {
|
|
67
|
-
--_na-item-bg: var(--
|
|
68
|
-
--_na-item-fc: var(--
|
|
69
|
-
--_na-item-
|
|
61
|
+
--_na-item-bg: var(--_na-item-selected-bg);
|
|
62
|
+
--_na-item-fc: var(--_na-item-selected-fc);
|
|
63
|
+
--_na-item-fc-hover: var(--_na-item-fc);
|
|
64
|
+
--_na-item-bg-hover: var(--_na-item-selected-bg-hover);
|
|
70
65
|
|
|
71
66
|
.highcontrast-mode({
|
|
72
67
|
text-decoration: none;
|
|
73
68
|
});
|
|
74
69
|
}
|
|
75
70
|
|
|
76
|
-
// MODIFIERS
|
|
77
71
|
// TODO: include child component class (without variant) on selector
|
|
78
72
|
&__dropdown {
|
|
79
73
|
&:after {
|
|
@@ -91,7 +85,6 @@
|
|
|
91
85
|
padding-right: 2em;
|
|
92
86
|
}
|
|
93
87
|
|
|
94
|
-
// INTERACTION
|
|
95
88
|
&:hover,
|
|
96
89
|
&:active {
|
|
97
90
|
background-color: var(--_na-item-bg-hover);
|
|
@@ -116,9 +109,8 @@
|
|
|
116
109
|
position: relative;
|
|
117
110
|
user-select: auto;
|
|
118
111
|
}
|
|
119
|
-
& &--title {
|
|
120
|
-
--_na-title-mt: var(--su16);
|
|
121
112
|
|
|
113
|
+
& &--title {
|
|
122
114
|
&:first-child {
|
|
123
115
|
--_na-title-mt: 0;
|
|
124
116
|
}
|