MediaWiki:Common.css: Difference between revisions
Appearance
Created page with "→--- 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: contai..." Tags: Mobile edit Mobile web edit |
No edit summary Tags: Mobile edit Mobile web edit |
||
| (34 intermediate revisions by the same user not shown) | |||
| Line 84: | Line 84: | ||
/* === Hilangkan judul "Halaman Utama" di tampilan MobileFrontend === */ | /* === Hilangkan judul "Halaman Utama" di tampilan MobileFrontend === */ | ||
.page- | .page-Main_Page #section_0, | ||
.page- | .page-Main_Page .content-header, | ||
.page- | .page-Main_Page h1.firstHeading, | ||
.page- | .page-Main_Page #firstHeading { | ||
display: none !important; | display: none !important; | ||
} | } | ||
/* Opsional: rapikan jarak setelah header hilang */ | /* Opsional: rapikan jarak setelah header hilang */ | ||
.page- | .page-Main_Page .content { | ||
margin-top: 0 !important; | margin-top: 0 !important; | ||
padding-top: 0.5em !important; | padding-top: 0.5em !important; | ||
} | } | ||
@media screen { | |||
.infobox { | |||
.infobox { | background-color: var(--background-color-neutral-subtle, #f8f9fa); | ||
} | |||
} | } | ||
@media (max-width: 640px) { | |||
.infobox { | |||
.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 | .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 | .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 .infobox-above, | ||
.infobox .infobox-title, | |||
/* Remove element selector when every .infobox thing is using the standard module/templates */ | |||
.infobox caption { | |||
font-size: 125%; | |||
font-weight: bold; | |||
text-align: center; | |||
} | } | ||
/* | .infobox-title, | ||
.infobox | /* 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-header, .infobox-subheader | .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 .infobox-navbar { | ||
/* @noflip */ | |||
text-align: right; | |||
} | } | ||
/* | /* ========================================================== | ||
➕ HANYA MENAMBAHKAN DI BAWAH INI (Sesuai Perintah) | |||
========================================================== */ | |||
/* | /* 1. Menambahkan garis bawah halus abu-abu di setiap baris data */ | ||
.infobox th, | |||
.infobox td, | |||
.infobox- | .infobox-label, | ||
.infobox .infobox- | .infobox-data, | ||
.infobox-header, | |||
.infobox-subheader { | |||
border-bottom: 1px solid #eaecf0; | |||
padding: 6px 4px; /* Memberikan space halus agar tidak kaku */ | |||
} | } | ||
/* | /* 2. Mengatur ukuran huruf caption foto agak kecil dan TETAP TEGAK (tidak miring) */ | ||
.infobox .infobox-image, | |||
.infobox tr:has(img) + tr td { | |||
font-size: 88% !important; | |||
font-style: normal !important; | |||
color: #54595d; | |||
} | } | ||
#siteSub { | |||
display: block; | |||
} | |||
} | |||
Latest revision as of 09:33, 30 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;
}
@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,
/* 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: 125%;
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;
}
/* ==========================================================
➕ HANYA MENAMBAHKAN DI BAWAH INI (Sesuai Perintah)
========================================================== */
/* 1. Menambahkan garis bawah halus abu-abu di setiap baris data */
.infobox th,
.infobox td,
.infobox-label,
.infobox-data,
.infobox-header,
.infobox-subheader {
border-bottom: 1px solid #eaecf0;
padding: 6px 4px; /* Memberikan space halus agar tidak kaku */
}
/* 2. Mengatur ukuran huruf caption foto agak kecil dan TETAP TEGAK (tidak miring) */
.infobox .infobox-image,
.infobox tr:has(img) + tr td {
font-size: 88% !important;
font-style: normal !important;
color: #54595d;
}
#siteSub {
display: block;
}