2016-01-04 11:32:13 +05:30
|
|
|
@import './colors.scss';
|
|
|
|
@import './fonts.scss';
|
|
|
|
|
2016-01-04 18:28:23 +05:30
|
|
|
@mixin button-color($colorName, $backgroundColor, $textColor : $defaultButtonTextColor) {
|
|
|
|
.#{$colorName} {
|
|
|
|
composes: button;
|
|
|
|
|
|
|
|
@if ($textColor != $defaultButtonTextColor) {
|
|
|
|
color: $textColor;
|
|
|
|
}
|
|
|
|
|
|
|
|
background-color: $backgroundColor;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: lighter($backgroundColor);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
background-color: darker($backgroundColor);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-01-04 11:32:13 +05:30
|
|
|
.button {
|
|
|
|
display: inline-block;
|
|
|
|
height: 50px;
|
|
|
|
padding: 0 15px;
|
|
|
|
|
2016-01-04 18:28:23 +05:30
|
|
|
font-family: $font-family-title;
|
|
|
|
color: $defaultButtonTextColor;
|
2016-01-04 11:32:13 +05:30
|
|
|
font-size: 18px;
|
|
|
|
line-height: 50px;
|
|
|
|
text-decoration: none;
|
|
|
|
|
2016-01-04 18:28:23 +05:30
|
|
|
transition: background-color 0.25s;
|
2016-01-04 11:32:13 +05:30
|
|
|
|
2016-01-04 18:28:23 +05:30
|
|
|
background-color: $black;
|
2016-01-04 11:32:13 +05:30
|
|
|
|
|
|
|
&:hover {
|
2016-01-04 18:28:23 +05:30
|
|
|
background-color: $black-button-light;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
background-color: $black-button-dark;
|
2016-01-04 11:32:13 +05:30
|
|
|
}
|
|
|
|
}
|
2016-01-04 18:28:23 +05:30
|
|
|
|
|
|
|
@include button-color('blue', $blue);
|