Lompat ke isi

MediaWiki:Common.css

Dari Maliki Encyclopedia

Catatan: Setelah menerbitkan, Anda mungkin perlu melewati tembolok peramban web Anda untuk melihat perubahan.

  • Firefox/Safari: Tekan dan tahan Shift sembari mengeklik Reload, atau tekan Ctrl-F5 atau Ctrl-R (⌘-R di Mac)
  • Google Chrome: Tekan Ctrl-Shift-R (⌘-Shift-R di Mac)
  • Edge: Tahan Ctrl sembari mengeklik Refresh, atau tekan Ctrl-F5
/*edit alex tambah justify*/


/* =========================================================
   EDIT ALEX - AUTO JUSTIFY MALIKI ENCYCLOPEDIA
   =========================================================
   FITUR:
   1. Justify seluruh paragraf artikel
   2. Justify khusus Ringkasan
   3. Desain kotak Ringkasan
   4. Justify kutipan / blockquote
   5. Justify paragraf dalam template
   6. Mendukung RTL bahasa Arab
   7. Mendukung LTR bahasa Indonesia
   8. Menjaga tampilan judul artikel
   ========================================================= */


/* ---------------------------------------------------------
   1. JUSTIFY SELURUH PARAGRAF ARTIKEL
   --------------------------------------------------------- */

.mw-parser-output p {
    text-align: justify !important;
    text-justify: inter-word;
    line-height: 1.8;
}


/* ---------------------------------------------------------
   2. DESAIN KOTAK RINGKASAN
   --------------------------------------------------------- */

.mw-parser-output .me-article-summary {
    box-sizing: border-box;
    display: block;
    width: 100%;
    max-width: 100%;

    margin: 12px 0 24px;
    padding: 16px 20px;

    border-left: 4px solid #087b74;
    background: #f3f8f7;
    border-radius: 4px;

    overflow-wrap: anywhere;

    text-align: justify !important;
    text-justify: inter-word;
    line-height: 1.8;
}


/* ---------------------------------------------------------
   3. JUSTIFY KHUSUS ISI RINGKASAN
   --------------------------------------------------------- */

/* Elemen DIV langsung di dalam Ringkasan */
.mw-parser-output .me-article-summary > div {
    display: block;
    width: 100%;

    text-align: justify !important;
    text-align-last: auto;
    text-justify: inter-word;

    line-height: 1.8;
    white-space: normal;
}

/* DIV bersarang dan paragraf Ringkasan */
.mw-parser-output .me-article-summary div,
.mw-parser-output .me-article-summary p,
.mw-parser-output .me-article-summary section {
    text-align: justify !important;
    text-justify: inter-word;
    line-height: 1.8;
}

/* Hindari paragraf kosong */
.mw-parser-output .me-article-summary p:empty {
    display: none;
}


/* ---------------------------------------------------------
   4. JUDUL RINGKASAN
   --------------------------------------------------------- */

.mw-parser-output .me-article-summary h2 {
    text-align: left !important;
    direction: ltr;

    margin: 0 0 8px;
    padding-bottom: 6px;

    color: #176b66;
    font-size: 20px;

    border-bottom: 1px solid #a2a9b1;
}


/* ---------------------------------------------------------
   5. JUSTIFY KUTIPAN / BLOCKQUOTE
   --------------------------------------------------------- */

.mw-parser-output blockquote,
.mw-parser-output blockquote p {
    text-align: justify !important;
    text-justify: inter-word;
    line-height: 1.8;
}


/* ---------------------------------------------------------
   6. JUSTIFY PARAGRAF DALAM TEMPLATE / SECTION
   --------------------------------------------------------- */

.mw-parser-output div p,
.mw-parser-output section p {
    text-align: justify !important;
    text-justify: inter-word;
    line-height: 1.8;
}


/* ---------------------------------------------------------
   7. DUKUNGAN BAHASA ARAB (RTL)
   --------------------------------------------------------- */

.mw-parser-output p[dir="rtl"],
.mw-parser-output blockquote[dir="rtl"],
.mw-parser-output .me-article-summary [dir="rtl"] {
    direction: rtl;
    text-align: justify !important;
    text-justify: inter-word;
}


/* ---------------------------------------------------------
   8. DUKUNGAN BAHASA INDONESIA (LTR)
   --------------------------------------------------------- */

.mw-parser-output p[dir="ltr"],
.mw-parser-output blockquote[dir="ltr"],
.mw-parser-output .me-article-summary [dir="ltr"] {
    direction: ltr;
    text-align: justify !important;
    text-justify: inter-word;
}


/* ---------------------------------------------------------
   9. MENJAGA TAMPILAN JUDUL ARTIKEL
   --------------------------------------------------------- */

.mw-parser-output h1,
.mw-parser-output h2,
.mw-parser-output h3,
.mw-parser-output h4,
.mw-parser-output h5,
.mw-parser-output h6 {
    text-align: start;
}


/* ---------------------------------------------------------
   10. PENGATURAN RESPONSIVE RINGKASAN
   ---------------------------------------------------------

@media screen and (max-width: 768px) {

    .mw-parser-output .me-article-summary {
        width: 100%;
        max-width: 100%;
        margin: 10px 0 20px;
        padding: 12px 14px;
    }

    .mw-parser-output .me-article-summary > div,
    .mw-parser-output .me-article-summary p {
        text-align: justify !important;
        overflow-wrap: anywhere;
        line-height: 1.7;
    }

    .mw-parser-output .me-article-summary h2 {
        font-size: 18px;
    }
}

*/
/* =========================================================
   END OF EDIT ALEX - AUTO JUSTIFY
   ========================================================= */



/*end of edit alex*/