Участник:Torgovec/песочница/Шаблоны/ImgRelative/styles.css: различия между версиями
Материал из Space Station 14 | Время приключений Вики
Дополнительные действия
Torgovec (обсуждение | вклад) м Исправляем неправильный размер изображений |
Torgovec (обсуждение | вклад) м тесты баннера |
||
| Строка 3: | Строка 3: | ||
width: auto; | width: auto; | ||
vertical-align: middle; | vertical-align: middle; | ||
} | |||
/*** Шаблон:ФонБаннер ***/ | |||
.torgovec-article-banner-test { | |||
position: absolute; | |||
z-index: -2; | |||
top: 0; | |||
left: 0; | |||
width: 100%; | |||
max-width: 100%; | |||
overflow: hidden; | |||
mask-image: linear-gradient(to top, transparent 0%, #00000020 40%, #000 100%); | |||
} | |||
.torgovec-article-banner-test img { | |||
width: 100%; | |||
height: auto; | |||
min-width: 680px; | |||
position: relative; | |||
left: 50%; | |||
transform: translateX(-50%); | |||
} | } | ||
Текущая версия от 12:37, 5 октября 2026
.torgovec-wiki-inline-icon-test img {
height: 1.2em;
width: auto;
vertical-align: middle;
}
/*** Шаблон:ФонБаннер ***/
.torgovec-article-banner-test {
position: absolute;
z-index: -2;
top: 0;
left: 0;
width: 100%;
max-width: 100%;
overflow: hidden;
mask-image: linear-gradient(to top, transparent 0%, #00000020 40%, #000 100%);
}
.torgovec-article-banner-test img {
width: 100%;
height: auto;
min-width: 680px;
position: relative;
left: 50%;
transform: translateX(-50%);
}