1
1
mirror of https://github.com/primer/css.git synced 2024-12-28 08:31:58 +03:00
This commit is contained in:
Tobias Ahlin Bjerrome 2021-04-19 17:08:56 +02:00
parent 43e22eeb9b
commit 802321a1ca
3 changed files with 14 additions and 10 deletions

View File

@ -3,7 +3,9 @@
z-index: 1;
display: inline-block;
appearance: none !important;
// stylelint-disable-next-line primer/spacing
padding: rem(($spacer-3) * 0.9) rem($spacer-4) rem(($spacer-3) * 1.1);
// stylelint-disable-next-line primer/typography
font-size: 1rem;
font-weight: $font-weight-bold;
line-height: 1;
@ -11,6 +13,7 @@
vertical-align: middle;
user-select: none;
border: 0;
// stylelint-disable-next-line primer/borders
border-radius: rem(6px);
@include btn-solid-mktg(
@ -30,6 +33,7 @@
left: 0;
z-index: -1;
content: "";
// stylelint-disable-next-line primer/borders
border-radius: rem(6px);
opacity: 0;
transition: opacity 0.4s;

View File

@ -26,9 +26,9 @@
&:disabled,
&.disabled,
&[aria-disabled="true"] {
opacity: 0.5;
cursor: default;
pointer-events: none;
cursor: default;
opacity: 0.5;
}
}
@ -65,7 +65,7 @@
}
}
$browser-context: 16;
$browser-context: 16 !default;
@function rem($pixels, $context: $browser-context) {
@if (unitless($pixels)) {

View File

@ -7,13 +7,13 @@ $h000-size: 64px !default;
$h000-size-mobile: 48px !default;
// Colors
$primary-blue-mktg: #4969ed;
$secondary-blue-mktg: #3355e0;
$primary-green-mktg: #2ea44f;
$secondary-green-mktg: #22863a;
$primary-purple-mktg: #6f57ff;
$secondary-purple-mktg: #614eda;
$static-color-white: #fff;
$primary-blue-mktg: #4969ed !default;
$secondary-blue-mktg: #3355e0 !default;
$primary-green-mktg: #2ea44f !default;
$secondary-green-mktg: #22863a !default;
$primary-purple-mktg: #6f57ff !default;
$secondary-purple-mktg: #614eda !default;
$static-color-white: #fff !default;
// Animations
$transition-time: 0.4s !default;