Progress-Bar.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. .progress {
  2. position: relative;
  3. z-index: 5;
  4. background: #EEEEEE;
  5. border: 10px solid #fff;
  6. border-radius: 20px;
  7. display: inline-block;
  8. }
  9. .progress-text {
  10. position: absolute;
  11. font: bold 14px/20px Arial;
  12. text-align: center;
  13. top: 0;
  14. left: 0;
  15. }
  16. .progress,
  17. .progress-bar,
  18. .progress-text {
  19. width: 100%;
  20. height: 40rpx;
  21. }
  22. .progress .progress-text:first-child {
  23. z-index: 5;
  24. color: white;
  25. }
  26. .progress .progress-text:last-child {
  27. z-index: 10;
  28. color: #fff;
  29. }
  30. .progress-bar {
  31. overflow: hidden;
  32. position: relative;
  33. z-index: 10;
  34. border-radius: 12px;
  35. width: 0;
  36. -moz-transition: width .2s linear;
  37. -webkit-transition: width .2s linear;
  38. -o-transition: width .2s linear;
  39. transition: width .2s linear;
  40. }
  41. /* Test Style */
  42. .progress.test .progress-bar {
  43. background-color: #00baba;
  44. background-image: -moz-linear-gradient(left, #7AB8F6 0%, #0581FD 100%);
  45. background-image: -webkit-linear-gradient(left, #7AB8F6 0%, #0581FD 100%);
  46. background-image: -o-linear-gradient(left, #7AB8F6 0%, #0581FD 100%);
  47. background-image: -ms-linear-gradient(left, #7AB8F6 0%, #0581FD 100%);
  48. background-image: linear-gradient(to right, #7AB8F6 0%, #0581FD 100%);
  49. background-size: 200px 20px;
  50. overflow: visible;
  51. }
  52. .progress.test .progress-text:first-child {
  53. display: none;
  54. }
  55. .progress.test .progress-text:last-child {
  56. left: auto;
  57. top: auto;
  58. bottom: -26px;
  59. right: -12px;
  60. display: block;
  61. background-color: #0581FD;
  62. width: 40px;
  63. height: 20px;
  64. border-radius: 3px;
  65. }
  66. .test[data-width='0%'] .progress-text:last-child {
  67. display: none;
  68. }
  69. .progress.test .progress-text:last-child:before {
  70. position: absolute;
  71. left: 12px;
  72. top: -6px;
  73. content: '';
  74. width: 0;
  75. height: 0;
  76. border-style: solid;
  77. border-width: 0 6px 6px 6px;
  78. border-color: transparent transparent #0581FD transparent;
  79. }
  80. /* Aqua Style */
  81. .progress.aqua .progress-bar {
  82. background-color: #00baba;
  83. background-image: -moz-linear-gradient(left, #cef6ea 0%, #0581FD 100%);
  84. background-image: -webkit-linear-gradient(left, #cef6ea 0%, #0581FD 100%);
  85. background-image: -o-linear-gradient(left, #cef6ea 0%, #0581FD 100%);
  86. background-image: -ms-linear-gradient(left, #cef6ea 0%, #0581FD 100%);
  87. background-image: linear-gradient(to right, #cef6ea 0%, #0581FD 100%);
  88. }
  89. .progress.sparkle .progress-bar {
  90. background-color: #F7A806;
  91. background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAG4AAABACAMAAADMI7KPAAACZFBMVEX////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////xG13JAAAAzHRSTlMAAQIDBAUGBwgJCgsMDQ4PEBESExQVFhcYGRobHB0eHyAhIiMkJSYnKCkqKywtLi8wMTIzNDU2Nzg5Ojs8PT4/QEFCQ0RFRkdISUpLTE1OT1BRUlNUVVZXWFlaW1xdXl9gYWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXp7fH1+f4CBgoOEhYaHiImKi4yNjo+QkZKTlJWWl5iZmpucnZ6foKGio6SlpqeoqaqrrK2ur7CxsrO0tba3uLm6u7y9vr/AwcLDxMXGx8jJytLua8SRAAASK0lEQVR42nXWWZMb12H28edsvQJoAINlMMPZOCQlioso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Cxfr93EE6oFxW2a+oHnkkQStpzTWxpCpzHHhIoqbkNzu98wdijrb+aveAtv/yJ/tmj6jSEFX51ekv1BE41ebnnwztmw2fReu9S/Y19zd3+QdRJR7OJZsmPysGVP8WgzcXQ7PgBCbV1aeJLTiTZANEkpt2X3brMionhNL+dztDNY+gXSwc8Hvd6uY7RpL7HH/8PHzrVzrjdVlLL6ZX0nePdsA89JG0gII1SYWZfd74PZo8ipFRhOqF4lqynZ71tc7e+EIxb/Yn/QL6Kz1fcfh0kaNrqdxCfMWMzRTHl+xn3TALd123OJWqmrVojnKQVoooOMxbUlYhUXg+I5i+HzecksNu+9lxg4ONxHtLaxBdVayQR99dlOpDlXKaALtUy2cjpvl4oiZxCEmw99h/xgFy+mxgPmcFBGWOp95ysfRVmOJ5K7PkKzFq4acSQSjQEA0v2wWop3zEinVEBLZBkGOREUXGIezhOVNh68ZrLZbfxfdJDhR1P6ianXkvv3GZ7qBdmyk+PJEK4IcISysL21EVVzfa0g49SpUAKzImzO6TDBaPt7ampq+3b38qlhjBfjBgP8UI1ubwDgeMqolLiVC4wk4SL0AUBBCq2DdQAqpEQbmmplGtIvCPKPngoT9H98bzV87Tt8cPtdvIik08mO6qewQnwhpy2GJOwJzT+/riKNABP2AuvplBjxIQ9Ftt89wJGBOet+I28U5jbW8AKlS1Pp6JGGefrCjb0E/wtYT0+oEQxnLAAAAABJRU5ErkJggg==");
  92. box-shadow: inset 0 -2px 2px rgba(0, 0, 0, 0.5), inset 0 2px 2px rgba(255, 255, 255, 0.8);
  93. -webkit-animation: sparkle 1500ms linear infinite;
  94. -moz-animation: sparkle 1500ms linear infinite;
  95. -o-animation: sparkle 1500ms linear infinite;
  96. animation: sparkle 1500ms linear infinite;
  97. }
  98. @-webkit-keyframes sparkle {
  99. from {
  100. background-position: 0 0;
  101. }
  102. to {
  103. background-position: 0 -64px;
  104. }
  105. }
  106. @-moz-keyframes sparkle {
  107. from {
  108. background-position: 0 0;
  109. }
  110. to {
  111. background-position: 0 -64px;
  112. }
  113. }
  114. @-o-keyframes sparkle {
  115. from {
  116. background-position: 0 0;
  117. }
  118. to {
  119. background-position: 0 -64px;
  120. }
  121. }
  122. @keyframes sparkle {
  123. from {
  124. background-position: 0 0;
  125. }
  126. to {
  127. background-position: 0 -64px;
  128. }
  129. }
  130. h2 {
  131. text-align: center;
  132. font-size: 18px;
  133. font-family: Arial;
  134. }
  135. a {
  136. color: #89310F;
  137. }