Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.css: Difference between revisions

MediaWiki interface page
Created page with "CSS placed here will be applied to all skins: Layout helpers: .hp-section { margin: 24px 0; } .hp-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; } .hp-col { min-width: 0; } Hero: .hp-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: center; } .hp-hero__deck { opacity: 0.9; } .hp-hero__img img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; } Universes grid: .ug-grid { display: gr..."
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* Контейнер секції */
/* Layout helpers */
.universes-wrap { margin: 8px 0 20px; }
.hp-section { margin: 24px 0; }
.hp-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.hp-col { min-width: 0; }


/* Hero */
/* Сітка на 4 в ряд (адаптив) */
.hp-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: center; }
.ug-grid {
.hp-hero__deck { opacity: 0.9; }
  display: grid;
.hp-hero__img img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 1100px) { .ug-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .ug-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .ug-grid { grid-template-columns: 1fr; } }


/* Universes grid */
/* Картка */
.ug-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.ug-item { min-width: 0; }
.ug-card { display:block; border:1px solid var(--border-color,#e5e5e5); border-radius:8px; overflow:hidden; background:#fff; }
.ug-card {
.ug-card__img img{ width:100%; height:160px; object-fit:cover; display:block; }
  display: block;
.ug-card__body { padding:10px 12px; }
  border: 1px solid var(--border-color, #2a2a2a);
.ug-card__title { font-weight:600; }
  border-radius: 10px;
.ug-card__tag { font-size:12px; opacity:.8; }
  overflow: hidden;
  background: var(--page-element-bg, #111);
  text-decoration: none;
  color: inherit;
}
.ug-card__img img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.ug-card__body { padding: 10px 12px; }
.ug-card__title { font-weight: 700; }
.ug-card__tag { font-size: 12px; opacity: .75; }


/* List sections */
/* Кнопка “View all” */
.hp-list ul { margin: 0; }
.universes-cta { text-align: center; margin-top: 14px; }
.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-color, #2a2a2a);
  background: var(--page-element-bg, #111);
  font-weight: 700;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.1); }


/* Badges */
/* Страховка, щоб нічого не тягнуло ширину */
.badges-row { display:flex; flex-wrap:wrap; gap:12px; }
html, body { overflow-x: hidden; }
.badge-link { display:inline-block; padding:10px 14px; border:1px solid var(--border-color,#ddd); border-radius:22px; font-weight:600; background:#f8f8f8; }
img, video, table, .thumb { max-width: 100%; height: auto; }
 
/* Cards Row */
.cards-row { display:grid; grid-template-columns: repeat(3, 1fr); gap:16px; }
.card-sm { border:1px solid var(--border-color,#e5e5e5); border-radius:8px; overflow:hidden; background:#fff; }
.card-sm__img img { width:100%; height:160px; object-fit:cover; display:block; }
.card-sm__title { padding:10px 12px; font-weight:600; }
 
/* Footer */
.hp-footer { margin-top: 36px; padding: 24px 0; border-top: 1px solid var(--border-color,#e5e5e5); display:grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hp-footer__col ul { margin: 6px 0 0 16px; }
.hp-footer__bottom { grid-column: 1 / -1; margin-top: 12px; font-size: 12px; opacity: .7; }
 
/* Responsive */
@media (max-width: 1200px){
  .ug-grid { grid-template-columns: repeat(4, 1fr); }
  .hp-hero { grid-template-columns: 1fr; }
}
@media (max-width: 720px){
  .ug-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-row { grid-template-columns: 1fr; }
  .hp-two-col { grid-template-columns: 1fr; }
  .hp-footer { grid-template-columns: 1fr 1fr; }
}

Latest revision as of 12:19, 4 November 2025

/* Контейнер секції */
.universes-wrap { margin: 8px 0 20px; }

/* Сітка на 4 в ряд (адаптив) */
.ug-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 1100px) { .ug-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .ug-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .ug-grid { grid-template-columns: 1fr; } }

/* Картка */
.ug-item { min-width: 0; }
.ug-card {
  display: block;
  border: 1px solid var(--border-color, #2a2a2a);
  border-radius: 10px;
  overflow: hidden;
  background: var(--page-element-bg, #111);
  text-decoration: none;
  color: inherit;
}
.ug-card__img img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.ug-card__body { padding: 10px 12px; }
.ug-card__title { font-weight: 700; }
.ug-card__tag { font-size: 12px; opacity: .75; }

/* Кнопка “View all” */
.universes-cta { text-align: center; margin-top: 14px; }
.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-color, #2a2a2a);
  background: var(--page-element-bg, #111);
  font-weight: 700;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.1); }

/* Страховка, щоб нічого не тягнуло ширину */
html, body { overflow-x: hidden; }
img, video, table, .thumb { max-width: 100%; height: auto; }