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