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

Vergir (talk | contribs)
Harden stat cell modifier selectors so they no longer depend on source order to win (with help from vergir-bot LLM)
Vergir (talk | contribs)
Make the collapsible toggle brackets follow the dropdown header's link color instead of the theme text color (with help from vergir-bot LLM)
 
(2 intermediate revisions by 2 users not shown)
Line 316: Line 316:
vertical-align: top;
vertical-align: top;
}
}
.infobox-h-subsection tr > td:first-child span{
.infobox-h-subsection tr > td:first-child .infobox-h-stat-label{
color: var(--th-heroinfobox-stats-text);
color: var(--th-heroinfobox-stats-text);
text-decoration: underline;
text-decoration: underline;
Line 372: Line 372:
.infobox-h-dropdown-header button .mw-collapsible-text:hover{
.infobox-h-dropdown-header button .mw-collapsible-text:hover{
color: white;
color: white;
}
.infobox-h-dropdown-header > button::before,
.infobox-h-dropdown-header > button::after{
color: inherit;
}
}


Line 446: Line 451:


/* ------------ Stat Cell Modifiers -------------------*/
/* ------------ Stat Cell Modifiers -------------------*/
/* Applied by [[Module:InfoboxHero]] in place of inline styles.
  The leading .infobox-h keeps these ahead of
  '.infobox-h-dropdown .infobox-h-subsection-child tr:first-child > td',
  which they would otherwise merely tie with, leaving them dependent on
  source order. */


/* Headroom for a section's first row when it carries a scaling icon. */
/* Headroom for a section's first row when it carries a scaling icon. */