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-08 18:44:35 +05:30
|
|
|
.button,
|
|
|
|
.black {
|
2016-01-04 11:32:13 +05:30
|
|
|
display: inline-block;
|
2016-01-08 18:44:35 +05:30
|
|
|
box-sizing: border-box;
|
2016-01-04 11:32:13 +05:30
|
|
|
height: 50px;
|
|
|
|
padding: 0 15px;
|
2016-01-08 18:44:35 +05:30
|
|
|
border: none;
|
2016-01-04 11:32:13 +05:30
|
|
|
|
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-08 18:44:35 +05:30
|
|
|
cursor: pointer;
|
2016-01-04 11:32:13 +05:30
|
|
|
|
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-09 15:21:29 +05:30
|
|
|
|
|
|
|
&:focus {
|
|
|
|
outline: none;
|
|
|
|
}
|
2016-01-04 11:32:13 +05:30
|
|
|
}
|
2016-01-04 18:28:23 +05:30
|
|
|
|
|
|
|
@include button-color('blue', $blue);
|
2016-01-08 18:44:35 +05:30
|
|
|
@include button-color('green', $green);
|