accounts-frontend/packages/app/components/ui/buttons.scss

104 lines
1.9 KiB
SCSS
Raw Permalink Normal View History

@import './colors.scss';
@import './fonts.scss';
@mixin button-theme($themeName, $backgroundColor) {
2020-05-24 04:38:24 +05:30
.#{$themeName} {
composes: button;
2020-05-24 04:38:24 +05:30
background-color: $backgroundColor;
2020-05-24 04:38:24 +05:30
&:hover {
background-color: lighter($backgroundColor);
}
2020-05-24 04:38:24 +05:30
&:active {
background-color: darker($backgroundColor);
}
}
}
.button {
2020-05-24 04:38:24 +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;
2020-05-24 04:38:24 +05:30
font-size: 18px;
line-height: 50px;
text-decoration: none;
cursor: pointer;
2020-05-24 04:38:24 +05:30
transition: 0.25s;
&:hover {
color: $defaultButtonTextColor;
}
&:focus {
outline: none;
}
}
.smallButton {
2020-05-24 04:38:24 +05:30
composes: button;
2020-05-24 04:38:24 +05:30
height: 30px;
padding: 0 15px;
font-size: 14px;
line-height: 30px;
}
2016-11-08 11:37:04 +05:30
.white {
2020-05-24 04:38:24 +05:30
composes: button;
2020-05-24 04:38:24 +05:30
background-color: #fff;
color: #444;
2020-05-24 04:38:24 +05:30
&:hover {
color: #262626;
background-color: $whiteButtonLight;
}
2020-05-24 04:38:24 +05:30
&:active {
background-color: $whiteButtonDark;
}
}
@include button-theme('black', $black);
2016-01-09 19:45:03 +05:30
@include button-theme('blue', $blue);
@include button-theme('green', $green);
@include button-theme('orange', $orange);
@include button-theme('darkBlue', $dark_blue);
@include button-theme('lightViolet', $light_violet);
@include button-theme('violet', $violet);
@include button-theme('red', $red);
.block {
2020-05-24 04:38:24 +05:30
display: block;
width: 100%;
}
.loading {
2020-05-24 04:38:24 +05:30
background: url('./form/images/loader_button.gif') #95a5a6 center center !important;
2020-05-24 04:38:24 +05:30
cursor: default;
color: #fff;
transition: 0.25s;
outline: none;
pointer-events: none;
}
.black.disabled {
2020-05-24 04:38:24 +05:30
background: #95a5a6;
cursor: default;
}
2019-12-09 13:17:51 +05:30
.disabled {
2020-05-24 04:38:24 +05:30
cursor: default;
pointer-events: none;
2019-12-09 13:17:51 +05:30
}