Template:Punishment/style.css: Difference between revisions

Template page
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
.punishers {
.punishment {
   display: grid;
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
   grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
   gap: 1em;
   gap: 1em;
   margin-top: 0.5em;
   margin-top: 0.5em;
}
}


.punishers-label {
.punishment-label {
   text-align: center;
   text-align: center;
   font-weight: bold;
   font-weight: bold;
Line 12: Line 12:
}
}


.punishers-grid {
.punishment-grid {
   display: grid;
   display: grid;
   grid-template-columns: auto 1fr;
   grid-template-columns: auto 1fr;
Line 19: Line 19:
}
}


.punishers-startup {
.punishment-startup {
   grid-column: 1;
   grid-column: 1;
}
}


.punishers-bars,
.punishment-bars,
.punishers-scale {
.punishment-scale {
   grid-column: 2;
   grid-column: 2;
}
}


.punishers-bars {
.punishment-bars {
   position: relative;
   position: relative;
   height: 2em;
   height: 2em;
}
}


.punishers-bar {
.punishment-bar {
   position: absolute;
   position: absolute;
   color: transparent;
   color: transparent;
Line 43: Line 43:
}
}


.punishers-median {
.punishment-median {
   position: absolute;
   position: absolute;
   top: 50%;
   top: 50%;
}
}


.punishers-median:after {
.punishment-median:after {
   content: "";
   content: "";
   display: block;
   display: block;
Line 59: Line 59:
}
}


.punishers-bar:hover {
.punishment-bar:hover {
   z-index: 2;
   z-index: 2;
   color: inherit;
   color: inherit;
}
}


.punishers-scale {
.punishment-scale {
   position: relative;
   position: relative;
   height: 1px;
   height: 1px;
   background-color: currentColor;
   background-color: currentColor;
   margin-bottom: 2.3em;
   margin-bottom: 1.2em;
}
}


.punishers-scale:after {
.punishment-scale:after {
   content: 'Damage';
   content: 'Damage';
   display: block;
   display: block;
Line 80: Line 80:
}
}


.punishers-scalepip {
.punishment-scalepip {
   position: absolute;
   position: absolute;
   font-size: 0.7em;
   font-size: 0.7em;
}
}


.punishers-piplabel {
.punishment-piplabel {
   position: absolute;
   position: absolute;
   color: transparent;
   color: transparent;
Line 93: Line 93:
}
}


.punishers-scalepip.minor .punishers-piplabel,
.punishment-scalepip.minor .punishment-piplabel,
.punishers-scalepip.major .punishers-piplabel {
.punishment-scalepip.major .punishment-piplabel {
   color: inherit;
   color: inherit;
}
}


.punishers-scalepip.minor:after,
.punishment-scalepip.minor:after,
.punishers-scalepip.major:after {
.punishment-scalepip.major:after {
   height: 8px;
   height: 8px;
}
}


.punishers-scalepip:after {
.punishment-scalepip:after {
   content: '';
   content: '';
   position: absolute;
   position: absolute;

Latest revision as of 01:30, 22 February 2022

.punishment {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1em;
  margin-top: 0.5em;
}

.punishment-label {
  text-align: center;
  font-weight: bold;
  margin-bottom: 0.2em;
}

.punishment-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0 0.2em;
}

.punishment-startup {
  grid-column: 1;
}

.punishment-bars,
.punishment-scale {
  grid-column: 2;
}

.punishment-bars {
  position: relative;
  height: 2em;
}

.punishment-bar {
  position: absolute;
  color: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  user-select: none;
  height: 100%;
}

.punishment-median {
  position: absolute;
  top: 50%;
}

.punishment-median:after {
  content: "";
  display: block;
  height: 0.8em;
  width: 2px;
  background-color: currentColor;
  position: absolute;
  right: -1px;
  top: -0.4em;
}

.punishment-bar:hover {
  z-index: 2;
  color: inherit;
}

.punishment-scale {
  position: relative;
  height: 1px;
  background-color: currentColor;
  margin-bottom: 1.2em;
}

.punishment-scale:after {
  content: 'Damage';
  display: block;
  text-align: center;
  position: relative;
  top: 1rem;
  font-size: 0.8em;
}

.punishment-scalepip {
  position: absolute;
  font-size: 0.7em;
}

.punishment-piplabel {
  position: absolute;
  color: transparent;
  right: 0;
  top: 0.4rem;
  transform: translateX(50%);
}

.punishment-scalepip.minor .punishment-piplabel,
.punishment-scalepip.major .punishment-piplabel {
  color: inherit;
}

.punishment-scalepip.minor:after,
.punishment-scalepip.major:after {
  height: 8px;
}

.punishment-scalepip:after {
  content: '';
  position: absolute;
  right: -1px;
  width: 1px;
  height: 4px;
  background-color: currentColor;
}