MediaWiki:Common.css: различия между версиями
Внешний вид
Ghoster (обсуждение | вклад) Нет описания правки Метка: ручная отмена |
Ghoster (обсуждение | вклад) Нет описания правки |
||
| Строка 301: | Строка 301: | ||
/* ToolTip */ | /* ToolTip */ | ||
. | .tipsy { | ||
font-size: 0.9em; | |||
line-height: 1.4; | |||
max-width: 350px; | |||
} | } | ||
.tipsy-inner { | |||
background-color: #2c3e50; | |||
color: #ecf0f1; | |||
padding: 10px 14px; | |||
border-radius: 6px; | |||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); | |||
text-align: left; | |||
} | } | ||
.tipsy-n .tipsy-arrow { border-bottom-color: #2c3e50; } | |||
. | .tipsy-s .tipsy-arrow { border-top-color: #2c3e50; } | ||
.tipsy-e .tipsy-arrow { border-left-color: #2c3e50; } | |||
} | .tipsy-w .tipsy-arrow { border-right-color: #2c3e50; } | ||
. | |||
} | |||
.tipsy-inner a { | |||
color: #3498db; | |||
. | text-decoration: underline; | ||
} | } | ||
Версия от 17:01, 30 октября 2026
/* Оформление шаблонов. Переменные --vt-* задаёт тема сервера, значения после запятой - запасные для светлой темы */
/* карточки ролей */
.role-group {
display: grid;
gap: 10px;
margin: .8em 0 1.6em;
}
.role-card {
display: grid;
grid-template-columns: 96px minmax(0, 1fr) auto;
gap: 0 16px;
align-items: center;
background: var(--vt-bg-2, #f8f9fa);
border: 1px solid var(--vt-line, #c8ccd1);
border-left: 3px solid var(--accent, #7f7f7f);
border-radius: 6px;
padding: 10px 14px 10px 10px;
box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.role-card__portrait {
display: flex;
align-items: center;
justify-content: center;
width: 96px;
height: 96px;
border-radius: 4px;
background:
radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--accent, #7f7f7f) 35%, transparent), transparent 70%),
var(--vt-bg-3, #eaecf0);
border: 1px solid color-mix(in srgb, var(--accent, #7f7f7f) 45%, var(--vt-line, #c8ccd1));
}
.role-card__portrait img { image-rendering: pixelated; }
.role-card__name {
font-family: var(--vt-serif, Georgia, serif);
font-size: 1.35rem;
font-weight: 600;
line-height: 1.2;
margin-bottom: .2em;
}
.role-card__name a { color: var(--vt-text-strong, #202122); }
.role-card__name a:hover { color: var(--vt-link-hover, #36c); }
.role-card__desc { color: var(--vt-text, #202122); font-size: .95rem; line-height: 1.5; }
.role-card__stats {
display: grid;
gap: 6px;
min-width: 150px;
padding-left: 14px;
border-left: 1px solid var(--vt-line, #eaecf0);
}
.role-stat { display: grid; grid-template-columns: 1fr; line-height: 1.15; }
.role-stat__label {
font-size: .68rem;
letter-spacing: .12em;
text-transform: uppercase;
color: var(--vt-text-muted, #54595d);
}
.role-stat__dots {
font-size: 1.05rem;
letter-spacing: .12em;
white-space: nowrap;
}
.role-stat__on { color: var(--accent, #7f7f7f); text-shadow: 0 0 6px color-mix(in srgb, var(--accent, #7f7f7f) 60%, transparent); }
.role-stat__off { color: var(--vt-line-2, #c8ccd1); }
.role-stat__dots[data-level="0"] { display: none; }
.role-stat__text { font-size: .72rem; color: var(--vt-text-muted, #72777d); }
.role-stat__dots:not([data-level="0"]) + .role-stat__text { display: none; }
@media (max-width: 720px) {
.role-card { grid-template-columns: 72px minmax(0, 1fr); gap: 6px 12px; }
.role-card__portrait { width: 72px; height: 72px; }
.role-card__stats {
grid-column: 1 / -1;
grid-template-columns: repeat(3, 1fr);
border-left: 0;
border-top: 1px solid var(--vt-line, #eaecf0);
padding: 8px 0 0;
margin-top: 4px;
}
}
/* шапка страницы роли */
.job-header {
margin: .5em 0 1.5em;
border: 1px solid var(--vt-line-2, #c8ccd1);
border-radius: 6px;
overflow: hidden;
background: var(--vt-bg-2, #f8f9fa);
box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
.job-header__faction {
padding: .5em 1em;
text-align: center;
font-family: var(--vt-serif, Georgia, serif);
font-weight: 600;
font-size: 1.15rem;
letter-spacing: .14em;
text-transform: uppercase;
color: var(--vt-text-strong, #202122);
background: linear-gradient(180deg, color-mix(in srgb, var(--accent, #7f7f7f) 38%, var(--vt-bg-2, #f8f9fa)), color-mix(in srgb, var(--accent, #7f7f7f) 22%, var(--vt-bg-2, #f8f9fa)));
border-bottom: 1px solid color-mix(in srgb, var(--accent, #7f7f7f) 55%, var(--vt-line-2, #c8ccd1));
}
.job-header__main {
display: grid;
grid-template-columns: 150px minmax(0, 1fr);
gap: 16px;
padding: 14px;
}
.job-header__portrait {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
}
.job-header__portrait > * { margin: 0; }
.job-header__portrait img { image-rendering: pixelated; }
.job-header__portrait > span[typeof],
.job-header__portrait > a,
.job-header__portrait > figure {
display: flex;
align-items: flex-end;
justify-content: center;
width: 130px;
height: 190px;
overflow: hidden;
border-radius: 4px;
background:
radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent, #7f7f7f) 40%, transparent), transparent 72%),
var(--vt-bg-3, #eaecf0);
border: 1px solid color-mix(in srgb, var(--accent, #7f7f7f) 45%, var(--vt-line, #c8ccd1));
}
.job-header__title {
width: 130px;
padding: .35em .4em;
text-align: center;
font-family: var(--vt-serif, Georgia, serif);
font-weight: 600;
font-size: 1.05rem;
line-height: 1.15;
color: var(--vt-text-strong, #202122);
background: color-mix(in srgb, var(--accent, #7f7f7f) 30%, var(--vt-bg-3, #eaecf0));
border-radius: 4px;
}
.job-header__facts {
display: grid;
grid-template-columns: max-content minmax(0, 1fr);
gap: 6px 18px;
align-content: start;
margin: 0;
}
.job-header__facts dt {
font-size: .72rem;
letter-spacing: .12em;
text-transform: uppercase;
color: var(--vt-text-muted, #54595d);
padding-top: .25em;
}
.job-header__facts dd { margin: 0; line-height: 1.5; }
@media (max-width: 600px) {
.job-header__main { grid-template-columns: 1fr; }
.job-header__facts { grid-template-columns: 1fr; gap: 2px 0; }
.job-header__facts dd { margin-bottom: .5em; }
}
/* блоки главной страницы */
.pageframe {
margin: 1em .2em 1.2em;
border: 1px solid var(--vt-line-2, #c8ccd1);
border-radius: 6px;
overflow: hidden;
background: var(--vt-bg-2, #f8f9fa);
box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
.pageframe__header {
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
padding: .5em 1em;
font-family: var(--vt-serif, Georgia, serif);
font-weight: 600;
font-size: 1.15rem;
letter-spacing: .1em;
text-transform: uppercase;
color: var(--vt-text-strong, #202122);
background: linear-gradient(180deg, color-mix(in srgb, var(--accent, #7f7f7f) 40%, var(--vt-bg-2, #f8f9fa)), color-mix(in srgb, var(--accent, #7f7f7f) 24%, var(--vt-bg-2, #f8f9fa)));
border-bottom: 1px solid color-mix(in srgb, var(--accent, #7f7f7f) 55%, var(--vt-line-2, #c8ccd1));
}
.pageframe__header img { image-rendering: pixelated; }
.pageframe__title { flex: 1; text-align: center; }
.pageframe__body { padding: 1em 1.2em; }
.pageframe__body > p:first-child { margin-top: 0; }
.pageframe__body > :last-child { margin-bottom: 0; }
.job-tiles ul {
list-style: none;
margin: 0;
padding: 0;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
gap: 4px;
}
.job-tiles li {
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
padding: 10px 4px 8px;
text-align: center;
font-size: .74rem;
letter-spacing: .02em;
line-height: 1.2;
border-radius: 4px;
border: 1px solid transparent;
transition: background .15s, border-color .15s;
}
.job-tiles li:hover {
background: color-mix(in srgb, var(--accent, #7f7f7f) 18%, var(--vt-bg-3, #eaecf0));
border-color: color-mix(in srgb, var(--accent, #7f7f7f) 50%, transparent);
}
.job-tiles li img { image-rendering: pixelated; }
.job-tiles li > a:last-child { color: var(--vt-text-muted, #54595d); }
.job-tiles li:hover > a:last-child { color: var(--vt-link-hover, #36c); }
.job-tiles__all { margin-top: 10px; text-align: center; font-weight: 600; }
/* главная страница */
.mp-hero {
text-align: center;
padding: 1.6em 1em 1.4em;
margin: 0 0 .6em;
}
.mp-hero__title {
font-family: var(--vt-serif, Georgia, serif);
font-size: 3.2rem;
font-weight: 600;
letter-spacing: .12em;
text-transform: uppercase;
line-height: 1;
color: var(--vt-text-strong, #202122);
text-shadow: 0 0 24px rgba(216, 35, 59, .35);
}
.mp-hero__sub {
margin: .6em auto 1.2em;
max-width: 36em;
font-style: italic;
font-size: 1.05rem;
color: var(--vt-text-muted, #54595d);
}
.mp-hero__actions {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 10px;
}
.mp-btn a {
display: inline-block;
padding: .6em 1.5em;
border-radius: 4px;
border: 1px solid var(--vt-line-2, #a2a9b1);
background: var(--vt-bg-3, #f8f9fa);
color: var(--vt-text-strong, #202122) !important;
font-family: var(--vt-serif, Georgia, serif);
font-weight: 600;
font-size: 1.05rem;
letter-spacing: .1em;
text-transform: uppercase;
text-decoration: none;
transition: background .15s, border-color .15s, box-shadow .15s;
}
.mp-btn a.external { background-image: none; padding-right: 1.5em; }
.mp-btn a:hover {
border-color: var(--vt-blood-bright, #d33);
box-shadow: 0 0 18px rgba(216, 35, 59, .3);
}
.mp-btn--primary a {
background: var(--vt-blood, #a31621);
border-color: var(--vt-blood, #a31621);
color: #fff !important;
}
.mp-btn--primary a:hover { background: var(--vt-blood-bright, #d8233b); }
.mp-hero__addr { margin-top: 1em; font-size: .8rem; color: var(--vt-text-muted, #72777d); }
.mp-hero__addr code { font-size: .8rem; }
.mp-grid {
display: grid;
grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
gap: 0 18px;
align-items: start;
}
.mp-col .pageframe { margin-left: 0; margin-right: 0; }
.mp-rules {
text-align: center;
font-family: var(--vt-serif, Georgia, serif);
font-size: 1.35rem;
font-weight: 600;
}
@media (max-width: 900px) {
.mp-grid { grid-template-columns: 1fr; }
.mp-hero__title { font-size: 2.2rem; }
.wiki-mainpage-column > div { width: 100% !important; float: none !important; }
}
/* ToolTip */
.tipsy {
font-size: 0.9em;
line-height: 1.4;
max-width: 350px;
}
.tipsy-inner {
background-color: #2c3e50;
color: #ecf0f1;
padding: 10px 14px;
border-radius: 6px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
text-align: left;
}
.tipsy-n .tipsy-arrow { border-bottom-color: #2c3e50; }
.tipsy-s .tipsy-arrow { border-top-color: #2c3e50; }
.tipsy-e .tipsy-arrow { border-left-color: #2c3e50; }
.tipsy-w .tipsy-arrow { border-right-color: #2c3e50; }
.tipsy-inner a {
color: #3498db;
text-decoration: underline;
}