Jump to content

MediaWiki:Common.css: Difference between revisions

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


/* ==================================
/* =====================================
   TAIPEDIA CUSTOM SHAN FONT
   TAIPEDIA — GLOBAL SHAN FONT
   ================================== */
   ===================================== */


@font-face {
@font-face {
Line 13: Line 13:
}
}


/* Entire MediaWiki website */
/* Global website font */
html,
html,
body,
body,
.mw-body,
.mw-body,
.mw-body-content,
.mw-parser-output,
.mw-page-container,
.mw-page-container,
.mw-body-content,
.mw-page-title-main,
.mw-parser-output {
.vector-menu,
.vector-header,
.catlinks,
input,
button,
textarea,
select {
    font-family: 'TaipediaShan', sans-serif !important;
}
 
/* =====================================
  LIBRARY CATEGORY CARDS
  ===================================== */
 
.library-home,
.library-home *,
.library-grid,
.library-card,
.library-card *,
.library-card h3,
.library-card p,
.library-card a,
.library-icon,
.library-number {
     font-family: 'TaipediaShan', sans-serif !important;
     font-family: 'TaipediaShan', sans-serif !important;
}
}


/* Article content and paragraphs */
/* Card typography */
.library-card h3 {
    font-size: 21px;
    font-weight: 400;
    line-height: 1.8;
}
 
.library-card p {
    font-size: 15px;
    line-height: 1.9;
}
 
.library-card a {
    font-size: 15px;
    line-height: 1.8;
}
 
/* =====================================
  ARTICLE AND CATEGORY CONTENT
  ===================================== */
 
.mw-parser-output p,
.mw-parser-output p,
.mw-parser-output div,
.mw-parser-output span,
.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 {
    font-family: 'TaipediaShan', sans-serif !important;
}
/* Article titles and headings */
.mw-page-title-main,
.mw-first-heading,
.mw-parser-output h1,
.mw-parser-output h1,
.mw-parser-output h2,
.mw-parser-output h2,
Line 42: Line 78:
.mw-parser-output h4,
.mw-parser-output h4,
.mw-parser-output h5,
.mw-parser-output h5,
.mw-parser-output h6 {
.mw-parser-output h6,
    font-family: 'TaipediaShan', sans-serif !important;
}
 
/* Navigation and sidebar */
.vector-menu,
.vector-menu-content,
.vector-header,
.vector-page-toolbar,
.vector-toc,
.mw-portlet {
    font-family: 'TaipediaShan', sans-serif !important;
}
 
/* Categories and links */
.catlinks,
.mw-category,
.mw-category,
.mw-category-group,
.mw-category-group {
.library-home,
.library-card {
    font-family: 'TaipediaShan', sans-serif !important;
}
 
/* Forms and search */
input,
textarea,
button,
select {
     font-family: 'TaipediaShan', sans-serif !important;
     font-family: 'TaipediaShan', sans-serif !important;
}
}


/* Shan content readability */
/* Article readability */
.mw-parser-output {
.mw-parser-output {
     font-size: 17px;
     font-size: 17px;
Line 79: Line 90:
}
}


/* Mobile readability */
/* Mobile adjustments */
@media (max-width: 600px) {
@media (max-width: 600px) {
    .library-card h3 {
        font-size: 19px;
    }
     .mw-parser-output {
     .mw-parser-output {
         font-size: 16px;
         font-size: 16px;
        line-height: 1.85;
     }
     }
}
}





Revision as of 18:53, 8 October 2026


/* =====================================
   TAIPEDIA — GLOBAL SHAN FONT
   ===================================== */

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

/* Global website font */
html,
body,
.mw-body,
.mw-body-content,
.mw-parser-output,
.mw-page-container,
.mw-page-title-main,
.vector-menu,
.vector-header,
.catlinks,
input,
button,
textarea,
select {
    font-family: 'TaipediaShan', sans-serif !important;
}

/* =====================================
   LIBRARY CATEGORY CARDS
   ===================================== */

.library-home,
.library-home *,
.library-grid,
.library-card,
.library-card *,
.library-card h3,
.library-card p,
.library-card a,
.library-icon,
.library-number {
    font-family: 'TaipediaShan', sans-serif !important;
}

/* Card typography */
.library-card h3 {
    font-size: 21px;
    font-weight: 400;
    line-height: 1.8;
}

.library-card p {
    font-size: 15px;
    line-height: 1.9;
}

.library-card a {
    font-size: 15px;
    line-height: 1.8;
}

/* =====================================
   ARTICLE AND CATEGORY CONTENT
   ===================================== */

.mw-parser-output p,
.mw-parser-output li,
.mw-parser-output td,
.mw-parser-output th,
.mw-parser-output h1,
.mw-parser-output h2,
.mw-parser-output h3,
.mw-parser-output h4,
.mw-parser-output h5,
.mw-parser-output h6,
.mw-category,
.mw-category-group {
    font-family: 'TaipediaShan', sans-serif !important;
}

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

/* Mobile adjustments */
@media (max-width: 600px) {
    .library-card h3 {
        font-size: 19px;
    }

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


/* Taipedia Library Cards */

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

.library-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.library-card {
    display: block;
    background: #ffffff;
    border: 1px solid #dbe4ef;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    box-sizing: border-box;
    min-width: 0;
}

.library-card:hover {
    border-color: #2563eb;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.library-card h3 {
    color: #183153;
    font-size: 20px;
    margin: 10px 0;
}

.library-card p {
    font-size: 14px;
    color: #64748b;
}

.library-icon {
    font-size: 36px;
}

.library-number {
    color: #2563eb;
    font-weight: bold;
    margin-top: 12px;
}

@media (max-width: 900px) {
    .library-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .library-grid {
        grid-template-columns: 1fr;
    }
}