81 lines
1.9 KiB
SCSS
81 lines
1.9 KiB
SCSS
|
.button-control {
|
||
|
box-sizing: border-box;
|
||
|
display: inline-block;
|
||
|
border: 1px solid $buttonBorder;
|
||
|
vertical-align: baseline;
|
||
|
height: 30px;
|
||
|
padding: 4px 10px;
|
||
|
margin: 0;
|
||
|
line-height: 1.5em;
|
||
|
outline: none;
|
||
|
background-color: transparent;
|
||
|
float: right;
|
||
|
font-size: 14px;
|
||
|
margin-left: 10px;
|
||
|
color: $buttonColor;
|
||
|
letter-spacing: $letterSpacing;
|
||
|
font-weight: $buttonFontWeight;
|
||
|
@include transition(background-color .1s ease-out);
|
||
|
|
||
|
&[disabled] {
|
||
|
color: #666;
|
||
|
cursor: default;
|
||
|
}
|
||
|
|
||
|
&_full-width {
|
||
|
margin: 0;
|
||
|
width: 100%;
|
||
|
}
|
||
|
|
||
|
&:hover {
|
||
|
border: 1px solid $buttonHoverBorder;
|
||
|
background-color: $buttonHoverBackground;
|
||
|
@include transition(background-color .1s ease-in);
|
||
|
}
|
||
|
|
||
|
&:active {
|
||
|
@include box-shadow(inset, 0, 0, 1px, $buttonShadowColor);
|
||
|
}
|
||
|
|
||
|
&_light {
|
||
|
color: $defaultDarkColor;
|
||
|
background-color: $buttonLightBackground;
|
||
|
border: 1px solid $buttonLightBorder;
|
||
|
|
||
|
&:hover {
|
||
|
border: 1px solid $buttonLightHoverBorder;
|
||
|
background-color: $buttonLightHoverBackground;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
&_link {
|
||
|
color: $buttonLinkColor;
|
||
|
background-color: $buttonLinkBackground;
|
||
|
|
||
|
&:hover {
|
||
|
background-color: $buttonLinkBackground;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
&_primary {
|
||
|
background-color: $primaryButtonBackground;
|
||
|
border: 1px solid $primaryButtonBackground;
|
||
|
color: $primaryButtonColor;
|
||
|
font-weight: $primaryButtonFontWeight;
|
||
|
|
||
|
&:hover {
|
||
|
border: 1px solid $primaryButtonHoverBackground;
|
||
|
background-color: $primaryButtonHoverBackground;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
&_close {
|
||
|
color: $defaultFontColor;
|
||
|
}
|
||
|
&_submit {
|
||
|
color: $linkFontColor;
|
||
|
&:hover {
|
||
|
color: $linkHoverFontColor;
|
||
|
}
|
||
|
}
|
||
|
}
|