MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| (9 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; } | ||
/* Category Tiles Grid */ | /* Category Tiles Grid */ | ||
.category-tiles-container { | .category-tiles-container { | ||
--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; | ||
grid-template-columns: repeat(auto-fit, minmax(var(--tile- | grid-template-columns: repeat(auto-fit, minmax(calc(var(--tile-image-size) + 2px), 1fr)); | ||
gap: var(--tile-gap); | gap: var(--tile-gap); | ||
margin: 0 auto; | margin: 0 auto; | ||
max-width: | max-width: 100%; | ||
width: fit-content; | |||
} | } | ||
/* Size Variants - Override CSS Variables */ | /* Size Variants - Override CSS Variables */ | ||
.category-tiles-size-small { | .category-tiles-size-small { | ||
--tile-image-size: 80px; | --tile-image-size: 80px; | ||
--tile-font-size: 0.9em; | --tile-font-size: 0.9em; | ||
| Line 61: | Line 50: | ||
.category-tiles-size-large { | .category-tiles-size-large { | ||
--tile-image-size: 180px; | --tile-image-size: 180px; | ||
--tile-font-size: 1.3em; | --tile-font-size: 1.3em; | ||
| Line 72: | Line 60: | ||
border: 1px solid var(--border-color-subtle); | border: 1px solid var(--border-color-subtle); | ||
overflow: hidden; | overflow: hidden; | ||
text-align: center; | |||
} | } | ||
| Line 78: | Line 66: | ||
background: var(--background-color-neutral); | background: var(--background-color-neutral); | ||
border-color: var(--border-color-base); | border-color: var(--border-color-base); | ||
} | } | ||
| Line 89: | Line 76: | ||
} | } | ||
.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; | ||
} | } | ||
.tile-title { | .tile-title { | ||
font-weight: bold; | font-weight: bold; | ||
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- | height: 100%; | ||
} | |||
.tile-title span { | |||
padding: 0.25rem 0.5rem; | |||
} | } | ||
| Line 111: | Line 97: | ||
@media (max-width: 600px) { | @media (max-width: 600px) { | ||
.category-tiles-container { | .category-tiles-container { | ||
--tile-gap: 0. | --tile-gap: 0.5rem; | ||
} | } | ||
.category-tiles-size-small { | .category-tiles-size-small { | ||
--tile-image-size: 60px; | --tile-image-size: 60px; | ||
} | } | ||
.category-tiles-size-large { | .category-tiles-size-large { | ||
--tile-image-size: 120px; | --tile-image-size: 120px; | ||
} | } | ||
} | } | ||
| Line 145: | 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; } | |||
} | } | ||