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-header,
/* ====== INFOBOX STYLE ====== */
.infobox-label,
 
.infobox-above,
.infobox {
.infobox-full-data,
    border: 1px solid #a2a9b1;
.infobox-data,
    border-collapse: collapse;
.infobox-below,
    background-color: #f8f9fa;
.infobox-subheader,
    color: #000;
.infobox-image,
    margin: 1em 0 1em 1em;
.infobox-navbar,
    padding: 0;
/* Remove element selector when every .infobox thing is using the standard module/templates  */
    width: 100%;
.infobox th,
    max-width: 330px; /* biar mobile rapi */
.infobox td {
    float: right;
vertical-align: top;
    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%;
}
}


.infobox-label,
/* Data infobox rata tengah */
.infobox-data,
.infobox-data {
/* Remove element selector when every .infobox thing is using the standard module/templates  */
    text-align: center !important;
.infobox th,
.infobox td {
/* @noflip */
text-align: center;
}
}


/* Remove .infobox when element selectors above are removed */
/* BAGIAN HEADING DALAM (seperti “Informasi latar belakang”) */
.infobox .infobox-above,
.infobox-header, .infobox-subheader {
.infobox .infobox-title,
    background: #e2e6ea;
/* Remove element selector when every .infobox thing is using the standard module/templates  */
    font-weight: bold;
.infobox caption {
    text-align: center;
font-size: 85%;
    padding: 6px;
font-weight: bold;
    border-top: 1px solid #a2a9b1;
text-align: center;
    border-bottom: 1px solid #a2a9b1;
}
}


.infobox-title,
/* GAMBAR */
/* Remove element selector when every .infobox thing is using the standard module/templates  */
.infobox img {
.infobox caption {
    width: 100%;
padding: 0.2em;
    height: auto;
    display: block;
}
}


/* Remove .infobox when element selectors above are removed */
/* MOBILE FIX */
.infobox .infobox-header,
@media screen and (max-width: 600px) {
.infobox .infobox-subheader,
    .infobox {
.infobox .infobox-image,
        float: none;
.infobox .infobox-full-data,
        margin: 0 auto 1em;
.infobox .infobox-below {
        width: 100%;
text-align: center;
    }
}
}


/* Remove .infobox when element selectors above are removed */
/* ============================================
.infobox .infobox-navbar {
  FIX #1 — HEADER BIRU TIDAK RATA TENGAH
/* @noflip */
  ============================================ */
text-align: right;
.infobox-title,
.infobox .infobox-above {
    text-align: center !important; /* paksa center */
    font-size: 100% !important;   /* biar besar seperti Wikipedia mobile */
}
}


@media screen {
/* ============================================
.infobox {
  FIX #2 — INFOBOX TERLALU KECIL DI HP
background-color: var(--background-color-neutral-subtle, #f9f9f9);
  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 */
}
}


@media (max-width: 640px) {
/* Memastikan elemen judul bawaan yang tersembunyi tidak memakan space ruang */
.infobox {
.page-Halaman_Utama #firstHeading,
width: 100%;
.page-Halaman_Utama .page-heading {
}
    margin: 0 !important;
      
    padding: 0 !important;
.infobox .nowrap {
     line-height: 0 !important;
white-space: normal;
    height: 0 !important;
}
    overflow: hidden;
}
}


@media (min-width: 640px) {
#siteSub {
.infobox {
display: block;
/* @noflip */
margin-left: 1em;
/* @noflip */
float: right;
/* @noflip */
clear: right;
width: 22em;
}
}
}