MediaWiki:Common.css: Difference between revisions
MediaWiki interface page
More actions
No edit summary Tag: Reverted |
No edit summary Tags: Manual revert Reverted |
||
| Line 481: | Line 481: | ||
} | } | ||
/* Type | /* ------------------------- | ||
table.spiritvale - skill - infobox.sv - type - | Skill top band: Type grid (4 chunks, label + value) | ||
------------------------- */ | |||
table.spiritvale - skill - infobox.sv - type - grid{ | |||
width: 100 % !important; | width: 100 % !important; | ||
margin: 0!important; | margin: 0!important; | ||
padding: 0.75em 0.9em; | padding: 0.75em 0.9em; | ||
box - sizing: border - box; | |||
display: grid; | |||
grid - template - columns: 1fr 1fr; | |||
gap: 0; | |||
} | |||
table.spiritvale - skill - infobox.sv - type - chunk{ | |||
display: flex; | |||
flex - direction: column; | |||
align - items: center; | |||
justify - content: center; | |||
text - align: center; | |||
padding: 0.45em 0.55em; | |||
border - top: 1px solid rgba(148, 163, 184, 0.18); | |||
border - left: 1px solid rgba(148, 163, 184, 0.18); | |||
} | } | ||
table.spiritvale - skill - infobox.sv - type - | /* remove outer “duplicate” borders for the 2x2 grid */ | ||
table.spiritvale - skill - infobox.sv - type - | table.spiritvale - skill - infobox.sv - type - chunk: nth - child(-n + 2){ | ||
border - top: none; | |||
} | |||
table.spiritvale - skill - infobox.sv - type - chunk: nth - child(odd){ | |||
border - left: none; | |||
} | } | ||
table.spiritvale - skill - infobox.sv - type - | table.spiritvale - skill - infobox.sv - type - label{ | ||
width: | width: 100 %; | ||
font - weight: | padding: 0.25em 0.4em; | ||
border - radius: 6px; | |||
font - weight: 800; | |||
text - transform: uppercase; | |||
letter - spacing: 0.04em; | |||
font - size: 0.8em; | |||
background: linear - gradient( | |||
180deg, | |||
rgba(122, 111, 176, 0.35), | |||
rgba(90, 78, 124, 0.20) | |||
); | |||
} | } | ||
table.spiritvale - skill - infobox.sv - type - | table.spiritvale - skill - infobox.sv - type - value{ | ||
margin - top: 0.25em; | |||
font - weight: 600; | |||
line - height: 1.25; | |||
white - space: normal; | white - space: normal; | ||
overflow - wrap: anywhere; | overflow - wrap: anywhere; | ||
| Line 523: | Line 544: | ||
} | } | ||
/* Mobile: make the 4 chunks stack cleanly */ | |||
@media(max - width: 560px) { | @media(max - width: 560px) { | ||
table.spiritvale - skill - infobox.sv - | table.spiritvale - skill - infobox.sv - type - grid{ | ||
grid - template - columns: 1fr; | |||
} | } | ||
table.spiritvale - skill - infobox.sv - | table.spiritvale - skill - infobox.sv - type - chunk{ | ||
border - | border - left: none; | ||
border - | } | ||
table.spiritvale - skill - infobox.sv - type - chunk: nth - child(1){ | |||
border - top: none; | |||
} | |||
table.spiritvale - skill - infobox.sv - type - chunk: nth - child(-n + 2){ | |||
border - top: 1px solid rgba(148, 163, 184, 0.18); | |||
} | } | ||
} | } | ||