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.

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