@microsoft/atlas-css 3.44.2 → 3.45.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.44.2",
3
+ "version": "3.45.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",
@@ -90,6 +90,10 @@
90
90
  border-radius: $border-radius-rounded !important;
91
91
  }
92
92
 
93
+ .border-radius-none {
94
+ border-radius: 0 !important;
95
+ }
96
+
93
97
  // Colors
94
98
 
95
99
  @each $name, $color-set in $colors {
@@ -0,0 +1,87 @@
1
+ $badge-padding-block: 0.2em !default;
2
+ $badge-padding-inline: 0.5em !default;
3
+
4
+ $badge-gap-size: 0.375em !default;
5
+
6
+ $badge-font-size: $font-size-8 !default;
7
+ $badge-font-size-sm: $font-size-9 !default;
8
+ $badge-font-size-lg: $font-size-7 !default;
9
+ $badge-font-weight: $weight-semibold !default;
10
+
11
+ $badge-icon-font-size: 0.875em !default;
12
+
13
+ $badge-border-width: $border-width !default;
14
+ $badge-border-radius: $border-radius-rounded !default;
15
+
16
+ .badge {
17
+ display: inline-flex;
18
+ align-items: center;
19
+ justify-content: center;
20
+ padding: $badge-padding-block $badge-padding-inline;
21
+ border: $badge-border-width solid $border-white-high-contrast;
22
+ border-radius: $badge-border-radius;
23
+ font-size: $badge-font-size;
24
+ font-weight: $badge-font-weight;
25
+ line-height: $line-height-normal;
26
+ white-space: nowrap;
27
+ gap: $badge-gap-size;
28
+
29
+ @each $name, $color-set in $colors {
30
+ $base: nth($color-set, $color-index-base);
31
+ $invert: nth($color-set, $color-index-invert);
32
+ $dark: nth($color-set, $color-index-dark);
33
+ $background: nth($color-set, $color-index-background);
34
+
35
+ @if $name == 'secondary' {
36
+ border-color: $dark;
37
+ background-color: $background;
38
+ color: $dark;
39
+ } @else {
40
+ &.badge-#{$name} {
41
+ border-color: $dark;
42
+ background-color: $background;
43
+ color: $dark;
44
+ }
45
+ }
46
+ }
47
+
48
+ &.badge-clear {
49
+ border-color: transparent;
50
+ background-color: transparent;
51
+ }
52
+
53
+ &.badge-filled {
54
+ @each $name, $color-set in $colors {
55
+ $base: nth($color-set, $color-index-base);
56
+ $invert: nth($color-set, $color-index-invert);
57
+ $dark: nth($color-set, $color-index-dark);
58
+ $background: nth($color-set, $color-index-background);
59
+
60
+ @if $name == 'secondary' {
61
+ border-color: $base;
62
+ background-color: $base;
63
+ color: $invert;
64
+ } @else {
65
+ &.badge-#{$name} {
66
+ border-color: $base;
67
+ background-color: $base;
68
+ color: $invert;
69
+ }
70
+ }
71
+ }
72
+ }
73
+
74
+ .icon {
75
+ font-size: $badge-icon-font-size;
76
+ }
77
+
78
+ // Sizes
79
+
80
+ &.badge-sm {
81
+ font-size: $badge-font-size-sm;
82
+ }
83
+
84
+ &.badge-lg {
85
+ font-size: $badge-font-size-lg;
86
+ }
87
+ }
@@ -1,6 +1,6 @@
1
1
  /* stylelint-disable selector-max-specificity, max-nesting-depth, selector-no-qualifying-type */
2
2
 
3
- $checkbox-border-radius: $border-radius-sm !default;
3
+ $checkbox-border-radius: $border-radius !default;
4
4
  $checkbox-border-width: 0.0625em !default;
5
5
  $checkbox-unchecked-border-color: $control-border !default;
6
6
  $checkbox-invalid-border-color: $danger !default;
@@ -1,3 +1,4 @@
1
+ @import './badge.scss';
1
2
  @import './banner.scss';
2
3
  @import './breadcrumbs.scss';
3
4
  @import './button.scss';
@@ -1,4 +1,4 @@
1
- $control-radius: $border-radius-sm !default;
1
+ $control-radius: $border-radius !default;
2
2
 
3
3
  $control-font-size: $font-size-7 !default;
4
4
  $control-sm-font-size: $font-size-8 !default;