MediaWiki:Common.css: Difference between revisions
No edit summary Tags: Mobile edit Mobile web edit |
No edit summary Tags: Mobile edit Mobile web edit |
||
| (13 intermediate revisions by the same user not shown) | |||
| Line 97: | Line 97: | ||
} | } | ||
.infobox- | /* ====== INFOBOX STYLE ====== */ | ||
.infobox- | |||
.infobox-above | .infobox { | ||
border: 1px solid #a2a9b1; | |||
.infobox | border-collapse: collapse; | ||
.infobox- | background-color: #f8f9fa; | ||
.infobox- | color: #000; | ||
margin: 1em 0 1em 1em; | |||
padding: 0; | |||
/* | width: 100%; | ||
.infobox | max-width: 330px; /* biar mobile rapi */ | ||
.infobox | 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 */ | |||
.infobox-label { | |||
font-weight: bold; | |||
width: 40%; | |||
vertical-align: top; | |||
} | |||
/* Data infobox rata tengah */ | |||
.infobox-label { | |||
text-align: center !important; | |||
} | |||
/* DATA KANAN */ | |||
.infobox-data { | |||
width: 50%; | |||
} | } | ||
/* Data infobox rata tengah */ | |||
.infobox-data { | |||
/* | text-align: center !important; | ||
.infobox | |||
} | } | ||
/* | /* BAGIAN HEADING DALAM (seperti “Informasi latar belakang”) */ | ||
.infobox-header, .infobox-subheader { | |||
background: #e2e6ea; | |||
font-weight: bold; | |||
text-align: center; | |||
padding: 6px; | |||
border-top: 1px solid #a2a9b1; | |||
border-bottom: 1px solid #a2a9b1; | |||
} | } | ||
/* GAMBAR */ | |||
/* | .infobox img { | ||
.infobox | width: 100%; | ||
height: auto; | |||
display: block; | |||
} | } | ||
/* | /* MOBILE FIX */ | ||
@media screen and (max-width: 600px) { | |||
.infobox | .infobox { | ||
float: none; | |||
margin: 0 auto 1em; | |||
width: 100%; | |||
} | |||
} | } | ||
/* | /* ============================================ | ||
.infobox .infobox- | FIX #1 — HEADER BIRU TIDAK RATA TENGAH | ||
============================================ */ | |||
.infobox-title, | |||
.infobox .infobox-above { | |||
text-align: center !important; /* paksa center */ | |||
font-size: 100% !important; /* biar besar seperti Wikipedia mobile */ | |||
} | } | ||
@media screen { | /* ============================================ | ||
FIX #2 — INFOBOX TERLALU KECIL DI HP | |||
BIKIN LEBARNYA 100% SEPERTI DI WIKIPEDIA MOBILE | |||
============================================ */ | |||
@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 */ | |||
.page-Halaman_Utama table.mp-box { | |||
margin-top: -15px !important; /* Menarik kotak ke atas untuk memotong sisa margin bawaan skin */ | |||
} | } | ||
/* Memastikan elemen judul bawaan yang tersembunyi tidak memakan space ruang */ | |||
.page-Halaman_Utama #firstHeading, | |||
.page-Halaman_Utama .page-heading { | |||
margin: 0 !important; | |||
padding: 0 !important; | |||
line-height: 0 !important; | |||
height: 0 !important; | |||
overflow: hidden; | |||
} | } | ||
#siteSub { | |||
display: block; | |||
} | } | ||