Jump to content

MediaWiki:Common.css: Difference between revisions

No edit summary
No edit summary
 
(25 intermediate revisions by the same user not shown)
Line 37: Line 37:
div.gallerytextwrapper { width: 120px !important; }
div.gallerytextwrapper { width: 120px !important; }
div.gallerytext a { line-height: normal;  display: inline-block; vertical-align: middle; height: 120px;}
div.gallerytext a { line-height: normal;  display: inline-block; vertical-align: middle; height: 120px;}
/* Category Tiles Grid */
.category-tiles-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0 auto;
  max-width: 1200px;
}
.category-tile {
  position: relative;
  background: var(--background-color-neutral-subtle);
  border-radius: 8px;
  border: 1px solid var(--border-color-subtle);
  overflow: hidden;
}
.category-tile:hover {
  background: var(--background-color-neutral);
  border: 1px solid var(--border-color-base);
}
.category-tile a {
  width: 100%;
  height: 100%;
  display: inline-block;
}
.tile-image {
  text-align: center;
}
.tile-title {   
  text-align: center;
  font-weight: bold;
  font-size: 1.2em;
}
.tile-title a,
.tile-title a:hover {
  padding: 0.75rem 0;
  color: var(--color-base);
  text-decoration: none;
}
/* Responsive adjustments */
@media (max-width: 768px) {
  .category-tiles-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .tile-image {
    height: 140px;
  }
  .tile-image img {
    height: 140px;
    width: 140px;
  }
}
@media (max-width: 300px) {
  .category-tiles-container {
    grid-template-columns: 1fr;
  }
}
/* Responsive banner styling */
.responsive-banner-container img.mw-file-element {
    max-width: 800px !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 auto;
    display: block;
}