You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

194 lines
3.9 KiB

  1. .ui.progress {
  2. border: 1px solid rgba(0,0,0,.1);
  3. width: 100%;
  4. height: 35px;
  5. background-color: #FAFAFA;
  6. padding: 5px;
  7. border-radius: .3125em;
  8. -moz-box-sizing: border-box;
  9. -ms-box-sizing: border-box;
  10. box-sizing: border-box;
  11. }
  12. .ui.progress .bar {
  13. display: inline-block;
  14. height: 100%;
  15. background-color: #CCC;
  16. border-radius: 3px;
  17. -webkit-transition: width 1s ease-in-out,background-color 1s ease-out;
  18. transition: width 1s ease-in-out,background-color 1s ease-out;
  19. }
  20. .ui.successful.progress .bar {
  21. background-color: #73E064!important;
  22. }
  23. .ui.successful.progress .bar,
  24. .ui.successful.progress .bar::after {
  25. -webkit-animation: none!important;
  26. animation: none!important;
  27. }
  28. .ui.failed.progress .bar {
  29. background-color: #DF9BA4!important;
  30. }
  31. .ui.failed.progress .bar,
  32. .ui.failed.progress .bar::after {
  33. -webkit-animation: none!important;
  34. animation: none!important;
  35. }
  36. .ui.active.progress .bar {
  37. position: relative;
  38. }
  39. .ui.active.progress .bar::after {
  40. content: '';
  41. opacity: 0;
  42. position: absolute;
  43. top: 0;
  44. left: 0;
  45. right: 0;
  46. bottom: 0;
  47. background: #FFF;
  48. border-radius: 3px;
  49. -webkit-animation: progress-active 2s ease-out infinite;
  50. animation: progress-active 2s ease-out infinite;
  51. }
  52. @-webkit-keyframes progress-active {
  53. 0% {
  54. opacity: 0;
  55. width: 0;
  56. }
  57. 50% {
  58. opacity: .3;
  59. }
  60. 100% {
  61. opacity: 0;
  62. width: 95%;
  63. }
  64. }
  65. @keyframes progress-active {
  66. 0% {
  67. opacity: 0;
  68. width: 0;
  69. }
  70. 50% {
  71. opacity: .3;
  72. }
  73. 100% {
  74. opacity: 0;
  75. width: 100%;
  76. }
  77. }
  78. .ui.disabled.progress {
  79. opacity: .35;
  80. }
  81. .ui.disabled.progress .bar,
  82. .ui.disabled.progress .bar::after {
  83. -webkit-animation: none!important;
  84. animation: none!important;
  85. }
  86. .ui.progress.attached {
  87. position: relative;
  88. border: 0;
  89. }
  90. .ui.progress.attached,
  91. .ui.progress.attached .bar {
  92. display: block;
  93. height: 3px;
  94. padding: 0;
  95. overflow: hidden;
  96. border-radius: 0 0 .3125em .3125em;
  97. }
  98. .ui.progress.attached .bar {
  99. border-radius: 0;
  100. }
  101. .ui.progress.top.attached,
  102. .ui.progress.top.attached .bar {
  103. top: -2px;
  104. border-radius: .3125em .3125em 0 0;
  105. }
  106. .ui.progress.top.attached .bar {
  107. border-radius: 0;
  108. }
  109. .ui.blue.progress .bar {
  110. background-color: #6ECFF5;
  111. }
  112. .ui.black.progress .bar {
  113. background-color: #5C6166;
  114. }
  115. .ui.green.progress .bar {
  116. background-color: #A1CF64;
  117. }
  118. .ui.red.progress .bar {
  119. background-color: #EF4D6D;
  120. }
  121. .ui.purple.progress .bar {
  122. background-color: #564F8A;
  123. }
  124. .ui.teal.progress .bar {
  125. background-color: #00B5AD;
  126. }
  127. .ui.progress.striped .bar {
  128. background-size: 30px 30px;
  129. background-image: -webkit-gradient(linear,left top,right bottom,color-stop(0.25,rgba(255,255,255,.15)),color-stop(0.25,transparent),color-stop(0.5,transparent),color-stop(0.5,rgba(255,255,255,.15)),color-stop(0.75,rgba(255,255,255,.15)),color-stop(0.75,transparent),to(transparent));
  130. background-image: -webkit-linear-gradient(135deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);
  131. background-image: -webkit-linear-gradient(315deg, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
  132. background-image: linear-gradient(135deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);
  133. }
  134. .ui.progress.active.striped .bar:after {
  135. -webkit-animation: none;
  136. -ms-animation: none;
  137. animation: none;
  138. }
  139. .ui.progress.active.striped .bar {
  140. -webkit-animation: progress-striped 3s linear infinite;
  141. animation: progress-striped 3s linear infinite;
  142. }
  143. @-webkit-keyframes progress-striped {
  144. 0% {
  145. background-position: 0 0;
  146. }
  147. 100% {
  148. background-position: 60px 0;
  149. }
  150. }
  151. @keyframes progress-striped {
  152. 0% {
  153. background-position: 0 0;
  154. }
  155. 100% {
  156. background-position: 60px 0;
  157. }
  158. }
  159. .ui.small.progress .bar {
  160. height: 14px;
  161. }