2016-01-04 11:32:13 +05:30
|
|
|
@import './colors.scss';
|
|
|
|
@import './fonts.scss';
|
|
|
|
|
2017-01-28 21:55:43 +05:30
|
|
|
@mixin button-theme($themeName, $backgroundColor) {
|
2019-11-27 14:33:32 +05:30
|
|
|
.#{$themeName} {
|
|
|
|
composes: button;
|
2016-01-04 18:28:23 +05:30
|
|
|
|
2019-11-27 14:33:32 +05:30
|
|
|
background-color: $backgroundColor;
|
2016-01-04 18:28:23 +05:30
|
|
|
|
2019-11-27 14:33:32 +05:30
|
|
|
&:hover {
|
|
|
|
background-color: lighter($backgroundColor);
|
|
|
|
}
|
2016-01-04 18:28:23 +05:30
|
|
|
|
2019-11-27 14:33:32 +05:30
|
|
|
&:active {
|
|
|
|
background-color: darker($backgroundColor);
|
2016-01-04 18:28:23 +05:30
|
|
|
}
|
2019-11-27 14:33:32 +05:30
|
|
|
}
|
2016-01-04 18:28:23 +05:30
|
|
|
}
|
|
|
|
|
2016-01-09 17:29:42 +05:30
|
|
|
.button {
|
2019-11-27 14:33:32 +05:30
|
|
|
display: inline-block;
|
|
|
|
box-sizing: border-box;
|
|
|
|
height: 50px;
|
|
|
|
padding: 0 15px;
|
|
|
|
border: none;
|
|
|
|
border-radius: 0;
|
|
|
|
|
|
|
|
font-family: $font-family-title;
|
|
|
|
color: $defaultButtonTextColor;
|
|
|
|
font-size: 18px;
|
|
|
|
line-height: 50px;
|
|
|
|
text-decoration: none;
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
transition: 0.25s;
|
|
|
|
|
|
|
|
&:hover {
|
2017-01-28 21:55:43 +05:30
|
|
|
color: $defaultButtonTextColor;
|
2019-11-27 14:33:32 +05:30
|
|
|
}
|
2017-02-23 22:53:16 +05:30
|
|
|
|
2019-11-27 14:33:32 +05:30
|
|
|
&:focus {
|
|
|
|
outline: none;
|
|
|
|
}
|
2016-01-09 17:29:42 +05:30
|
|
|
}
|
|
|
|
|
2016-03-04 02:56:22 +05:30
|
|
|
.smallButton {
|
2019-11-27 14:33:32 +05:30
|
|
|
composes: button;
|
2016-03-04 02:56:22 +05:30
|
|
|
|
2019-11-27 14:33:32 +05:30
|
|
|
height: 30px;
|
|
|
|
padding: 0 15px;
|
|
|
|
font-size: 14px;
|
|
|
|
line-height: 30px;
|
2016-03-04 02:56:22 +05:30
|
|
|
}
|
|
|
|
|
2016-11-08 11:37:04 +05:30
|
|
|
.white {
|
2019-11-27 14:33:32 +05:30
|
|
|
composes: button;
|
2016-01-09 17:29:42 +05:30
|
|
|
|
2019-11-27 14:33:32 +05:30
|
|
|
background-color: #fff;
|
|
|
|
color: #444;
|
2016-01-04 11:32:13 +05:30
|
|
|
|
2019-11-27 14:33:32 +05:30
|
|
|
&:hover {
|
|
|
|
color: #262626;
|
|
|
|
background-color: $whiteButtonLight;
|
|
|
|
}
|
2016-01-04 18:28:23 +05:30
|
|
|
|
2019-11-27 14:33:32 +05:30
|
|
|
&:active {
|
|
|
|
background-color: $whiteButtonDark;
|
|
|
|
}
|
2016-01-04 11:32:13 +05:30
|
|
|
}
|
2016-01-04 18:28:23 +05:30
|
|
|
|
2016-11-06 19:49:52 +05:30
|
|
|
@include button-theme('black', $black);
|
2016-01-09 19:45:03 +05:30
|
|
|
@include button-theme('blue', $blue);
|
|
|
|
@include button-theme('green', $green);
|
2016-02-13 20:58:47 +05:30
|
|
|
@include button-theme('orange', $orange);
|
2016-02-26 04:12:20 +05:30
|
|
|
@include button-theme('darkBlue', $dark_blue);
|
2016-02-28 02:56:13 +05:30
|
|
|
@include button-theme('lightViolet', $light_violet);
|
2016-05-02 23:02:03 +05:30
|
|
|
@include button-theme('violet', $violet);
|
2018-03-26 00:46:45 +05:30
|
|
|
@include button-theme('red', $red);
|
2016-04-17 15:05:04 +05:30
|
|
|
|
|
|
|
.block {
|
2019-11-27 14:33:32 +05:30
|
|
|
display: block;
|
|
|
|
width: 100%;
|
2016-04-17 15:05:04 +05:30
|
|
|
}
|
2017-08-20 21:15:21 +05:30
|
|
|
|
|
|
|
.loading {
|
2019-11-27 14:33:32 +05:30
|
|
|
background: url('./form/images/loader_button.gif') #95a5a6 center center !important;
|
2017-08-20 21:15:21 +05:30
|
|
|
|
2019-11-27 14:33:32 +05:30
|
|
|
cursor: default;
|
|
|
|
color: #fff;
|
|
|
|
transition: 0.25s;
|
|
|
|
outline: none;
|
|
|
|
pointer-events: none;
|
2017-08-20 21:15:21 +05:30
|
|
|
}
|
2018-03-26 00:46:45 +05:30
|
|
|
|
|
|
|
.black.disabled {
|
2019-11-27 14:33:32 +05:30
|
|
|
background: #95a5a6;
|
|
|
|
cursor: default;
|
2018-03-26 00:46:45 +05:30
|
|
|
}
|
2019-12-09 13:17:51 +05:30
|
|
|
|
|
|
|
.disabled {
|
|
|
|
cursor: default;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|