progress.css 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /**
  2. * @file
  3. * Visual styles for progress bar.
  4. *
  5. * @see progress.js
  6. */
  7. .progress__track {
  8. background-color: #f5f5f5;
  9. }
  10. .progress__bar {
  11. background: #057ec9;
  12. background-image: -webkit-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.15)), -webkit-linear-gradient(left top, #008ce3 0%, #008ce3 25%, #0678be 25%, #0678be 50%, #008ce3 50%, #008ce3 75%, #008ce3 100%);
  13. background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.15)), linear-gradient(to right bottom, #008ce3 0%, #008ce3 25%, #0678be 25%, #0678be 50%, #008ce3 50%, #008ce3 75%, #008ce3 100%);
  14. background-size: 40px 40px;
  15. margin: 0;
  16. padding: 0;
  17. height: 16px;
  18. animation: animate-stripes 3s linear infinite;
  19. -webkit-animation: animate-stripes 3s linear infinite;
  20. -moz-animation: animate-stripes 3s linear infinite;
  21. -webkit-transition: width 0.5s ease-out;
  22. transition: width 0.5s ease-out;
  23. }
  24. [dir="rtl"] .progress__bar {
  25. animation-direction: reverse;
  26. -webkit-animation-direction: reverse;
  27. -moz-animation-direction: reverse;
  28. }
  29. /**
  30. * Progress bar animations.
  31. */
  32. @-webkit-keyframes animate-stripes {
  33. 0% {
  34. background-position: 0 0, 0 0;
  35. }
  36. 100% {
  37. background-position: 0 0, -80px 0;
  38. }
  39. }
  40. @-ms-keyframes animate-stripes {
  41. 0% {
  42. background-position: 0 0, 0 0;
  43. }
  44. 100% {
  45. background-position: 0 0, -80px 0;
  46. }
  47. }
  48. @keyframes animate-stripes {
  49. 0% {
  50. background-position: 0 0, 0 0;
  51. }
  52. 100% {
  53. background-position: 0 0, -80px 0;
  54. }
  55. }