Template:Infobox hero/styles.css: Difference between revisionsGive feedback
Gammaton32 (talk | contribs) removed padding on spiritboon |
Make the collapsible toggle brackets follow the dropdown header's link color instead of the theme text color (with help from vergir-bot LLM) |
||
| (11 intermediate revisions by 5 users not shown) | |||
| Line 64: | Line 64: | ||
width: 100%; | width: 100%; | ||
max-width: 275px; | max-width: 275px; | ||
min-width: | min-width: 240px; | ||
border-collapse: collapse; | border-collapse: collapse; | ||
font-family: 'Retail Demo', 'Open Sans', serif; | font-family: 'Retail Demo', 'Open Sans', serif; | ||
font-size: | font-size: 15px; | ||
background-color: var(--th-heroinfobox-color1); | background-color: var(--th-heroinfobox-color1); | ||
margin: 0 0 1em 1em; | margin: 0 0 1em 1em; | ||
| Line 100: | Line 100: | ||
background-image: linear-gradient(180deg, var(--th-heroinfobox-color1-transparent) var(--th-heroinfobox-bg-grad-point1), var(--th-heroinfobox-color1-grad) var(--th-heroinfobox-bg-grad-height)); | background-image: linear-gradient(180deg, var(--th-heroinfobox-color1-transparent) var(--th-heroinfobox-bg-grad-point1), var(--th-heroinfobox-color1-grad) var(--th-heroinfobox-bg-grad-height)); | ||
background-color: transparent; | background-color: transparent; | ||
font-size: | font-size: 15px; | ||
text-align: center; | text-align: center; | ||
text-shadow: 1.5px 1.5px rgba(0, 0, 0, 0.7); | text-shadow: 1.5px 1.5px rgba(0, 0, 0, 0.7); | ||
| Line 118: | Line 118: | ||
.infobox-h-title{ | .infobox-h-title{ | ||
color: var(--th-heroinfobox-text-title); | color: var(--th-heroinfobox-text-title); | ||
font-size: | font-size: 22px; | ||
font-weight: bold; | font-weight: bold; | ||
text-align: center; | |||
text-shadow: 1.2px 2px 3px black, 1.2px 1.2px 0.1px #A5A5A5; | |||
} | |||
.infobox-h-title-regular{ | |||
color: var(--th-heroinfobox-text-title); | |||
font-size: 22px; | |||
font-weight: normal; | |||
text-align: center; | text-align: center; | ||
text-shadow: 1.2px 2px 3px black, 1.2px 1.2px 0.1px #A5A5A5; | text-shadow: 1.2px 2px 3px black, 1.2px 1.2px 0.1px #A5A5A5; | ||
| Line 129: | Line 137: | ||
justify-content: space-between; | justify-content: space-between; | ||
align-items: center; | align-items: center; | ||
min-height: | min-height: 34px; | ||
margin-top: | margin-top: 2px; | ||
margin-bottom: var(--th-heroinfobox-logo-bottom); | margin-bottom: var(--th-heroinfobox-logo-bottom); | ||
} | } | ||
| Line 206: | Line 214: | ||
/* --- Text Before Stats --- */ | /* --- Text Before Stats --- */ | ||
.infobox-h-text-weapon{ | .infobox-h-text-weapon{ | ||
padding: | padding: 2px 0; | ||
line-height: 1. | line-height: 1.2em; | ||
position: relative; | position: relative; | ||
} | } | ||
| Line 213: | Line 221: | ||
.infobox-h-text-stat-subtitle > *:first-child, | .infobox-h-text-stat-subtitle > *:first-child, | ||
.infobox-h-text-stat-subtitle-border > *:first-child{ | .infobox-h-text-stat-subtitle-border > *:first-child{ | ||
margin-top: | margin-top: 4px; | ||
margin-bottom: 0; | margin-bottom: 0; | ||
text-transform: uppercase; | text-transform: uppercase; | ||
| Line 221: | Line 229: | ||
} | } | ||
.infobox-h-text-stat-subtitle-border{ | .infobox-h-text-stat-subtitle-border{ | ||
margin-top: | margin-top: 2px; | ||
border-top: solid | border-top: solid 2px var(--th-heroinfobox-color2); | ||
} | } | ||
/* ---------- Hero Portrait Image ---------- */ | /* ---------- Hero Portrait Image ---------- */ | ||
.infobox-h-image > div{ | .infobox-h-image > div{ | ||
max-width: | max-width: 150px; | ||
height: auto; | height: auto; | ||
margin: auto; | margin: auto; | ||
| Line 239: | Line 247: | ||
filter: drop-shadow(2px 3px 2px var(--th-heroinfobox-color2-shadow)); | filter: drop-shadow(2px 3px 2px var(--th-heroinfobox-color2-shadow)); | ||
clip-path: rect(3px calc(100% - 3px) calc(100% - 3px) 3px round 8px); | clip-path: rect(3px calc(100% - 3px) calc(100% - 3px) 3px round 8px); | ||
} | |||
/* ---------- Hero Tags (Inside Infobox) ---------- */ | |||
.infobox-h-herotags-row { | |||
padding: 0; | |||
} | |||
.infobox-h-herotags-inner { | |||
display: flex; | |||
justify-content: center; | |||
flex-wrap: wrap; | |||
gap: 6px; | |||
padding: 4px 0 6px 0; | |||
} | |||
.infobox-h-herotag-pill { | |||
display: inline-block; | |||
padding: 2px 8px; | |||
border-radius: 4px; | |||
background: var(--th-heroinfobox-stats-back); | |||
font-size: 13px; | |||
font-weight: 600; | |||
color: var(--th-heroinfobox-text-title); | |||
text-transform: uppercase; | |||
letter-spacing: 0.03em; | |||
text-shadow: 1.5px 1.5px 0.8px rgba(0, 0, 0, 0.5); | |||
} | } | ||
| Line 247: | Line 281: | ||
.infobox-h-subsection { | .infobox-h-subsection { | ||
padding: 0 | padding: 0 2px 2px 2px; | ||
vertical-align: middle; | vertical-align: middle; | ||
} | } | ||
| Line 257: | Line 291: | ||
.infobox-h-subsection tr{ | .infobox-h-subsection tr{ | ||
font-size: | font-size: 14px; | ||
text-align: left; | text-align: left; | ||
line-height: 1. | line-height: 1.1em; | ||
} | } | ||
.infobox-h-subsection tr > td{ | .infobox-h-subsection tr > td{ | ||
padding-bottom: | padding-bottom: 2px; | ||
} | } | ||
.infobox-h-subsection tr:first-child > td{ | .infobox-h-subsection tr:first-child > td{ | ||
padding-top: 5px; | padding-top: 2px; | ||
} | |||
.infobox-h-dropdown .infobox-h-subsection-child tr:first-child > td { | |||
padding-top: 5px; | |||
} | } | ||
.infobox-h-subsection tr:last-child > td{ | .infobox-h-subsection tr:last-child > td{ | ||
padding-bottom: | padding-bottom: 4px; | ||
} | } | ||
.infobox-h-subsection tr > td:first-child{ | .infobox-h-subsection tr > td:first-child{ | ||
| Line 279: | Line 316: | ||
vertical-align: top; | vertical-align: top; | ||
} | } | ||
.infobox-h-subsection tr > td:first-child | .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; | |||
} | } | ||
.infobox-h-subsection tr > td:last-child{ | .infobox-h-subsection tr > td:last-child{ | ||
| Line 292: | Line 330: | ||
} | } | ||
.infobox-h-spiritboon:not(:empty){ | .infobox-h-spiritboon:not(:empty){ | ||
padding-right: | padding-right: 0; | ||
} | } | ||
.infobox-h-dropdown tr:first-child .infobox-h-spiritboon:not(:empty){ | .infobox-h-dropdown tr:first-child .infobox-h-spiritboon:not(:empty){ | ||
| Line 334: | 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 383: | Line 426: | ||
position: relative; | position: relative; | ||
width: calc(100% - 4px); | width: calc(100% - 4px); | ||
padding: | padding: 1px; | ||
background-color: var(--th-heroinfobox-header-back); | background-color: var(--th-heroinfobox-header-back); | ||
| Line 399: | Line 442: | ||
} | } | ||
.infobox-h-content .infotext-h-big{ | .infobox-h-content .infotext-h-big{ | ||
font-size: | font-size: 16px; | ||
} | } | ||
.infobox-h-content .infotext-h-bigger{ | .infobox-h-content .infotext-h-bigger{ | ||
text-shadow: 1.1px 2px 2px black, 1.2px 1.2px 0.2px #7a7369; | text-shadow: 1.1px 2px 2px black, 1.2px 1.2px 0.2px #7a7369; | ||
font-size: | font-size: 18px; | ||
} | } | ||
/* ------------ Stat Cell Modifiers -------------------*/ | |||
/* | /* Headroom for a section's first row when it carries a scaling icon. */ | ||
.infobox-h- | .infobox-h .infobox-h-dropdown .infobox-h-subsection-child tr > td.infobox-h-stat-label-scaled{ | ||
padding-top: 8px; | |||
- | |||
} | } | ||
/* Breathing room for value cells whose scaling icon sits near the edge. */ | |||
.infobox-h .infobox-h-dropdown .infobox-h-subsection-child tr > td.infobox-h-stat-value-padded{ | |||
padding-right: 5px; | |||
/* | |||
.infobox-h | |||
.infobox-h- | |||
} | } | ||