progress.css

Same filename in this branch
  1. 8.9.x core/profiles/demo_umami/themes/umami/css/classy/components/progress.css
  2. 8.9.x core/themes/seven/css/classy/components/progress.css
  3. 8.9.x core/themes/claro/css/components/progress.css
  4. 8.9.x core/themes/classy/css/components/progress.css
Same filename and directory in other branches
  1. 10 core/profiles/demo_umami/themes/umami/css/classy/components/progress.css
  2. 10 core/themes/olivero/css/components/progress.css
  3. 10 core/themes/claro/css/components/progress.css
  4. 10 core/themes/starterkit_theme/css/components/progress.css
  5. 11.x core/profiles/demo_umami/themes/umami/css/classy/components/progress.css
  6. 11.x core/themes/olivero/css/components/progress.css
  7. 11.x core/themes/claro/css/components/progress.css
  8. 11.x core/themes/starterkit_theme/css/components/progress.css
  9. 9 core/profiles/demo_umami/themes/umami/css/classy/components/progress.css
  10. 9 core/themes/olivero/css/components/progress.css
  11. 9 core/themes/seven/css/classy/components/progress.css
  12. 9 core/themes/claro/css/components/progress.css
  13. 9 core/themes/bartik/css/classy/components/progress.css
  14. 9 core/themes/starterkit_theme/css/components/progress.css
  15. 9 core/themes/classy/css/components/progress.css

Visual styles for progress bar.

See also

progress.js

File

core/themes/bartik/css/classy/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: -webkit-linear-gradient(#e7e7df, #f0f0f0);
  12. background-image: linear-gradient(#e7e7df, #f0f0f0);
  13. box-shadow: inset 0 1px 3px hsla(0, 0%, 0%, 0.16);
  14. }
  15. .progress__bar {
  16. height: 16px;
  17. margin-top: -1px;
  18. margin-left: -1px; /* LTR */
  19. padding: 0 1px;
  20. -webkit-transition: width 0.5s ease-out;
  21. transition: width 0.5s ease-out;
  22. -webkit-animation: animate-stripes 3s linear infinite;
  23. -moz-animation: animate-stripes 3s linear infinite;
  24. border: 1px #07629a solid;
  25. border-radius: 10em;
  26. background: #057ec9;
  27. background-image:
  28. -webkit-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.15)),
  29. -webkit-linear-gradient(left top, #0094f0 0%, #0094f0 25%, #007ecc 25%, #007ecc 50%, #0094f0 50%, #0094f0 75%, #0094f0 100%);
  30. background-image:
  31. linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.15)),
  32. linear-gradient(to right bottom, #0094f0 0%, #0094f0 25%, #007ecc 25%, #007ecc 50%, #0094f0 50%, #0094f0 75%, #0094f0 100%);
  33. background-size: 40px 40px;
  34. }
  35. [dir="rtl"] .progress__bar {
  36. margin-right: -1px;
  37. margin-left: 0;
  38. -webkit-animation-direction: reverse;
  39. -moz-animation-direction: reverse;
  40. animation-direction: reverse;
  41. }
  42. @media screen and (prefers-reduced-motion: reduce) {
  43. .progress__bar {
  44. -webkit-transition: none;
  45. transition: none;
  46. -webkit-animation: none;
  47. -moz-animation: none;
  48. }
  49. }
  50. /**
  51. * Progress bar animations.
  52. */
  53. @-webkit-keyframes animate-stripes {
  54. 0% { background-position: 0 0, 0 0; }
  55. 100% { background-position: 0 0, -80px 0; }
  56. }
  57. @-ms-keyframes animate-stripes {
  58. 0% { background-position: 0 0, 0 0; }
  59. 100% { background-position: 0 0, -80px 0; }
  60. }
  61. @keyframes animate-stripes {
  62. 0% { background-position: 0 0, 0 0; }
  63. 100% { background-position: 0 0, -80px 0; }
  64. }

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.