@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/atlas-css",
3
- "version": "3.24.0",
3
+ "version": "3.25.2",
4
4
  "description": "Styles backing the Atlas Design System used by Microsoft's Developer Relations.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",
@@ -1,7 +1,8 @@
1
1
  $auto-spacing-properties: (
2
2
  ('margin-inline', 'margin-inline'),
3
3
  ('margin-left', 'margin-inline-start'),
4
- ('margin-right', 'margin-inline-end')
4
+ ('margin-right', 'margin-inline-end'),
5
+ ('margin-top', 'margin-block-start')
5
6
  ) !default;
6
7
 
7
8
  $separator: '-';
@@ -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
+ }
@@ -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: 0;
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
+ }
@@ -10,6 +10,7 @@
10
10
  @import './markdown.scss'; // must be ordered after code-block
11
11
  @import './media.scss';
12
12
  @import './icon.scss';
13
+ @import './image.scss';
13
14
  @import './popover.scss';
14
15
  @import './pagination.scss';
15
16
  @import './table.scss';
@@ -14,6 +14,14 @@ details > * {
14
14
 
15
15
  :where(a) {
16
16
  color: $hyperlink;
17
+ text-decoration: none;
18
+ cursor: pointer;
19
+ word-wrap: break-word;
20
+ }
21
+
22
+ :where(a:hover) {
23
+ color: $primary-hover;
24
+ text-decoration: underline;
17
25
  }
18
26
 
19
27
  :where(a:visited) {