Перейти к содержанию

MediaWiki:Common.css

Материал из WikiVibe Craft Wiki
Версия от 06:37, 18 ноября 2026; WikiVibeCraft (обсуждение | вклад) (Навигация по уровням панелей и раскладка рецепта)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

Замечание: Возможно, после публикации вам придётся очистить кэш своего браузера, чтобы увидеть изменения.

  • Firefox / Safari: Удерживая клавишу Shift, нажмите на панели инструментов Обновить либо нажмите Ctrl+F5 или Ctrl+R (⌘+R на Mac)
  • Google Chrome: Нажмите Ctrl+Shift+R (⌘+Shift+R на Mac)
  • Edge: Удерживая Ctrl, нажмите Обновить либо нажмите Ctrl+F5
  • Opera: Нажмите Ctrl+F5.
/* 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;
}

.wv-facts.wikitable {
    float: right;
    width: 16em;
    max-width: 100%;
    margin: 0 0 1em 1.25em;
    font-size: 0.94em;
}
.wv-facts th[scope="row"] { text-align: start; }
.wv-facts-image { text-align: center; }
.wv-facts-image img { margin: 0.6em; image-rendering: pixelated; }
.wv-crafts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15em), 1fr));
    clear: both;
    gap: 0.8em;
    margin: 1em 0;
}
.wv-craft {
    padding: 0.85em 1em;
    border: 1px solid var(--border-color-subtle, #a2a9b1);
    background: var(--background-color-neutral-subtle, #f8f9fa);
}
.wv-craft > strong { display: block; }
.wv-workbench {
    display: flex;
    align-items: center;
    gap: 0.65em;
    margin-block: 0.8em;
}
.wv-grid {
    display: grid;
    grid-template-columns: repeat(3, 36px);
    border: 1px solid #595959;
}
.wv-slot {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    box-sizing: border-box;
    border: 1px solid;
    border-color: #626262 #ddd #ddd #626262;
    background-color: #999;
    line-height: 1;
}
.wv-workbench img, .wv-craft li img { image-rendering: pixelated; vertical-align: middle; object-fit: contain; }
.wv-slot img { width: 30px; height: 30px; }
.wv-workbench > span:last-child img { width: 42px; height: 42px; }
.wv-craft ul { list-style: none; margin: 0; padding: 0; }
.wv-craft li { margin: 0.22em 0; }
.wv-craft li img { width: 20px; height: 20px; }
@media (max-width: 720px) {
    .wv-facts.wikitable { float: none; width: 100%; margin: 0.6em 0 1em; }
    .mw-parser-output:has(.wv-facts) table.wikitable:not(.wv-facts) {
        display: block;
        max-width: 100%;
        overflow-x: auto;
    }
    .mw-parser-output:has(.wv-facts) figure { max-width: 100%; box-sizing: border-box; }
    .mw-parser-output:has(.wv-facts) figure img { max-width: 100%; height: auto; }
}
.wv-workbench:has(.wv-grid-large) { flex-wrap: wrap; }
.wv-grid.wv-grid-large { grid-template-columns: repeat(9, minmax(0, 1fr)); width: min(100%, 288px); }
.wv-grid-large .wv-slot { width: 100%; height: auto; aspect-ratio: 1; }
.wv-grid-large .wv-slot img { width: 100%; height: auto; }

.wv-crafts:has(> .wv-craft:only-child) { max-width: 42em; }
@media (min-width: 760px) {
    .wv-craft:only-child { display: flow-root; }
    .wv-craft:only-child .wv-workbench { float: left; margin-right: 1.5em; }
    .wv-craft:only-child ul { display: flow-root; margin: 0.8em 0; }
    .wv-craft:only-child .wv-workbench:has(.wv-grid-large) { float: none; }
}