MediaWiki:Common.css

Матеріал з Країнопедії
Версія від 02:43, 2 травня 2026, створена Maintenance script (обговорення | внесок) (restyle wikitable: white gaps, gray cells, more padding)

Увага: Після публікування слід очистити кеш браузера, щоб побачити зміни.

  • Firefox / Safari: тримайте Shift, коли натискаєте Оновити, або натисніть Ctrl-F5 чи Ctrl-Shift-R (⌘-R на Apple Mac)
  • Google Chrome: натисніть Ctrl-Shift-R (⌘-Shift-R на Apple Mac)
  • Internet Explorer / Edge: тримайте Ctrl, коли натискаєте Оновити, або натисніть Ctrl-F5
  • Opera: натисніть Ctrl-F5
/* Place card */
.place-card{
  display:flex;
  gap:16px;
  padding:12px;
  border:1px solid #ddd;
  border-radius:12px;
  background:#fff;
  margin:0 0 14px 0;
}
.place-card__img{ width:260px; flex:0 0 260px; height:180px; overflow:hidden; }
.place-card__img img{ width:100%; height:100%; object-fit:cover; border-radius:10px; display:block; }
.place-card__title{ font-size:18px; font-weight:700; margin:0 0 6px 0; }
.place-card__meta{ font-size:14px; opacity:.9; margin:0 0 8px 0; }
.place-card__desc{ font-size:14px; line-height:1.35; }

/* Add-place button */
.add-place-btn{ text-align:center; margin:20px 0; }
.add-place-btn a{
  display:inline-block; background:#2a6df4; color:#fff !important; 
  padding:10px 14px; border-radius:8px; text-decoration:none; 
  font-weight:600; box-shadow:0 1px 2px rgba(0,0,0,.12);
}
.add-place-btn a:hover{ background:#1f57c2; }

/* Banner image — responsive (full width on mobile, native on desktop) */
.banner-wrapper { width: 100%; }
.banner-wrapper img,
.banner-image img { max-width: 100%; height: auto; display: block; }

/* Wikitable — clean style: no borders, cells separated by white gaps over light-gray fill */
.wikitable {
  background: transparent;
  border: 0;
  border-collapse: separate;
  border-spacing: 3px;
  margin: 1em 0;
  color: inherit;
}
.wikitable > * > tr > th,
.wikitable > * > tr > td {
  background: #f3f4f6;
  border: 0;
  padding: 12px 16px;
  vertical-align: top;
}
.wikitable > * > tr > th {
  background: #e5e7eb;
  font-weight: 600;
  text-align: left;
}