MediaWiki:Common.css: Difference between revisions

No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* ===== 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,
    .skin-vector-2022 .mw-content-container,
    .skin-vector-2022 #mw-content-container {
        max-width: none !important;
    }
}
}


.skin-vector-2022 .mw-content-container,
/* ===== HIDE APPEARANCE PANEL ===== */
.skin-vector-2022 #mw-content-container {
.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;
}
}


/* ===== HIDE APPEARANCE PANEL ===== */
/* ===== HIDE EDIT SECTION LINKS ===== */
.skin-vector-2022 .mw-portlet-appearance {
.mw-editsection {
     display: none !important;
     display: none !important;
}
}
Line 16: Line 22:
/* ===== 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 31: 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;
     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;
     max-width: calc(33.333% - 16px) !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}
}


/* ===== IMAGES ===== */
.fakeimg {
.fakeimg {
     overflow: hidden;
     overflow: hidden;
     height: 220px;
     height: clamp(140px, 25vw, 220px);
     background: #f0f0f0;
     background: #f0f0f0;
}
}
Line 54: 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;
}
}


/* ===== CARD CONTENT ===== */
.cha-cont {
.cha-cont {
     padding: 16px !important;
     padding: 16px !important;
Line 120: 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 127: 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;
Line 134: Line 144:
/* ===== BANNER ===== */
/* ===== BANNER ===== */
.banner-cont {
.banner-cont {
     background: #fff !important;
     background: var(--background-color-base, #fff) !important;
     padding: 35px 25px !important;
     padding: 24px 20px !important;
     box-sizing: border-box !important;
     box-sizing: border-box !important;
}
}
Line 148: Line 158:
/* ===== TITLES ===== */
/* ===== TITLES ===== */
.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 156: Line 166:


.ch-title {
.ch-title {
     font-size: 22px !important;
     font-size: clamp(18px, 4vw, 22px) !important;
     color: #1a1a2e !important;
     color: #1a1a2e !important;
     margin: 24px 25px 8px !important;
     margin: 20px 20px 8px !important;
     padding-bottom: 8px !important;
     padding-bottom: 8px !important;
     border-bottom: 2px solid #2e7d32 !important;
     border-bottom: 2px solid #2e7d32 !important;
}
/* ===== HIDE EDIT SECTION LINKS ===== */
.mw-editsection {
    display: none !important;
}
}


Line 173: Line 178:
}
}


#google_translate_element select {
#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;
     padding: 4px !important;
     padding: 5px !important;
     border-radius: 4px !important;
     border-radius: 4px !important;
     border: 1px solid #ddd !important;
     border: 1px solid #ddd !important;
     font-size: 12px !important;
     font-size: 12px !important;
    background: #fff !important;
    cursor: pointer !important;
}
#google_translate_element .goog-te-gadget span {
    display: none !important;
}
}


.goog-te-banner-frame {
.goog-te-banner-frame {
     display: none !important;
     display: none !important;
}
/* ===== MOBILE — single column ===== */
@media screen and (max-width: 479px) {
    .hero-img,
    .hero-img img,
    .hero-img a img {
        max-height: 180px !important;
        height: 180px !important;
    }
}
}


Line 190: Line 219:


/* ===== MOBILE ===== */
/* ===== MOBILE ===== */
@media (max-width: 768px) {
@media (max-width: 479px) {
     .column {
     .column {
         max-width: 100% !important;
         max-width: 100% !important;
         width: 100% !important;
         flex-basis: 100% !important;
     }
     }
     .row {
     .row {
        flex-direction: column !important;
         gap: 14px !important;
         gap: 16px !important;
         padding: 12px !important;
         padding: 16px 12px !important;
     }
     }
    .fakeimg,
}
    .fakeimg img,
 
     .fakeimg a img {
/* ===== TABLET (2-column grid) ===== */
         height: 160px !important;
@media (min-width: 480px) and (max-width: 999px) {
     .column {
         max-width: calc(50% - 10px) !important;
        flex-basis: calc(50% - 10px) !important;
     }
     }
    .hero-img,
 
     .hero-img img,
     .row {
    .hero-img a img {
        gap: 14px !important;
         max-height: 200px !important;
         padding: 14px !important;
     }
     }
}
}
/* Hide appearance panel completely */
/* ===== STICKY SIDEBAR (desktop only) ===== */
.skin-vector-2022 .mw-portlet-appearance,
@media screen and (min-width: 1000px) {
.skin-vector-2022 #vector-page-tools-pinned-container .mw-portlet-appearance,
    .mw-sidebar,
.skin-vector-2022 .vector-appearance {
    #vector-main-menu-pinned-container,
    display: none !important;
    .vector-main-menu-pinned-container {
}
        position: sticky !important;
        top: 0 !important;
        max-height: 100vh !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }


/* Google Translate compact dropdown */
    /* Hide scrollbar but keep functionality */
#google_translate_element {
    #vector-main-menu-pinned-container::-webkit-scrollbar {
     padding: 4px 0 !important;
        width: 4px;
     }
    #vector-main-menu-pinned-container::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 4px;
    }
}
}


#google_translate_element .goog-te-gadget {
/* ===== HIDE TRANSLATE FROM TOOLS MENU ===== */
     font-size: 0 !important;
#p-tb #t-uls,
#p-tb li:has(a[href*="Special:Translate"]) {
     display: none !important;
}
}


#google_translate_element .goog-te-gadget select {
/* ===== TRANSLATE IN SIDEBAR STYLING ===== */
     font-size: 12px !important;
#p-sidebar-translate {
    width: 100% !important;
     margin-top: 4px !important;
    padding: 5px !important;
    border-radius: 4px !important;
    border: 1px solid #ddd !important;
    background: #fff !important;
    cursor: pointer !important;
    max-height: 200px !important;
    overflow-y: auto !important;
}
}


#google_translate_element .goog-te-gadget span {
#p-sidebar-translate .vector-menu-heading {
     display: none !important;
     display: none !important;
}
}


/* Hide top translate 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;
}
}