A Wiki in the Desert
Log in

Template:ProgressBarBlock/main.css

From A Wiki in the Desert
< Template:ProgressBarBlock
Revision as of 16:23, 3 June 2021 by Omegaice (talk | contribs) (Created page with ".bar { background-color: white; width: 100%; height: 20px; } .bar-block { background-color: green; display: inline-block; width: 4%; height: 20px; } .bar-block:...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
.bar {
  background-color: white;
  width: 100%;
  height: 20px;
}

.bar-block {
  background-color: green;
  display: inline-block;
  width: 4%;
  height: 20px;
}
.bar-block:first-child {
  border-radius: 5px 0 0 5px;
}
.bar-block:last-child {
  border-radius: 0 5px 5px 0;
}
.bar-block:nth-last-child(-n+4) {
  background-color: #ccc;
}
.bar-block:nth-last-child(-n+3) {
  background-color: #eee;
}