Шаблон:Infobox/styles.css: различия между версиями
Перейти к навигации
Перейти к поиску
Hloth (обсуждение | вклад) Нет описания правки |
Hloth (обсуждение | вклад) Нет описания правки |
||
| (не показаны 3 промежуточные версии этого же участника) | |||
| Строка 5: | Строка 5: | ||
padding: 5px; | padding: 5px; | ||
width: 290px; | width: 290px; | ||
max-width: 100%; | |||
border: 1px solid #a2a9b1; | border: 1px solid #a2a9b1; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
| Строка 17: | Строка 18: | ||
width: 100%; | width: 100%; | ||
padding: 2px 0; | padding: 2px 0; | ||
} | |||
html[class*=skin-theme-clientpref-night] .infobox .title { | |||
background-color: rgb(57, 70, 88); | |||
} | |||
@media (prefers-color-scheme: dark) { | |||
html[class*=skin-theme-clientpref-os] .infobox .title { | |||
background-color: rgb(57, 70, 88); | |||
} | |||
} | } | ||
Текущая версия от 08:19, 6 декабря 2025
.infobox {
float: right;
margin-left: 12px;
margin-bottom: 6px;
padding: 5px;
width: 290px;
max-width: 100%;
border: 1px solid #a2a9b1;
box-sizing: border-box;
}
.infobox .title {
background-color: rgb(207, 227, 255);
font-weight: 700;
font-size: 15px;
line-height: 18px;
text-align: center;
width: 100%;
padding: 2px 0;
}
html[class*=skin-theme-clientpref-night] .infobox .title {
background-color: rgb(57, 70, 88);
}
@media (prefers-color-scheme: dark) {
html[class*=skin-theme-clientpref-os] .infobox .title {
background-color: rgb(57, 70, 88);
}
}
.infobox .image {
max-width: 100%;
}
.infobox .image img {
width: 100%;
height: auto;
}
.infobox .image pre {
background: transparent;
border: none;
}
.infobox .plainlist {
width: 128px;
font-weight: 700;
text-align: left;
}
.infobox .plainlist-container {
display: flex;
}
.infobox .plainlist-container span[typeof="mw:File"] + a {
vertical-align: middle;
}