meshviewer/scss/modules/_button.scss

55 lines
1.0 KiB
SCSS
Raw Normal View History

button {
background: $color-white;
border: 0;
border-radius: .9em;
color: $color-black;
cursor: pointer;
font-family: $font-family-icons;
2016-06-19 11:14:13 +00:00
font-size: $button-font-size;
height: 1.8em;
2017-01-02 23:19:36 +00:00
line-height: 1.95;
opacity: .7;
outline: none;
padding: 0;
transition: box-shadow .5s, color .5s;
width: 1.8em;
&.active {
color: $color-primary;
}
&:hover {
background: $color-white;
color: $color-primary;
}
2016-05-29 15:39:56 +00:00
@if $shadows == 1 {
&.shadow {
@include shadow(1);
2016-05-29 15:39:56 +00:00
&:hover {
@include shadow(2);
}
2016-05-29 15:39:56 +00:00
&:active {
2016-06-01 19:21:21 +00:00
box-shadow: inset 0 5px 20px transparentize($color-black, .81), inset 0 3px 6px transparentize($color-black, .77);
2016-05-29 15:39:56 +00:00
}
}
}
&.close {
2017-01-02 23:19:36 +00:00
background-color: transparent;
border-radius: 0;
2016-05-29 15:39:56 +00:00
@if $shadows == 1 {
box-shadow: none;
}
2016-06-01 19:21:21 +00:00
color: transparentize($color-black, .5);
float: right;
2016-06-19 11:14:13 +00:00
font-size: $button-font-size;
height: auto;
2017-01-02 23:19:36 +00:00
line-height: 1.2;
2016-06-19 11:14:13 +00:00
margin: $button-distance;
width: auto;
}
}