_hourglass.scss 481 B

123456789101112131415161718192021222324
  1. @mixin hourglass($color) {
  2. display: inline-block;
  3. position: relative;
  4. @include color-svg('/images/hourglass_full.svg', transparent);
  5. background-size: 100%;
  6. &, .sand, &:before, &:after {
  7. width: 13px;
  8. height: 11px;
  9. }
  10. .sand, &:before, &:after {
  11. content: '';
  12. display: inline-block;
  13. position: absolute;
  14. top: 0;
  15. left: 0;
  16. }
  17. .sand {
  18. background: $color;
  19. }
  20. &:after {
  21. @include color-svg('/images/hourglass_empty.svg', $color);
  22. }
  23. }