MediaWiki:Common.css: Difference between revisions
MediaWiki interface page
More actions
No edit summary |
No edit summary |
||
| Line 1,224: | Line 1,224: | ||
} | } | ||
/* Very narrow phones: | .wizlords-class-category-mobile { | ||
display: none; | |||
} | |||
/* Very narrow phones: use explicit paired category rows instead of trying to | |||
re-map MediaWiki's desktop table, whose headers and lists are rendered in | |||
separate table rows. This avoids horizontal scroll and keeps each category | |||
as icon/name on the left and class list on the right. */ | |||
@media (max-width: 490px) { | @media (max-width: 490px) { | ||
.wizlords-class-category-table { | .wizlords-class-category-table { | ||
display: | display: none; | ||
} | |||
.wizlords-class-category-mobile { | |||
display: block; | |||
width: 100%; | width: 100%; | ||
max-width: 100%; | max-width: 100%; | ||
margin: 18px auto 24px; | margin: 18px auto 24px; | ||
border: 0 !important; | border: 0 !important; | ||
overflow: visible; | overflow: visible; | ||
background: #171717; | |||
color: var(--wiz-text, #d2d2d2); | |||
} | } | ||
.wizlords-class-category- | .wizlords-class-category-mobile-row { | ||
display: grid; | |||
grid-template-columns: 38% 62%; | |||
border: 1px solid var(--wiz-race-table-border-colour, #4d4d4d); | |||
border-bottom: 0; | |||
} | } | ||
.wizlords-class-category- | .wizlords-class-category-mobile-row:last-child { | ||
border-bottom: 1px solid var(--wiz-race-table-border-colour, #4d4d4d); | |||
border-bottom: 1px solid | |||
} | } | ||
.wizlords-class-category- | .wizlords-class-category-mobile-heading { | ||
box-sizing: border-box; | |||
padding: 8px 8px !important; | padding: 8px 8px !important; | ||
border-right: 1px solid | border-right: 1px solid var(--wiz-race-table-border-colour, #4d4d4d); | ||
background: #1f1e1e; | |||
color: var(--wiz-heading, #e7e1d4); | |||
font-size: 16px; | |||
font-weight: bold; | |||
text-align: center; | text-align: center; | ||
} | } | ||
.wizlords-class-category- | .wizlords-class-category-mobile-list { | ||
box-sizing: border-box; | |||
padding: 8px 10px !important; | padding: 8px 10px !important; | ||
background: #171717; | |||
} | } | ||
.wizlords-class-category- | .wizlords-class-category-mobile .wizlords-class-category-icon { | ||
margin-bottom: 4px; | margin-bottom: 4px; | ||
} | } | ||
.wizlords-class-category-icon img { | .wizlords-class-category-mobile .wizlords-class-category-icon img { | ||
width: 64px; | width: 64px; | ||
height: auto; | height: auto; | ||
| Line 1,301: | Line 1,286: | ||
} | } | ||
.wizlords-class-category- | .wizlords-class-category-mobile ul { | ||
margin: 0; | margin: 0; | ||
padding-left: 18px; | padding-left: 18px; | ||
list-style: disc outside; | |||
} | |||
.wizlords-class-category-mobile li { | |||
display: list-item; | |||
margin: 0 0 3px; | |||
} | } | ||
} | } | ||