|
1 | 1 | // Core border utilities |
2 | | -// stylelint-disable block-opening-brace-space-before, primer/borders |
| 2 | +// stylelint-disable block-opening-brace-space-before |
3 | 3 |
|
4 | 4 | /* Add a gray border to the left and right */ |
5 | 5 | .border-x { |
6 | | - border-right: $border-rem !important; |
7 | | - border-left: $border-rem !important; |
| 6 | + border-right: $border !important; |
| 7 | + border-left: $border !important; |
8 | 8 | } |
9 | 9 |
|
10 | 10 | /* Add a gray border to the top and bottom */ |
11 | 11 | .border-y { |
12 | | - border-top: $border-rem !important; |
13 | | - border-bottom: $border-rem !important; |
| 12 | + border-top: $border !important; |
| 13 | + border-bottom: $border !important; |
14 | 14 | } |
15 | 15 |
|
16 | 16 | /* Responsive gray borders */ |
17 | 17 | @each $breakpoint, $variant in $responsive-variants { |
18 | 18 | @include breakpoint($breakpoint) { |
19 | 19 | /* Add a gray border on all sides at/above this breakpoint */ |
20 | | - .border#{$variant} { border: $border-rem !important; } |
| 20 | + .border#{$variant} { border: $border !important; } |
21 | 21 | .border#{$variant}-0 { border: 0 !important; } |
22 | 22 |
|
23 | | - .border#{$variant}-top { border-top: $border-rem !important; } |
24 | | - .border#{$variant}-right { border-right: $border-rem !important; } |
25 | | - .border#{$variant}-bottom { border-bottom: $border-rem !important; } |
26 | | - .border#{$variant}-left { border-left: $border-rem !important; } |
| 23 | + .border#{$variant}-top { border-top: $border !important; } |
| 24 | + .border#{$variant}-right { border-right: $border !important; } |
| 25 | + .border#{$variant}-bottom { border-bottom: $border !important; } |
| 26 | + .border#{$variant}-left { border-left: $border !important; } |
27 | 27 |
|
28 | 28 | .border#{$variant}-top-0 { border-top: 0 !important; } |
29 | 29 | .border#{$variant}-right-0 { border-right: 0 !important; } |
30 | 30 | .border#{$variant}-bottom-0 { border-bottom: 0 !important; } |
31 | 31 | .border#{$variant}-left-0 { border-left: 0 !important; } |
32 | 32 |
|
33 | 33 | // Rounded corners |
34 | | - .rounded#{$variant} { border-radius: var(--primer-borderRadius-medium, $border-radius-2) !important; } |
| 34 | + .rounded#{$variant} { border-radius: $border-radius !important; } |
35 | 35 | .rounded#{$variant}-0 { border-radius: 0 !important; } |
36 | | - .rounded#{$variant}-1 { border-radius: var(--primer-borderRadius-small, $border-radius-1) !important; } |
37 | | - .rounded#{$variant}-2 { border-radius: var(--primer-borderRadius-medium, $border-radius-2) !important; } |
38 | | - .rounded#{$variant}-3 { border-radius: var(--primer-borderRadius-large, $border-radius-3) !important; } |
| 36 | + .rounded#{$variant}-1 { border-radius: $border-radius-1 !important; } |
| 37 | + .rounded#{$variant}-2 { border-radius: $border-radius-2 !important; } |
| 38 | + .rounded#{$variant}-3 { border-radius: $border-radius-3 !important; } |
39 | 39 |
|
40 | 40 | @each $edge, $corners in $edges { |
41 | 41 | .rounded#{$variant}-#{$edge}-0 { |
|
46 | 46 |
|
47 | 47 | .rounded#{$variant}-#{$edge}-1 { |
48 | 48 | @each $corner in $corners { |
49 | | - border-#{$corner}-radius: var(--primer-borderRadius-small, $border-radius-1) !important; |
| 49 | + border-#{$corner}-radius: $border-radius-1 !important; |
50 | 50 | } |
51 | 51 | } |
52 | 52 |
|
53 | 53 | .rounded#{$variant}-#{$edge}-2 { |
54 | 54 | @each $corner in $corners { |
55 | | - border-#{$corner}-radius: var(--primer-borderRadius-medium, $border-radius-2) !important; |
| 55 | + border-#{$corner}-radius: $border-radius-2 !important; |
56 | 56 | } |
57 | 57 | } |
58 | 58 |
|
59 | 59 | .rounded#{$variant}-#{$edge}-3 { |
60 | 60 | @each $corner in $corners { |
61 | | - border-#{$corner}-radius: var(--primer-borderRadius-medium, $border-radius-3) !important; |
| 61 | + border-#{$corner}-radius: $border-radius-3 !important; |
62 | 62 | } |
63 | 63 | } |
64 | 64 | } |
65 | 65 | } |
66 | 66 | } |
67 | 67 |
|
68 | 68 | /* Add a 50% border-radius to make something into a circle */ |
69 | | -.circle { border-radius: var(--primer-borderRadius-full, 50%) !important; } |
| 69 | +.circle { border-radius: 50% !important; } |
70 | 70 |
|
71 | 71 | /* Change the border style to dashed, in conjunction with another utility */ |
72 | 72 | .border-dashed { |
| 73 | + // stylelint-disable-next-line primer/borders |
73 | 74 | border-style: dashed !important; |
74 | 75 | } |
0 commit comments