Template:ClassInfoBox/styles.css: Difference between revisions
Template page
More actions
m Protected "Template:ClassInfoBox/styles.css" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) Tags: Mobile edit Mobile web edit |
No edit summary Tags: Mobile edit Mobile web edit |
||
| Line 1: | Line 1: | ||
/* Template:ClassInfobox/styles.css | /* SpiritVale Wiki — Template:ClassInfobox/styles.css */ | ||
/* Class overview styles. Shared infobox primitives stay in Common.css. */ | |||
*/ | /* -------------------------------------------------------------------------- */ | ||
/* 1) Shell */ | |||
/* -------------------------------------------------------------------------- */ | |||
.sv-class-overview{ | .sv-class-overview{ | ||
float:right; | float:right; | ||
width:100%; | width:100%; | ||
max-width:200px; | max-width:200px; | ||
margin:0 0 2em 2em; | margin:0 0 2em 2em; | ||
box-sizing:border-box; | box-sizing:border-box; | ||
border-radius:18px; | border-radius:18px; | ||
overflow:hidden; | overflow:hidden; | ||
clear:right; | clear:right; | ||
} | } | ||
/* -------------------------------------------------------------------------- */ | |||
/* 2) Table */ | |||
/* -------------------------------------------------------------------------- */ | |||
.sv-class-overview__table{ | .sv-class-overview__table{ | ||
width:100%; | width:100%; | ||
border-collapse:separate; | border-collapse:separate; | ||
border-spacing:0; | border-spacing:0; | ||
} | } | ||
.sv-class-overview__heading, | .sv-class-overview__heading, | ||
.sv-class-overview__subhead{ | .sv-class-overview__subhead{ | ||
padding:10px 10px; | padding:10px 10px; | ||
text-align:center; | text-align:center; | ||
font-weight:800; | font-weight:800; | ||
} | } | ||
.sv-class-overview__table td{ | .sv-class-overview__table td{ | ||
padding:7px 10px; | padding:7px 10px; | ||
border-bottom:1px solid | border-bottom:1px solid var(--sv-ui-line1); | ||
vertical-align:middle; | vertical-align:middle; | ||
} | } | ||
.sv-class-overview__table tr:last-child td{ | .sv-class-overview__table tr:last-child td{ | ||
border-bottom:none; | border-bottom:none; | ||
} | } | ||
/* -------------------------------------------------------------------------- */ | |||
/* 3) Cell content */ | |||
/* -------------------------------------------------------------------------- */ | |||
.sv-class-overview__label{ | .sv-class-overview__label{ | ||
text-align:left; | text-align:left; | ||
font-weight:700; | font-weight:700; | ||
white-space:nowrap; | color:var(--sv-ui-text1); | ||
white-space:nowrap; | |||
} | } | ||
.sv-class-overview__value{ | .sv-class-overview__value{ | ||
text-align:right; | text-align:right; | ||
font-weight:600; | font-weight:600; | ||
color:var(--sv-ui-text2); | |||
} | } | ||
.sv-class-overview__label img{ | .sv-class-overview__label img{ | ||
vertical-align:middle; | vertical-align:middle; | ||
margin-right:6px; | margin-right:6px; | ||
} | } | ||
/* -------------------------------------------------------------------------- */ | |||
/* 4) Responsive */ | |||
/* -------------------------------------------------------------------------- */ | |||
@media (max-width:500px){ | @media (max-width:500px){ | ||
.sv-class-overview{ | .sv-class-overview{ | ||
float:none; | float:none; | ||
max-width:none; | max-width:none; | ||
margin:0 0 12px 0; | margin:0 0 12px 0; | ||
} | } | ||
.sv-class-overview__label, | |||
.sv-class-overview__value{ | .sv-class-overview__label, | ||
text-align:left; | .sv-class-overview__value{ | ||
} | text-align:left; | ||
} | |||
} | } | ||
Revision as of 22:18, 6 March 2026
/* SpiritVale Wiki — Template:ClassInfobox/styles.css */
/* Class overview styles. Shared infobox primitives stay in Common.css. */
/* -------------------------------------------------------------------------- */
/* 1) Shell */
/* -------------------------------------------------------------------------- */
.sv-class-overview{
float:right;
width:100%;
max-width:200px;
margin:0 0 2em 2em;
box-sizing:border-box;
border-radius:18px;
overflow:hidden;
clear:right;
}
/* -------------------------------------------------------------------------- */
/* 2) Table */
/* -------------------------------------------------------------------------- */
.sv-class-overview__table{
width:100%;
border-collapse:separate;
border-spacing:0;
}
.sv-class-overview__heading,
.sv-class-overview__subhead{
padding:10px 10px;
text-align:center;
font-weight:800;
}
.sv-class-overview__table td{
padding:7px 10px;
border-bottom:1px solid var(--sv-ui-line1);
vertical-align:middle;
}
.sv-class-overview__table tr:last-child td{
border-bottom:none;
}
/* -------------------------------------------------------------------------- */
/* 3) Cell content */
/* -------------------------------------------------------------------------- */
.sv-class-overview__label{
text-align:left;
font-weight:700;
color:var(--sv-ui-text1);
white-space:nowrap;
}
.sv-class-overview__value{
text-align:right;
font-weight:600;
color:var(--sv-ui-text2);
}
.sv-class-overview__label img{
vertical-align:middle;
margin-right:6px;
}
/* -------------------------------------------------------------------------- */
/* 4) Responsive */
/* -------------------------------------------------------------------------- */
@media (max-width:500px){
.sv-class-overview{
float:none;
max-width:none;
margin:0 0 12px 0;
}
.sv-class-overview__label,
.sv-class-overview__value{
text-align:left;
}
}