MediaWiki:Citizen.css: Difference between revisions
MediaWiki interface page
More actions
No edit summary |
No edit summary |
||
| Line 598: | Line 598: | ||
/* Upper tablet widths can cleanly fit seven or eight compact icons in one | /* Upper tablet widths can cleanly fit seven or eight compact icons in one | ||
row. | row. Use flex here rather than auto-fit grid: auto-fit can create an | ||
empty eighth track for seven-item groups once there is enough width, | |||
while flex only lays out real icon items. */ | |||
@media screen and (min-width: 800px) { | @media screen and (min-width: 800px) { | ||
.skin-citizen .wizlords-mainpage-items, | .skin-citizen .wizlords-mainpage-items, | ||
.skin-citizen .wizlords-mainpage-left > .center:has(> .wizlords-imagetext), | .skin-citizen .wizlords-mainpage-left > .center:has(> .wizlords-imagetext), | ||
.skin-citizen .wizlords-mainpage-right > .center:has(> .wizlords-imagetext) { | .skin-citizen .wizlords-mainpage-right > .center:has(> .wizlords-imagetext) { | ||
display: flex; | |||
flex-wrap: wrap; | |||
gap: 10px 14px; | gap: 10px 14px; | ||
justify-content: center; | |||
align-items: flex-start; | |||
} | |||
.skin-citizen .wizlords-mainpage-left > .center:has(> .wizlords-imagetext) > p, | |||
.skin-citizen .wizlords-mainpage-right > .center:has(> .wizlords-imagetext) > p { | |||
flex: 0 0 100%; | |||
width: 100%; | |||
} | |||
.skin-citizen .wizlords-imagetext { | |||
flex: 0 0 78px; | |||
} | } | ||
} | } | ||