MediaWiki:Common.css: Difference between revisions

No edit summary
No edit summary
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* ===== VECTOR 2022 FULL WIDTH ===== */
/* ===== FULL WIDTH (desktop only) ===== */
.skin-vector-2022 .mw-page-container {
@media (min-width: 1000px) {
     max-width: none !important;
    .skin-vector-2022 .mw-page-container,
     padding-left: 0 !important;
     .skin-vector-2022 .mw-content-container,
    padding-right: 0 !important;
     .skin-vector-2022 #mw-content-container {
     width: 100% !important;
        max-width: none !important;
     }
}
}


.skin-vector-2022 .vector-page-toolbar,
/* ===== HIDE APPEARANCE PANEL ===== */
.skin-vector-2022 .mw-header {
.skin-vector-2022 .mw-portlet-appearance,
     max-width: none !important;
.skin-vector-2022 #vector-page-tools-pinned-container .mw-portlet-appearance,
.skin-vector-2022 .vector-appearance {
     display: none !important;
}
}


.skin-vector-2022 #mw-content-container {
/* ===== HIDE EDIT SECTION LINKS ===== */
    max-width: none !important;
.mw-editsection {
    padding-left: 0 !important;
     display: none !important;
    padding-right: 0 !important;
    width: 100% !important;
}
 
.skin-vector-2022 .mw-content-container {
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
}
 
.mw-parser-output {
    max-width: none !important;
    width: 100% !important;
}
 
/* ===== PINNED SIDEBAR ===== */
@media (min-width: 1024px) {
    .skin-vector-2022 .vector-sidebar-container {
        position: sticky !important;
        top: 60px !important;
        height: calc(100vh - 60px) !important;
        overflow-y: auto !important;
    }
 
    /* Force sidebar to always show pinned */
     .skin-vector-2022 .mw-sidebar--pinned {
        display: block !important;
    }
}
}


/* ===== CARD LAYOUT ===== */
/* ===== CARD LAYOUT ===== */
.card {
.card {
     background: #fff;
     background: var(--background-color-base, #fff);
     border-radius: 10px;
     border-radius: 10px;
     box-shadow: 0 2px 12px rgba(0,0,0,0.1);
     box-shadow: 0 2px 12px rgba(0,0,0,0.1);
Line 56: Line 30:
     display: flex;
     display: flex;
     flex-direction: column;
     flex-direction: column;
}
.card-2 {
    height: 100%;
}
}


Line 67: Line 37:
}
}


/* ===== ROW / COLUMN GRID ===== */
.row {
.row {
     display: flex !important;
     display: flex !important;
     flex-wrap: wrap !important;
     flex-wrap: wrap !important;
     gap: 24px !important;
     gap: 20px !important;
     padding: 20px 25px !important;
     padding: 16px 20px !important;
    width: 100% !important;
     box-sizing: border-box !important;
     box-sizing: border-box !important;
}
}


.column {
.column {
     flex: 1 1 280px !important;
     flex: 1 1 260px !important;
     min-width: 260px !important;
     max-width: min(100%, calc(33.333% - 14px)) !important;
}
     min-width: 0 !important;
 
     box-sizing: border-box !important;
/* 3 columns on desktop */
@media (min-width: 1024px) {
    .column {
        flex: 0 1 calc(33.333% - 16px) !important;
        max-width: calc(33.333% - 16px) !important;
     }
}
 
/* 2 columns on tablet */
@media (min-width: 600px) and (max-width: 1023px) {
    .column {
        flex: 0 1 calc(50% - 12px) !important;
        max-width: calc(50% - 12px) !important;
    }
}
 
/* 1 column on mobile */
@media (max-width: 599px) {
     .row {
        flex-direction: column !important;
        gap: 16px !important;
        padding: 16px 12px !important;
    }
    .column {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 1 100% !important;
    }
}
}


/* ===== IMAGES ===== */
.fakeimg {
.fakeimg {
     overflow: hidden;
     overflow: hidden;
     height: 220px;
     height: clamp(140px, 25vw, 220px);
     background: #f0f0f0;
     background: #f0f0f0;
}
}
Line 120: Line 63:
.fakeimg a img {
.fakeimg a img {
     width: 100% !important;
     width: 100% !important;
     height: 220px !important;
     height: 100% !important;
     object-fit: cover !important;
     object-fit: cover !important;
     display: block !important;
     display: block !important;
}
}


@media (max-width: 599px) {
/* ===== CARD CONTENT ===== */
    .fakeimg,
    .fakeimg img,
    .fakeimg a img {
        height: 160px !important;
    }
}
 
.cha-cont {
.cha-cont {
     padding: 16px !important;
     padding: 16px !important;
Line 150: Line 86:
     background: none !important;
     background: none !important;
     padding: 0 !important;
     padding: 0 !important;
}
.cha-title-2 {
    font-size: 11px !important;
    color: #888 !important;
}
}


Line 170: Line 101:
     margin-top: auto !important;
     margin-top: auto !important;
     padding-top: 8px !important;
     padding-top: 8px !important;
}
.btn-grp-2 {
    margin-top: auto !important;
}
.btn {
    display: inline-block !important;
    padding: 8px 18px !important;
    border-radius: 5px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    border: none !important;
    background: none !important;
}
}


Line 196: Line 111:
     box-sizing: border-box !important;
     box-sizing: border-box !important;
     padding: 10px 18px !important;
     padding: 10px 18px !important;
    border-radius: 5px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}
}


Line 206: Line 125:
.btn-2:hover {
.btn-2:hover {
     background-color: #1b5e20 !important;
     background-color: #1b5e20 !important;
}
.ch-btn {
    display: block !important;
    text-align: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
}


Line 218: Line 130:
.hero-img {
.hero-img {
     width: 100% !important;
     width: 100% !important;
     max-height: 420px !important;
     max-height: clamp(180px, 35vw, 420px) !important;
     overflow: hidden !important;
     overflow: hidden !important;
}
}
Line 225: Line 137:
.hero-img a img {
.hero-img a img {
     width: 100% !important;
     width: 100% !important;
     max-height: 420px !important;
     height: clamp(180px, 35vw, 420px) !important;
     object-fit: cover !important;
     object-fit: cover !important;
     display: block !important;
     display: block !important;
}
@media (max-width: 599px) {
    .hero-img,
    .hero-img img,
    .hero-img a img {
        max-height: 200px !important;
    }
}
}


/* ===== BANNER ===== */
/* ===== BANNER ===== */
.banner-cont {
.banner-cont {
     background: #fff !important;
     background: var(--background-color-base, #fff) !important;
     padding: 35px 25px !important;
     padding: 24px 20px !important;
    width: 100% !important;
     box-sizing: border-box !important;
     box-sizing: border-box !important;
}
}
Line 253: Line 156:
}
}


@media (max-width: 599px) {
/* ===== TITLES ===== */
    .banner-cont {
        padding: 20px 16px !important;
    }
    .banner-cont p {
        font-size: 14px !important;
    }
}
 
/* ===== PAGE TITLE ===== */
.title {
    width: 100% !important;
}
 
.title h1 {
.title h1 {
     font-size: 32px !important;
     font-size: clamp(22px, 5vw, 32px) !important;
     margin: 20px 25px !important;
     margin: 16px 20px !important;
     color: #1a1a2e !important;
     color: #1a1a2e !important;
     border-bottom: 2px solid #2e7d32 !important;
     border-bottom: 2px solid #2e7d32 !important;
Line 275: Line 165:
}
}


@media (max-width: 599px) {
    .title h1 {
        font-size: 24px !important;
        margin: 16px 12px !important;
        padding-bottom: 10px !important;
    }
}
/* ===== SECTION TITLES ===== */
.ch-title {
.ch-title {
     font-size: 22px !important;
     font-size: clamp(18px, 4vw, 22px) !important;
     color: #1a1a2e !important;
     color: #1a1a2e !important;
     margin: 24px 0 8px 0 !important;
     margin: 20px 20px 8px !important;
    padding: 0 25px !important;
     padding-bottom: 8px !important;
     padding-bottom: 8px !important;
     border-bottom: 2px solid #2e7d32 !important;
     border-bottom: 2px solid #2e7d32 !important;
}
/* ===== GOOGLE TRANSLATE ===== */
#google-translate-sidebar {
    padding: 8px 5px !important;
}
#google_translate_element {
    padding: 4px 0 !important;
}
#google_translate_element .goog-te-gadget {
    font-size: 0 !important;
}
#google_translate_element select,
#google_translate_element .goog-te-gadget select {
     width: 100% !important;
     width: 100% !important;
     box-sizing: border-box !important;
     padding: 5px !important;
    border-radius: 4px !important;
    border: 1px solid #ddd !important;
    font-size: 12px !important;
    background: #fff !important;
    cursor: pointer !important;
}
 
#google_translate_element .goog-te-gadget span {
    display: none !important;
}
}


@media (max-width: 599px) {
.goog-te-banner-frame {
     .ch-title {
    display: none !important;
         font-size: 18px !important;
}
        margin: 16px 0 8px 0 !important;
/* ===== MOBILE — single column ===== */
         padding: 0 12px !important;
@media screen and (max-width: 479px) {
     .hero-img,
    .hero-img img,
    .hero-img a img {
         max-height: 180px !important;
         height: 180px !important;
     }
     }
}
}


/* ===== FORCE WIDE MODE & HIDE APPEARANCE PANEL ===== */
body {
.skin-vector-2022 .vector-settings,
     top: 0 !important;
.skin-vector-2022 .mw-portlet-appearance {
     display: none !important;
}
}


/* ===== MOBILE-SPECIFIC OVERRIDES ===== */
/* ===== MOBILE ===== */
@media (max-width: 599px) {
@media (max-width: 479px) {
     .card {
     .column {
         border-radius: 8px !important;
         max-width: 100% !important;
        flex-basis: 100% !important;
     }
     }


     .card:hover {
     .row {
         transform: translateY(-2px) !important;
        gap: 14px !important;
         padding: 12px !important;
     }
     }
}


     .cha-cont h2 {
/* ===== TABLET (2-column grid) ===== */
         font-size: 15px !important;
@media (min-width: 480px) and (max-width: 999px) {
     .column {
        max-width: calc(50% - 10px) !important;
         flex-basis: calc(50% - 10px) !important;
     }
     }


     .btn {
     .row {
         padding: 10px 16px !important;
         gap: 14px !important;
         font-size: 12px !important;
         padding: 14px !important;
     }
     }
}
}
/* ===== STICKY SIDEBAR (desktop only) ===== */
@media screen and (min-width: 1000px) {
    .mw-sidebar,
    #vector-main-menu-pinned-container,
    .vector-main-menu-pinned-container {
        position: sticky !important;
        top: 0 !important;
        max-height: 100vh !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }


/* ===== HIDE WIKI DEFAULT STYLING ===== */
    /* Hide scrollbar but keep functionality */
.mw-editsection {
    #vector-main-menu-pinned-container::-webkit-scrollbar {
     display: none !important;
        width: 4px;
    }
     #vector-main-menu-pinned-container::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 4px;
    }
}
}


.mw-editsection-bracket {
/* ===== HIDE TRANSLATE FROM TOOLS MENU ===== */
#p-tb #t-uls,
#p-tb li:has(a[href*="Special:Translate"]) {
     display: none !important;
     display: none !important;
}
/* Google Translate in sidebar */
#google-translate-sidebar {
    padding: 8px 5px !important;
}
}


#google_translate_element select {
/* ===== TRANSLATE IN SIDEBAR STYLING ===== */
     width: 100% !important;
#p-sidebar-translate {
    padding: 4px !important;
     margin-top: 4px !important;
    border-radius: 4px !important;
    border: 1px solid #ddd !important;
    font-size: 12px !important;
    background: #fff !important;
}
}


.goog-te-gadget-simple {
#p-sidebar-translate .vector-menu-heading {
     width: 100% !important;
     display: none !important;
    border: none !important;
    background: transparent !important;
}
}


/* Hide Google Translate top banner */
#sidebar-translate-link {
.goog-te-banner-frame {
    display: flex !important;
     display: none !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 10px !important;
    color: #2e7d32 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
     text-decoration: none !important;
    border-radius: 4px !important;
    transition: background 0.2s !important;
}
}


body {
#sidebar-translate-link:hover {
     top: 0 !important;
     background: #e8f5e9 !important;
    color: #1b5e20 !important;
}
}