Template:Sandbox/Aurelain/HeroClassSkills/styles.css: Difference between revisions
From Heroes of Might and Magic: Olden Era Official Wiki
No edit summary |
No edit summary |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
margin: 1em; | margin: 1em; | ||
width: max-content; | width: max-content; | ||
display: flow-root; /* to play nice with the floating infobox */ | |||
} | } | ||
| Line 11: | Line 12: | ||
} | } | ||
.hcs-box | @media (max-width: 950px) { | ||
.hcs-box td span:nth-child(2) a { | |||
display: none; | |||
} | |||
} | } | ||
.hcs-box .about | .hcs-box .about { | ||
text-align: right; | |||
} | } | ||
.hcs-box .toggle { | .hcs-box .toggle { | ||
padding: 4px; | display: inline-block; | ||
padding: 4px 8px; | |||
border: 1px solid #45494e; | border: 1px solid #45494e; | ||
color: dodgerblue; | color: dodgerblue; | ||
| Line 29: | Line 32: | ||
.hcs-box .toggle:hover { | .hcs-box .toggle:hover { | ||
background: #2a3347; | background: #2a3347; | ||
} | } | ||
| Line 39: | Line 41: | ||
.hcs-box table { | .hcs-box table { | ||
width: 100%; | width: 100%; | ||
margin-top: 8px; | |||
} | } | ||
| Line 54: | Line 57: | ||
.hcs-box td:first-child { | .hcs-box td:first-child { | ||
text-align: left; | text-align: left; | ||
} | |||
@media (max-width: 950px) { | |||
.hcs-box td:first-child { | |||
text-align: center; | |||
} | |||
} | } | ||
| Line 72: | Line 81: | ||
height: 2px; | height: 2px; | ||
background: #c8b36c !important; | background: #c8b36c !important; | ||
} | } | ||
Latest revision as of 06:11, 27 August 2026
.hcs-box {
margin: 1em;
width: max-content;
display: flow-root; /* to play nice with the floating infobox */
}
@media (max-width: 600px) {
.hcs-box {
width: 100%;
margin: 1em 0 0 0;
}
}
@media (max-width: 950px) {
.hcs-box td span:nth-child(2) a {
display: none;
}
}
.hcs-box .about {
text-align: right;
}
.hcs-box .toggle {
display: inline-block;
padding: 4px 8px;
border: 1px solid #45494e;
color: dodgerblue;
border-radius: 4px;
user-select: none;
}
.hcs-box .toggle:hover {
background: #2a3347;
}
.hcs-box .toggle:active {
background: #101622;
}
.hcs-box table {
width: 100%;
margin-top: 8px;
}
.hcs-box th {
text-align: center;
padding-right: 0.5em !important; /* suppress the space allotted to the sortable markers */
}
.hcs-box td {
text-align: right;
color: #fff;
padding: 0 4px;
}
.hcs-box td:first-child {
text-align: left;
}
@media (max-width: 950px) {
.hcs-box td:first-child {
text-align: center;
}
}
.hcs-box tr > *:nth-child(3),
.hcs-box tr > *:nth-child(4),
.hcs-box tr > *:nth-child(5) {
font-style: italic;
opacity: 0.5;
}
.hcs-box .separator:first-child,
.hcs-box .separator:last-child,
.hcs-box .separator + .separator {
display: none;
}
.hcs-box .separator {
height: 2px;
background: #c8b36c !important;
}


