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

Матеріал з darnytsa_hero
Перейти до навігації Перейти до пошуку
Створена сторінка: Стилі для кіоскового режиму: @media (max-width: 768px), (pointer: coarse) { .mw-ui-button { min-height: 50px !important; padding: 15px 25px !important; font-size: 20px !important; } Збільшуємо область кліку: a { min-height: 44px !important; display: flex !important; align-items: center !important; } }
 
Немає опису редагування
Рядок 1: Рядок 1:
/* Стилі для кіоскового режиму */
/* Стиль для сторінок з зображеннями */
@media (max-width: 768px), (pointer: coarse) {
body:has(img[src*="/images/"]) {
     .mw-ui-button {
     background: black !important;
        min-height: 50px !important;
    display: flex !important;
        padding: 15px 25px !important;
    justify-content: center !important;
        font-size: 20px !important;
    align-items: center !important;
    }
    height: 100vh !important;
   
    margin: 0 !important;
    /* Збільшуємо область кліку */
    padding: 0 !important;
     a {
}
        min-height: 44px !important;
 
        display: flex !important;
body:has(img[src*="/images/"]) img {
        align-items: center !important;
     max-width: 95% !important;
    }
    max-height: 95% !important;
    object-fit: contain !important;
}
}

Версія за 05:23, 24 вересня 2025

/* Стиль для сторінок з зображеннями */
body:has(img[src*="/images/"]) {
    background: black !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
}

body:has(img[src*="/images/"]) img {
    max-width: 95% !important;
    max-height: 95% !important;
    object-fit: contain !important;
}