signal-desktop/stylesheets/_hourglass.scss

30 lines
495 B
SCSS
Raw Normal View History

@mixin hourglass($color) {
display: inline-block;
position: relative;
2017-03-08 00:54:46 +00:00
@include color-svg('../images/hourglass_full.svg', transparent);
background-size: 100%;
2018-05-04 20:07:52 +00:00
&,
.sand,
&:before,
&:after {
width: 13px;
height: 11px;
}
2018-05-04 20:07:52 +00:00
.sand,
&:before,
&:after {
content: '';
display: inline-block;
position: absolute;
top: 0;
left: 0;
}
.sand {
background: $color;
}
&:after {
2017-03-08 00:54:46 +00:00
@include color-svg('../images/hourglass_empty.svg', $color);
}
}