2
0

_progressbar.scss 673 B

123456789101112131415161718192021222324252627282930
  1. @use '../tools' as *;
  2. .progress {
  3. border-radius: 1.2em;
  4. background-color: theme('colors.surface-button-hover');
  5. border: 1px solid theme('colors.surface-button-default');
  6. opacity: 0;
  7. &.active {
  8. @include transition(opacity 0.3s ease);
  9. opacity: 1;
  10. }
  11. .bar {
  12. @include transition(width 0.3s ease);
  13. border-radius: 1.5em;
  14. overflow: hidden;
  15. text-align: end;
  16. line-height: 1.2em;
  17. color: theme('colors.text-button');
  18. font-size: 0.85em;
  19. background-color: theme('colors.surface-button-default');
  20. height: 1.2em;
  21. padding-inline-end: 1em;
  22. @media (forced-colors: active) {
  23. background-color: ButtonText;
  24. }
  25. }
  26. }