MediaWiki:Common.css

Версія від 15:27, 2 травня 2026, створена Maintenance script (обговорення | внесок) (icon natural aspect; balanced lockup: icon 48h auto-w, wordmark 23px, gap 8px)

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

  • 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
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;800&display=swap');
/* Place card — vertical layout (image top, body below) */
.place-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 1px 8px rgba(0,0,0,.04);
  transition: transform .15s ease, box-shadow .15s ease;
}
.place-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0,0,0,.04), 0 6px 18px rgba(0,0,0,.08);
}
.place-card__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f5f7fb;
}
.place-card__img a, .place-card__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.place-card__body { padding: 14px 18px 18px; }
.place-card__title { font-size: 17px; font-weight: 700; margin: 0 0 8px; line-height: 1.25; }
.place-card__title a { color: #111827; text-decoration: none; }
.place-card__title a:hover { color: #2a6df4; }
.place-card__meta { font-size: 13px; color: #6b7280; margin: 0 0 10px; line-height: 1.5; }
.place-card__desc { font-size: 14px; line-height: 1.5; color: #374151; }

/* Grid: 2 columns desktop, 1 column mobile */
.places-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 16px 0;
}
@media (max-width: 640px) {
  .places-grid { grid-template-columns: 1fr; }
}

/* 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: #f5f7fb;
  border: 0;
  padding: 12px 16px;
  vertical-align: top;
}
.wikitable > * > tr > th {
  background: #e8eef7;
  font-weight: 600;
  text-align: left;
}

/* PageForms — Place form: card layout, modern inputs */
.pf-place-form { max-width: 720px; margin: 0 auto; }
#pfForm { background: #fff; }
#pfForm .pf-place-form h2 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.8px;
  color: #6b7280; font-weight: 600; margin: 28px 0 12px;
  padding-bottom: 6px; border-bottom: 1px solid #e8eef7;
}
#pfForm .pf-place-form h2:first-child { margin-top: 0; }
#pfForm dl { margin: 0 0 16px; }
#pfForm dt { font-size: 13px; color: #374151; font-weight: 600; margin-bottom: 6px; }
#pfForm dt small { font-weight: 400; color: #9ca3af; margin-left: 4px; }
#pfForm dd { margin: 0; }
#pfForm .inputSpan { display: block; }
#pfForm .createboxInput {
  width: 100%; max-width: 100%; box-sizing: border-box;
  padding: 10px 14px; font-size: 15px; line-height: 1.4;
  background: #fafbfd; border: 1px solid #eef1f6; border-radius: 8px;
  font-family: inherit; color: #111827;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
#pfForm .createboxInput:focus {
  outline: none; background: #fff; border-color: #2a6df4;
  box-shadow: 0 0 0 3px rgba(42,109,244,0.15);
}
#pfForm .createboxInput::placeholder { color: #9ca3af; }
#pfForm textarea { min-height: 110px; resize: vertical; }
#pfForm .pfUploadable {
  display: inline-block; margin-top: 8px; font-size: 13px;
  color: #2a6df4; text-decoration: none;
}
#pfForm .pfUploadable:hover { text-decoration: underline; }
/* coords row: keep Lat/Lon inputs side-by-side */
#pfForm .pf-coord-label { font-size: 13px; color: #6b7280; margin-right: 4px; }
#pfForm dd:has(.pf-coord-label) .inputSpan { display: inline-block; width: auto; }
#pfForm dd:has(.pf-coord-label) .createboxInput { width: 140px; display: inline-block; }
#pfForm dd:has(.pf-coord-label) { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Logo wordmark — Manrope font + tagline */

.mw-logo { align-items: center; gap: 8px; overflow: visible !important; }
.mw-logo-icon { height: 48px !important; width: auto !important; flex-shrink: 0; }
.mw-logo-container,
.vector-header-start .mw-logo-container {
  display: inline-block;
  overflow: visible !important;
  max-width: none !important;
  width: auto !important;
}
.mw-logo-wordmark {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif !important;
  font-weight: 800 !important;
  font-size: 23px !important;
  color: #1a2240 !important;
  letter-spacing: -0.015em;
  line-height: 1.1;
  display: block;
  white-space: nowrap;
  overflow: visible;
}
.mw-logo-container::after {
  content: 'вікіпедія для емігрантів';
  display: block;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #4b5d8c;
  margin-top: 3px;
  white-space: nowrap;
}