Module:Sandbox/Aurelain/Cargo/styles.css: Difference between revisions
From Heroes of Might and Magic: Olden Era Official Wiki
No edit summary |
No edit summary |
||
| (9 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
/* ---- GENERAL ---- */ | /* ---- GENERAL ---- */ | ||
table { | .units-overview table { | ||
white-space: nowrap; | white-space: nowrap; | ||
} | } | ||
td { | .units-overview .wiki-hint { | ||
border-bottom: none !important; /* hide the underline applied by the Hint template */ | |||
} | |||
.units-overview th { | |||
padding-right: 4px !important; /* suppress the space allotted to the sortable markers */ | |||
} | |||
.units-overview td { | |||
color: #cbced1; | color: #cbced1; | ||
} | } | ||
tr:hover { | .units-overview tr:hover { | ||
background: #13161a; | background: #13161a; | ||
} | } | ||
.units-overview .forced-faction th:nth-child(2), | |||
.units-overview .forced-faction td:nth-child(2) { | |||
display: none; | |||
} | |||
.units-overview .unit td:nth-child(1) { | |||
padding: 0 0.5em 0 0; | |||
} | } | ||
td: | .units-overview .unit.upgraded td:nth-child(1) { | ||
padding-left: 2em; | |||
} | } | ||
/* ---- IMAGES ---- */ | |||
width: | .units-overview th img { | ||
height: | width: 24px; | ||
height: 24px; | |||
} | } | ||
/* ---- STATS ---- */ | /* ---- STATS ---- */ | ||
td:nth-child(5) img, td:nth-child(6) img, td:nth-child(7) img, td:nth-child(8) img, | .units-overview td:nth-child(5) img, | ||
td:nth-child(9) img, td:nth-child(10) img, td:nth-child(11) img, td:nth-child(12) img { | .units-overview td:nth-child(6) img, | ||
.units-overview td:nth-child(7) img, | |||
.units-overview td:nth-child(8) img, | |||
.units-overview td:nth-child(9) img, | |||
.units-overview td:nth-child(10) img, | |||
.units-overview td:nth-child(11) img, | |||
.units-overview td:nth-child(12) img { | |||
width: 16px; | width: 16px; | ||
height: 16px; | height: 16px; | ||
| Line 39: | Line 56: | ||
} | } | ||
td:nth-child(5), td:nth-child(6), td:nth-child(7), td:nth-child(8), | .units-overview td:nth-child(5), | ||
td:nth-child(9), td:nth-child(10), td:nth-child(11), td:nth-child(12) { | .units-overview td:nth-child(6), | ||
.units-overview td:nth-child(7), | |||
.units-overview td:nth-child(8), | |||
.units-overview td:nth-child(9), | |||
.units-overview td:nth-child(10), | |||
.units-overview td:nth-child(11), | |||
.units-overview td:nth-child(12) { | |||
text-align: right; | text-align: right; | ||
} | } | ||
| Line 47: | Line 70: | ||
/* ---- SEPARATORS ---- */ | /* ---- SEPARATORS ---- */ | ||
.separator:first-child, .separator:last-child, .separator + .separator { | .units-overview .separator:first-child, | ||
.units-overview .separator:last-child, | |||
.units-overview .separator + .separator { | |||
display: none; | display: none; | ||
} | } | ||
.separator-tiny { | .units-overview .separator-tiny { | ||
height: 3px; | height: 3px; | ||
background: #c8b36c !important; | background: #c8b36c !important; | ||
} | } | ||
.separator-tiny td { | .units-overview .separator-tiny td { | ||
padding: 0; | padding: 0; | ||
} | } | ||
.separator-large { | .units-overview .separator-large { | ||
background-color: #101622 !important; | background-color: #101622 !important; | ||
text-align: center; | text-align: center; | ||
| Line 66: | Line 91: | ||
} | } | ||
.separator-large img { | .units-overview .separator-large img { | ||
width: 54px; | width: 54px; | ||
} | } | ||
/* ---- MORALE AND LUCK ---- */ | /* ---- MORALE AND LUCK ---- */ | ||
.elevated1 { | .units-overview .elevated1 { | ||
color: #c8b36c; | color: #c8b36c; | ||
} | } | ||
.elevated2 { | .units-overview .elevated2 { | ||
color: #2ea821; | color: #2ea821; | ||
} | } | ||
.elevated3 { | .units-overview .elevated3 { | ||
color: #47adf2; | color: #47adf2; | ||
} | } | ||
Latest revision as of 15:04, 20 June 2026
/* ---- GENERAL ---- */
.units-overview table {
white-space: nowrap;
}
.units-overview .wiki-hint {
border-bottom: none !important; /* hide the underline applied by the Hint template */
}
.units-overview th {
padding-right: 4px !important; /* suppress the space allotted to the sortable markers */
}
.units-overview td {
color: #cbced1;
}
.units-overview tr:hover {
background: #13161a;
}
.units-overview .forced-faction th:nth-child(2),
.units-overview .forced-faction td:nth-child(2) {
display: none;
}
.units-overview .unit td:nth-child(1) {
padding: 0 0.5em 0 0;
}
.units-overview .unit.upgraded td:nth-child(1) {
padding-left: 2em;
}
/* ---- IMAGES ---- */
.units-overview th img {
width: 24px;
height: 24px;
}
/* ---- STATS ---- */
.units-overview td:nth-child(5) img,
.units-overview td:nth-child(6) img,
.units-overview td:nth-child(7) img,
.units-overview td:nth-child(8) img,
.units-overview td:nth-child(9) img,
.units-overview td:nth-child(10) img,
.units-overview td:nth-child(11) img,
.units-overview td:nth-child(12) img {
width: 16px;
height: 16px;
position: relative;
top: -1px;
margin-left: 1px;
opacity: 0.5;
}
.units-overview td:nth-child(5),
.units-overview td:nth-child(6),
.units-overview td:nth-child(7),
.units-overview td:nth-child(8),
.units-overview td:nth-child(9),
.units-overview td:nth-child(10),
.units-overview td:nth-child(11),
.units-overview td:nth-child(12) {
text-align: right;
}
/* ---- SEPARATORS ---- */
.units-overview .separator:first-child,
.units-overview .separator:last-child,
.units-overview .separator + .separator {
display: none;
}
.units-overview .separator-tiny {
height: 3px;
background: #c8b36c !important;
}
.units-overview .separator-tiny td {
padding: 0;
}
.units-overview .separator-large {
background-color: #101622 !important;
text-align: center;
font-size: 24px;
}
.units-overview .separator-large img {
width: 54px;
}
/* ---- MORALE AND LUCK ---- */
.units-overview .elevated1 {
color: #c8b36c;
}
.units-overview .elevated2 {
color: #2ea821;
}
.units-overview .elevated3 {
color: #47adf2;
}


