MediaWiki:Common.css: відмінності між версіями

нема опису редагування
Немає опису редагування
Немає опису редагування
Рядок 1261: Рядок 1261:


/* ==================================================== */
/* ==================================================== */
/* МОБІЛЬНА ВЕРСІЯ - КРОК 1: ПОШУК ТА КОМПАКТНИЙ ХЕДЕР */
/* МОБІЛЬНА ВЕРСІЯ - ПОШУК ТА КОМПАКТНИЙ ХЕДЕР */
/* ==================================================== */
/* ==================================================== */
/* Кнопка пошуку */
.mobile-search-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    margin-left: auto;
    flex-shrink: 0;
    transition: background 0.2s;
}
.mobile-search-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}
.mobile-search-btn svg {
    display: block;
}
/* Overlay пошуку */
.mobile-search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1001;
    background: rgba(21, 21, 31, 0.98);
    padding: 12px;
    align-items: flex-start;
    gap: 10px;
}
.mobile-search-overlay.active {
    display: flex;
}
.mobile-search-overlay input {
    flex: 1;
    padding: 14px 16px;
    font-size: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: #23232c;
    color: white;
    outline: none;
}
.mobile-search-overlay input:focus {
    border-color: #a19ce0;
}
.mobile-search-overlay input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}
.mobile-search-close {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #888;
    cursor: pointer;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
}
.mobile-search-close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}


@media (max-width: 768px) {
@media (max-width: 768px) {
    /* Показуємо кнопку пошуку */
    .mobile-search-btn {
        display: flex;
    }
   
    /* Ховаємо стандартну форму пошуку */
    .minerva-header .minerva-search-form {
        display: none !important;
    }
   
    /* Ховаємо стандартну іконку */
    .minerva-header #searchIcon {
        display: none !important;
    }
      
      
     /* Менші відступи в хедері */
     /* Компактніший хедер */
     .header-container.header-chrome {
     .header-container.header-chrome {
         padding: 6px 12px !important;
         padding: 6px 12px !important;
Рядок 1273: Рядок 1367:
     .minerva-header {
     .minerva-header {
         padding: 4px 0 !important;
         padding: 4px 0 !important;
         gap: 8px !important;
         gap: 10px !important;
     }
     }
      
      
    /* Менше лого */
     .minerva-header .branding-box a::before {
     .minerva-header .branding-box a::before {
         width: 28px !important;
         width: 28px !important;
Рядок 1282: Рядок 1375:
     }
     }
      
      
    /* Менший текст */
     .minerva-header .branding-box a span {
     .minerva-header .branding-box a span {
         font-size: 13px !important;
         font-size: 14px !important;
    }
   
    /* Ховаємо звичайний пошук */
    .minerva-header .minerva-search-form {
        display: none !important;
    }
   
    /* Показуємо кнопку пошуку */
    .minerva-header #searchIcon {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 36px !important;
        height: 36px !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border-radius: 8px !important;
        margin-left: auto !important;
    }
   
    .minerva-header #searchIcon .minerva-icon--search-base20 {
        filter: brightness(2) !important;
    }
   
    /* Мобільний пошук (спочатку прихований) */
    .mobile-search-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1001;
        background: rgba(21, 21, 31, 0.98);
        padding: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    }
   
    .mobile-search-overlay.active {
        display: flex;
        align-items: center;
        gap: 10px;
    }
   
    .mobile-search-overlay input {
        flex: 1;
        padding: 12px 16px;
        font-size: 16px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 8px;
        background: #23232c;
        color: white;
        outline: none;
    }
   
    .mobile-search-overlay input:focus {
        border-color: #a19ce0;
    }
   
    .mobile-search-overlay input::placeholder {
        color: rgba(255, 255, 255, 0.4);
     }
     }
      
      
    .mobile-search-close {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        color: #888;
        cursor: pointer;
        flex-shrink: 0;
    }
   
    .mobile-search-close:hover {
        color: white;
    }
   
    /* Менший padding-top для контенту */
     .mw-body {
     .mw-body {
         padding-top: 52px !important;
         padding-top: 52px !important;
Рядок 1368: Рядок 1384:
}
}


/* Ще менші екрани - ховаємо назву сайту */
@media (max-width: 400px) {
@media (max-width: 400px) {
     .minerva-header .branding-box a span {
     .minerva-header .branding-box a span {
         display: none !important;
         display: none !important;
    }
}
@media (max-width: 768px) {
    body .header-container .minerva-header #searchIcon {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 36px !important;
        height: 36px !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border-radius: 8px !important;
        margin-left: auto !important;
        cursor: pointer !important;
     }
     }
}
}