Lompat ke isi

MediaWiki:Common.css: Perbedaan antara revisi

Dari Wikisporta, ensiklopedia olahraga
Tidak ada ringkasan suntingan
Tanda: Dikembalikan Suntingan perangkat seluler Suntingan peramban seluler
Tidak ada ringkasan suntingan
Tanda: Dikembalikan Suntingan perangkat seluler Suntingan peramban seluler
Baris 1: Baris 1:
/* Container Teks Artikel Unggulan di Halaman Utama */
/* Container Teks Artikel Unggulan di Halaman Utama */
.mp-featured-text {
.mp-featured-text {
    position: relative;
     transition: all 0.4s ease-in-out;
    max-height: 4.2em; /* Atur batas 3 baris teks */
    overflow: hidden;
    line-height: 1.4;
     transition: max-height 0.4s ease-in-out;
}
}


/* Efek Samar-Samar Soft di Baris Bawah */
/* Kondisi Tertutup: Potong rapi maksimal 3 baris dengan titik-titik (...) */
.mp-featured-text.is-collapsed {
.mp-featured-text.is-collapsed {
     -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
    display: -webkit-box;
     mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
     -webkit-line-clamp: 3; /* Membatasi teks tepat 3 baris */
    -webkit-box-orient: vertical;
    overflow: hidden;
     text-overflow: ellipsis; /* Menambahkan titik-titik (...) otomatis di ujung teks */
}
}


/* Saat Terbuka / Expanded */
/* Kondisi Terbuka (Expanded) */
.mp-featured-text.is-expanded {
.mp-featured-text.is-expanded {
     max-height: 2000px; /* Buka seluruh lipatan */
     display: block;
     -webkit-mask-image: none;
     overflow: visible;
    mask-image: none;
}
}


/* Penataan Link Selengkapnya Asli yang Dipindah Ke Luar Lipatan */
/* Styling Baris Link Selengkapnya */
.featured-readmore-wrapper {
.featured-readmore-wrapper {
     margin-top: 4px;
     margin-top: 6px;
     margin-bottom: 8px;
     margin-bottom: 8px;
}
}

Revisi per 17 Oktober 2026 04.17

/* Container Teks Artikel Unggulan di Halaman Utama */
.mp-featured-text {
    transition: all 0.4s ease-in-out;
}

/* Kondisi Tertutup: Potong rapi maksimal 3 baris dengan titik-titik (...) */
.mp-featured-text.is-collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Membatasi teks tepat 3 baris */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis; /* Menambahkan titik-titik (...) otomatis di ujung teks */
}

/* Kondisi Terbuka (Expanded) */
.mp-featured-text.is-expanded {
    display: block;
    overflow: visible;
}

/* Styling Baris Link Selengkapnya */
.featured-readmore-wrapper {
    margin-top: 6px;
    margin-bottom: 8px;
}

a.featured-readmore-link {
    font-weight: bold;
    color: #36c;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

a.featured-readmore-link:hover {
    text-decoration: underline;
}

/* --- 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-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 */
.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;
}

/* 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 {
    width: 100%;
    height: auto;
    display: block;
}

/* MOBILE FIX */
@media screen and (max-width: 600px) {
    .infobox {
        float: none;
        margin: 0 auto 1em;
        width: 100%;
    }
}

/* ============================================
   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 */
}

/* ============================================
   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;
	}