progress_activity.css 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. /* ----------------------------------
  2. * Progress + activities
  3. * ---------------------------------- */
  4. /* Spinner */
  5. progress:not([value]) {
  6. background: url(progress_activity/images/ui/default.png) no-repeat center center / 100% auto;
  7. animation: 0.9s rotate infinite steps(30);
  8. width: 2.9rem;
  9. height: 2.9rem;
  10. border: none;
  11. display: inline-block;
  12. vertical-align: middle;
  13. }
  14. progress:not([value])::-moz-progress-bar {
  15. background: none;
  16. }
  17. /* Progress bar */
  18. progress[value] {
  19. width: 100%;
  20. background: #333;
  21. border: none;
  22. border-radius: 0.3rem;
  23. height: 0.3rem;
  24. display: block;
  25. }
  26. progress[value]::-moz-progress-bar {
  27. background: #01c5ed;
  28. border-radius: 0;
  29. }
  30. /* Progress bar */
  31. progress[value].pack-activity {
  32. background-image: url(progress_activity/images/ui/activity.png);
  33. background-repeat: repeat;
  34. background-size: auto 100%;
  35. animation: 0.5s move infinite steps(15);
  36. }
  37. /* Labels */
  38. p[role="status"] {
  39. padding: 0.5rem;
  40. font-weight: 300;
  41. font-size: 2.25rem;
  42. line-height: 1.4em;
  43. color: #fff;
  44. }
  45. p[role="status"] progress:not([value]) {
  46. margin-right: 0.5rem;
  47. }
  48. p[role="status"] progress:not([value]) + span {
  49. margin-bottom: 0;
  50. }
  51. p[role="status"] span {
  52. display: inline-block;
  53. vertical-align: middle;
  54. margin-bottom: 0.5rem;
  55. }
  56. /* Light Activity bar */
  57. progress[value].pack-activity.light {
  58. background-color: #f4f4f4;
  59. }
  60. /* Animations */
  61. @keyframes rotate {
  62. from { transform: rotate(1deg); }
  63. to { transform: rotate(360deg); }
  64. }
  65. @keyframes move {
  66. from { background-position: 0 0; }
  67. to { background-position: 1rem 0; }
  68. }