MediaWiki:Common.css: Difference between revisions
MediaWiki interface page
More actions
No edit summary Tags: Mobile edit Mobile web edit |
No edit summary Tags: Mobile edit Mobile web edit |
||
| Line 691: | Line 691: | ||
} | } | ||
/* Level selector */ | /* Level selector (table infobox legacy layout) */ | ||
:is(table.spiritvale-skill-infobox, table.spiritvale-passive-infobox) .module-level-selector .sv-level-ui{ | :is(table.spiritvale-skill-infobox, table.spiritvale-passive-infobox) | ||
width: | .module-level-selector .sv-level-ui{ | ||
margin:0 !important; | width:100%; | ||
display:flex; | margin:0 !important; | ||
flex-direction:column; | display:flex; | ||
gap:0.3em; | flex-direction:column; | ||
gap:0.3em; | |||
} | |||
/* Keep label weight if those table layouts still show it */ | |||
:is(table.spiritvale-skill-infobox, table.spiritvale-passive-infobox) | |||
.module-level-selector .sv-level-label{ | |||
font-weight:600; | |||
} | |||
/* NEW: slider row is always [bar left] [value right] */ | |||
:is(table.spiritvale-skill-infobox, table.spiritvale-passive-infobox) | |||
.module-level-selector .sv-level-slider{ | |||
display:flex; | |||
flex-direction:row; | |||
align-items:center; | |||
gap:10px; | |||
width:100%; | |||
} | } | ||
:is(table.spiritvale-skill-infobox, table.spiritvale-passive-infobox) .module-level-selector .sv-level- | /* Let the bar take remaining space (no hard 90% width) */ | ||
:is(table.spiritvale-skill-infobox, table.spiritvale-passive-infobox) | |||
.module-level-selector .sv-level-slider input[type="range"], | |||
:is(table.spiritvale-skill-infobox, table.spiritvale-passive-infobox) | |||
.module-level-selector .sv-level-slider .sv-level-range--custom, | |||
:is(table.spiritvale-skill-infobox, table.spiritvale-passive-infobox) | |||
.module-level-selector .sv-level-slider .sv-level-range[data-sv-slider="1"]{ | |||
flex:1 1 auto; | |||
min-width:0; | |||
width:auto; | |||
box-sizing:border-box; | |||
margin:0; | |||
order:1; | |||
} | } | ||
/* Ensure the JS-added end value stays on the right */ | |||
:is(table.spiritvale-skill-infobox, table.spiritvale-passive-infobox) | :is(table.spiritvale-skill-infobox, table.spiritvale-passive-infobox) | ||
.module-level-selector .sv-level-slider | .module-level-selector .sv-level-slider .sv-level-endvalue{ | ||
flex:0 0 auto; | |||
order:2; | |||
} | } | ||
/* Keep this if you still use the single-UI variant */ | |||
:is(table.spiritvale-skill-infobox, table.spiritvale-passive-infobox) | :is(table.spiritvale-skill-infobox, table.spiritvale-passive-infobox) | ||
.module-level-selector .sv-level-ui-single .sv-level-slider-single{ | .module-level-selector .sv-level-ui-single .sv-level-slider-single{ | ||
min-height:0.45em; | min-height:0.45em; | ||
} | } | ||