MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary Tags: Mobile edit Mobile web edit |
No edit summary Tags: Mobile edit Mobile web edit |
||
| Line 100: | Line 100: | ||
.infobox { | .infobox { | ||
border: 1px solid #a2a9b1; | border: 1px solid #a2a9b1; | ||
color: | color: #202122; | ||
padding: 0.2em; | padding: 0.2em; | ||
font-size: 88%; | font-size: 88%; | ||
line-height: 1.5em; | line-height: 1.5em; | ||
border- | /* Mengubah border-collapse agar garis pemisah (border-bottom) bisa tersambung rapi */ | ||
border-collapse: collapse; | |||
margin: 0.5em 0; | margin: 0.5em 0; | ||
} | } | ||
| Line 112: | Line 112: | ||
.infobox { | .infobox { | ||
background-color: var(--background-color-neutral-subtle, #f8f9fa); | background-color: var(--background-color-neutral-subtle, #f8f9fa); | ||
} | |||
} | } | ||
| Line 146: | Line 146: | ||
.infobox-image, | .infobox-image, | ||
.infobox-navbar, | .infobox-navbar, | ||
.infobox th, | .infobox th, | ||
.infobox td { | .infobox td { | ||
vertical-align: top; | vertical-align: top; | ||
/* Menambahkan garis pemisah horizontal tipis di setiap baris data */ | |||
border-top: 1px solid #a2a9b1; | |||
padding: 4px 6px; | |||
} | |||
/* Memastikan baris pertama (Judul/Foto) tidak memiliki garis pemisah di bagian atasnya */ | |||
.infobox tr:first-child th, | |||
.infobox tr:first-child td { | |||
border-top: 0; | |||
} | } | ||
.infobox-label, | .infobox-label, | ||
.infobox-data, | .infobox-data, | ||
.infobox th, | .infobox th, | ||
.infobox td { | .infobox td { | ||
/* @noflip */ | /* @noflip */ | ||
text-align: | /* Mengembalikan text-align ke kiri agar susunan parameter data rapi lurus */ | ||
text-align: left; | |||
} | |||
/* Mengunci label kiri agar posisinya condong ke kiri atau kanan secara proporsional */ | |||
.infobox-label, | |||
.infobox th { | |||
font-weight: bold; | |||
} | } | ||
| Line 164: | Line 178: | ||
.infobox .infobox-above, | .infobox .infobox-above, | ||
.infobox .infobox-title, | .infobox .infobox-title, | ||
.infobox caption { | .infobox caption { | ||
font-size: 125%; | font-size: 125%; | ||
font-weight: bold; | font-weight: bold; | ||
text-align: center; | text-align: center; | ||
border-top: 0; /* Menghilangkan border atas untuk judul utama */ | |||
} | } | ||
.infobox-title, | .infobox-title, | ||
.infobox caption { | .infobox caption { | ||
padding: 0. | padding: 0.4em; | ||
} | } | ||
Revision as of 22:06, 29 May 2026
/* --- FIX UKURAN DAN SKALA LOGO (UNTUK SEMUA SKIN) --- */
/* Menargetkan elemen wadah logo */
#p-logo {
/* Memaksa elemen wadah memiliki ukuran standar */
width: 135px;
height: 135px;
}
/* Menargetkan elemen link di dalam wadah logo */
#p-logo a, .mw-wiki-logo {
/* Memaksa ukuran area gambar agar sesuai */
width: 135px !important;
height: 135px !important;
/* Memastikan gambar diskala (terutama untuk SVG) */
background-size: contain !important;
/* Memastikan gambar berada di tengah dan tidak berulang */
background-position: center center !important;
background-repeat: no-repeat !important;
}
/* ---------- CAPTCHA STYLING ---------- */
.captcha-code {
display: inline-block;
padding: 10px 16px;
font-size: 1.8em;
font-weight: 700;
font-family: monospace;
border-radius: 10px;
letter-spacing: 4px;
user-select: none;
text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
margin: 10px auto;
text-align: center;
animation: fadeIn 0.4s ease-in-out;
}
/* Bikin background captcha punya warna acak */
.captcha-code {
background: linear-gradient(135deg, #f8f8f8, #e8e8e8);
border: 1px solid #bbb;
color: #2c3e50;
}
/* Variasi warna random */
.captcha-code:nth-child(3n) {
background: linear-gradient(135deg, #e3f2fd, #bbdefb);
border-color: #90caf9;
color: #0d47a1;
}
.captcha-code:nth-child(3n+1) {
background: linear-gradient(135deg, #f1f8e9, #dcedc8);
border-color: #aed581;
color: #33691e;
}
.captcha-code:nth-child(3n+2) {
background: linear-gradient(135deg, #fff3e0, #ffe0b2);
border-color: #ffb74d;
color: #e65100;
}
/* Label agar center di HP */
.mw-confirmedit-captcha label {
display: block;
text-align: center;
margin: 12px 0;
font-size: 1em;
font-weight: 500;
color: #444;
}
/* Responsif untuk seluler */
@media (max-width: 720px) {
.captcha-code { font-size: 2.2em; padding: 12px 18px; }
}
/* Animasi halus saat muncul */
@keyframes fadeIn {
from { opacity: 0; transform: scale(0.9); }
to { opacity: 1; transform: scale(1); }
}
/* === Hilangkan judul "Halaman Utama" di tampilan MobileFrontend === */
.page-Main_Page #section_0,
.page-Main_Page .content-header,
.page-Main_Page h1.firstHeading,
.page-Main_Page #firstHeading {
display: none !important;
}
/* Opsional: rapikan jarak setelah header hilang */
.page-Main_Page .content {
margin-top: 0 !important;
padding-top: 0.5em !important;
}
/* Infoboxes */
.infobox {
border: 1px solid #a2a9b1;
color: #202122;
padding: 0.2em;
font-size: 88%;
line-height: 1.5em;
/* Mengubah border-collapse agar garis pemisah (border-bottom) bisa tersambung rapi */
border-collapse: collapse;
margin: 0.5em 0;
}
@media screen {
.infobox {
background-color: var(--background-color-neutral-subtle, #f8f9fa);
}
}
@media (max-width: 640px) {
.infobox {
width: 100%;
}
.infobox .nowrap {
white-space: normal;
}
}
@media (min-width: 640px) {
.infobox {
/* @noflip */
margin-left: 1em;
/* @noflip */
float: right;
/* @noflip */
clear: right;
width: 22em;
}
}
.infobox-header,
.infobox-label,
.infobox-above,
.infobox-full-data,
.infobox-data,
.infobox-below,
.infobox-subheader,
.infobox-image,
.infobox-navbar,
.infobox th,
.infobox td {
vertical-align: top;
/* Menambahkan garis pemisah horizontal tipis di setiap baris data */
border-top: 1px solid #a2a9b1;
padding: 4px 6px;
}
/* Memastikan baris pertama (Judul/Foto) tidak memiliki garis pemisah di bagian atasnya */
.infobox tr:first-child th,
.infobox tr:first-child td {
border-top: 0;
}
.infobox-label,
.infobox-data,
.infobox th,
.infobox td {
/* @noflip */
/* Mengembalikan text-align ke kiri agar susunan parameter data rapi lurus */
text-align: left;
}
/* Mengunci label kiri agar posisinya condong ke kiri atau kanan secara proporsional */
.infobox-label,
.infobox th {
font-weight: bold;
}
/* Remove .infobox when element selectors above are removed */
.infobox .infobox-above,
.infobox .infobox-title,
.infobox caption {
font-size: 125%;
font-weight: bold;
text-align: center;
border-top: 0; /* Menghilangkan border atas untuk judul utama */
}
.infobox-title,
.infobox caption {
padding: 0.4em;
}
/* Remove .infobox when element selectors above are removed */
.infobox .infobox-header,
.infobox .infobox-subheader,
.infobox .infobox-image,
.infobox .infobox-full-data,
.infobox .infobox-below {
text-align: center;
}
/* Remove .infobox when element selectors above are removed */
.infobox .infobox-navbar {
/* @noflip */
text-align: right;
}
#siteSub {
display: block;
}