MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
(16 intermediate revisions by the same user not shown) | |||
Line 28: | Line 28: | ||
td.navbox-list li:before { content: "•"; padding-right: 4px; } | td.navbox-list li:before { content: "•"; padding-right: 4px; } | ||
/* | |||
/* Category Tiles Grid */ | |||
max- | .category-tiles-container { | ||
--tile-image-size: 120px; | |||
--tile-font-size: 1.1em; | |||
--tile-gap: 0.75rem; | |||
display: grid; | |||
grid-template-columns: repeat(auto-fit, minmax(calc(var(--tile-image-size) + 2px), 1fr)); | |||
gap: var(--tile-gap); | |||
margin: 0 auto; | |||
max-width: 100%; | |||
width: fit-content; | |||
} | } | ||
/* Size Variants - Override CSS Variables */ | |||
.category-tiles-size-small { | |||
--tile-image-size: 80px; | |||
--tile-font-size: 0.9em; | |||
} | |||
.category-tiles-size-large { | |||
.category-tiles- | --tile-image-size: 180px; | ||
--tile-font-size: 1.3em; | |||
} | } | ||
/* Tile Styling */ | |||
.category-tile { | .category-tile { | ||
background: var(--background-color-neutral-subtle); | |||
border-radius: 8px; | |||
border: 1px solid var(--border-color-subtle); | |||
overflow: hidden; | |||
text-align: center; | |||
} | } | ||
.category-tile:hover { | .category-tile:hover { | ||
background: var(--background-color-neutral); | |||
border-color: var(--border-color-base); | |||
} | } | ||
.category-tile a { | .category-tile a { | ||
display: block; | |||
width: 100%; | width: 100%; | ||
height: 100%; | height: 100%; | ||
color: var(--color-base); | |||
text-decoration: none; | |||
} | } | ||
.tile-image { | |||
.tile-image img { | |||
width: var(--tile-image-size) !important; | |||
height: var(--tile-image-size) !important; | |||
object-fit: cover; | |||
} | } | ||
.tile-title { | .tile-title { | ||
font-weight: bold; | |||
font-size: var(--tile-font-size); | |||
border-top: 1px solid var(--border-color-muted); | |||
height: 100%; | |||
} | } | ||
.tile-title | .tile-title span { | ||
padding: 0.25rem 0.5rem; | |||
} | } | ||
/* Responsive | /* Responsive - Mobile First */ | ||
@media (max-width: | @media (max-width: 600px) { | ||
.category-tiles-container { | |||
--tile-gap: 0.5rem; | |||
} | |||
.category-tiles-size-small { | |||
--tile-image-size: 60px; | |||
} | |||
.category-tiles-size-large { | |||
--tile-image-size: 120px; | |||
} | |||
} | |||
} | } | ||
/* Responsive banner styling */ | /* Responsive banner styling */ | ||
.responsive-banner-container img.mw-file-element { | .responsive-banner-container img.mw-file-element { | ||
max-width: | max-width: 800px !important; | ||
width: 100% !important; | width: 100% !important; | ||
height: auto !important; | height: auto !important; | ||
Line 124: | Line 118: | ||
} | } | ||
/* | |||
/* 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; } | |||
} | } |