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