MediaWiki:Common.css: различия между версиями
Внешний вид
Оставить в шапке только иконку |
Иллюстрированная навигация WikiVibe Craft |
||
| Строка 7: | Строка 7: | ||
clip-path: inset(50%); | clip-path: inset(50%); | ||
white-space: nowrap; | white-space: nowrap; | ||
} | |||
/* Keep icons aligned with article links in the home page directory. */ | |||
.wv-wiki-nav li { | |||
margin-block: 0.18em; | |||
} | |||
.wv-wiki-nav-row { | |||
display: inline-flex; | |||
align-items: center; | |||
gap: 0.4em; | |||
max-width: 100%; | |||
min-height: 24px; | |||
vertical-align: middle; | |||
} | |||
.wv-wiki-nav > ul > li > .wv-wiki-nav-row { | |||
font-weight: bold; | |||
} | |||
.wv-wiki-nav-icon { | |||
display: grid; | |||
flex: 0 0 24px; | |||
width: 24px; | |||
height: 24px; | |||
} | |||
.wv-wiki-nav-icon > span { | |||
grid-area: 1 / 1; | |||
} | |||
.wv-wiki-nav-icon img { | |||
display: block; | |||
width: 100%; | |||
height: 100%; | |||
object-fit: contain; | |||
image-rendering: pixelated; | |||
} | } | ||
Версия от 12:49, 17 ноября 2026
/* Keep the home link's accessible name without showing a second logo. */
.mw-logo > .mw-logo-container {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap;
}
/* Keep icons aligned with article links in the home page directory. */
.wv-wiki-nav li {
margin-block: 0.18em;
}
.wv-wiki-nav-row {
display: inline-flex;
align-items: center;
gap: 0.4em;
max-width: 100%;
min-height: 24px;
vertical-align: middle;
}
.wv-wiki-nav > ul > li > .wv-wiki-nav-row {
font-weight: bold;
}
.wv-wiki-nav-icon {
display: grid;
flex: 0 0 24px;
width: 24px;
height: 24px;
}
.wv-wiki-nav-icon > span {
grid-area: 1 / 1;
}
.wv-wiki-nav-icon img {
display: block;
width: 100%;
height: 100%;
object-fit: contain;
image-rendering: pixelated;
}