progress.css 1.9 KB

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