MediaWiki:Common.css: Difference between revisions
MediaWiki interface page
More actions
No edit summary |
No edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 193: | Line 193: | ||
========================================================== */ | ========================================================== */ | ||
:root { | /* Desktop tooltip width knob */ | ||
:root { --sv-passive-width: 540px; } | |||
} | |||
/* Consistent tooltip footprint for ALL passives (desktop) */ | /* Consistent tooltip footprint for ALL passives (desktop) */ | ||
table.spiritvale-passive-infobox { | table.spiritvale-passive-infobox { | ||
width: var(--sv-passive-width); | width: var(--sv-passive-width); | ||
max-width: | max-width: var(--sv-passive-width); /* <-- important: makes desktop actually widen */ | ||
margin: 1em auto; | margin: 1em auto; | ||
table-layout: fixed; | table-layout: fixed; | ||
| Line 262: | Line 261: | ||
} | } | ||
/* Mobile: | /* Mobile / portrait / small tablets (Citizen): keep hero row side-by-side */ | ||
@media (max-width: | @media (max-width: 768px) { | ||
table.spiritvale-passive-infobox { | body.skin-citizen table.spiritvale-passive-infobox { | ||
width: 100%; | width: 100%; | ||
max-width: 100%; | max-width: 100%; | ||
display: table !important; | |||
} | |||
body.skin-citizen table.spiritvale-passive-infobox > tbody { | |||
display: table-row-group !important; | |||
} | |||
body.skin-citizen table.spiritvale-passive-infobox > tbody > tr.spiritvale-infobox-main { | |||
display: table-row !important; | |||
} | } | ||
body.skin-citizen table.spiritvale-passive-infobox > tbody > tr.spiritvale-infobox-main > th, | |||
body.skin-citizen table.spiritvale-passive-infobox > tbody > tr.spiritvale-infobox-main > td { | |||
table.spiritvale-passive-infobox > tbody > tr.spiritvale-infobox-main > td { | |||
display: table-cell !important; | display: table-cell !important; | ||
float: none !important; | |||
box-sizing: border-box; | box-sizing: border-box; | ||
vertical-align: middle; | |||
text-align: center; | text-align: center; | ||
white-space: normal; | |||
overflow-wrap: anywhere; | |||
word-break: break-word; | |||
} | } | ||
body.skin-citizen table.spiritvale-passive-infobox > tbody > tr.spiritvale-infobox-main > th { | |||
width: 46% !important; | width: 46% !important; | ||
padding: 0.75em 0.75em; | padding: 0.75em 0.75em; | ||
} | } | ||
table.spiritvale-passive-infobox > tbody > tr.spiritvale-infobox-main > td { | |||
body.skin-citizen table.spiritvale-passive-infobox > tbody > tr.spiritvale-infobox-main > td { | |||
width: 54% !important; | width: 54% !important; | ||
padding: 0.75em 0.75em; | padding: 0.75em 0.75em; | ||
} | } | ||
body.skin-citizen table.spiritvale-passive-infobox > tbody > tr.spiritvale-infobox-main > th .image img { | |||
width: 64px !important; | width: 64px !important; | ||
height: auto !important; | height: auto !important; | ||
} | } | ||
body.skin-citizen table.spiritvale-passive-infobox .spiritvale-infobox-title, | |||
body.skin-citizen table.spiritvale-passive-infobox .spiritvale-infobox-description { | |||
table.spiritvale-passive-infobox .spiritvale-infobox-description { | |||
white-space: normal; | white-space: normal; | ||
overflow-wrap: anywhere; | overflow-wrap: anywhere; | ||