Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change project SASS variables to native CSS
- Removed unused `base-z-index` variable - Removed unused `medium-gray` variable
- Loading branch information
Showing
8 changed files
with
106 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,31 @@ | ||
$_button-background-color: $action-color; | ||
$_button-background-color-hover: shade($action-color, 20%); | ||
|
||
#{$all-buttons} { | ||
appearance: none; | ||
background-color: $_button-background-color; | ||
background-color: var(--action-color); | ||
border: 0; | ||
border-radius: $base-border-radius; | ||
color: contrast-switch($_button-background-color); | ||
border-radius: var(--base-border-radius); | ||
color: inherit; | ||
cursor: pointer; | ||
display: inline-block; | ||
font-family: $base-font-family; | ||
font-family: var(--base-font-family); | ||
font-size: 16px; | ||
-webkit-font-smoothing: antialiased; | ||
font-weight: 600; | ||
line-height: 1; | ||
padding: $small-spacing $base-spacing; | ||
padding: var(--small-spacing) var(--base-spacing); | ||
text-align: center; | ||
text-decoration: none; | ||
transition: background-color $base-duration $base-timing; | ||
transition: background-color var(--base-duration) var(--base-timing); | ||
user-select: none; | ||
vertical-align: middle; | ||
white-space: nowrap; | ||
|
||
&:hover { | ||
background-color: $_button-background-color-hover; | ||
color: contrast-switch($_button-background-color-hover); | ||
} | ||
|
||
&:focus { | ||
outline: $focus-outline; | ||
outline-offset: $focus-outline-offset; | ||
outline: var(--focus-outline); | ||
outline-offset: var(--focus-outline-offset); | ||
} | ||
|
||
&:disabled { | ||
cursor: not-allowed; | ||
opacity: 0.5; | ||
|
||
&:hover { | ||
background-color: $_button-background-color; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,40 @@ | ||
// Typography | ||
$base-font-family: $font-stack-system; | ||
$heading-font-family: $base-font-family; | ||
|
||
// Line height | ||
$base-line-height: 1.5; | ||
$heading-line-height: 1.2; | ||
|
||
// Other Sizes | ||
$base-border-radius: 3px; | ||
$base-spacing: 1.5em; | ||
$small-spacing: $base-spacing / 2; | ||
$base-z-index: 0; | ||
|
||
// Colors | ||
$blue: #1565c0; | ||
$dark-gray: #333; | ||
$medium-gray: #999; | ||
$light-gray: #ddd; | ||
|
||
// Font Colors | ||
$base-font-color: $dark-gray; | ||
$action-color: $blue; | ||
|
||
// Border | ||
$base-border-color: $light-gray; | ||
$base-border: 1px solid $base-border-color; | ||
|
||
// Background Colors | ||
$viewport-background-color: #fff; | ||
|
||
// Focus | ||
$focus-outline-color: transparentize($action-color, 0.4); | ||
$focus-outline-width: 3px; | ||
$focus-outline: $focus-outline-width solid $focus-outline-color; | ||
$focus-outline-offset: 2px; | ||
|
||
// Animations | ||
$base-duration: 150ms; | ||
$base-timing: ease; | ||
:root { | ||
// Typography | ||
--base-font-family: #{$font-stack-system}; | ||
--heading-font-family: var(--base-font-family); | ||
|
||
// Line height | ||
--base-line-height: 1.5; | ||
--heading-line-height: 1.2; | ||
|
||
// Other Sizes | ||
--base-border-radius: 3px; | ||
--base-spacing: 1.5rem; | ||
--small-spacing: 0.75rem; | ||
|
||
// Colors | ||
--blue: #1565c0; | ||
--dark-gray: #333; | ||
--light-gray: #ddd; | ||
|
||
// Font Colors | ||
--base-font-color: var(--dark-gray); | ||
--action-color: var(--blue); | ||
|
||
// Border | ||
--base-border-color: var(--light-gray); | ||
--base-border: 1px solid var(--base-border-color); | ||
|
||
// Background Colors | ||
--viewport-background-color: #fff; | ||
|
||
// Focus | ||
--focus-outline-color: var(--action-color); | ||
--focus-outline-width: 3px; | ||
--focus-outline: var(--focus-outline-width) solid var(--focus-outline-color); | ||
--focus-outline-offset: 2px; | ||
|
||
// Animations | ||
--base-duration: 150ms; | ||
--base-timing: ease; | ||
} |