MediaWiki:Common.css: відмінності між версіями
Перейти до навігації
Перейти до пошуку
Wiki (обговорення | внесок) Створена сторінка: →Стилі для кіоскового режиму: @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; } } |
Wiki (обговорення | внесок) Немає опису редагування |
||
| Рядок 1: | Рядок 1: | ||
/* | /* Стиль для сторінок з зображеннями */ | ||
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; | |||
} | } | ||
Версія за 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;
}