@microsoft/atlas-css 3.4.0 → 3.8.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.
@@ -15,31 +15,31 @@
15
15
  }
16
16
 
17
17
  .button {
18
- margin-bottom: 0.5rem;
19
- margin-#{$user-right}: 0.5rem;
18
+ margin-block-end: 0.5rem;
19
+ margin-inline-end: 0.5rem;
20
20
 
21
21
  &:only-child,
22
22
  &.is-fullwidth,
23
23
  &.is-full-width {
24
- margin-#{$user-right}: 0;
24
+ margin-inline-end: 0;
25
25
  }
26
26
 
27
27
  &.is-full-width-mobile,
28
28
  &.is-fullwidth-mobile {
29
- margin-#{$user-right}: 0;
29
+ margin-inline-end: 0;
30
30
 
31
31
  @include tablet {
32
- margin-#{$user-right}: 0.5rem;
32
+ margin-inline-end: 0.5rem;
33
33
  }
34
34
  }
35
35
  }
36
36
 
37
37
  &:last-child {
38
- margin-bottom: -0.5rem;
38
+ margin-block-end: -0.5rem;
39
39
  }
40
40
 
41
41
  &:not(:last-child) {
42
- margin-bottom: 1rem;
42
+ margin-block-end: 1rem;
43
43
  }
44
44
 
45
45
  &.buttons-addons {
@@ -52,11 +52,11 @@
52
52
  &:not(:last-child) {
53
53
  border-bottom-#{$user-right}-radius: 0;
54
54
  border-top-#{$user-right}-radius: 0;
55
- margin-#{$user-right}: -1px;
55
+ margin-inline-end: -1px;
56
56
  }
57
57
 
58
58
  &:last-child {
59
- margin-#{$user-right}: 0;
59
+ margin-inline-end: 0;
60
60
  }
61
61
 
62
62
  &:hover,
@@ -7,3 +7,4 @@
7
7
  @import './icon.scss';
8
8
  @import './popover.scss';
9
9
  @import './table.scss';
10
+ @import './scroll.scss';
@@ -9,6 +9,7 @@ $list-top-spacing: 1rem !default;
9
9
  * Within projects that desire bare-code styling, you may set the above variable to true and <pre><code>
10
10
  * Elements within .markdown will be styled.
11
11
  */
12
+
12
13
  .markdown {
13
14
  @include code-block;
14
15
  }
@@ -20,6 +21,7 @@ $list-top-spacing: 1rem !default;
20
21
  line-height: 1.6;
21
22
 
22
23
  // Inline code
24
+
23
25
  :not(a):not(pre) > code {
24
26
  padding: 0.1em 0.2em;
25
27
  border-radius: 3px;
@@ -41,12 +43,12 @@ $list-top-spacing: 1rem !default;
41
43
  }
42
44
 
43
45
  li {
44
- margin-top: 0.5em;
46
+ margin-block-start: 0.5em;
45
47
  }
46
48
 
47
49
  ul,
48
50
  ol {
49
- margin-#{$user-left}: 2.375rem;
51
+ margin-inline-start: 2.375rem;
50
52
  }
51
53
 
52
54
  ul {
@@ -55,7 +57,7 @@ $list-top-spacing: 1rem !default;
55
57
  ul {
56
58
  list-style-type: circle;
57
59
  margin: 0;
58
- margin-#{$user-left}: 1.25rem;
60
+ margin-inline-start: 1.25rem;
59
61
 
60
62
  ul {
61
63
  list-style-type: square;
@@ -73,7 +75,7 @@ $list-top-spacing: 1rem !default;
73
75
  ol {
74
76
  list-style-type: lower-alpha;
75
77
  margin: 0;
76
- margin-#{$user-left}: 1.25rem;
78
+ margin-inline-start: 1.25rem;
77
79
 
78
80
  ol {
79
81
  list-style-type: lower-roman;
@@ -88,56 +90,56 @@ $list-top-spacing: 1rem !default;
88
90
  h1 {
89
91
  @include responsive-font-size($font-size-1);
90
92
 
91
- margin-top: none;
92
- margin-bottom: 0.75rem;
93
+ margin-block-start: none;
94
+ margin-block-end: 0.75rem;
93
95
  word-wrap: break-word; // browser support fallback, because FF and IE
94
96
  word-break: break-word;
95
97
 
96
98
  &:first-of-type {
97
- margin-top: -0.625rem;
98
- margin-bottom: none;
99
+ margin-block-start: -0.625rem;
100
+ margin-block-end: none;
99
101
  }
100
102
  }
101
103
 
102
104
  h2 {
103
105
  @include responsive-font-size($font-size-2);
104
106
 
105
- margin-top: 2rem;
107
+ margin-block-start: 2rem;
106
108
  }
107
109
 
108
110
  h3 {
109
111
  @include responsive-font-size($font-size-3);
110
112
 
111
- margin-top: 1.875rem;
112
- margin-bottom: 1.125rem;
113
+ margin-block-start: 1.875rem;
114
+ margin-block-end: 1.125rem;
113
115
  }
114
116
 
115
117
  h4 {
116
118
  @include responsive-font-size($font-size-4);
117
119
 
118
- margin-top: 2.25rem;
119
- margin-bottom: 0.375rem;
120
+ margin-block-start: 2.25rem;
121
+ margin-block-end: 0.375rem;
120
122
  }
121
123
 
122
124
  h5 {
123
125
  @include responsive-font-size($font-size-5, false, 1.1rem);
124
126
 
125
- margin-top: 2.25rem;
126
- margin-bottom: 0.375rem;
127
+ margin-block-start: 2.25rem;
128
+ margin-block-end: 0.375rem;
127
129
  letter-spacing: 1px;
128
130
  }
129
131
 
130
132
  h6 {
131
133
  @include responsive-font-size($font-size-6, false, 1.05rem);
132
134
 
133
- margin-top: 2.25rem;
134
- margin-bottom: 0.375rem;
135
+ margin-block-start: 2.25rem;
136
+ margin-block-end: 0.375rem;
135
137
  letter-spacing: 1px;
136
138
  }
137
139
 
138
140
  p {
139
- margin-top: $markdown-paragraph-size;
140
- margin-bottom: none;
141
+ margin-block-start: $markdown-paragraph-size;
142
+ margin-block-end: none;
141
143
  word-wrap: break-word;
142
144
  }
143
145
 
@@ -10,18 +10,21 @@ $popover-width: 224px !default;
10
10
 
11
11
  summary {
12
12
  list-style: none;
13
+
14
+ &::-webkit-details-marker {
15
+ display: none;
16
+ }
13
17
  }
14
18
 
15
19
  .popover-content {
16
20
  position: absolute;
17
21
  width: $popover-width;
18
- margin-top: $spacer-3;
22
+ margin-block-start: $spacer-3;
19
23
  padding: $spacer-5;
20
24
  border: $popover-border;
21
25
  border-radius: $popover-border-radius;
22
26
  background-color: $popover-background-color;
23
27
  box-shadow: $popover-shadow;
24
- overflow: hidden;
25
28
  z-index: $zindex-popover;
26
29
  }
27
30
 
@@ -0,0 +1,11 @@
1
+ .scroll-horizontal {
2
+ overflow-x: auto;
3
+ overflow-y: hidden;
4
+ -webkit-overflow-scrolling: touch;
5
+ }
6
+
7
+ .scroll-vertical {
8
+ overflow-x: hidden;
9
+ overflow-y: auto;
10
+ -webkit-overflow-scrolling: touch;
11
+ }
@@ -59,7 +59,7 @@ $table-caption-spacing: $letter-spacing-medium !default;
59
59
  }
60
60
 
61
61
  td:not(:nth-child(1)) {
62
- padding-top: 0;
62
+ padding-block-start: 0;
63
63
  border-width: 0;
64
64
  }
65
65
  }
@@ -1,7 +1,11 @@
1
+ // stylelint-disable-next-line keyframes-name-pattern
1
2
  @keyframes spinAround {
3
+ // make it stop
4
+
2
5
  from {
3
6
  transform: rotate(0deg);
4
7
  }
8
+
5
9
  to {
6
10
  transform: rotate(359deg);
7
11
  }
@@ -0,0 +1,5 @@
1
+ // https://bugs.chromium.org/p/chromium/issues/detail?id=589475&q=details%20box-sizing&can=2
2
+
3
+ :is(details > *) {
4
+ box-sizing: border-box;
5
+ }
@@ -1,6 +1,7 @@
1
- @import 'normalize.css';
2
- @import 'minireset.css';
1
+ @import './normalize.scss';
2
+ @import './minireset.scss';
3
3
  @import './themes.scss';
4
4
  @import './font-stack.scss';
5
5
  @import './animations.scss';
6
6
  @import './focus.scss';
7
+ @import './bare-elements.scss';
@@ -0,0 +1,79 @@
1
+ /* stylelint-disable */
2
+ /*! minireset.css v0.0.7 | MIT License | github.com/jgthms/minireset.css */
3
+ html,
4
+ body,
5
+ p,
6
+ ol,
7
+ ul,
8
+ li,
9
+ dl,
10
+ dt,
11
+ dd,
12
+ blockquote,
13
+ figure,
14
+ fieldset,
15
+ legend,
16
+ textarea,
17
+ pre,
18
+ iframe,
19
+ hr,
20
+ h1,
21
+ h2,
22
+ h3,
23
+ h4,
24
+ h5,
25
+ h6 {
26
+ margin: 0;
27
+ padding: 0;
28
+ }
29
+
30
+ h1,
31
+ h2,
32
+ h3,
33
+ h4,
34
+ h5,
35
+ h6 {
36
+ font-size: 100%;
37
+ font-weight: normal;
38
+ }
39
+
40
+ ul {
41
+ list-style: none;
42
+ }
43
+
44
+ button,
45
+ input,
46
+ select {
47
+ margin: 0;
48
+ }
49
+
50
+ html {
51
+ box-sizing: border-box;
52
+ }
53
+
54
+ *,
55
+ *::before,
56
+ *::after {
57
+ box-sizing: inherit;
58
+ }
59
+
60
+ img,
61
+ video {
62
+ height: auto;
63
+ max-width: 100%;
64
+ }
65
+
66
+ iframe {
67
+ border: 0;
68
+ }
69
+
70
+ table {
71
+ border-collapse: collapse;
72
+ border-spacing: 0;
73
+ }
74
+
75
+ td,
76
+ th {
77
+ padding: 0;
78
+ }
79
+ /* stylelint-enable */
@@ -0,0 +1,353 @@
1
+ /* stylelint-disable */
2
+ /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
3
+
4
+ /* Document
5
+ ========================================================================== */
6
+
7
+ /**
8
+ * 1. Correct the line height in all browsers.
9
+ * 2. Prevent adjustments of font size after orientation changes in iOS.
10
+ */
11
+
12
+ html {
13
+ line-height: 1.15; /* 1 */
14
+ -webkit-text-size-adjust: 100%; /* 2 */
15
+ }
16
+
17
+ /* Sections
18
+ ========================================================================== */
19
+
20
+ /**
21
+ * Remove the margin in all browsers.
22
+ */
23
+
24
+ body {
25
+ margin: 0;
26
+ }
27
+
28
+ /**
29
+ * Render the `main` element consistently in IE.
30
+ */
31
+
32
+ main {
33
+ display: block;
34
+ }
35
+
36
+ /**
37
+ * Correct the font size and margin on `h1` elements within `section` and
38
+ * `article` contexts in Chrome, Firefox, and Safari.
39
+ */
40
+
41
+ h1 {
42
+ font-size: 2em;
43
+ margin: 0.67em 0;
44
+ }
45
+
46
+ /* Grouping content
47
+ ========================================================================== */
48
+
49
+ /**
50
+ * 1. Add the correct box sizing in Firefox.
51
+ * 2. Show the overflow in Edge and IE.
52
+ */
53
+
54
+ hr {
55
+ box-sizing: content-box; /* 1 */
56
+ height: 0; /* 1 */
57
+ overflow: visible; /* 2 */
58
+ }
59
+
60
+ /**
61
+ * 1. Correct the inheritance and scaling of font size in all browsers.
62
+ * 2. Correct the odd `em` font sizing in all browsers.
63
+ */
64
+
65
+ pre {
66
+ font-family: monospace, monospace; /* 1 */
67
+ font-size: 1em; /* 2 */
68
+ }
69
+
70
+ /* Text-level semantics
71
+ ========================================================================== */
72
+
73
+ /**
74
+ * Remove the gray background on active links in IE 10.
75
+ */
76
+
77
+ a {
78
+ background-color: transparent;
79
+ }
80
+
81
+ /**
82
+ * 1. Remove the bottom border in Chrome 57-
83
+ * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
84
+ */
85
+
86
+ abbr[title] {
87
+ border-bottom: none; /* 1 */
88
+ text-decoration: underline; /* 2 */
89
+ text-decoration: underline dotted; /* 2 */
90
+ }
91
+
92
+ /**
93
+ * Add the correct font weight in Chrome, Edge, and Safari.
94
+ */
95
+
96
+ b,
97
+ strong {
98
+ font-weight: bolder;
99
+ }
100
+
101
+ /**
102
+ * 1. Correct the inheritance and scaling of font size in all browsers.
103
+ * 2. Correct the odd `em` font sizing in all browsers.
104
+ */
105
+
106
+ code,
107
+ kbd,
108
+ samp {
109
+ font-family: monospace, monospace; /* 1 */
110
+ font-size: 1em; /* 2 */
111
+ }
112
+
113
+ /**
114
+ * Add the correct font size in all browsers.
115
+ */
116
+
117
+ small {
118
+ font-size: 80%;
119
+ }
120
+
121
+ /**
122
+ * Prevent `sub` and `sup` elements from affecting the line height in
123
+ * all browsers.
124
+ */
125
+
126
+ sub,
127
+ sup {
128
+ font-size: 75%;
129
+ line-height: 0;
130
+ position: relative;
131
+ vertical-align: baseline;
132
+ }
133
+
134
+ sub {
135
+ bottom: -0.25em;
136
+ }
137
+
138
+ sup {
139
+ top: -0.5em;
140
+ }
141
+
142
+ /* Embedded content
143
+ ========================================================================== */
144
+
145
+ /**
146
+ * Remove the border on images inside links in IE 10.
147
+ */
148
+
149
+ img {
150
+ border-style: none;
151
+ }
152
+
153
+ /* Forms
154
+ ========================================================================== */
155
+
156
+ /**
157
+ * 1. Change the font styles in all browsers.
158
+ * 2. Remove the margin in Firefox and Safari.
159
+ */
160
+
161
+ button,
162
+ input,
163
+ optgroup,
164
+ select,
165
+ textarea {
166
+ font-family: inherit; /* 1 */
167
+ font-size: 100%; /* 1 */
168
+ line-height: 1.15; /* 1 */
169
+ margin: 0; /* 2 */
170
+ }
171
+
172
+ /**
173
+ * Show the overflow in IE.
174
+ * 1. Show the overflow in Edge.
175
+ */
176
+
177
+ button,
178
+ input {
179
+ /* 1 */
180
+ overflow: visible;
181
+ }
182
+
183
+ /**
184
+ * Remove the inheritance of text transform in Edge, Firefox, and IE.
185
+ * 1. Remove the inheritance of text transform in Firefox.
186
+ */
187
+
188
+ button,
189
+ select {
190
+ /* 1 */
191
+ text-transform: none;
192
+ }
193
+
194
+ /**
195
+ * Correct the inability to style clickable types in iOS and Safari.
196
+ */
197
+
198
+ button,
199
+ [type='button'],
200
+ [type='reset'],
201
+ [type='submit'] {
202
+ -webkit-appearance: button;
203
+ }
204
+
205
+ /**
206
+ * Remove the inner border and padding in Firefox.
207
+ */
208
+
209
+ button::-moz-focus-inner,
210
+ [type='button']::-moz-focus-inner,
211
+ [type='reset']::-moz-focus-inner,
212
+ [type='submit']::-moz-focus-inner {
213
+ border-style: none;
214
+ padding: 0;
215
+ }
216
+
217
+ /**
218
+ * Restore the focus styles unset by the previous rule.
219
+ */
220
+
221
+ button:-moz-focusring,
222
+ [type='button']:-moz-focusring,
223
+ [type='reset']:-moz-focusring,
224
+ [type='submit']:-moz-focusring {
225
+ outline: 1px dotted ButtonText;
226
+ }
227
+
228
+ /**
229
+ * Correct the padding in Firefox.
230
+ */
231
+
232
+ fieldset {
233
+ padding: 0.35em 0.75em 0.625em;
234
+ }
235
+
236
+ /**
237
+ * 1. Correct the text wrapping in Edge and IE.
238
+ * 2. Correct the color inheritance from `fieldset` elements in IE.
239
+ * 3. Remove the padding so developers are not caught out when they zero out
240
+ * `fieldset` elements in all browsers.
241
+ */
242
+
243
+ legend {
244
+ box-sizing: border-box; /* 1 */
245
+ color: inherit; /* 2 */
246
+ display: table; /* 1 */
247
+ max-width: 100%; /* 1 */
248
+ padding: 0; /* 3 */
249
+ white-space: normal; /* 1 */
250
+ }
251
+
252
+ /**
253
+ * Add the correct vertical alignment in Chrome, Firefox, and Opera.
254
+ */
255
+
256
+ progress {
257
+ vertical-align: baseline;
258
+ }
259
+
260
+ /**
261
+ * Remove the default vertical scrollbar in IE 10+.
262
+ */
263
+
264
+ textarea {
265
+ overflow: auto;
266
+ }
267
+
268
+ /**
269
+ * 1. Add the correct box sizing in IE 10.
270
+ * 2. Remove the padding in IE 10.
271
+ */
272
+
273
+ [type='checkbox'],
274
+ [type='radio'] {
275
+ box-sizing: border-box; /* 1 */
276
+ padding: 0; /* 2 */
277
+ }
278
+
279
+ /**
280
+ * Correct the cursor style of increment and decrement buttons in Chrome.
281
+ */
282
+
283
+ [type='number']::-webkit-inner-spin-button,
284
+ [type='number']::-webkit-outer-spin-button {
285
+ height: auto;
286
+ }
287
+
288
+ /**
289
+ * 1. Correct the odd appearance in Chrome and Safari.
290
+ * 2. Correct the outline style in Safari.
291
+ */
292
+
293
+ [type='search'] {
294
+ -webkit-appearance: textfield; /* 1 */
295
+ outline-offset: -2px; /* 2 */
296
+ }
297
+
298
+ /**
299
+ * Remove the inner padding in Chrome and Safari on macOS.
300
+ */
301
+
302
+ [type='search']::-webkit-search-decoration {
303
+ -webkit-appearance: none;
304
+ }
305
+
306
+ /**
307
+ * 1. Correct the inability to style clickable types in iOS and Safari.
308
+ * 2. Change font properties to `inherit` in Safari.
309
+ */
310
+
311
+ ::-webkit-file-upload-button {
312
+ -webkit-appearance: button; /* 1 */
313
+ font: inherit; /* 2 */
314
+ }
315
+
316
+ /* Interactive
317
+ ========================================================================== */
318
+
319
+ /*
320
+ * Add the correct display in Edge, IE 10+, and Firefox.
321
+ */
322
+
323
+ details {
324
+ display: block;
325
+ }
326
+
327
+ /*
328
+ * Add the correct display in all browsers.
329
+ */
330
+
331
+ summary {
332
+ display: list-item;
333
+ }
334
+
335
+ /* Misc
336
+ ========================================================================== */
337
+
338
+ /**
339
+ * Add the correct display in IE 10+.
340
+ */
341
+
342
+ template {
343
+ display: none;
344
+ }
345
+
346
+ /**
347
+ * Add the correct display in IE 10.
348
+ */
349
+
350
+ [hidden] {
351
+ display: none;
352
+ }
353
+ /* stylelint-enable */
@@ -44,6 +44,7 @@ $theme-names: map.keys($themes);
44
44
  @if $key == $root-theme {
45
45
  :root {
46
46
  @each $colorName, $colorVal in map.get($themes, $key) {
47
+ // stylelint-disable-next-line custom-property-pattern
47
48
  --theme-#{$colorName}: #{$colorVal};
48
49
  }
49
50
  }
@@ -52,6 +53,7 @@ $theme-names: map.keys($themes);
52
53
  @if $key == $print-theme {
53
54
  .theme-#{$key} {
54
55
  @each $colorName, $colorVal in map.get($themes, $key) {
56
+ // stylelint-disable-next-line custom-property-pattern
55
57
  --theme-#{$colorName}: #{$colorVal};
56
58
  }
57
59
  }
@@ -60,6 +62,7 @@ $theme-names: map.keys($themes);
60
62
  @media not print {
61
63
  .theme-#{$key} {
62
64
  @each $colorName, $colorVal in map-get($themes, $key) {
65
+ // stylelint-disable-next-line custom-property-pattern
63
66
  --theme-#{$colorName}: #{$colorVal};
64
67
  }
65
68
  }
@@ -67,6 +70,8 @@ $theme-names: map.keys($themes);
67
70
  }
68
71
  }
69
72
 
73
+ // End validation
74
+
70
75
  %theme-base-styles {
71
76
  outline-color: $text;
72
77
  background-color: $body-background;