@microsoft/atlas-css 3.24.0 → 3.25.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/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/package.json +1 -1
- package/src/atomics/spacing-auto.scss +2 -1
- package/src/atomics/typography.scss +20 -0
- package/src/components/card.scss +2 -1
- package/src/components/image.scss +44 -0
- package/src/components/index.scss +1 -0
- package/src/core/bare-elements.scss +8 -0
package/package.json
CHANGED
|
@@ -161,3 +161,23 @@
|
|
|
161
161
|
.text-transform-uppercase {
|
|
162
162
|
text-transform: uppercase !important;
|
|
163
163
|
}
|
|
164
|
+
|
|
165
|
+
// Alignment
|
|
166
|
+
|
|
167
|
+
.text-align-center {
|
|
168
|
+
text-align: center !important;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.text-align-right {
|
|
172
|
+
text-align: end !important;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
@include tablet {
|
|
176
|
+
.text-align-center-tablet {
|
|
177
|
+
text-align: center !important;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.text-align-right-tablet {
|
|
181
|
+
text-align: end !important;
|
|
182
|
+
}
|
|
183
|
+
}
|
package/src/components/card.scss
CHANGED
|
@@ -31,6 +31,7 @@ $card-column-gap: $spacer-5 !default;
|
|
|
31
31
|
|
|
32
32
|
.card-template {
|
|
33
33
|
display: grid;
|
|
34
|
+
flex-grow: 1;
|
|
34
35
|
padding: $card-padding;
|
|
35
36
|
grid-template: auto / 1fr $spacer-10;
|
|
36
37
|
gap: $card-row-gap $card-column-gap;
|
|
@@ -244,7 +245,7 @@ $card-column-gap: $spacer-5 !default;
|
|
|
244
245
|
|
|
245
246
|
.card-footer {
|
|
246
247
|
flex-grow: 1;
|
|
247
|
-
flex-shrink:
|
|
248
|
+
flex-shrink: 1;
|
|
248
249
|
width: 100%;
|
|
249
250
|
}
|
|
250
251
|
}
|
|
@@ -0,0 +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
|
+
}
|