MediaWiki:Common.css
Appearance
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* --- 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;
}
.infobox-header,
.infobox-label,
.infobox-above,
.infobox-full-data,
.infobox-data,
.infobox-below,
.infobox-subheader,
.infobox-image,
.infobox-navbar,
/* Remove element selector when every .infobox thing is using the standard module/templates */
.infobox th,
.infobox td {
vertical-align: top;
}
.infobox-label,
.infobox-data,
/* Remove element selector when every .infobox thing is using the standard module/templates */
.infobox th,
.infobox td {
/* @noflip */
text-align: center;
}
/* Remove .infobox when element selectors above are removed */
.infobox .infobox-above,
.infobox .infobox-title,
/* Remove element selector when every .infobox thing is using the standard module/templates */
.infobox caption {
font-size: 85%;
font-weight: bold;
text-align: center;
}
.infobox-title,
/* Remove element selector when every .infobox thing is using the standard module/templates */
.infobox caption {
padding: 0.2em;
}
/* 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;
}
@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;
}
}