mirror of
https://github.com/primer/css.git
synced 2024-12-01 04:21:12 +03:00
Merge pull request #716 from primer/btn_mktg_fix
Accessibility fixes for marketing buttons
This commit is contained in:
commit
767a760221
10405
package-lock.json
generated
10405
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -8,8 +8,8 @@
|
||||
vertical-align: middle;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
background-color: $blue-450;
|
||||
border: 1px solid $blue-450;
|
||||
background-color: $blue-mktg;
|
||||
border: 1px solid $blue-mktg;
|
||||
border-radius: $border-radius;
|
||||
transition: $transition-time / 2;
|
||||
appearance: none; // Corrects inability to style clickable `input` types in iOS.
|
||||
@ -34,8 +34,8 @@
|
||||
}
|
||||
|
||||
.btn-primary-mktg {
|
||||
background-color: $green-450;
|
||||
border-color: $green-450;
|
||||
background-color: $green-mktg;
|
||||
border-color: $green-mktg;
|
||||
|
||||
&:hover {
|
||||
background-color: $green-500;
|
||||
@ -53,15 +53,15 @@
|
||||
}
|
||||
|
||||
.btn-outline-mktg {
|
||||
color: $blue-450;
|
||||
color: $blue-mktg;
|
||||
background-color: rgba($white, 0);
|
||||
border-color: rgba($blue-450, 0.5);
|
||||
border-color: rgba($blue-mktg, 0.5);
|
||||
|
||||
&:hover {
|
||||
color: $blue-500;
|
||||
text-decoration: none;
|
||||
background-color: rgba($white, 0);
|
||||
border-color: rgba($blue-450, 1);
|
||||
border-color: rgba($blue-mktg, 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -22,8 +22,8 @@ $h000-size: 64px !default;
|
||||
$h000-size-mobile: 48px !default;
|
||||
|
||||
// Colors
|
||||
$blue-450: mix($blue-500, $blue-400, 50%);
|
||||
$green-450: mix($green-500, $green-400, 50%);
|
||||
$green-mktg: mix($green-500, $green-400, 50%);
|
||||
$blue-mktg: mix($blue-400, $blue-500, 42%);
|
||||
|
||||
// Animations
|
||||
$transition-time: 0.4s;
|
||||
|
Loading…
Reference in New Issue
Block a user