@microsoft/atlas-css 3.43.0 → 3.44.1

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.
Files changed (110) hide show
  1. package/README.md +42 -42
  2. package/dist/class-names.json +1 -1
  3. package/dist/index.css +1 -1
  4. package/dist/index.css.map +1 -1
  5. package/package.json +91 -91
  6. package/src/atomics/README.md +56 -56
  7. package/src/atomics/aspect-ratio.scss +13 -13
  8. package/src/atomics/background.scss +11 -11
  9. package/src/atomics/border.scss +113 -113
  10. package/src/atomics/colors.scss +204 -204
  11. package/src/atomics/display.scss +33 -33
  12. package/src/atomics/flex.scss +74 -71
  13. package/src/atomics/gap.scss +60 -60
  14. package/src/atomics/image.scss +15 -15
  15. package/src/atomics/index.scss +18 -18
  16. package/src/atomics/line-clamp.scss +15 -15
  17. package/src/atomics/list.scss +8 -3
  18. package/src/atomics/overflow.scss +9 -9
  19. package/src/atomics/position.scss +19 -19
  20. package/src/atomics/shadow.scss +19 -19
  21. package/src/atomics/spacing-auto.scss +52 -52
  22. package/src/atomics/spacing.scss +98 -98
  23. package/src/atomics/typography.scss +203 -203
  24. package/src/atomics/visually-hidden.scss +4 -4
  25. package/src/atomics/width.scss +44 -44
  26. package/src/components/README.md +69 -69
  27. package/src/components/banner.scss +69 -69
  28. package/src/components/breadcrumbs.scss +37 -37
  29. package/src/components/button-reset.scss +8 -8
  30. package/src/components/button.scss +241 -241
  31. package/src/components/buttons.scss +93 -93
  32. package/src/components/card.scss +252 -252
  33. package/src/components/form/checkbox.scss +141 -141
  34. package/src/components/form/form.scss +67 -67
  35. package/src/components/form/help.scss +18 -18
  36. package/src/components/form/index.scss +8 -8
  37. package/src/components/form/input.scss +143 -143
  38. package/src/components/form/label.scss +14 -14
  39. package/src/components/form/radio.scss +121 -121
  40. package/src/components/form/select.scss +116 -116
  41. package/src/components/form/textarea.scss +82 -82
  42. package/src/components/gradient-card.scss +14 -14
  43. package/src/components/gradient.scss +85 -85
  44. package/src/components/hero.scss +197 -197
  45. package/src/components/icon.scss +20 -20
  46. package/src/components/image.scss +44 -44
  47. package/src/components/index.scss +27 -27
  48. package/src/components/layout.scss +189 -189
  49. package/src/components/link-button.scss +34 -34
  50. package/src/components/markdown.scss +158 -158
  51. package/src/components/media.scss +22 -22
  52. package/src/components/message.scss +74 -74
  53. package/src/components/notification.scss +101 -101
  54. package/src/components/pagination.scss +183 -183
  55. package/src/components/persona.scss +60 -60
  56. package/src/components/popover.scss +42 -42
  57. package/src/components/scroll.scss +26 -26
  58. package/src/components/segmented-control.scss +128 -128
  59. package/src/components/site-header.scss +255 -255
  60. package/src/components/stretched-link.scss +8 -8
  61. package/src/components/table.scss +114 -114
  62. package/src/components/toggle.scss +86 -86
  63. package/src/core/animations.scss +55 -55
  64. package/src/core/bare-elements.scss +38 -38
  65. package/src/core/focus.scss +45 -45
  66. package/src/core/font-stack.scss +28 -28
  67. package/src/core/index.scss +7 -7
  68. package/src/core/minireset.scss +79 -79
  69. package/src/core/normalize.scss +353 -353
  70. package/src/core/themes.scss +91 -91
  71. package/src/index.scss +5 -5
  72. package/src/mixins/center.scss +11 -11
  73. package/src/mixins/code-block.scss +43 -43
  74. package/src/mixins/colors.scss +6 -6
  75. package/src/mixins/control.scss +43 -43
  76. package/src/mixins/dismiss.scss +22 -22
  77. package/src/mixins/focus.scss +23 -23
  78. package/src/mixins/font-size.scss +35 -35
  79. package/src/mixins/force-colors.scss +5 -5
  80. package/src/mixins/gradient.scss +11 -11
  81. package/src/mixins/index.scss +17 -17
  82. package/src/mixins/layout-gap.scss +7 -7
  83. package/src/mixins/line-clamp.scss +15 -15
  84. package/src/mixins/loader.scss +16 -16
  85. package/src/mixins/media-queries.scss +61 -61
  86. package/src/mixins/overlay.scss +12 -12
  87. package/src/mixins/transparency.scss +15 -15
  88. package/src/mixins/unselectable.scss +13 -13
  89. package/src/mixins/visually-hidden.scss +12 -12
  90. package/src/tokens/animation.scss +8 -8
  91. package/src/tokens/border.scss +12 -12
  92. package/src/tokens/breakpoints.scss +11 -11
  93. package/src/tokens/colors.scss +239 -239
  94. package/src/tokens/direction.scss +25 -25
  95. package/src/tokens/display.scss +5 -5
  96. package/src/tokens/focus.scss +9 -9
  97. package/src/tokens/font-stack.scss +10 -10
  98. package/src/tokens/index.scss +17 -17
  99. package/src/tokens/layout.scss +17 -17
  100. package/src/tokens/palette.scss +200 -200
  101. package/src/tokens/position.scss +5 -5
  102. package/src/tokens/schemes.scss +14 -14
  103. package/src/tokens/shadow.scss +11 -11
  104. package/src/tokens/spacing.scss +25 -25
  105. package/src/tokens/themes.scss +318 -318
  106. package/src/tokens/typography.scss +33 -33
  107. package/src/tokens/z-index.scss +20 -20
  108. package/tokens/README.md +34 -34
  109. package/tokens/index.js +246 -246
  110. package/tokens/types.d.ts +35 -35
@@ -1,141 +1,141 @@
1
- /* stylelint-disable selector-max-specificity, max-nesting-depth, selector-no-qualifying-type */
2
-
3
- $checkbox-border-radius: $border-radius-sm !default;
4
- $checkbox-border-width: 0.0625em !default;
5
- $checkbox-unchecked-border-color: $control-border !default;
6
- $checkbox-invalid-border-color: $danger !default;
7
- $checkbox-color: $primary !default;
8
- $checkbox-check-color: $primary-invert !default;
9
- $checkbox-check-hover-color: $text-subtle !default;
10
- $checkbox-size: 1.25em !default;
11
- $checkbox-check-height: 0.75em !default;
12
- $checkbox-check-top: 0.125em !default;
13
- $checkbox-check-width: 0.3125em !default;
14
- $checkbox-check-thickness: 0.0625em !default;
15
- $checkbox-timing-function: $input-timing-function !default;
16
- $checkbox-duration: $input-transition-duration !default;
17
- $checkbox-spacing: $spacer-3 !default;
18
-
19
- @mixin checkmark {
20
- display: block;
21
- position: absolute;
22
- inset-block-start: $checkbox-check-top;
23
- width: $checkbox-check-width;
24
- height: $checkbox-check-height;
25
- transform: rotate(45deg);
26
- border: solid $checkbox-check-hover-color;
27
- border-width: 0 $checkbox-check-thickness $checkbox-check-thickness 0;
28
- content: '';
29
- }
30
-
31
- .checkbox {
32
- display: flex;
33
- position: relative;
34
- align-items: center;
35
- line-height: 1.25;
36
- cursor: pointer;
37
-
38
- &:not(:last-child) {
39
- margin-block-end: $checkbox-spacing;
40
- }
41
-
42
- .checkbox-check {
43
- display: flex;
44
- position: relative;
45
- flex-shrink: 0;
46
- align-items: center;
47
- justify-content: center;
48
- width: $checkbox-size;
49
- height: $checkbox-size;
50
- transition-duration: $checkbox-duration;
51
- transition-property: background, border, border-color;
52
- transition-timing-function: $checkbox-timing-function;
53
- border: $checkbox-border-width solid $checkbox-unchecked-border-color;
54
- border-radius: $checkbox-border-radius;
55
-
56
- &:not(:last-child) {
57
- margin-inline-end: $checkbox-spacing;
58
- }
59
-
60
- &::before {
61
- content: '\0020';
62
- }
63
- }
64
-
65
- &.checkbox-sm {
66
- @include control-sm;
67
- }
68
-
69
- &.checkbox-lg {
70
- @include control-lg;
71
- }
72
-
73
- input[type='checkbox'] {
74
- @include visually-hidden();
75
-
76
- &:checked + .checkbox-check {
77
- border-color: $checkbox-color;
78
- background-color: $checkbox-color;
79
-
80
- &::before {
81
- @include checkmark;
82
-
83
- border-color: $checkbox-check-color;
84
- }
85
- }
86
-
87
- &[disabled] {
88
- + .checkbox-check {
89
- border-color: $checkbox-unchecked-border-color;
90
- opacity: 0.6;
91
- }
92
-
93
- + .checkbox-check,
94
- ~ .checkbox-text {
95
- cursor: not-allowed;
96
- }
97
- }
98
-
99
- @include focus-visible {
100
- + .checkbox-check {
101
- @extend %focus;
102
- }
103
- }
104
- }
105
-
106
- &.checkbox-muted {
107
- input[type='checkbox'] {
108
- &:checked + .checkbox-check {
109
- border-color: $text-subtle;
110
- background-color: $text-subtle;
111
-
112
- &::before {
113
- border-color: $text-invert;
114
- }
115
- }
116
- }
117
- }
118
-
119
- .checkbox-check.is-checked {
120
- border-color: $checkbox-color;
121
- background-color: $checkbox-color;
122
-
123
- &::before {
124
- @include checkmark;
125
-
126
- border-color: $checkbox-check-color;
127
- }
128
- }
129
-
130
- &.is-invalid {
131
- input[type='checkbox']:not(:checked) + .checkbox-check {
132
- border-color: $checkbox-invalid-border-color;
133
- }
134
- }
135
-
136
- &:hover {
137
- input[type='checkbox']:not(:checked):not([disabled]) + .checkbox-check::before {
138
- @include checkmark;
139
- }
140
- }
141
- }
1
+ /* stylelint-disable selector-max-specificity, max-nesting-depth, selector-no-qualifying-type */
2
+
3
+ $checkbox-border-radius: $border-radius-sm !default;
4
+ $checkbox-border-width: 0.0625em !default;
5
+ $checkbox-unchecked-border-color: $control-border !default;
6
+ $checkbox-invalid-border-color: $danger !default;
7
+ $checkbox-color: $primary !default;
8
+ $checkbox-check-color: $primary-invert !default;
9
+ $checkbox-check-hover-color: $text-subtle !default;
10
+ $checkbox-size: 1.25em !default;
11
+ $checkbox-check-height: 0.75em !default;
12
+ $checkbox-check-top: 0.125em !default;
13
+ $checkbox-check-width: 0.3125em !default;
14
+ $checkbox-check-thickness: 0.0625em !default;
15
+ $checkbox-timing-function: $input-timing-function !default;
16
+ $checkbox-duration: $input-transition-duration !default;
17
+ $checkbox-spacing: $spacer-3 !default;
18
+
19
+ @mixin checkmark {
20
+ display: block;
21
+ position: absolute;
22
+ inset-block-start: $checkbox-check-top;
23
+ width: $checkbox-check-width;
24
+ height: $checkbox-check-height;
25
+ transform: rotate(45deg);
26
+ border: solid $checkbox-check-hover-color;
27
+ border-width: 0 $checkbox-check-thickness $checkbox-check-thickness 0;
28
+ content: '';
29
+ }
30
+
31
+ .checkbox {
32
+ display: flex;
33
+ position: relative;
34
+ align-items: center;
35
+ line-height: 1.25;
36
+ cursor: pointer;
37
+
38
+ &:not(:last-child) {
39
+ margin-block-end: $checkbox-spacing;
40
+ }
41
+
42
+ .checkbox-check {
43
+ display: flex;
44
+ position: relative;
45
+ flex-shrink: 0;
46
+ align-items: center;
47
+ justify-content: center;
48
+ width: $checkbox-size;
49
+ height: $checkbox-size;
50
+ transition-duration: $checkbox-duration;
51
+ transition-property: background, border, border-color;
52
+ transition-timing-function: $checkbox-timing-function;
53
+ border: $checkbox-border-width solid $checkbox-unchecked-border-color;
54
+ border-radius: $checkbox-border-radius;
55
+
56
+ &:not(:last-child) {
57
+ margin-inline-end: $checkbox-spacing;
58
+ }
59
+
60
+ &::before {
61
+ content: '\0020';
62
+ }
63
+ }
64
+
65
+ &.checkbox-sm {
66
+ @include control-sm;
67
+ }
68
+
69
+ &.checkbox-lg {
70
+ @include control-lg;
71
+ }
72
+
73
+ input[type='checkbox'] {
74
+ @include visually-hidden();
75
+
76
+ &:checked + .checkbox-check {
77
+ border-color: $checkbox-color;
78
+ background-color: $checkbox-color;
79
+
80
+ &::before {
81
+ @include checkmark;
82
+
83
+ border-color: $checkbox-check-color;
84
+ }
85
+ }
86
+
87
+ &[disabled] {
88
+ + .checkbox-check {
89
+ border-color: $checkbox-unchecked-border-color;
90
+ opacity: 0.6;
91
+ }
92
+
93
+ + .checkbox-check,
94
+ ~ .checkbox-text {
95
+ cursor: not-allowed;
96
+ }
97
+ }
98
+
99
+ @include focus-visible {
100
+ + .checkbox-check {
101
+ @extend %focus;
102
+ }
103
+ }
104
+ }
105
+
106
+ &.checkbox-muted {
107
+ input[type='checkbox'] {
108
+ &:checked + .checkbox-check {
109
+ border-color: $text-subtle;
110
+ background-color: $text-subtle;
111
+
112
+ &::before {
113
+ border-color: $text-invert;
114
+ }
115
+ }
116
+ }
117
+ }
118
+
119
+ .checkbox-check.is-checked {
120
+ border-color: $checkbox-color;
121
+ background-color: $checkbox-color;
122
+
123
+ &::before {
124
+ @include checkmark;
125
+
126
+ border-color: $checkbox-check-color;
127
+ }
128
+ }
129
+
130
+ &.is-invalid {
131
+ input[type='checkbox']:not(:checked) + .checkbox-check {
132
+ border-color: $checkbox-invalid-border-color;
133
+ }
134
+ }
135
+
136
+ &:hover {
137
+ input[type='checkbox']:not(:checked):not([disabled]) + .checkbox-check::before {
138
+ @include checkmark;
139
+ }
140
+ }
141
+ }
@@ -1,67 +1,67 @@
1
- /* stylelint-disable max-nesting-depth, selector-max-specificity */
2
-
3
- $field-line-height: 1.5 !default;
4
- $field-error-color: $danger !default;
5
-
6
- .field {
7
- &:not(:last-child) {
8
- margin-block-end: $spacer-4;
9
- }
10
-
11
- .field-description {
12
- margin-block-end: $spacer-3;
13
- font-size: $font-size-8;
14
- }
15
-
16
- .field-label {
17
- @include label;
18
-
19
- margin-block-end: $spacer-3;
20
-
21
- &.field-label-inline {
22
- display: inline-flex;
23
- margin-block-end: unset;
24
- align-self: flex-end;
25
- }
26
-
27
- @include tablet {
28
- flex: 1 0 0;
29
- }
30
-
31
- &.field-label-sm {
32
- font-size: $font-size-8;
33
- }
34
-
35
- &.field-label-lg {
36
- font-size: $font-size-6;
37
- }
38
- }
39
-
40
- .field-body {
41
- > * {
42
- scroll-margin-top: 3rem;
43
- }
44
-
45
- &:not(:first-child) {
46
- margin-block-start: $spacer-3;
47
-
48
- &.field-body-inline {
49
- display: inline-flex;
50
- vertical-align: text-bottom;
51
- }
52
- }
53
- }
54
-
55
- .field-error {
56
- color: $field-error-color;
57
- font-size: $font-size-8;
58
- line-height: $field-line-height;
59
- }
60
- }
61
-
62
- .required-indicator::after,
63
- ::part(required-indicator)::after {
64
- color: $danger;
65
- content: '*';
66
- vertical-align: top;
67
- }
1
+ /* stylelint-disable max-nesting-depth, selector-max-specificity */
2
+
3
+ $field-line-height: 1.5 !default;
4
+ $field-error-color: $danger !default;
5
+
6
+ .field {
7
+ &:not(:last-child) {
8
+ margin-block-end: $spacer-4;
9
+ }
10
+
11
+ .field-description {
12
+ margin-block-end: $spacer-3;
13
+ font-size: $font-size-8;
14
+ }
15
+
16
+ .field-label {
17
+ @include label;
18
+
19
+ margin-block-end: $spacer-3;
20
+
21
+ &.field-label-inline {
22
+ display: inline-flex;
23
+ margin-block-end: unset;
24
+ align-self: flex-end;
25
+ }
26
+
27
+ @include tablet {
28
+ flex: 1 0 0;
29
+ }
30
+
31
+ &.field-label-sm {
32
+ font-size: $font-size-8;
33
+ }
34
+
35
+ &.field-label-lg {
36
+ font-size: $font-size-6;
37
+ }
38
+ }
39
+
40
+ .field-body {
41
+ > * {
42
+ scroll-margin-top: 3rem;
43
+ }
44
+
45
+ &:not(:first-child) {
46
+ margin-block-start: $spacer-3;
47
+
48
+ &.field-body-inline {
49
+ display: inline-flex;
50
+ vertical-align: text-bottom;
51
+ }
52
+ }
53
+ }
54
+
55
+ .field-error {
56
+ color: $field-error-color;
57
+ font-size: $font-size-8;
58
+ line-height: $field-line-height;
59
+ }
60
+ }
61
+
62
+ .required-indicator::after,
63
+ ::part(required-indicator)::after {
64
+ color: $danger;
65
+ content: '*';
66
+ vertical-align: top;
67
+ }
@@ -1,18 +1,18 @@
1
- $help-color: $text !default;
2
- $help-danger-color: $danger !default;
3
- $help-success-color: $success !default;
4
- $help-font-size: $font-size-8 !default;
5
-
6
- .help {
7
- display: block;
8
- color: $help-color;
9
- font-size: $help-font-size;
10
-
11
- &.help-danger {
12
- color: $help-danger-color;
13
- }
14
-
15
- &.help-success {
16
- color: $help-success-color;
17
- }
18
- }
1
+ $help-color: $text !default;
2
+ $help-danger-color: $danger !default;
3
+ $help-success-color: $success !default;
4
+ $help-font-size: $font-size-8 !default;
5
+
6
+ .help {
7
+ display: block;
8
+ color: $help-color;
9
+ font-size: $help-font-size;
10
+
11
+ &.help-danger {
12
+ color: $help-danger-color;
13
+ }
14
+
15
+ &.help-success {
16
+ color: $help-success-color;
17
+ }
18
+ }
@@ -1,8 +1,8 @@
1
- @import './label.scss';
2
- @import './help.scss';
3
- @import './checkbox.scss';
4
- @import './input.scss';
5
- @import './textarea.scss';
6
- @import './select.scss';
7
- @import './radio.scss';
8
- @import './form.scss';
1
+ @import './label.scss';
2
+ @import './help.scss';
3
+ @import './checkbox.scss';
4
+ @import './input.scss';
5
+ @import './textarea.scss';
6
+ @import './select.scss';
7
+ @import './radio.scss';
8
+ @import './form.scss';