This repository was archived by the owner on Jan 21, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upd Button component to use scss module and generate classNames
- Loading branch information
1 parent
f4bb4b6
commit 784c78b
Showing
2 changed files
with
59 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
.button { | ||
-webkit-appearance: none; | ||
border: 1px solid transparent; | ||
background: transparent; | ||
padding: 0; | ||
display: inline-block; | ||
border-radius: 2px; | ||
text-align: center; | ||
line-height: 1; | ||
text-decoration: none; | ||
/* setting some defaults for the type, but mostly should come from text components */ | ||
font: 400 16px/1 'Source Sans Pro', Arial, sans-serif; | ||
transition: background-color 0.1s, border-color 0.1s, color 0.1s; | ||
|
||
// @include button-text-states( | ||
// #2e9adf, | ||
// #275E8B, | ||
// #205177, | ||
// #69ADD8 | ||
// ); | ||
|
||
&:focus { | ||
outline: none; | ||
} | ||
|
||
// @include button-focus(scale-color(#2e9adf, $alpha: -70%)); | ||
} | ||
|
||
|
||
/* | ||
Width | ||
*/ | ||
|
||
.wide { | ||
display: block; | ||
width: 100%; | ||
} | ||
.wide-mobile { | ||
display: block; | ||
width: 100%; | ||
|
||
@media(min-width: 600px) { | ||
display: inline-block; | ||
width: auto; | ||
}; | ||
} | ||
|
||
|
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