2016-05-26 23:34:42 +00:00
|
|
|
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;
|
2016-05-26 23:34:42 +00:00
|
|
|
height: 1.8em;
|
2017-01-02 23:19:36 +00:00
|
|
|
line-height: 1.95;
|
2016-05-26 23:34:42 +00:00
|
|
|
opacity: .7;
|
|
|
|
outline: none;
|
2016-06-13 23:29:49 +00:00
|
|
|
padding: 0;
|
2017-02-11 16:26:57 +00:00
|
|
|
transition: box-shadow .5s, background-color .5s, color .5s;
|
2016-05-26 23:34:42 +00:00
|
|
|
width: 1.8em;
|
|
|
|
|
2017-03-18 17:53:59 +00:00
|
|
|
&.text {
|
|
|
|
background: $color-primary;
|
|
|
|
border: 1px solid $color-primary;
|
|
|
|
border-radius: 0;
|
|
|
|
color: $color-white;
|
|
|
|
font: inherit;
|
|
|
|
line-height: initial;
|
|
|
|
padding: 0 20px;
|
|
|
|
width: auto;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background: $color-white;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-10-21 00:06:42 +00:00
|
|
|
&.active,
|
|
|
|
&:focus {
|
2017-02-11 16:26:57 +00:00
|
|
|
box-shadow: 0 0 0 2px $color-primary;
|
2016-05-26 23:34:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: $color-primary;
|
|
|
|
}
|
|
|
|
|
2017-02-02 00:31:57 +00:00
|
|
|
// Tooltip
|
|
|
|
&[data-tooltip] {
|
|
|
|
&::after {
|
|
|
|
background: $color-black;
|
|
|
|
border-radius: 3px;
|
|
|
|
color: $color-white;
|
|
|
|
content: attr(data-tooltip);
|
|
|
|
font-family: $font-family;
|
|
|
|
font-size: $font-size;
|
|
|
|
padding: 0 12px;
|
|
|
|
position: absolute;
|
|
|
|
transform: translate(45px, 52px);
|
|
|
|
visibility: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
&::after {
|
|
|
|
transition: visibility 0s linear .3s;
|
|
|
|
visibility: visible;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-05-26 23:34:42 +00:00
|
|
|
&.close {
|
2017-01-02 23:19:36 +00:00
|
|
|
background-color: transparent;
|
2016-05-26 23:34:42 +00:00
|
|
|
border-radius: 0;
|
2016-06-01 19:21:21 +00:00
|
|
|
color: transparentize($color-black, .5);
|
2016-05-26 23:34:42 +00:00
|
|
|
float: right;
|
2016-06-19 11:14:13 +00:00
|
|
|
font-size: $button-font-size;
|
2016-05-26 23:34:42 +00:00
|
|
|
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;
|
2016-05-26 23:34:42 +00:00
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
}
|
2017-10-21 00:06:42 +00:00
|
|
|
|
|
|
|
// Tooltip
|
|
|
|
// sass-lint:disable-block nesting-depth
|
|
|
|
.content,
|
|
|
|
.sidebar > {
|
|
|
|
button {
|
|
|
|
&[aria-label] {
|
|
|
|
&::after {
|
|
|
|
background: $color-black;
|
|
|
|
border-radius: 3px;
|
|
|
|
color: $color-white;
|
|
|
|
content: attr(aria-label);
|
|
|
|
font-family: $font-family;
|
|
|
|
font-size: $font-size;
|
|
|
|
padding: 0 12px;
|
|
|
|
position: absolute;
|
|
|
|
transform: translate(45px, 52px);
|
|
|
|
visibility: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
&::after {
|
|
|
|
transition: visibility 0s linear .3s;
|
|
|
|
visibility: visible;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|