-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0500bb3
commit db0314a
Showing
7 changed files
with
97 additions
and
41 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
$button-types: standard #faf3f3 #000, primary #654016 #fff, secondary #c77b21 #fff, success #23c24b #fff, info #5680ff #fff, link #4542d1 #fff, warning #e6bd44 #000, danger #e23030 #fff | ||
$sizes: (small: 12px, medium: 18px, big: 26px) | ||
$regular-style: standard #918d94 #fff none, primary #654016 #fff none, secondary #c77b21 #fff none, success #40C600 #fff none, info #008FD5 #fff none, link #034DA1 #fff none, warning #FFF200 #000 none, danger #ed1c24 #fff none | ||
$light-style: standard #faf3f3 #918d94 none, primary #e9d7c4 #654016 none, secondary #ffd9ac #c77b21 none, success #b6f5c6 #1ca53e none, info #cedaff #008FD5 none, link #4fb0ff #034DA1 none, warning #fdffa8 #99a034 none, danger #fdc5c5 #ed1c24 none | ||
$outline-style: standard #fff #918d94 #918d94, primary #fff #654016 #654016, secondary #fff #c77b21 #c77b21, success #fff #40C600 #40C600, info #fff #008FD5 #008FD5, link #fff #034DA1 #034DA1, warning #fff #e6bd44 #e6bd44, danger #fff #ed1c24 #ed1c24 | ||
$sizes: (small: 12px, medium: 18px, big: 26px) | ||
|
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,13 @@ | ||
@mixin button-style($style) | ||
@each $name, $background, $color, $border-color in $style | ||
&.#{$name} | ||
background-color: $background | ||
color: $color | ||
border: get-border($border-color) | ||
|
||
@function get-border($border-color) | ||
$border: none | ||
@if $border-color != none | ||
$border: 1px solid $border-color | ||
|
||
@return $border |
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,3 +1,3 @@ | ||
pub mod button; | ||
|
||
pub use self::button::{Button, ButtonType, Size, get_button_type, get_size}; | ||
pub use self::button::{Button, ButtonType, Size, ButtonStyle, get_button_type, get_size, get_button_style}; |
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