Jump to content

MediaWiki:Common.css

From တႆးၽီးတီးယႃး
Revision as of 18:29, 9 October 2026 by Khurleng (talk | contribs)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.

/* ==========================================
   TAIPEDIA DIGITAL LIBRARY
   Complete Custom CSS
   ========================================== */


/* ==========================================
   1. CUSTOM SHAN FONT
   ========================================== */

@font-face {
    font-family: "TaipediaShan";
    src: url("/fonts/Shan.ttf?v=13")
         format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}


/* ==========================================
   2. ARTICLE / POST FONT
   ========================================== */

.mw-parser-output {
    font-family: "TaipediaShan",
                 "Noto Sans Myanmar",
                 sans-serif !important;
    font-size: 17px;
    line-height: 1.9;
}

/* Article headings */
.mw-parser-output h1,
.mw-parser-output h2,
.mw-parser-output h3,
.mw-parser-output h4,
.mw-parser-output h5,
.mw-parser-output h6 {
    font-family: "TaipediaShan",
                 "Noto Sans Myanmar",
                 sans-serif !important;
    line-height: 1.7;
}

/* Article paragraphs, lists and tables */
.mw-parser-output p,
.mw-parser-output li,
.mw-parser-output td,
.mw-parser-output th,
.mw-parser-output blockquote {
    font-family: "TaipediaShan",
                 "Noto Sans Myanmar",
                 sans-serif !important;
    line-height: 1.9;
}

/* Preserve code typography */
.mw-parser-output pre,
.mw-parser-output code,
.mw-parser-output .mw-code {
    font-family: monospace !important;
}


/* ==========================================
   3. LIBRARY HOMEPAGE
   ========================================== */

.mw-parser-output .library-home {
    max-width: 1200px;
    margin: 0 auto;
}

.mw-parser-output .library-home,
.mw-parser-output .library-home *,
.mw-parser-output .library-card,
.mw-parser-output .library-card * {
    font-family: "TaipediaShan",
                 "Noto Sans Myanmar",
                 sans-serif !important;
}


/* ==========================================
   4. LIBRARY HERO BANNER
   ========================================== */

.mw-parser-output .library-hero {
    background: linear-gradient(
        135deg,
        #142d4e 0%,
        #2459a6 100%
    );

    color: #ffffff;
    padding: 55px 30px;
    text-align: center;
    border-radius: 18px;
    margin-bottom: 35px;
}

.mw-parser-output .library-hero h1 {
    color: #ffffff;
    font-size: 36px;
    font-weight: 400;
    line-height: 1.7;
    border: none;
    padding: 0;
    margin: 0 0 15px;
}

.mw-parser-output .library-hero p {
    color: #ffffff;
    font-size: 17px;
    line-height: 1.9;
    margin: 0;
}


/* ==========================================
   5. LIBRARY SECTION HEADING
   ========================================== */

.mw-parser-output .library-home > h2 {
    font-size: 26px;
    font-weight: 400;
    line-height: 1.7;
    color: #183153;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 12px;
    margin: 30px 0 25px;
}


/* ==========================================
   6. LIBRARY GRID
   ========================================== */

.mw-parser-output .library-grid {
    display: grid !important;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
    margin: 25px 0 40px;
}


/* ==========================================
   7. LIBRARY CARDS
   ========================================== */

.mw-parser-output .library-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 24px;
    box-sizing: border-box;

    background: #ffffff;
    color: #183153;
    border: 1px solid #dbe4ef;
    border-radius: 16px;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.06);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.mw-parser-output .library-card:hover {
    transform: translateY(-5px);
    border-color: #2563eb;
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.12);
}


/* ==========================================
   8. CARD ICON AND NUMBER
   ========================================== */

.mw-parser-output .library-icon {
    font-size: 38px;
    line-height: 1.4;
    margin-bottom: 12px;
}

.mw-parser-output .library-number {
    color: #2563eb;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 6px;
}


/* ==========================================
   9. LIBRARY CARD TITLE
   ========================================== */

.mw-parser-output .library-card h3 {
    font-family: "TaipediaShan",
                 "Noto Sans Myanmar",
                 sans-serif !important;

    font-size: 21px;
    font-weight: 400;
    line-height: 1.8;
    color: #183153;

    margin: 8px 0 12px;
    padding: 0;
    border: none;
    overflow-wrap: break-word;
}


/* ==========================================
   10. LIBRARY CARD DESCRIPTION
   ========================================== */

.mw-parser-output .library-card p {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.9;
    color: #64748b;
    margin: 0 0 20px;
    flex-grow: 1;
}


/* ==========================================
   11. LIBRARY CARD LINKS
   ========================================== */

.mw-parser-output .library-card a {
    display: inline-block;
    color: #2563eb;
    font-size: 15px;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mw-parser-output .library-card a:hover {
    color: #1e40af;
    text-decoration: underline;
}


/* ==========================================
   12. CATEGORY PAGE CONTENT
   ========================================== */

.mw-category,
.mw-category-group,
.mw-category-generated,
.mw-category a,
.mw-category-group a {
    font-family: "TaipediaShan",
                 "Noto Sans Myanmar",
                 sans-serif !important;
    line-height: 1.9;
}


/* ==========================================
   13. CREATE ARTICLE FORM
   ========================================== */

.taipedia-create-box {
    margin: 30px 0;
    padding: 35px 24px;
    text-align: center;
    background: #f0f6ff;
    border: 1px solid #dbeafe;
    border-radius: 18px;
}

.taipedia-create-box h2 {
    color: #173a70;
    font-size: 25px;
    font-weight: 400;
    border: none;
    margin: 0 0 12px;
}

.taipedia-create-box p {
    color: #64748b;
    line-height: 1.8;
}

.taipedia-create-box input[type="text"] {
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    max-width: 100%;
    box-sizing: border-box;
}

.taipedia-create-box input[type="submit"],
.taipedia-create-box button {
    background: #2459a6;
    color: #ffffff;
    border: none;
    padding: 12px 22px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.taipedia-create-box input[type="submit"]:hover,
.taipedia-create-box button:hover {
    background: #173a70;
}

.taipedia-create-note {
    font-size: 13px;
    margin-top: 18px;
}


/* ==========================================
   14. HIDE CREATE FORM BY DEFAULT
   ========================================== */

/* Logged-in visibility rule is explained below */

.taipedia-create-box {
    display: none;
}


/* ==========================================
   15. TABLET RESPONSIVE
   ========================================== */

@media (max-width: 900px) {

    .mw-parser-output .library-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .mw-parser-output .library-card {
        padding: 20px;
    }

    .mw-parser-output .library-hero {
        padding: 40px 20px;
    }

    .mw-parser-output .library-hero h1 {
        font-size: 30px;
    }
}


/* ==========================================
   16. MOBILE RESPONSIVE
   ========================================== */

@media (max-width: 600px) {

    .mw-parser-output {
        font-size: 16px;
        line-height: 1.85;
    }

    .mw-parser-output .library-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .mw-parser-output .library-card {
        padding: 20px;
        border-radius: 14px;
    }

    .mw-parser-output .library-card h3 {
        font-size: 19px;
    }

    .mw-parser-output .library-card p {
        font-size: 14px;
    }

    .mw-parser-output .library-hero {
        padding: 35px 18px;
        border-radius: 14px;
    }

    .mw-parser-output .library-hero h1 {
        font-size: 26px;
    }

    .mw-parser-output .library-hero p {
        font-size: 15px;
    }

    .mw-parser-output .library-home > h2 {
        font-size: 22px;
    }

    .taipedia-create-box {
        padding: 25px 15px;
    }

    .taipedia-create-box h2 {
        font-size: 22px;
    }
}


/* ==========================================
   END OF TAIPEDIA CSS
   ========================================== */