MediaWiki:Common.css: различия между версиями
Перейти к навигации
Перейти к поиску
Новая страница: «→Размещённый здесь CSS будет применяться ко всем темам оформления: .lain-adposters { margin: 1em 0.5em; text-align: center; font-size: 0.85em; } .lain-adposters-title { font-weight: bold; margin-bottom: 0.4em; } .lain-adposters img { display: block; max-width: 100%; height: auto; margin: 0 auto; transition: opacity 0.4s; } .lain-adposters.is-fading img { opacity: 0; } .lain-adposters-caption { margin-t...» |
Нет описания правки |
||
| (не показаны 3 промежуточные версии этого же участника) | |||
| Строка 1: | Строка 1: | ||
.lain-adposters { margin: 1em 0.5em; text-align: center; font-size: 0.85em; } | .lain-adposters { margin: 1em 0.5em; text-align: center; font-size: 0.85em; } | ||
.lain-adposters-title { font-weight: bold; margin-bottom: 0.4em; } | .lain-adposters-title { font-weight: bold; margin-bottom: 0.4em; } | ||
.lain-adposters img { display: block; | |||
.lain-adposters.is- | .lain-adposters-frame { | ||
.lain-adposters-caption { margin-top: 0.3em; } | position: relative; | ||
width: 235px; /* Vector 2022 и остальные темы */ | |||
max-width: 100%; | |||
margin: 0 auto; | |||
overflow: hidden; | |||
} | |||
.skin-vector-legacy .lain-adposters-frame { | |||
width: 145px; /* старый Vector */ | |||
} | |||
.lain-adposters-frame img { | |||
display: block; | |||
width: 100%; /* всегда растягиваем по ширине */ | |||
height: auto; /* высота по пропорциям */ | |||
max-width: none; | |||
max-height: none; | |||
image-rendering: pixelated; | |||
position: absolute; top: 0; left: 0; | |||
opacity: 0; | |||
transition: opacity 0.8s ease; | |||
} | |||
.lain-adposters-frame img.is-active { | |||
position: relative; /* активная картинка задаёт высоту блока */ | |||
opacity: 1; | |||
} | |||
.lain-adposters-caption { margin-top: 0.3em; min-height: 1.3em; } | |||
Текущая версия от 22:31, 26 октября 2026
.lain-adposters { margin: 1em 0.5em; text-align: center; font-size: 0.85em; }
.lain-adposters-title { font-weight: bold; margin-bottom: 0.4em; }
.lain-adposters-frame {
position: relative;
width: 235px; /* Vector 2022 и остальные темы */
max-width: 100%;
margin: 0 auto;
overflow: hidden;
}
.skin-vector-legacy .lain-adposters-frame {
width: 145px; /* старый Vector */
}
.lain-adposters-frame img {
display: block;
width: 100%; /* всегда растягиваем по ширине */
height: auto; /* высота по пропорциям */
max-width: none;
max-height: none;
image-rendering: pixelated;
position: absolute; top: 0; left: 0;
opacity: 0;
transition: opacity 0.8s ease;
}
.lain-adposters-frame img.is-active {
position: relative; /* активная картинка задаёт высоту блока */
opacity: 1;
}
.lain-adposters-caption { margin-top: 0.3em; min-height: 1.3em; }