progress.css 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. .progress {
  2. background-color: #e9ecef;
  3. border-radius: 0.25rem;
  4. display: -ms-flexbox;
  5. display: -webkit-box;
  6. display: flex;
  7. font-size: .65rem;
  8. height: 1rem;
  9. overflow: hidden;
  10. position: relative;
  11. }
  12. .progress .progress-text {
  13. color: #fff;
  14. height: 100%;
  15. position: absolute;
  16. text-align: center;
  17. text-shadow: 1px 1px 1px #000;
  18. width: 100%;
  19. z-index: 2;
  20. }
  21. .progress .progress-bar {
  22. -ms-flex-direction: column;
  23. -ms-flex-pack: center;
  24. -webkit-box-direction: normal;
  25. -webkit-box-orient: vertical;
  26. -webkit-box-pack: center;
  27. background-color: #d0d0d0;
  28. background-image: linear-gradient(45deg,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);
  29. background-size: 1rem 1rem;
  30. color: #fff;
  31. display: -ms-flexbox;
  32. display: -webkit-box;
  33. display: flex;
  34. flex-direction: column;
  35. justify-content: center;
  36. position: relative;
  37. text-align: center;
  38. transition: width .6s ease;
  39. z-index: 1;
  40. }
  41. /* Blue */
  42. .progress.blue .progress-bar {
  43. background-color: #007bff;
  44. }
  45. /* Green */
  46. .progress.green .progress-bar {
  47. background-color: #28a745;
  48. }
  49. /* Red */
  50. .progress.red .progress-bar {
  51. background-color: #dc3545;
  52. }
  53. /* White */
  54. .progress.white .progress-bar {
  55. background-color: #a3a3a3;
  56. }