MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
(7 intermediate revisions by the same user not shown) | |||
Line 27: | Line 27: | ||
td.navbox-list li { display: inline; padding-left: 4px; white-space: nowrap; } | td.navbox-list li { display: inline; padding-left: 4px; white-space: nowrap; } | ||
td.navbox-list li:before { content: "•"; padding-right: 4px; } | td.navbox-list li:before { content: "•"; padding-right: 4px; } | ||
Line 43: | Line 33: | ||
--tile-image-size: 120px; | --tile-image-size: 120px; | ||
--tile-font-size: 1.1em; | --tile-font-size: 1.1em; | ||
--tile-gap: | --tile-gap: 0.75rem; | ||
display: grid; | display: grid; | ||
Line 49: | Line 39: | ||
gap: var(--tile-gap); | gap: var(--tile-gap); | ||
margin: 0 auto; | margin: 0 auto; | ||
max-width: | max-width: 100%; | ||
width: fit-content; | |||
} | } | ||
Line 87: | Line 78: | ||
.tile-image img { | .tile-image img { | ||
width: var(--tile-image-size); | width: var(--tile-image-size) !important; | ||
height: var(--tile-image-size); | height: var(--tile-image-size) !important; | ||
object-fit: cover; | object-fit: cover; | ||
} | } | ||
Line 96: | Line 87: | ||
font-size: var(--tile-font-size); | font-size: var(--tile-font-size); | ||
border-top: 1px solid var(--border-color-muted); | border-top: 1px solid var(--border-color-muted); | ||
height: 100%; | |||
} | |||
.tile-title span { | |||
padding: 0.25rem 0.5rem; | |||
} | } | ||
Line 102: | Line 97: | ||
@media (max-width: 600px) { | @media (max-width: 600px) { | ||
.category-tiles-container { | .category-tiles-container { | ||
--tile-gap: 0. | --tile-gap: 0.5rem; | ||
} | } | ||
Line 111: | Line 106: | ||
.category-tiles-size-large { | .category-tiles-size-large { | ||
--tile-image-size: 120px; | --tile-image-size: 120px; | ||
} | } | ||
} | } | ||
Line 134: | Line 116: | ||
margin: 0 auto; | margin: 0 auto; | ||
display: block; | display: block; | ||
} | |||
/* top bar category icons */ | |||
#pp-symbols { | |||
display: flex; | |||
justify-content: center; | |||
gap: 0.25rem; | |||
flex-grow: 1; | |||
} | |||
/* hide top bar category icons on small screens */ | |||
@media (max-width: 970px) | |||
{ | |||
#pp-symbols { display: none; } | |||
} | } |