MediaWiki:Common.css: відмінності між версіями

Матеріал з Країнопедії
(lighten form input bg + border)
(fix selector: use .createboxInput (works for all field types, not only [type=text]))
Рядок 65: Рядок 65:
#pfForm dd { margin: 0; }
#pfForm dd { margin: 0; }
#pfForm .inputSpan { display: block; }
#pfForm .inputSpan { display: block; }
#pfForm input[type="text"],
#pfForm .createboxInput {
#pfForm textarea {
   width: 100%; max-width: 100%; box-sizing: border-box;
   width: 100%; max-width: 100%; box-sizing: border-box;
   padding: 10px 14px; font-size: 15px; line-height: 1.4;
   padding: 10px 14px; font-size: 15px; line-height: 1.4;
Рядок 73: Рядок 72:
   transition: border-color .15s, background .15s, box-shadow .15s;
   transition: border-color .15s, background .15s, box-shadow .15s;
}
}
#pfForm input[type="text"]:focus,
#pfForm .createboxInput:focus {
#pfForm textarea:focus {
   outline: none; background: #fff; border-color: #2a6df4;
   outline: none; background: #fff; border-color: #2a6df4;
   box-shadow: 0 0 0 3px rgba(42,109,244,0.15);
   box-shadow: 0 0 0 3px rgba(42,109,244,0.15);
}
}
#pfForm input[type="text"]::placeholder,
#pfForm .createboxInput::placeholder { color: #9ca3af; }
#pfForm textarea::placeholder { color: #9ca3af; }
#pfForm textarea { min-height: 110px; resize: vertical; }
#pfForm textarea { min-height: 110px; resize: vertical; }
#pfForm .pfUploadable {
#pfForm .pfUploadable {
Рядок 89: Рядок 86:
#pfForm .pf-coord-label { font-size: 13px; color: #6b7280; margin-right: 4px; }
#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) .inputSpan { display: inline-block; width: auto; }
#pfForm dd:has(.pf-coord-label) input[type="text"] { width: 140px; display: inline-block; }
#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; }
#pfForm dd:has(.pf-coord-label) { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

Версія за 14:57, 2 травня 2026

/* 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: #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; }