@microsoft/atlas-css 3.42.1 → 3.44.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/README.md +42 -42
- package/dist/class-names.json +1 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/package.json +91 -91
- package/src/atomics/README.md +56 -56
- package/src/atomics/aspect-ratio.scss +13 -13
- package/src/atomics/background.scss +11 -11
- package/src/atomics/border.scss +113 -113
- package/src/atomics/colors.scss +204 -204
- package/src/atomics/display.scss +33 -33
- package/src/atomics/flex.scss +74 -71
- package/src/atomics/gap.scss +60 -60
- package/src/atomics/image.scss +15 -15
- package/src/atomics/index.scss +18 -18
- package/src/atomics/line-clamp.scss +15 -15
- package/src/atomics/list.scss +3 -3
- package/src/atomics/overflow.scss +9 -9
- package/src/atomics/position.scss +19 -19
- package/src/atomics/shadow.scss +19 -19
- package/src/atomics/spacing-auto.scss +52 -52
- package/src/atomics/spacing.scss +98 -98
- package/src/atomics/typography.scss +203 -203
- package/src/atomics/visually-hidden.scss +4 -4
- package/src/atomics/width.scss +44 -44
- package/src/components/README.md +69 -69
- package/src/components/banner.scss +69 -69
- package/src/components/breadcrumbs.scss +37 -37
- package/src/components/button-reset.scss +8 -8
- package/src/components/button.scss +241 -241
- package/src/components/buttons.scss +93 -93
- package/src/components/card.scss +252 -252
- package/src/components/form/checkbox.scss +141 -141
- package/src/components/form/form.scss +67 -67
- package/src/components/form/help.scss +18 -18
- package/src/components/form/index.scss +8 -8
- package/src/components/form/input.scss +143 -143
- package/src/components/form/label.scss +14 -14
- package/src/components/form/radio.scss +121 -121
- package/src/components/form/select.scss +116 -116
- package/src/components/form/textarea.scss +82 -82
- package/src/components/gradient-card.scss +14 -14
- package/src/components/gradient.scss +85 -85
- package/src/components/hero.scss +197 -197
- package/src/components/icon.scss +20 -20
- package/src/components/image.scss +44 -44
- package/src/components/index.scss +27 -26
- package/src/components/layout.scss +189 -189
- package/src/components/link-button.scss +34 -34
- package/src/components/markdown.scss +158 -158
- package/src/components/media.scss +22 -22
- package/src/components/message.scss +74 -74
- package/src/components/notification.scss +101 -101
- package/src/components/pagination.scss +183 -183
- package/src/components/persona.scss +60 -60
- package/src/components/popover.scss +42 -42
- package/src/components/scroll.scss +26 -26
- package/src/components/segmented-control.scss +128 -0
- package/src/components/site-header.scss +255 -255
- package/src/components/stretched-link.scss +8 -8
- package/src/components/table.scss +114 -114
- package/src/components/toggle.scss +86 -86
- package/src/core/animations.scss +55 -55
- package/src/core/bare-elements.scss +38 -38
- package/src/core/focus.scss +45 -45
- package/src/core/font-stack.scss +28 -28
- package/src/core/index.scss +7 -7
- package/src/core/minireset.scss +79 -79
- package/src/core/normalize.scss +353 -353
- package/src/core/themes.scss +91 -91
- package/src/index.scss +5 -5
- package/src/mixins/center.scss +11 -11
- package/src/mixins/code-block.scss +43 -43
- package/src/mixins/colors.scss +6 -6
- package/src/mixins/control.scss +43 -43
- package/src/mixins/dismiss.scss +22 -22
- package/src/mixins/focus.scss +23 -23
- package/src/mixins/font-size.scss +35 -35
- package/src/mixins/force-colors.scss +5 -5
- package/src/mixins/gradient.scss +11 -11
- package/src/mixins/index.scss +17 -17
- package/src/mixins/layout-gap.scss +7 -7
- package/src/mixins/line-clamp.scss +15 -15
- package/src/mixins/loader.scss +16 -16
- package/src/mixins/media-queries.scss +61 -61
- package/src/mixins/overlay.scss +12 -12
- package/src/mixins/transparency.scss +15 -15
- package/src/mixins/unselectable.scss +13 -13
- package/src/mixins/visually-hidden.scss +12 -12
- package/src/tokens/animation.scss +8 -8
- package/src/tokens/border.scss +12 -12
- package/src/tokens/breakpoints.scss +11 -11
- package/src/tokens/colors.scss +239 -239
- package/src/tokens/direction.scss +25 -25
- package/src/tokens/display.scss +5 -5
- package/src/tokens/focus.scss +9 -9
- package/src/tokens/font-stack.scss +10 -10
- package/src/tokens/index.scss +17 -17
- package/src/tokens/layout.scss +17 -17
- package/src/tokens/palette.scss +200 -200
- package/src/tokens/position.scss +5 -5
- package/src/tokens/schemes.scss +14 -14
- package/src/tokens/shadow.scss +11 -11
- package/src/tokens/spacing.scss +25 -25
- package/src/tokens/themes.scss +318 -318
- package/src/tokens/typography.scss +33 -33
- package/src/tokens/z-index.scss +20 -20
- package/tokens/README.md +34 -34
- package/tokens/index.js +246 -246
- package/tokens/types.d.ts +35 -35
package/src/components/hero.scss
CHANGED
|
@@ -1,197 +1,197 @@
|
|
|
1
|
-
$hero-padding-xs: $layout-4 !default;
|
|
2
|
-
$hero-padding-sm: $layout-5 !default;
|
|
3
|
-
$hero-padding-default: $layout-6 !default;
|
|
4
|
-
$hero-padding-lg: $layout-7 !default;
|
|
5
|
-
|
|
6
|
-
$hero-min-height-xs: 200px !default;
|
|
7
|
-
$hero-min-height-sm: 300px !default;
|
|
8
|
-
$hero-min-height-default: 400px !default;
|
|
9
|
-
$hero-min-height-lg: 500px !default;
|
|
10
|
-
$hero-detail-max-width: 500px !default;
|
|
11
|
-
$hero-content-half-width: 50% !default;
|
|
12
|
-
$hero-content-fluid-width: 45% !default;
|
|
13
|
-
$hero-details-content-fluid-width: 35% !default;
|
|
14
|
-
$hero-content-width: $reading-max-width !default;
|
|
15
|
-
|
|
16
|
-
$hero-image-width: calc((100% - 2 * $layout-gap) * 0.55) !default;
|
|
17
|
-
$hero-image-width-widescreen: calc((100% - 2 * $layout-widescreen-gap) * 0.55) !default;
|
|
18
|
-
|
|
19
|
-
.hero {
|
|
20
|
-
@extend %layout-gap;
|
|
21
|
-
|
|
22
|
-
display: flex;
|
|
23
|
-
position: relative;
|
|
24
|
-
flex-direction: column;
|
|
25
|
-
align-items: stretch;
|
|
26
|
-
justify-content: space-between;
|
|
27
|
-
|
|
28
|
-
.hero-content {
|
|
29
|
-
z-index: $zindex-active;
|
|
30
|
-
padding-block: $hero-padding-sm;
|
|
31
|
-
|
|
32
|
-
@include desktop {
|
|
33
|
-
width: $hero-content-fluid-width;
|
|
34
|
-
min-height: $hero-min-height-default;
|
|
35
|
-
padding-block: $hero-padding-default;
|
|
36
|
-
padding-inline-end: $hero-padding-sm;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.theme-high-contrast & .hero-details-card {
|
|
41
|
-
background: unset !important;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.hero-details {
|
|
45
|
-
display: flex;
|
|
46
|
-
padding-block: $hero-padding-xs;
|
|
47
|
-
|
|
48
|
-
@include tablet {
|
|
49
|
-
justify-content: flex-end;
|
|
50
|
-
padding-block: $hero-padding-sm;
|
|
51
|
-
padding-inline-start: $hero-padding-xs;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
@include desktop {
|
|
55
|
-
min-height: $hero-min-height-default;
|
|
56
|
-
padding-block: $hero-padding-default;
|
|
57
|
-
padding-inline-start: $hero-padding-sm;
|
|
58
|
-
padding-inline-end: $hero-padding-sm;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.hero-details-card {
|
|
62
|
-
align-self: flex-start;
|
|
63
|
-
backdrop-filter: blur(20px);
|
|
64
|
-
background-color: #{$body-background};
|
|
65
|
-
|
|
66
|
-
@include desktop {
|
|
67
|
-
max-width: $hero-detail-max-width;
|
|
68
|
-
background: linear-gradient(
|
|
69
|
-
116deg,
|
|
70
|
-
#{$body-background} 23.94%,
|
|
71
|
-
#{$border-white-high-contrast} 200%
|
|
72
|
-
);
|
|
73
|
-
margin-inline-start: $hero-padding-xs;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
&:not(.hero-image) {
|
|
79
|
-
.hero-content {
|
|
80
|
-
@include desktop {
|
|
81
|
-
width: 100%;
|
|
82
|
-
max-width: $hero-content-width;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
@include desktop {
|
|
88
|
-
&.hero-xs {
|
|
89
|
-
.hero-content {
|
|
90
|
-
min-height: $hero-min-height-xs;
|
|
91
|
-
padding-block: $hero-padding-xs;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
&.hero-sm {
|
|
96
|
-
.hero-content {
|
|
97
|
-
min-height: $hero-min-height-sm;
|
|
98
|
-
padding-block: $hero-padding-sm;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
&.hero-lg {
|
|
103
|
-
.hero-content {
|
|
104
|
-
min-height: $hero-min-height-lg;
|
|
105
|
-
padding-block: $hero-padding-lg;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.hero-card {
|
|
111
|
-
position: relative;
|
|
112
|
-
padding: $spacer-5;
|
|
113
|
-
border: none;
|
|
114
|
-
background-color: transparent;
|
|
115
|
-
z-index: 1;
|
|
116
|
-
|
|
117
|
-
@include tablet {
|
|
118
|
-
padding: $spacer-10;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
@include desktop {
|
|
122
|
-
border-inline: 1px solid $border;
|
|
123
|
-
border-block-end: 1px solid $border;
|
|
124
|
-
border-end-start-radius: $border-radius-lg;
|
|
125
|
-
border-end-end-radius: $border-radius-lg;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.hero-background {
|
|
130
|
-
position: absolute;
|
|
131
|
-
inset: 0;
|
|
132
|
-
width: 100%;
|
|
133
|
-
height: 100%;
|
|
134
|
-
overflow: hidden;
|
|
135
|
-
|
|
136
|
-
video,
|
|
137
|
-
img {
|
|
138
|
-
width: 100%;
|
|
139
|
-
height: 100%;
|
|
140
|
-
object-fit: cover;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
&.hero-image::before {
|
|
145
|
-
display: none;
|
|
146
|
-
position: absolute;
|
|
147
|
-
inset-block-start: 0;
|
|
148
|
-
width: $hero-image-width;
|
|
149
|
-
height: 100%;
|
|
150
|
-
background-image: var(--hero-background-image);
|
|
151
|
-
background-repeat: no-repeat;
|
|
152
|
-
background-size: cover;
|
|
153
|
-
content: ' ';
|
|
154
|
-
inset-inline-end: $layout-gap;
|
|
155
|
-
|
|
156
|
-
@include desktop {
|
|
157
|
-
display: block;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
@include widescreen {
|
|
161
|
-
width: $hero-image-width-widescreen;
|
|
162
|
-
inset-inline-end: $layout-widescreen-gap;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
@media (forced-colors: active) {
|
|
166
|
-
background-image: none !important;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
.theme-light & {
|
|
170
|
-
--hero-background-image: var(--hero-background-image-light);
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
.theme-dark & {
|
|
174
|
-
--hero-background-image: var(--hero-background-image-dark);
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
.theme-high-contrast & {
|
|
178
|
-
--hero-background-image: none;
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
// Set direction to prevent image flip for rtl
|
|
183
|
-
|
|
184
|
-
[dir='rtl'] &.hero-image,
|
|
185
|
-
&.hero-image:dir(rtl) {
|
|
186
|
-
direction: ltr;
|
|
187
|
-
|
|
188
|
-
.hero-content,
|
|
189
|
-
.hero-details-card {
|
|
190
|
-
direction: rtl;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
&[class^='gradient-border-'] {
|
|
194
|
-
direction: ltr;
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
}
|
|
1
|
+
$hero-padding-xs: $layout-4 !default;
|
|
2
|
+
$hero-padding-sm: $layout-5 !default;
|
|
3
|
+
$hero-padding-default: $layout-6 !default;
|
|
4
|
+
$hero-padding-lg: $layout-7 !default;
|
|
5
|
+
|
|
6
|
+
$hero-min-height-xs: 200px !default;
|
|
7
|
+
$hero-min-height-sm: 300px !default;
|
|
8
|
+
$hero-min-height-default: 400px !default;
|
|
9
|
+
$hero-min-height-lg: 500px !default;
|
|
10
|
+
$hero-detail-max-width: 500px !default;
|
|
11
|
+
$hero-content-half-width: 50% !default;
|
|
12
|
+
$hero-content-fluid-width: 45% !default;
|
|
13
|
+
$hero-details-content-fluid-width: 35% !default;
|
|
14
|
+
$hero-content-width: $reading-max-width !default;
|
|
15
|
+
|
|
16
|
+
$hero-image-width: calc((100% - 2 * $layout-gap) * 0.55) !default;
|
|
17
|
+
$hero-image-width-widescreen: calc((100% - 2 * $layout-widescreen-gap) * 0.55) !default;
|
|
18
|
+
|
|
19
|
+
.hero {
|
|
20
|
+
@extend %layout-gap;
|
|
21
|
+
|
|
22
|
+
display: flex;
|
|
23
|
+
position: relative;
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
align-items: stretch;
|
|
26
|
+
justify-content: space-between;
|
|
27
|
+
|
|
28
|
+
.hero-content {
|
|
29
|
+
z-index: $zindex-active;
|
|
30
|
+
padding-block: $hero-padding-sm;
|
|
31
|
+
|
|
32
|
+
@include desktop {
|
|
33
|
+
width: $hero-content-fluid-width;
|
|
34
|
+
min-height: $hero-min-height-default;
|
|
35
|
+
padding-block: $hero-padding-default;
|
|
36
|
+
padding-inline-end: $hero-padding-sm;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.theme-high-contrast & .hero-details-card {
|
|
41
|
+
background: unset !important;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.hero-details {
|
|
45
|
+
display: flex;
|
|
46
|
+
padding-block: $hero-padding-xs;
|
|
47
|
+
|
|
48
|
+
@include tablet {
|
|
49
|
+
justify-content: flex-end;
|
|
50
|
+
padding-block: $hero-padding-sm;
|
|
51
|
+
padding-inline-start: $hero-padding-xs;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@include desktop {
|
|
55
|
+
min-height: $hero-min-height-default;
|
|
56
|
+
padding-block: $hero-padding-default;
|
|
57
|
+
padding-inline-start: $hero-padding-sm;
|
|
58
|
+
padding-inline-end: $hero-padding-sm;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.hero-details-card {
|
|
62
|
+
align-self: flex-start;
|
|
63
|
+
backdrop-filter: blur(20px);
|
|
64
|
+
background-color: #{$body-background};
|
|
65
|
+
|
|
66
|
+
@include desktop {
|
|
67
|
+
max-width: $hero-detail-max-width;
|
|
68
|
+
background: linear-gradient(
|
|
69
|
+
116deg,
|
|
70
|
+
#{$body-background} 23.94%,
|
|
71
|
+
#{$border-white-high-contrast} 200%
|
|
72
|
+
);
|
|
73
|
+
margin-inline-start: $hero-padding-xs;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&:not(.hero-image) {
|
|
79
|
+
.hero-content {
|
|
80
|
+
@include desktop {
|
|
81
|
+
width: 100%;
|
|
82
|
+
max-width: $hero-content-width;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
@include desktop {
|
|
88
|
+
&.hero-xs {
|
|
89
|
+
.hero-content {
|
|
90
|
+
min-height: $hero-min-height-xs;
|
|
91
|
+
padding-block: $hero-padding-xs;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&.hero-sm {
|
|
96
|
+
.hero-content {
|
|
97
|
+
min-height: $hero-min-height-sm;
|
|
98
|
+
padding-block: $hero-padding-sm;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&.hero-lg {
|
|
103
|
+
.hero-content {
|
|
104
|
+
min-height: $hero-min-height-lg;
|
|
105
|
+
padding-block: $hero-padding-lg;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.hero-card {
|
|
111
|
+
position: relative;
|
|
112
|
+
padding: $spacer-5;
|
|
113
|
+
border: none;
|
|
114
|
+
background-color: transparent;
|
|
115
|
+
z-index: 1;
|
|
116
|
+
|
|
117
|
+
@include tablet {
|
|
118
|
+
padding: $spacer-10;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
@include desktop {
|
|
122
|
+
border-inline: 1px solid $border;
|
|
123
|
+
border-block-end: 1px solid $border;
|
|
124
|
+
border-end-start-radius: $border-radius-lg;
|
|
125
|
+
border-end-end-radius: $border-radius-lg;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.hero-background {
|
|
130
|
+
position: absolute;
|
|
131
|
+
inset: 0;
|
|
132
|
+
width: 100%;
|
|
133
|
+
height: 100%;
|
|
134
|
+
overflow: hidden;
|
|
135
|
+
|
|
136
|
+
video,
|
|
137
|
+
img {
|
|
138
|
+
width: 100%;
|
|
139
|
+
height: 100%;
|
|
140
|
+
object-fit: cover;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
&.hero-image::before {
|
|
145
|
+
display: none;
|
|
146
|
+
position: absolute;
|
|
147
|
+
inset-block-start: 0;
|
|
148
|
+
width: $hero-image-width;
|
|
149
|
+
height: 100%;
|
|
150
|
+
background-image: var(--hero-background-image);
|
|
151
|
+
background-repeat: no-repeat;
|
|
152
|
+
background-size: cover;
|
|
153
|
+
content: ' ';
|
|
154
|
+
inset-inline-end: $layout-gap;
|
|
155
|
+
|
|
156
|
+
@include desktop {
|
|
157
|
+
display: block;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
@include widescreen {
|
|
161
|
+
width: $hero-image-width-widescreen;
|
|
162
|
+
inset-inline-end: $layout-widescreen-gap;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
@media (forced-colors: active) {
|
|
166
|
+
background-image: none !important;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.theme-light & {
|
|
170
|
+
--hero-background-image: var(--hero-background-image-light);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.theme-dark & {
|
|
174
|
+
--hero-background-image: var(--hero-background-image-dark);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.theme-high-contrast & {
|
|
178
|
+
--hero-background-image: none;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
// Set direction to prevent image flip for rtl
|
|
183
|
+
|
|
184
|
+
[dir='rtl'] &.hero-image,
|
|
185
|
+
&.hero-image:dir(rtl) {
|
|
186
|
+
direction: ltr;
|
|
187
|
+
|
|
188
|
+
.hero-content,
|
|
189
|
+
.hero-details-card {
|
|
190
|
+
direction: rtl;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
&[class^='gradient-border-'] {
|
|
194
|
+
direction: ltr;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
package/src/components/icon.scss
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
$features-icon: true !default;
|
|
2
|
-
$icon-dimensions: 1em !default;
|
|
3
|
-
|
|
4
|
-
.icon {
|
|
5
|
-
display: inline-flex;
|
|
6
|
-
align-items: center;
|
|
7
|
-
justify-content: center;
|
|
8
|
-
|
|
9
|
-
&,
|
|
10
|
-
svg,
|
|
11
|
-
img {
|
|
12
|
-
width: $icon-dimensions;
|
|
13
|
-
height: $icon-dimensions;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
&.icon-rounded {
|
|
17
|
-
padding: 0.6rem; // ensures icon is not cut off by rounded border
|
|
18
|
-
border-radius: 50%;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
1
|
+
$features-icon: true !default;
|
|
2
|
+
$icon-dimensions: 1em !default;
|
|
3
|
+
|
|
4
|
+
.icon {
|
|
5
|
+
display: inline-flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
|
|
9
|
+
&,
|
|
10
|
+
svg,
|
|
11
|
+
img {
|
|
12
|
+
width: $icon-dimensions;
|
|
13
|
+
height: $icon-dimensions;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&.icon-rounded {
|
|
17
|
+
padding: 0.6rem; // ensures icon is not cut off by rounded border
|
|
18
|
+
border-radius: 50%;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
$dimensions: 16 24 32 36 48 64 76 88 96 112 128 !default;
|
|
2
|
-
|
|
3
|
-
.image {
|
|
4
|
-
display: block;
|
|
5
|
-
position: relative;
|
|
6
|
-
|
|
7
|
-
img,
|
|
8
|
-
svg {
|
|
9
|
-
display: block;
|
|
10
|
-
width: 100%;
|
|
11
|
-
height: auto;
|
|
12
|
-
max-height: 100%;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
&.image-fullwidth {
|
|
16
|
-
width: 100%;
|
|
17
|
-
height: auto;
|
|
18
|
-
object-fit: cover;
|
|
19
|
-
margin: 0;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
// Sizes
|
|
23
|
-
|
|
24
|
-
@each $dimension in $dimensions {
|
|
25
|
-
&.image-#{$dimension}x#{$dimension} {
|
|
26
|
-
width: $dimension * 1px;
|
|
27
|
-
height: $dimension * 1px;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
@include tablet {
|
|
31
|
-
&.image-#{$dimension}x#{$dimension}-tablet {
|
|
32
|
-
width: $dimension * 1px;
|
|
33
|
-
height: $dimension * 1px;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
@include desktop {
|
|
38
|
-
&.image-#{$dimension}x#{$dimension}-desktop {
|
|
39
|
-
width: $dimension * 1px;
|
|
40
|
-
height: $dimension * 1px;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
1
|
+
$dimensions: 16 24 32 36 48 64 76 88 96 112 128 !default;
|
|
2
|
+
|
|
3
|
+
.image {
|
|
4
|
+
display: block;
|
|
5
|
+
position: relative;
|
|
6
|
+
|
|
7
|
+
img,
|
|
8
|
+
svg {
|
|
9
|
+
display: block;
|
|
10
|
+
width: 100%;
|
|
11
|
+
height: auto;
|
|
12
|
+
max-height: 100%;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&.image-fullwidth {
|
|
16
|
+
width: 100%;
|
|
17
|
+
height: auto;
|
|
18
|
+
object-fit: cover;
|
|
19
|
+
margin: 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
// Sizes
|
|
23
|
+
|
|
24
|
+
@each $dimension in $dimensions {
|
|
25
|
+
&.image-#{$dimension}x#{$dimension} {
|
|
26
|
+
width: $dimension * 1px;
|
|
27
|
+
height: $dimension * 1px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@include tablet {
|
|
31
|
+
&.image-#{$dimension}x#{$dimension}-tablet {
|
|
32
|
+
width: $dimension * 1px;
|
|
33
|
+
height: $dimension * 1px;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@include desktop {
|
|
38
|
+
&.image-#{$dimension}x#{$dimension}-desktop {
|
|
39
|
+
width: $dimension * 1px;
|
|
40
|
+
height: $dimension * 1px;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
@import './banner.scss';
|
|
2
|
-
@import './breadcrumbs.scss';
|
|
3
|
-
@import './button.scss';
|
|
4
|
-
@import './buttons.scss';
|
|
5
|
-
@import './card.scss';
|
|
6
|
-
@import './button-reset.scss';
|
|
7
|
-
@import './form/index.scss';
|
|
8
|
-
@import './hero.scss';
|
|
9
|
-
@import './gradient.scss';
|
|
10
|
-
@import './gradient-card.scss';
|
|
11
|
-
@import './link-button.scss';
|
|
12
|
-
@import './markdown.scss'; // must be ordered after code-block
|
|
13
|
-
@import './media.scss';
|
|
14
|
-
@import './message.scss';
|
|
15
|
-
@import './notification.scss';
|
|
16
|
-
@import './icon.scss';
|
|
17
|
-
@import './image.scss';
|
|
18
|
-
@import './persona.scss';
|
|
19
|
-
@import './popover.scss';
|
|
20
|
-
@import './pagination.scss';
|
|
21
|
-
@import './table.scss';
|
|
22
|
-
@import './toggle.scss';
|
|
23
|
-
@import './scroll.scss';
|
|
24
|
-
@import './site-header.scss';
|
|
25
|
-
@import './stretched-link.scss';
|
|
26
|
-
@import './
|
|
1
|
+
@import './banner.scss';
|
|
2
|
+
@import './breadcrumbs.scss';
|
|
3
|
+
@import './button.scss';
|
|
4
|
+
@import './buttons.scss';
|
|
5
|
+
@import './card.scss';
|
|
6
|
+
@import './button-reset.scss';
|
|
7
|
+
@import './form/index.scss';
|
|
8
|
+
@import './hero.scss';
|
|
9
|
+
@import './gradient.scss';
|
|
10
|
+
@import './gradient-card.scss';
|
|
11
|
+
@import './link-button.scss';
|
|
12
|
+
@import './markdown.scss'; // must be ordered after code-block
|
|
13
|
+
@import './media.scss';
|
|
14
|
+
@import './message.scss';
|
|
15
|
+
@import './notification.scss';
|
|
16
|
+
@import './icon.scss';
|
|
17
|
+
@import './image.scss';
|
|
18
|
+
@import './persona.scss';
|
|
19
|
+
@import './popover.scss';
|
|
20
|
+
@import './pagination.scss';
|
|
21
|
+
@import './table.scss';
|
|
22
|
+
@import './toggle.scss';
|
|
23
|
+
@import './scroll.scss';
|
|
24
|
+
@import './site-header.scss';
|
|
25
|
+
@import './stretched-link.scss';
|
|
26
|
+
@import './segmented-control.scss';
|
|
27
|
+
@import './layout.scss';
|