Tanda: Suntingan perangkat seluler Suntingan peramban seluler |
Tanda: Dikembalikan Suntingan perangkat seluler Suntingan peramban seluler |
| Baris 1: |
Baris 1: |
| /* --- FIX UKURAN DAN SKALA LOGO (UNTUK SEMUA SKIN) --- */ | | /* |
| | | * This is the CSS for all skins (both desktop and mobile) on id.Wikipedia. |
| /* Menargetkan elemen wadah logo */
| | * This factor makes it different from most WMF wikis. See [[phab:T375538]] |
| #p-logo {
| | * and related. |
| /* Memaksa elemen wadah memiliki ukuran standar */
| | * |
| width: 135px;
| | * Styling inside .mw-parser-output should generally use TemplateStyles. |
| height: 135px;
| | */ |
| }
| | /* Reset italic styling set by user agent */ |
| | | cite, |
| /* Menargetkan elemen link di dalam wadah logo */
| | dfn { |
| #p-logo a, .mw-wiki-logo {
| | font-style: inherit; |
| /* 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-Halaman_Utama #section_0,
| |
| .page-Halaman_Utama .content-header,
| |
| .page-Halaman_Utama h1.firstHeading,
| |
| .page-Halaman_Utama #firstHeading {
| |
| display: none !important;
| |
| }
| |
| | |
| /* Opsional: rapikan jarak setelah header hilang */
| |
| .page-Halaman_Utama .content {
| |
| margin-top: 0 !important;
| |
| padding-top: 0.5em !important;
| |
| }
| |
| | |
| /* ====== INFOBOX STYLE ====== */
| |
| | |
| .infobox {
| |
| border: 1px solid #a2a9b1;
| |
| border-collapse: collapse;
| |
| background-color: #f8f9fa;
| |
| color: #000;
| |
| margin: 1em 0 1em 1em;
| |
| padding: 0;
| |
| width: 100%;
| |
| max-width: 330px; /* biar mobile rapi */
| |
| float: right;
| |
| clear: right;
| |
| font-size: 65%;/* ukuran HP */
| |
| }
| |
| | |
| /* HEADER ATAS (TITLE) */
| |
| /* Warna biru muda + teks rata tengah */
| |
| .infobox-title, .infobox .infobox-above {
| |
| background: #cedff2;
| |
| text-align: center;
| |
| font-size: 120%;
| |
| font-weight: bold;
| |
| padding: 8px;
| |
| border-bottom: 1px solid #a2a9b1;
| |
| }
| |
| | |
| /* ====== GARIS SETIAP BARIS ====== */
| |
| .infobox td, .infobox th {
| |
| border-top: 1px solid #a2a9b1 !important;
| |
| padding: 6px;
| |
| } | | } |
|
| |
|
| /* LABEL KIRI */ | | /* Straight quote marks for <q> */ |
| .infobox-label {
| | q { |
| font-weight: bold;
| | quotes: '"' '"' "'" "'"; |
| width: 40%;
| |
| vertical-align: top;
| |
| } | | } |
|
| |
|
| /* Data infobox rata tengah */ | | /* Avoid collision of blockquote with floating elements by swapping margin and padding */ |
| .infobox-label {
| | blockquote { |
| text-align: center !important;
| | overflow: hidden; |
| | margin: 1em 0; |
| | padding: 0 40px; |
| } | | } |
|
| |
|
| /* DATA KANAN */ | | /* Consistent size for <small>, <sub> and <sup> */ |
| .infobox-data {
| | small { |
| width: 50%;
| | font-size: 85%; |
| } | | } |
|
| |
|
| /* Data infobox rata tengah */ | | .mw-body-content sub, |
| .infobox-data {
| | .mw-body-content sup, |
| text-align: center !important;
| | span[rel~='mw:referencedBy'] a::before /* for Parsoid */ { |
| | font-size: 80%; |
| } | | } |
|
| |
|
| /* BAGIAN HEADING DALAM (seperti “Informasi latar belakang”) */ | | /* Same spacing for indented and unindented paragraphs on talk pages */ |
| .infobox-header, .infobox-subheader { | | .ns-talk .mw-body-content dd { |
| background: #e2e6ea;
| | margin-top: 0.4em; |
| font-weight: bold;
| | margin-bottom: 0.4em; |
| text-align: center;
| |
| padding: 6px;
| |
| border-top: 1px solid #a2a9b1;
| |
| border-bottom: 1px solid #a2a9b1;
| |
| } | | } |
|
| |
|
| /* GAMBAR */ | | /* Main page fixes */ |
| .infobox img {
| | #interwiki-completelist { |
| width: 100%;
| | font-weight: bold; |
| height: auto;
| |
| display: block;
| |
| } | | } |
|
| |
|
| /* MOBILE FIX */ | | /* Reduce page jumps by hiding collapsed/dismissed content */ |
| @media screen and (max-width: 600px) {
| | .client-js .mw-special-Watchlist #watchlist-message, |
| .infobox {
| | .client-js .NavFrame.collapsed .NavContent, |
| float: none;
| | .client-js .collapsible:not( .mw-made-collapsible).collapsed > tbody > tr:not(:first-child) { |
| margin: 0 auto 1em;
| | display: none; |
| width: 100%;
| |
| }
| |
| } | | } |
|
| |
|
| /* ============================================ | | /* Adds padding above Watchlist announcements where new recentchanges/watchlist filters are enabled */ |
| FIX #1 — HEADER BIRU TIDAK RATA TENGAH
| | .mw-rcfilters-enabled .mw-specialpage-summary { |
| ============================================ */
| | margin-top: 1em; |
| .infobox-title, | |
| .infobox .infobox-above { | |
| text-align: center !important; /* paksa center */
| |
| font-size: 100% !important; /* biar besar seperti Wikipedia mobile */
| |
| } | | } |
|
| |
|
| /* ============================================ | | /* Hide charinsert base for those not using the gadget */ |
| FIX #2 — INFOBOX TERLALU KECIL DI HP
| | #editpage-specialchars { |
| BIKIN LEBARNYA 100% SEPERTI DI WIKIPEDIA MOBILE
| | display: none; |
| ============================================ */
| |
| @media screen and (max-width: 600px) {
| |
| .infobox {
| |
| width: 100% !important; /* full width */
| |
| max-width: 100% !important; /* hilangin batas 330px */
| |
| margin: 0 auto 1em !important;
| |
| float: none !important; /* biar tidak mengecil ke kanan */
| |
| font-size: 100% !important; /* otomatis sesuai layar */
| |
| }
| |
| | |
| /* gambar jangan mepet kiri-kanan */
| |
| .infobox img {
| |
| width: 100% !important;
| |
| height: auto !important;
| |
| }
| |
| }
| |
| | |
| /* ============================================
| |
| FIX #3 — JARAK ANTAR BORDER TERLALU BESAR
| |
| ============================================ */
| |
| .infobox td, .infobox th {
| |
| padding: 8px 10px !important;
| |
| }
| |
| | |
| /* Mppedia Secret Key Hider */
| |
| .mippedia-hidden-key {
| |
| display: none !important;
| |
| visibility: hidden !important;
| |
| }
| |
| | |
| /* Container Utama Ambox */
| |
| table.ambox {
| |
| width: 100% !important;
| |
| margin: 1px 0 !important;
| |
| border: 1px solid #a2a9b1;
| |
| border-left: 10px solid #f28500 !important;
| |
| background-color: #fbfbfb;
| |
| display: table;
| |
| position: relative; /* Wajib ada buat naruh elemen di pojok */
| |
| border-collapse: collapse;
| |
| }
| |
| | |
| /* Area Teks Utama */
| |
| .ambox .mbox-text {
| |
| padding: 12px 15px 40px 10px !important; /* Padding bawah gede buat ruang link */
| |
| font-size: 14px;
| |
| line-height: 1.5;
| |
| }
| |
| | |
| /* Link 'Pelajari selengkapnya' - PAKSA KE KANAN BAWAH */
| |
| .ambox-learn-more {
| |
| display: block !important;
| |
| position: absolute; /* Jurus rahasia buat pojokan */
| |
| bottom: 8px;
| |
| right: 15px; /* Pindah ke kanan */
| |
| color: #36c !important;
| |
| font-weight: normal;
| |
| cursor: pointer;
| |
| font-size: 13px;
| |
| text-decoration: none;
| |
| }
| |
| | |
| .ambox-learn-more:hover {
| |
| text-decoration: underline;
| |
| }
| |
| | |
| /* Sembunyikan teks panjang secara default */
| |
| .ambox-text-long, .hide-when-compact {
| |
| display: none;
| |
| }
| |
| | |
| /* Tampilan pas teks lengkap muncul (setelah diklik) */
| |
| .ambox-active .ambox-text-long {
| |
| display: block !important;
| |
| margin-top: 10px;
| |
| padding-top: 8px;
| |
| border-top: 1px solid #eaecf0;
| |
| }
| |
| | |
| /* Kalau mau bener-bener ilangin ikonnya biar kayak contoh lu */
| |
| .ambox td.mbox-image {
| |
| display: none !important;
| |
| }
| |
| | |
| /* ==========================================================
| |
| 🏠 TATA LETAK HALAMAN UTAMA (MAIN PAGE LAYOUT OPTIMIZATION)
| |
| ========================================================== */
| |
| | |
| /* Menghilangkan padding bawaan container utama khusus di Halaman Utama */
| |
| .page-Halaman_Utama #content,
| |
| .page-Halaman_Utama #mw-content-text .mw-parser-output {
| |
| padding-top: 0 !important;
| |
| margin-top: 0 !important;
| |
| } | | } |
|
| |
|
| /* Memaksa kotak selamat datang (tabel) naik serapat mungkin ke atas */ | | /* Highlight linked elements (such as clicked references) in blue */ |
| .page-Halaman_Utama table.mp-box { | | body.action-info .mw-body-content :target, |
| margin-top: -15px !important; /* Menarik kotak ke atas untuk memotong sisa margin bawaan skin */
| | .citation:target { |
| | background-color: rgba(0, 127, 255, 0.133); |
| } | | } |
|
| |
|
| /* Memastikan elemen judul bawaan yang tersembunyi tidak memakan space ruang */ | | /* Styling for citations. Breaks long urls, etc., rather than overflowing box */ |
| .page-Halaman_Utama #firstHeading, | | .citation { |
| .page-Halaman_Utama .page-heading {
| | word-wrap: break-word; |
| margin: 0 !important;
| |
| padding: 0 !important;
| |
| line-height: 0 !important;
| |
| height: 0 !important;
| |
| overflow: hidden;
| |
| } | | } |
|
| |
|
| #siteSub {
| | /* Make the list of references smaller |
| display: block;
| | * Keep in sync with Template:Refbegin/styles.css |
| }
| | * And Template:Reflist/styles.css |
/*
* This is the CSS for all skins (both desktop and mobile) on id.Wikipedia.
* This factor makes it different from most WMF wikis. See [[phab:T375538]]
* and related.
*
* Styling inside .mw-parser-output should generally use TemplateStyles.
*/
/* Reset italic styling set by user agent */
cite,
dfn {
font-style: inherit;
}
/* Straight quote marks for <q> */
q {
quotes: '"' '"' "'" "'";
}
/* Avoid collision of blockquote with floating elements by swapping margin and padding */
blockquote {
overflow: hidden;
margin: 1em 0;
padding: 0 40px;
}
/* Consistent size for <small>, <sub> and <sup> */
small {
font-size: 85%;
}
.mw-body-content sub,
.mw-body-content sup,
span[rel~='mw:referencedBy'] a::before /* for Parsoid */ {
font-size: 80%;
}
/* Same spacing for indented and unindented paragraphs on talk pages */
.ns-talk .mw-body-content dd {
margin-top: 0.4em;
margin-bottom: 0.4em;
}
/* Main page fixes */
#interwiki-completelist {
font-weight: bold;
}
/* Reduce page jumps by hiding collapsed/dismissed content */
.client-js .mw-special-Watchlist #watchlist-message,
.client-js .NavFrame.collapsed .NavContent,
.client-js .collapsible:not( .mw-made-collapsible).collapsed > tbody > tr:not(:first-child) {
display: none;
}
/* Adds padding above Watchlist announcements where new recentchanges/watchlist filters are enabled */
.mw-rcfilters-enabled .mw-specialpage-summary {
margin-top: 1em;
}
/* Hide charinsert base for those not using the gadget */
#editpage-specialchars {
display: none;
}
/* Highlight linked elements (such as clicked references) in blue */
body.action-info .mw-body-content :target,
.citation:target {
background-color: rgba(0, 127, 255, 0.133);
}
/* Styling for citations. Breaks long urls, etc., rather than overflowing box */
.citation {
word-wrap: break-word;
}
/* Make the list of references smaller
* Keep in sync with Template:Refbegin/styles.css
* And Template:Reflist/styles.css