Jump to content

MediaWiki:Common.css: Difference between revisions

From တႆးၽီးတီးယႃး
No edit summary
No edit summary
Line 1: Line 1:


/* ==========================================
/
   TAIPEDIA MEDIAWIKI — COMPLETE STYLESHEET
/* ======================================
   Custom Shan Font + Digital Library
   TAIPEDIA - CUSTOM SHAN FONT
   ========================================== */
   Articles + Library Cards ONLY
 
   ====================================== */
 
/* ==========================================
  1. CUSTOM SHAN FONT
  ========================================== */


/* 1. Load Shan.ttf */
@font-face {
@font-face {
     font-family: 'TaipediaShan';
     font-family: 'TaipediaShan';
     src: url('/resources/assets/fonts/Shan.ttf')
     src: url('/resources/assets/fonts/Shan.ttf?v=5')
         format('truetype');
         format('truetype');
    font-weight: 400;
     font-style: normal;
     font-style: normal;
    font-weight: 400;
     font-display: swap;
     font-display: swap;
}
}


/* ======================================
  2. ARTICLE / POST CONTENT
  ====================================== */


/* ==========================================
/* Article paragraphs, lists, tables */
  2. GLOBAL WEBSITE TYPOGRAPHY
.mw-parser-output > p,
  ========================================== */
.mw-parser-output > ul,
 
.mw-parser-output > ol,
html,
.mw-parser-output > dl,
body,
.mw-parser-output > div:not(.library-home),
.mw-body,
.mw-parser-output table,
.mw-body-content,
.mw-parser-output blockquote {
.mw-parser-output,
.mw-page-container,
.mw-page-title-main,
.mw-first-heading,
.vector-header,
.vector-menu,
.vector-menu-content,
.vector-toc,
.catlinks,
.mw-category,
.mw-category-group,
input,
textarea,
button,
select {
     font-family: 'TaipediaShan',
     font-family: 'TaipediaShan',
                'Noto Sans Myanmar',
                sans-serif !important;
}
}


 
/* Nested article content */
/* ==========================================
  3. ARTICLE CONTENT
  ========================================== */
 
.mw-parser-output {
    font-size: 17px;
    line-height: 1.9;
}
 
.mw-parser-output p,
.mw-parser-output p,
.mw-parser-output li,
.mw-parser-output li,
.mw-parser-output td,
.mw-parser-output td,
.mw-parser-output th,
.mw-parser-output th,
.mw-parser-output blockquote,
.mw-parser-output blockquote {
.mw-parser-output span {
     font-family: 'TaipediaShan',
     font-family: 'TaipediaShan',
                'Noto Sans Myanmar',
                sans-serif !important;
}
}


/* Article section headings */
.mw-parser-output h1,
.mw-parser-output h1,
.mw-parser-output h2,
.mw-parser-output h2,
Line 71: Line 51:
.mw-parser-output h5,
.mw-parser-output h5,
.mw-parser-output h6 {
.mw-parser-output h6 {
    font-family: 'TaipediaShan',
    line-height: 1.7;
}
/* ==========================================
  4. LIBRARY MAIN PAGE
  ========================================== */
.mw-parser-output .library-home {
    max-width: 1200px;
    margin: 0 auto;
     font-family: 'TaipediaShan',
     font-family: 'TaipediaShan',
                 'Noto Sans Myanmar',
                 'Noto Sans Myanmar',
Line 88: Line 56:
}
}


.mw-parser-output .library-home * {
/* Improve article readability */
    font-family: 'TaipediaShan',
.mw-parser-output {
                'Noto Sans Myanmar',
                sans-serif !important;
}
 
 
/* ==========================================
  5. WELCOME HERO
  ========================================== */
 
.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;
    border: none;
    font-size: 36px;
    font-weight: 400;
    margin: 0 0 15px;
    line-height: 1.7;
}
 
.mw-parser-output .library-hero p {
    color: #ffffff;
     font-size: 17px;
     font-size: 17px;
     line-height: 1.9;
     line-height: 1.9;
    margin: 0;
}
/* ==========================================
  6. LIBRARY SECTION HEADING
  ========================================== */
.mw-parser-output .library-home > h2 {
    font-size: 26px;
    font-weight: 400;
    color: #183153;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 12px;
    margin: 30px 0 25px;
    line-height: 1.7;
}
/* ==========================================
  7. RESPONSIVE CARD GRID
  ========================================== */
.mw-parser-output .library-grid {
    display: grid !important;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 25px 0 40px;
    align-items: stretch;
}
/* ==========================================
  8. LIBRARY CARDS
  ========================================== */
.mw-parser-output .library-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #dbe4ef;
    border-radius: 16px;
    padding: 24px;
    min-width: 0;
    box-sizing: border-box;
    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);
}
/* ==========================================
  9. CARD ICON
  ========================================== */
.mw-parser-output .library-icon {
    font-size: 38px;
    line-height: 1.4;
    margin-bottom: 12px;
}
}


/* ======================================
  3. LIBRARY CARDS
  ====================================== */


/* ==========================================
.mw-parser-output .library-home,
  10. LIBRARY CATEGORY NUMBER
.mw-parser-output .library-home *,
  ========================================== */
.mw-parser-output .library-grid,
 
.mw-parser-output .library-card,
.mw-parser-output .library-number {
.mw-parser-output .library-card * {
    color: #2563eb;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
 
 
/* ==========================================
  11. SHAN CARD TITLES
  ========================================== */
 
.mw-parser-output .library-card h3 {
     font-family: 'TaipediaShan',
     font-family: 'TaipediaShan',
                 'Noto Sans Myanmar',
                 'Noto Sans Myanmar',
                 sans-serif !important;
                 sans-serif !important;
}


/* Library card titles */
.mw-parser-output .library-card h3 {
     font-size: 21px;
     font-size: 21px;
     font-weight: 400;
     font-weight: 400;
     line-height: 1.8;
     line-height: 1.8;
    color: #183153;
    margin: 8px 0 12px;
    border: none;
    padding: 0;
    overflow-wrap: break-word;
}
}


 
/* Library descriptions */
/* ==========================================
  12. CARD DESCRIPTIONS
  ========================================== */
 
.mw-parser-output .library-card p {
.mw-parser-output .library-card p {
    font-family: 'TaipediaShan',
                'Noto Sans Myanmar',
                sans-serif !important;
     font-size: 15px;
     font-size: 15px;
    font-weight: 400;
     line-height: 1.9;
     line-height: 1.9;
    color: #64748b;
    margin: 0 0 20px;
    flex-grow: 1;
}
}


 
/* Library links */
/* ==========================================
  13. CARD LINKS
  ========================================== */
 
.mw-parser-output .library-card a {
.mw-parser-output .library-card a {
    font-family: 'TaipediaShan',
                'Noto Sans Myanmar',
                sans-serif !important;
    display: inline-block;
     font-size: 15px;
     font-size: 15px;
    font-weight: 400;
     line-height: 1.8;
 
    color: #2563eb;
    text-decoration: none;
 
    transition: color 0.2s ease;
}
 
.mw-parser-output .library-card a:hover {
    color: #1e40af;
    text-decoration: underline;
}
 
 
/* ==========================================
  14. CATEGORY PAGES
  ========================================== */
 
.mw-category,
.mw-category-group,
.mw-category-generated,
.catlinks {
    font-family: 'TaipediaShan',
                'Noto Sans Myanmar',
                sans-serif !important;
 
     line-height: 1.9;
}
 
.mw-category a,
.catlinks a {
    font-family: inherit !important;
}
 
 
/* ==========================================
  15. NAVIGATION AND MENU
  ========================================== */
 
.vector-menu a,
.vector-header a,
.vector-toc a,
.mw-page-container a,
.vector-page-toolbar a {
    font-family: 'TaipediaShan',
                'Noto Sans Myanmar',
                sans-serif !important;
}
}


 
/* ======================================
/* ==========================================
   4. MOBILE
  16. 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;
    }
}
 
 
/* ==========================================
   17. MOBILE RESPONSIVE
   ========================================== */


@media (max-width: 600px) {
@media (max-width: 600px) {
 
     .mw-parser-output {
     .mw-parser-output .library-grid {
         font-size: 16px;
         grid-template-columns: 1fr;
         line-height: 1.85;
         gap: 15px;
    }
 
    .mw-parser-output .library-card {
        padding: 20px;
        border-radius: 14px;
     }
     }


Line 377: Line 111:
     .mw-parser-output .library-card p {
     .mw-parser-output .library-card p {
         font-size: 14px;
         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;
    }
    .mw-parser-output {
        font-size: 16px;
        line-height: 1.85;
     }
     }
}
}
/* ==========================================
  END — TAIPEDIA STYLESHEET
  ========================================== */

Revision as of 19:15, 8 October 2026


/
/* ======================================
   TAIPEDIA - CUSTOM SHAN FONT
   Articles + Library Cards ONLY
   ====================================== */

/* 1. Load Shan.ttf */
@font-face {
    font-family: 'TaipediaShan';
    src: url('/resources/assets/fonts/Shan.ttf?v=5')
         format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ======================================
   2. ARTICLE / POST CONTENT
   ====================================== */

/* Article paragraphs, lists, tables */
.mw-parser-output > p,
.mw-parser-output > ul,
.mw-parser-output > ol,
.mw-parser-output > dl,
.mw-parser-output > div:not(.library-home),
.mw-parser-output table,
.mw-parser-output blockquote {
    font-family: 'TaipediaShan',
                 'Noto Sans Myanmar',
                 sans-serif !important;
}

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

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

/* Improve article readability */
.mw-parser-output {
    font-size: 17px;
    line-height: 1.9;
}

/* ======================================
   3. LIBRARY CARDS
   ====================================== */

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

/* Library card titles */
.mw-parser-output .library-card h3 {
    font-size: 21px;
    font-weight: 400;
    line-height: 1.8;
}

/* Library descriptions */
.mw-parser-output .library-card p {
    font-size: 15px;
    line-height: 1.9;
}

/* Library links */
.mw-parser-output .library-card a {
    font-size: 15px;
    line-height: 1.8;
}

/* ======================================
   4. MOBILE
   ====================================== */

@media (max-width: 600px) {
    .mw-parser-output {
        font-size: 16px;
        line-height: 1.85;
    }

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

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