MediaWiki:Common.css: различия между версиями
Внешний вид
Remove unsupported :root block and keep literal red link accent rules |
Simplify link accent CSS to ResourceLoader-safe selectors |
||
| Строка 101: | Строка 101: | ||
} | } | ||
/* mafiawiki-global-link-accent */ | /* mafiawiki-global-link-accent */ | ||
.mw-body a | .mw-body a, | ||
.mw-body-content a | .mw-body-content a, | ||
.mw-parser-output a | .mw-parser-output a, | ||
#mw-panel a | #mw-panel a, | ||
.vector-header-container a | .vector-header-container a, | ||
.vector-sticky-header a | .vector-sticky-header a, | ||
.mw-portlet a | .mw-portlet a { | ||
color: #cc0000 | color: #cc0000; | ||
} | } | ||
.mw-body a | .mw-body a:visited, | ||
.mw-body-content a | .mw-body-content a:visited, | ||
.mw-parser-output a | .mw-parser-output a:visited, | ||
#mw-panel a | #mw-panel a:visited, | ||
.vector-header-container a | .vector-header-container a:visited, | ||
.vector-sticky-header a | .vector-sticky-header a:visited, | ||
.mw-portlet a | .mw-portlet a:visited { | ||
color: #7a0000 | color: #7a0000; | ||
} | } | ||
.mw-body a | .mw-body a:hover, | ||
.mw-body-content a | .mw-body-content a:hover, | ||
.mw-parser-output a | .mw-parser-output a:hover, | ||
#mw-panel a | #mw-panel a:hover, | ||
.vector-header-container a | .vector-header-container a:hover, | ||
.vector-sticky-header a | .vector-sticky-header a:hover, | ||
.mw-portlet a | .mw-portlet a:hover, | ||
.mw-body a | .mw-body a:focus, | ||
.mw-body-content a | .mw-body-content a:focus, | ||
.mw-parser-output a | .mw-parser-output a:focus, | ||
#mw-panel a | #mw-panel a:focus, | ||
.vector-header-container a | .vector-header-container a:focus, | ||
.vector-sticky-header a | .vector-sticky-header a:focus, | ||
.mw-portlet a | .mw-portlet a:focus { | ||
color: #990000 | color: #990000; | ||
} | } | ||
Версия от 15:32, 29 марта 2026
.mw-parser-output .mafiawiki-infobox {
float: right;
clear: right;
width: 320px;
max-width: 100%;
margin: 0 0 1rem 1.5rem;
border: 1px solid #c8ccd1;
background: #f8f9fa;
color: #202122;
font-size: 0.95rem;
line-height: 1.45;
}
.mw-parser-output .mafiawiki-infobox-title {
padding: 0.8rem 1rem;
background: #eaecf0;
color: #202122;
font-size: 1.05rem;
font-weight: 700;
text-align: center;
}
.mw-parser-output .mafiawiki-infobox-image {
padding: 0.6rem;
background: #fff;
border-top: 1px solid #eaecf0;
text-align: center;
}
.mw-parser-output .mafiawiki-infobox-image img {
display: block;
width: 100%;
height: auto;
margin: 0 auto;
}
.mw-parser-output .mafiawiki-infobox-row {
display: grid;
grid-template-columns: 42% minmax(0, 1fr);
}
.mw-parser-output .mafiawiki-infobox-label,
.mw-parser-output .mafiawiki-infobox-value {
padding: 0.55rem 0.75rem;
border-top: 1px solid #eaecf0;
}
.mw-parser-output .mafiawiki-infobox-label {
background: #f8f9fa;
font-weight: 600;
}
.mw-parser-output .mafiawiki-infobox-value {
background: #fff;
min-width: 0;
overflow-wrap: anywhere;
word-break: break-word;
}
.mw-parser-output .mafiawiki-infobox-value a,
.mw-parser-output .mafiawiki-infobox-value .external {
max-width: 100%;
overflow-wrap: anywhere;
word-break: break-word;
white-space: normal;
}
.mw-parser-output .mafiawiki-social-badge {
display: inline-block;
margin: 0 0 0.35rem 0;
padding: 0.12rem 0.5rem;
border-radius: 999px;
color: #fff;
font-size: 0.72rem;
font-weight: 700;
letter-spacing: 0.02em;
}
.mw-parser-output .mafiawiki-social-badge-instagram {
background: linear-gradient(135deg, #f58529 0%, #dd2a7b 55%, #8134af 100%);
}
.mw-parser-output .mafiawiki-social-link {
display: block;
max-width: 100%;
}
.mw-parser-output .mafiawiki-social-link a {
display: inline;
overflow-wrap: anywhere;
word-break: break-word;
white-space: normal;
}
@media (max-width: 720px) {
.mw-parser-output .mafiawiki-infobox {
float: none;
width: 100%;
margin: 0 0 1rem;
}
}
/* mafiawiki-global-link-accent */
.mw-body a,
.mw-body-content a,
.mw-parser-output a,
#mw-panel a,
.vector-header-container a,
.vector-sticky-header a,
.mw-portlet a {
color: #cc0000;
}
.mw-body a:visited,
.mw-body-content a:visited,
.mw-parser-output a:visited,
#mw-panel a:visited,
.vector-header-container a:visited,
.vector-sticky-header a:visited,
.mw-portlet a:visited {
color: #7a0000;
}
.mw-body a:hover,
.mw-body-content a:hover,
.mw-parser-output a:hover,
#mw-panel a:hover,
.vector-header-container a:hover,
.vector-sticky-header a:hover,
.mw-portlet a:hover,
.mw-body a:focus,
.mw-body-content a:focus,
.mw-parser-output a:focus,
#mw-panel a:focus,
.vector-header-container a:focus,
.vector-sticky-header a:focus,
.mw-portlet a:focus {
color: #990000;
}