ninchuser

Progress Bars CSS

Mar 28th, 2018
996
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.82 KB | None | 0 0
  1. .box {
  2.     background:transparent;
  3.     width:280px;
  4.     padding:15px;
  5.     box-sizing:border-box;
  6. }
  7.  
  8. .ud {
  9.     margin-top:20px;
  10. }
  11.  
  12. .ud:nth-of-type(odd) [class^="progress_"] {
  13.     background:{color:Odd Progress Bars};
  14. }
  15.  
  16. .box .ud:nth-of-type(even) [class^="progress_"] {
  17.     background:{color:Even Progress Bars};
  18. }
  19.  
  20. .box h6 {
  21.     background:{color:Progress Label Background};
  22.     margin:0;
  23.     width:70px;
  24.     font-size:11px;
  25.     text-align:center;
  26.     box-sizing:border-box;
  27.     padding:5px;
  28.     border-radius:5px;
  29.     vertical-align:middle;
  30.     display:inline-block;
  31.     color:{color:Progress Label Text};
  32. }
  33.  
  34. .box .acon {
  35.     width:175px;
  36.     display:inline-block;
  37.     position:relative;
  38.     vertical-align:middle;
  39. }
  40.  
  41. [class^="progress_"] {
  42.     margin-left:5px;
  43.     height:5px;
  44.     border-radius:5px;
  45.     margin-top:-2px;
  46.     z-index:10;
  47.     position:absolute;
  48. }
  49.  
  50. [class^="bar_"] {
  51.     background:{color:Empty Progress Bar};
  52.     height:2px;
  53.     z-index:5;
  54.     margin-top:-.5px;
  55.     position:absolute;
  56. }
  57.  
  58. .progress_1 {
  59.     width:{text:First Progress}%;
  60. }
  61.  
  62. .bar_1 {
  63.     width:calc(100% - {text:First Progress}%);
  64.     margin-left:{text:First Progress}%;
  65. }
  66.  
  67. .progress_2 {
  68.     width:{text:Second Progress}%;
  69. }
  70.  
  71. .bar_2 {
  72.     width:calc(100% - {text:Second Progress}%);
  73.     margin-left:{text:Second Progress}%;
  74. }
  75.  
  76. .progress_3 {
  77.     width:{text:Third Progress}%;
  78. }
  79.  
  80. .bar_3 {
  81.     width:calc(100% - {text:Third Progress}%);
  82.     margin-left:{text:Third Progress}%;
  83. }
  84.  
  85. .progress_4 {
  86.     width:{text:Fourth Progress}%;
  87. }
  88.  
  89. .bar_4 {
  90.     width:calc(100% - {text:Fourth Progress}%);
  91.     margin-left:{text:Fourth Progress}%;
  92. }
  93.  
  94. .progress_5 {
  95.     width:{text:Fifth Progress}%;
  96. }
  97.  
  98. .bar_5 {
  99.     width:calc(100% - {text:Fifth Progress}%);
  100.     margin-left:{text:Fifth Progress}%;
  101. }
Advertisement
Add Comment
Please, Sign In to add comment