@microsoft/atlas-css 3.47.0 → 3.48.0-test.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/dist/class-names.json +1 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/package.json +1 -1
- package/src/atomics/overflow.scss +8 -0
- package/src/components/index.scss +1 -0
- package/src/components/layout.scss +18 -9
- package/src/components/popover.scss +7 -0
- package/src/components/progress-bar.scss +24 -6
- package/src/components/tag.scss +205 -0
package/package.json
CHANGED
|
@@ -4,6 +4,15 @@ $quarter-widescreen: math.div($breakpoint-widescreen, 4);
|
|
|
4
4
|
$half-widescreen: math.div($breakpoint-widescreen, 2);
|
|
5
5
|
$three-quarters-widescreen: math.div($breakpoint-widescreen, 4) * 3;
|
|
6
6
|
|
|
7
|
+
.site-header {
|
|
8
|
+
background-color: darkslateblue !important;
|
|
9
|
+
color: white !important;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.site-header-panel {
|
|
13
|
+
background-color: darkslateblue !important;
|
|
14
|
+
}
|
|
15
|
+
|
|
7
16
|
.layout {
|
|
8
17
|
display: flex;
|
|
9
18
|
flex-direction: column;
|
|
@@ -72,7 +81,7 @@ $three-quarters-widescreen: math.div($breakpoint-widescreen, 4) * 3;
|
|
|
72
81
|
.layout,
|
|
73
82
|
.layout.layout-single {
|
|
74
83
|
.layout-body {
|
|
75
|
-
grid-template: auto auto auto 1fr auto auto / 1fr;
|
|
84
|
+
grid-template: auto auto auto 1fr auto auto / minmax(0, 1fr);
|
|
76
85
|
grid-template-areas: 'header' 'hero' 'menu' 'main' 'aside' 'footer';
|
|
77
86
|
}
|
|
78
87
|
}
|
|
@@ -83,7 +92,7 @@ $three-quarters-widescreen: math.div($breakpoint-widescreen, 4) * 3;
|
|
|
83
92
|
grid-template-areas: 'header' 'hero' 'menu' 'main' 'aside' 'footer';
|
|
84
93
|
|
|
85
94
|
@include tablet {
|
|
86
|
-
grid-template: auto auto 1fr auto auto / 1fr 2fr;
|
|
95
|
+
grid-template: auto auto 1fr auto auto / minmax(0, 1fr) minmax(0, 2fr);
|
|
87
96
|
grid-template-areas:
|
|
88
97
|
'header header'
|
|
89
98
|
'hero hero'
|
|
@@ -93,7 +102,7 @@ $three-quarters-widescreen: math.div($breakpoint-widescreen, 4) * 3;
|
|
|
93
102
|
}
|
|
94
103
|
|
|
95
104
|
@include desktop {
|
|
96
|
-
grid-template: auto auto 1fr auto / 1fr 2fr 1fr;
|
|
105
|
+
grid-template: auto auto 1fr auto / minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
|
|
97
106
|
grid-template-areas:
|
|
98
107
|
'header header header'
|
|
99
108
|
'hero hero hero'
|
|
@@ -118,11 +127,11 @@ $three-quarters-widescreen: math.div($breakpoint-widescreen, 4) * 3;
|
|
|
118
127
|
}
|
|
119
128
|
|
|
120
129
|
.layout-body {
|
|
121
|
-
grid-template: auto auto auto 1fr auto / 1fr;
|
|
130
|
+
grid-template: auto auto auto 1fr auto / minmax(0, 1fr);
|
|
122
131
|
grid-template-areas: 'header' 'hero' 'menu' 'main' 'footer';
|
|
123
132
|
|
|
124
133
|
@include tablet {
|
|
125
|
-
grid-template: auto auto 1fr auto / 1fr 2fr;
|
|
134
|
+
grid-template: auto auto 1fr auto / minmax(0, 1fr) minmax(0, 2fr);
|
|
126
135
|
grid-template-areas:
|
|
127
136
|
'header header'
|
|
128
137
|
'hero hero'
|
|
@@ -131,7 +140,7 @@ $three-quarters-widescreen: math.div($breakpoint-widescreen, 4) * 3;
|
|
|
131
140
|
}
|
|
132
141
|
|
|
133
142
|
@include desktop {
|
|
134
|
-
grid-template: auto auto 1fr auto / 1fr 3fr;
|
|
143
|
+
grid-template: auto auto 1fr auto / minmax(0, 1fr) minmax(0, 3fr);
|
|
135
144
|
grid-template-areas:
|
|
136
145
|
'header header'
|
|
137
146
|
'hero hero'
|
|
@@ -156,11 +165,11 @@ $three-quarters-widescreen: math.div($breakpoint-widescreen, 4) * 3;
|
|
|
156
165
|
}
|
|
157
166
|
|
|
158
167
|
.layout-body {
|
|
159
|
-
grid-template: auto auto auto 1fr auto / 1fr;
|
|
168
|
+
grid-template: auto auto auto 1fr auto / minmax(0, 1fr);
|
|
160
169
|
grid-template-areas: 'header' 'hero' 'main' 'aside' 'footer';
|
|
161
170
|
|
|
162
171
|
@include tablet {
|
|
163
|
-
grid-template: auto auto 1fr auto / 2fr 1fr;
|
|
172
|
+
grid-template: auto auto 1fr auto / minmax(0, 2fr) minmax(0, 1fr);
|
|
164
173
|
grid-template-areas:
|
|
165
174
|
'header header'
|
|
166
175
|
'hero hero'
|
|
@@ -169,7 +178,7 @@ $three-quarters-widescreen: math.div($breakpoint-widescreen, 4) * 3;
|
|
|
169
178
|
}
|
|
170
179
|
|
|
171
180
|
@include desktop {
|
|
172
|
-
grid-template: auto auto 1fr auto / 3fr 1fr;
|
|
181
|
+
grid-template: auto auto 1fr auto / minmax(0, 3fr) minmax(0, 1fr);
|
|
173
182
|
grid-template-areas:
|
|
174
183
|
'header header'
|
|
175
184
|
'hero hero'
|
|
@@ -24,7 +24,10 @@ $progress-bar-indeterminate-animation-duration: 2s !default;
|
|
|
24
24
|
background-color: $progress-bar-background-color;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
&::-webkit-progress-value
|
|
27
|
+
&::-webkit-progress-value {
|
|
28
|
+
background-color: $progress-bar-value-background-color;
|
|
29
|
+
}
|
|
30
|
+
|
|
28
31
|
&::-moz-progress-bar {
|
|
29
32
|
background-color: $progress-bar-value-background-color;
|
|
30
33
|
}
|
|
@@ -38,21 +41,30 @@ $progress-bar-indeterminate-animation-duration: 2s !default;
|
|
|
38
41
|
// Colors
|
|
39
42
|
|
|
40
43
|
&.progress-bar-success {
|
|
41
|
-
&::-webkit-progress-value
|
|
44
|
+
&::-webkit-progress-value {
|
|
45
|
+
background-color: $progress-bar-value-background-color-success;
|
|
46
|
+
}
|
|
47
|
+
|
|
42
48
|
&::-moz-progress-bar {
|
|
43
49
|
background-color: $progress-bar-value-background-color-success;
|
|
44
50
|
}
|
|
45
51
|
}
|
|
46
52
|
|
|
47
53
|
&.progress-bar-danger {
|
|
48
|
-
&::-webkit-progress-value
|
|
54
|
+
&::-webkit-progress-value {
|
|
55
|
+
background-color: $progress-bar-value-background-color-danger;
|
|
56
|
+
}
|
|
57
|
+
|
|
49
58
|
&::-moz-progress-bar {
|
|
50
59
|
background-color: $progress-bar-value-background-color-danger;
|
|
51
60
|
}
|
|
52
61
|
}
|
|
53
62
|
|
|
54
63
|
&.progress-bar-warning {
|
|
55
|
-
&::-webkit-progress-value
|
|
64
|
+
&::-webkit-progress-value {
|
|
65
|
+
background-color: $progress-bar-value-background-color-warning;
|
|
66
|
+
}
|
|
67
|
+
|
|
56
68
|
&::-moz-progress-bar {
|
|
57
69
|
background-color: $progress-bar-value-background-color-warning;
|
|
58
70
|
}
|
|
@@ -78,7 +90,10 @@ $progress-bar-indeterminate-animation-duration: 2s !default;
|
|
|
78
90
|
animation-direction: reverse;
|
|
79
91
|
}
|
|
80
92
|
|
|
81
|
-
&::-webkit-progress-bar
|
|
93
|
+
&::-webkit-progress-bar {
|
|
94
|
+
background-color: transparent;
|
|
95
|
+
}
|
|
96
|
+
|
|
82
97
|
&::-moz-progress-bar {
|
|
83
98
|
background-color: transparent;
|
|
84
99
|
}
|
|
@@ -95,7 +110,10 @@ $progress-bar-indeterminate-animation-duration: 2s !default;
|
|
|
95
110
|
background-color: CanvasText !important;
|
|
96
111
|
}
|
|
97
112
|
|
|
98
|
-
&::-webkit-progress-value
|
|
113
|
+
&::-webkit-progress-value {
|
|
114
|
+
background-color: Highlight !important;
|
|
115
|
+
}
|
|
116
|
+
|
|
99
117
|
&::-moz-progress-bar {
|
|
100
118
|
background-color: Highlight !important;
|
|
101
119
|
}
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
/* stylelint-disable selector-max-specificity, no-descending-specificity */
|
|
2
|
+
|
|
3
|
+
$tag-padding-block: 0.375em !default;
|
|
4
|
+
$tag-padding-inline: 0.675em !default;
|
|
5
|
+
|
|
6
|
+
$tag-gap-size: 0.375em !default;
|
|
7
|
+
|
|
8
|
+
$tag-font-size: $font-size-8 !default;
|
|
9
|
+
$tag-font-size-sm: $font-size-9 !default;
|
|
10
|
+
$tag-font-size-lg: $font-size-7 !default;
|
|
11
|
+
$tag-font-weight: $weight-normal !default;
|
|
12
|
+
|
|
13
|
+
$tag-icon-font-size: 0.875em !default;
|
|
14
|
+
|
|
15
|
+
$tag-border-width: $border-width !default;
|
|
16
|
+
$tag-border-radius: $border-radius !default;
|
|
17
|
+
$tag-border-radius-rounded: $border-radius-rounded !default;
|
|
18
|
+
$tag-border-color: $secondary !default;
|
|
19
|
+
|
|
20
|
+
$tag-color: $secondary-dark !default;
|
|
21
|
+
$tag-color-hover: $primary-dark !default;
|
|
22
|
+
$tag-background-color: $body-background !default;
|
|
23
|
+
$tag-background-hover: $secondary-background-glow-high-contrast !default;
|
|
24
|
+
|
|
25
|
+
$tag-color-filled: $text !default;
|
|
26
|
+
$tag-background-filled: $secondary-background-glow-high-contrast !default;
|
|
27
|
+
$tag-color-filled-hover: $primary-hover !default;
|
|
28
|
+
$tag-background-filled-hover: $secondary !default;
|
|
29
|
+
$tag-interactive-divider-color-filled: $secondary-box-shadow !default;
|
|
30
|
+
$tag-interactive-color-filled-hover: $secondary-invert !default;
|
|
31
|
+
|
|
32
|
+
$tag-color-primary: $primary-dark !default;
|
|
33
|
+
$tag-color-primary-hover: $primary-hover !default;
|
|
34
|
+
$tag-background-primary: $primary-background !default;
|
|
35
|
+
$tag-background-primary-hover: $primary-hover !default;
|
|
36
|
+
$tag-border-color-primary: $primary-background-glow-high-contrast !default;
|
|
37
|
+
$tag-interactive-divider-color-primary: $primary-box-shadow !default;
|
|
38
|
+
$tag-interactive-color-primary-hover: $primary-invert !default;
|
|
39
|
+
|
|
40
|
+
.tag {
|
|
41
|
+
display: inline-flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
justify-content: center;
|
|
44
|
+
padding: $tag-padding-block $tag-padding-inline;
|
|
45
|
+
border: $tag-border-width solid $tag-border-color;
|
|
46
|
+
border-radius: $tag-border-radius;
|
|
47
|
+
background-color: $tag-background-color;
|
|
48
|
+
color: $tag-color;
|
|
49
|
+
font-size: $tag-font-size;
|
|
50
|
+
font-weight: $tag-font-weight;
|
|
51
|
+
line-height: $line-height-normal;
|
|
52
|
+
white-space: nowrap;
|
|
53
|
+
gap: $tag-gap-size;
|
|
54
|
+
|
|
55
|
+
&:where(button) {
|
|
56
|
+
cursor: pointer;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.tag-close {
|
|
60
|
+
display: inline-flex;
|
|
61
|
+
align-items: center;
|
|
62
|
+
justify-content: center;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&:hover,
|
|
66
|
+
&.is-hovered {
|
|
67
|
+
.tag-close {
|
|
68
|
+
color: $tag-color-hover;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.icon {
|
|
73
|
+
font-size: $tag-icon-font-size;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
// Sizes
|
|
77
|
+
|
|
78
|
+
&.tag-sm {
|
|
79
|
+
font-size: $tag-font-size-sm;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&.tag-lg {
|
|
83
|
+
font-size: $tag-font-size-lg;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
// Interactive tag
|
|
87
|
+
|
|
88
|
+
&.tag-interactive {
|
|
89
|
+
align-items: stretch;
|
|
90
|
+
padding: 0;
|
|
91
|
+
border: none;
|
|
92
|
+
color: $text;
|
|
93
|
+
gap: 0;
|
|
94
|
+
|
|
95
|
+
.tag-popover {
|
|
96
|
+
.tag-summary {
|
|
97
|
+
padding: $tag-padding-block $tag-padding-inline;
|
|
98
|
+
border: $tag-border-width solid $tag-border-color;
|
|
99
|
+
border-radius: $tag-border-radius;
|
|
100
|
+
outline-color: currentColor;
|
|
101
|
+
outline-offset: -$focus-width;
|
|
102
|
+
cursor: pointer;
|
|
103
|
+
overflow: hidden;
|
|
104
|
+
|
|
105
|
+
/* stylelint-disable-next-line max-nesting-depth, rule-empty-line-before */
|
|
106
|
+
&:hover,
|
|
107
|
+
&.is-hovered {
|
|
108
|
+
background-color: $tag-background-hover;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
&:not(:only-child) .tag-summary {
|
|
113
|
+
border-start-end-radius: 0;
|
|
114
|
+
border-end-end-radius: 0;
|
|
115
|
+
border-inline-end: 0;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.tag-close {
|
|
120
|
+
padding: $tag-padding-block $tag-padding-inline;
|
|
121
|
+
border: 0;
|
|
122
|
+
border: $tag-border-width solid $tag-border-color;
|
|
123
|
+
border-radius: 0 $tag-border-radius $tag-border-radius 0;
|
|
124
|
+
outline-color: currentColor;
|
|
125
|
+
outline-offset: -$focus-width;
|
|
126
|
+
background-color: inherit;
|
|
127
|
+
color: inherit;
|
|
128
|
+
cursor: pointer;
|
|
129
|
+
|
|
130
|
+
&:hover,
|
|
131
|
+
&.is-hovered {
|
|
132
|
+
background-color: $tag-background-hover;
|
|
133
|
+
color: $tag-color-hover;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
// Colors
|
|
140
|
+
|
|
141
|
+
.tag.tag-primary {
|
|
142
|
+
border-color: $tag-border-color-primary;
|
|
143
|
+
background-color: $tag-background-primary;
|
|
144
|
+
color: $tag-color-primary;
|
|
145
|
+
|
|
146
|
+
&:hover,
|
|
147
|
+
&.is-hovered {
|
|
148
|
+
.tag-close {
|
|
149
|
+
color: $tag-color-primary-hover;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
&.tag-interactive {
|
|
154
|
+
.tag-popover .tag-summary,
|
|
155
|
+
.tag-close {
|
|
156
|
+
border-color: $tag-border-color-primary;
|
|
157
|
+
background-color: $tag-background-primary;
|
|
158
|
+
color: $tag-color-primary;
|
|
159
|
+
|
|
160
|
+
&:hover,
|
|
161
|
+
&.is-hovered {
|
|
162
|
+
border-color: $tag-background-primary-hover;
|
|
163
|
+
background-color: $tag-background-primary-hover;
|
|
164
|
+
color: $tag-interactive-color-primary-hover;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.tag-close {
|
|
169
|
+
border-inline-start-color: $tag-interactive-divider-color-primary;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.tag.tag-filled {
|
|
175
|
+
border-color: $tag-background-filled;
|
|
176
|
+
background-color: $tag-background-filled;
|
|
177
|
+
color: $tag-color-filled;
|
|
178
|
+
|
|
179
|
+
&:hover,
|
|
180
|
+
&.is-hovered {
|
|
181
|
+
.tag-close {
|
|
182
|
+
color: $tag-color-filled-hover;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
&.tag-interactive {
|
|
187
|
+
.tag-popover .tag-summary,
|
|
188
|
+
.tag-close {
|
|
189
|
+
border-color: $tag-background-filled;
|
|
190
|
+
background-color: $tag-background-filled;
|
|
191
|
+
color: $tag-color-filled;
|
|
192
|
+
|
|
193
|
+
&:hover,
|
|
194
|
+
&.is-hovered {
|
|
195
|
+
border-color: $tag-background-filled-hover;
|
|
196
|
+
background-color: $tag-background-filled-hover;
|
|
197
|
+
color: $tag-interactive-color-filled-hover;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.tag-close {
|
|
202
|
+
border-inline-start-color: $tag-interactive-divider-color-filled;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|