progress.css 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. }