aboutsummaryrefslogtreecommitdiff
path: root/src/scss/components/_button.scss
diff options
context:
space:
mode:
Diffstat (limited to 'src/scss/components/_button.scss')
-rw-r--r--src/scss/components/_button.scss40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/scss/components/_button.scss b/src/scss/components/_button.scss
index e69de29..5bd66d9 100644
--- a/src/scss/components/_button.scss
+++ b/src/scss/components/_button.scss
@@ -0,0 +1,40 @@
1$button-padding : $baseline-x2 $baseline-x4;
2$button-bgcolor : $color-blue;
3$button-bgcolor-hover : darken($color-blue, 10%);
4$button-color : $color-white;
5$button-radius : 3px;
6
7$button-outline-padding : ( $baseline-x2 - 2 )( $baseline-x3 - 2 );
8$button-outline-bgcolor: transparent;
9$button-outline-color: $color-blue;
10$button-outline-color-hover: darken( $color-blue, 10% );
11
12.c-button {
13 padding: $button-padding;
14 display: inline-block;
15 font: inherit;
16 color: $button-color;
17 white-space: nowrap;
18 text-align: center;
19 vertical-align: middle;
20 cursor: pointer;
21 text-decoration: none;
22 border: none;
23 background-color: $button-bgcolor;
24 border-radius: $button-radius;
25}
26
27.c-button:hover { background-color: $button-bgcolor-hover;}
28
29.c-button--outline {
30 padding: $button-outline-padding;
31 color: $button-outline-color;
32 border: 1px solid $button-outline-color;
33 background-color: $button-outline-bgcolor;
34}
35
36.c-button--outline:hover {
37 color: #1893E0;
38 border-color: $button-outline-color-hover;
39 background-color: $button-outline-bgcolor;
40}