@microsoft/atlas-css 3.40.0 → 3.42.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/atlas-css",
3
- "version": "3.40.0",
3
+ "version": "3.42.0",
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",
@@ -7,9 +7,12 @@ $hero-min-height-xs: 200px !default;
7
7
  $hero-min-height-sm: 300px !default;
8
8
  $hero-min-height-default: 400px !default;
9
9
  $hero-min-height-lg: 500px !default;
10
-
11
- $hero-content-width: $reading-max-width !default;
10
+ $hero-detail-max-width: 500px !default;
11
+ $hero-content-half-width: 50% !default;
12
12
  $hero-content-fluid-width: 45% !default;
13
+ $hero-details-content-fluid-width: 35% !default;
14
+ $hero-content-width: $reading-max-width !default;
15
+
13
16
  $hero-image-width: calc((100% - 2 * $layout-gap) * 0.55) !default;
14
17
  $hero-image-width-widescreen: calc((100% - 2 * $layout-widescreen-gap) * 0.55) !default;
15
18
 
@@ -22,6 +25,10 @@ $hero-image-width-widescreen: calc((100% - 2 * $layout-widescreen-gap) * 0.55) !
22
25
  align-items: stretch;
23
26
  justify-content: space-between;
24
27
 
28
+ @include tablet {
29
+ flex-direction: row;
30
+ }
31
+
25
32
  .hero-content {
26
33
  z-index: $zindex-active;
27
34
  padding-block: $hero-padding-sm;
@@ -34,6 +41,44 @@ $hero-image-width-widescreen: calc((100% - 2 * $layout-widescreen-gap) * 0.55) !
34
41
  }
35
42
  }
36
43
 
44
+ .theme-high-contrast & .hero-details-card {
45
+ background: unset !important;
46
+ }
47
+
48
+ .hero-details {
49
+ display: flex;
50
+ padding-block: $hero-padding-xs;
51
+
52
+ @include tablet {
53
+ justify-content: flex-end;
54
+ padding-block: $hero-padding-sm;
55
+ padding-inline-start: $hero-padding-xs;
56
+ }
57
+
58
+ @include desktop {
59
+ min-height: $hero-min-height-default;
60
+ padding-block: $hero-padding-default;
61
+ padding-inline-start: $hero-padding-sm;
62
+ padding-inline-end: $hero-padding-sm;
63
+ }
64
+
65
+ .hero-details-card {
66
+ align-self: flex-start;
67
+ backdrop-filter: blur(20px);
68
+ background-color: #{$body-background};
69
+
70
+ @include desktop {
71
+ max-width: $hero-detail-max-width;
72
+ background: linear-gradient(
73
+ 116deg,
74
+ #{$body-background} 23.94%,
75
+ #{$border-white-high-contrast} 200%
76
+ );
77
+ margin-inline-start: $hero-padding-xs;
78
+ }
79
+ }
80
+ }
81
+
37
82
  &:not(.hero-image) {
38
83
  .hero-content {
39
84
  @include desktop {
@@ -140,16 +185,17 @@ $hero-image-width-widescreen: calc((100% - 2 * $layout-widescreen-gap) * 0.55) !
140
185
 
141
186
  // Set direction to prevent image flip for rtl
142
187
 
188
+ [dir='rtl'] &.hero-image,
143
189
  &.hero-image:dir(rtl) {
144
190
  direction: ltr;
145
191
 
146
- .hero-content {
192
+ .hero-content,
193
+ .hero-details-card {
147
194
  direction: rtl;
195
+ }
148
196
 
149
- @include desktop {
150
- padding-inline-end: unset;
151
- padding-inline-start: $hero-padding-sm;
152
- }
197
+ &[class^='gradient-border-'] {
198
+ direction: ltr;
153
199
  }
154
200
  }
155
201
  }