Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

progress.css

Same filename in this branch
  1. 11.1.x core/profiles/demo_umami/themes/umami/css/classy/components/progress.css
  2. 11.1.x core/themes/olivero/css/components/progress.css
  3. 11.1.x core/themes/claro/css/components/progress.css

Visual styles for progress bar.

See also

progress.js

File

core/themes/starterkit_theme/css/components/progress.css

View source
  1. /**
  2. * @file
  3. * Visual styles for progress bar.
  4. *
  5. * @see progress.js
  6. */
  7. .progress__track {
  8. border-color: #b3b3b3;
  9. border-radius: 10em;
  10. background-color: #f2f1eb;
  11. background-image: linear-gradient(#e7e7df, #f0f0f0);
  12. box-shadow: inset 0 1px 3px hsla(0, 0%, 0%, 0.16);
  13. }
  14. .progress__bar {
  15. height: 16px;
  16. margin-top: -1px;
  17. margin-left: -1px; /* LTR */
  18. padding: 0 1px;
  19. -webkit-transition: width 0.5s ease-out;
  20. transition: width 0.5s ease-out;
  21. -webkit-animation: animate-stripes 3s linear infinite;
  22. border: 1px #07629a solid;
  23. border-radius: 10em;
  24. background: #057ec9;
  25. background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.15)), linear-gradient(to right bottom, #0094f0 0%, #0094f0 25%, #007ecc 25%, #007ecc 50%, #0094f0 50%, #0094f0 75%, #0094f0 100%);
  26. background-size: 40px 40px;
  27. }
  28. [dir="rtl"] .progress__bar {
  29. margin-right: -1px;
  30. margin-left: 0;
  31. -webkit-animation-direction: reverse;
  32. animation-direction: reverse;
  33. }
  34. @media screen and (prefers-reduced-motion: reduce) {
  35. .progress__bar {
  36. -webkit-transition: none;
  37. transition: none;
  38. -webkit-animation: none;
  39. }
  40. }
  41. /**
  42. * Progress bar animations.
  43. */
  44. @keyframes animate-stripes {
  45. 0% {
  46. background-position:
  47. 0 0,
  48. 0 0;
  49. }
  50. 100% {
  51. background-position:
  52. 0 0,
  53. -80px 0;
  54. }
  55. }
RSS feed
Powered by Drupal