Welcome to Wars Wiki!
Welcome to Wars Wiki. Please log in or create an account to make changes.

Template:Infobox style/styles.css: Difference between revisions

From Wars Wiki
Jump to navigationJump to search
m (Fixed ul css for plainlists)
(Added styling for multicolumn (conflict infoboxes))
 
Line 37: Line 37:
}
}


.ww-infobox .wwi-data-value > ul {
.ww-infobox .wwi-data-multicolumn {
  background: none;
  border: 0;
  margin: 0;
  padding: 0;
  width: 100%;
}
 
.ww-infobox .wwi-data-multicolumn td:not(:last-child) {
  border-right: 1px dotted #aaa;
}
 
.ww-infobox .wwi-data-value > ul,
.ww-infobox .wwi-data-multicolumn td > ul {
   margin: 0 0 0 1em;
   margin: 0 0 0 1em;
}
}

Latest revision as of 20:11, 23 December 2023

/* Wars Wiki infobox styling */
.ww-infobox {
  border-style: solid;
  border-width: 3px;
}

.ww-infobox .wwi-title {
  font-size: 110%;
  padding: 2px;
  text-align: center;
}

.ww-infobox .wwi-image {
  background: #FFF;
  padding: 0;
  text-align: center;
}

.ww-infobox .wwi-image-sprite { /* Recommended for resizing small sprites under 64px only */
  image-rendering: crisp-edges; /* Firefox */
  image-rendering: pixelated; /* Chromium + Safari */
}

.ww-infobox .wwi-header {
  border-style: solid;
  border-width: 3px 15px 0;
  text-align: center;
}

.ww-infobox .wwi-data-label {
  text-align: right;
  width: 40%;
}

.ww-infobox .wwi-data-value {
  background: #FFF;
}

.ww-infobox .wwi-data-multicolumn {
  background: none;
  border: 0;
  margin: 0;
  padding: 0;
  width: 100%;
}

.ww-infobox .wwi-data-multicolumn td:not(:last-child) {
  border-right: 1px dotted #aaa;
}

.ww-infobox .wwi-data-value > ul,
.ww-infobox .wwi-data-multicolumn td > ul {
  margin: 0 0 0 1em;
}