MediaWiki:Common.css: различия между версиями
Перейти к навигации
Перейти к поиску
Mishashto (обсуждение | вклад) Нет описания правки |
Mishashto (обсуждение | вклад) Нет описания правки |
||
| Строка 1: | Строка 1: | ||
/* Retro PortableInfobox for MediaWiki Vector */ | /* Retro PortableInfobox for MediaWiki Vector - Revised */ | ||
.portable-infobox { | .portable-infobox { | ||
/* Core structure */ | /* Core structure */ | ||
| Строка 6: | Строка 6: | ||
background: #f7f5e6; | background: #f7f5e6; | ||
color: #2d3748; | color: #2d3748; | ||
font-size: 13px; | font-size: 13px; | ||
line-height: 1.5; | line-height: 1.5; | ||
box-shadow: 4px 4px 0 #a0aec0; | box-shadow: 4px 4px 0 #a0aec0; | ||
/* | /* Wider, better fitting */ | ||
margin: 1em 0; | margin: 1em 0; | ||
width: | width: 300px; | ||
float: right; | float: right; | ||
clear: right; | clear: right; | ||
| Строка 18: | Строка 19: | ||
} | } | ||
/* Title | /* Title - black and yellow */ | ||
.portable-infobox .pi-title { | .portable-infobox .pi-title { | ||
background: #1a202c; | background: #1a202c; | ||
color: # | color: #f6e05e; | ||
font-size: | |||
font-size: 15px; | |||
font-weight: bold; | font-weight: bold; | ||
letter-spacing: 0.5px; | |||
letter-spacing: | |||
padding: 10px 12px; | padding: 10px 12px; | ||
border-bottom: 2px solid #4a5568; | border-bottom: 2px solid #4a5568; | ||
text-shadow: 0 0 | text-shadow: 0 0 3px #f6e05e; | ||
} | } | ||
/* Header sections */ | /* Header sections - default Vector gray */ | ||
.portable-infobox .pi-header { | .portable-infobox .pi-header { | ||
background: # | background: #eaecf0; | ||
color: #2d3748; | color: #2d3748; | ||
font-size: 12px; | font-size: 12px; | ||
font-weight: bold; | font-weight: bold; | ||
letter-spacing: 0.5px; | letter-spacing: 0.5px; | ||
padding: 8px 12px; | padding: 8px 12px; | ||
| Строка 57: | Строка 58: | ||
.portable-infobox .pi-data-label { | .portable-infobox .pi-data-label { | ||
color: #4a5568; | color: #4a5568; | ||
font-size: 11px; | font-size: 11px; | ||
font-weight: bold; | font-weight: bold; | ||
letter-spacing: 0.5px; | letter-spacing: 0.5px; | ||
margin-bottom: 2px; | margin-bottom: 2px; | ||
| Строка 67: | Строка 68: | ||
.portable-infobox .pi-data-value { | .portable-infobox .pi-data-value { | ||
color: #2d3748; | color: #2d3748; | ||
font-size: 12px; | font-size: 12px; | ||
} | } | ||
/* Links | /* Links */ | ||
.portable-infobox a { | .portable-infobox a { | ||
color: #2b6cb0; | color: #2b6cb0; | ||
| Строка 81: | Строка 83: | ||
} | } | ||
/* Images */ | /* Images - contained within infobox */ | ||
.portable-infobox .pi-image { | .portable-infobox .pi-image { | ||
background: #1a202c; | background: #1a202c; | ||
border-bottom: 2px solid #4a5568; | border-bottom: 2px solid #4a5568; | ||
padding: 8px; | padding: 8px; | ||
overflow: hidden; | |||
} | } | ||
.portable-infobox .pi-image img { | .portable-infobox .pi-image img { | ||
display: block; | |||
max-width: 100%; | |||
height: auto; | |||
border: 1px solid #4a5568; | border: 1px solid #4a5568; | ||
image-rendering: pixelated; | image-rendering: pixelated; | ||
image-rendering: crisp-edges; | image-rendering: crisp-edges; | ||
box-sizing: border-box; | |||
} | } | ||
/* Image collection */ | /* Image collection - contained */ | ||
.portable-infobox .pi-image-collection { | .portable-infobox .pi-image-collection { | ||
background: #1a202c; | background: #1a202c; | ||
border-bottom: 2px solid #4a5568; | border-bottom: 2px solid #4a5568; | ||
overflow: hidden; | |||
} | |||
.portable-infobox .pi-image-collection img { | |||
display: block; | |||
max-width: 100%; | |||
height: auto; | |||
box-sizing: border-box; | |||
} | } | ||
/* Navigation */ | /* Navigation */ | ||
.portable-infobox .pi-navigation { | .portable-infobox .pi-navigation { | ||
background: # | background: #eaecf0; | ||
font-size: 11px; | font-size: 11px; | ||
padding: 8px 12px; | padding: 8px 12px; | ||
| Строка 130: | Строка 146: | ||
.portable-infobox .pi-collapse.pi-collapse-closed .pi-header::after { | .portable-infobox .pi-collapse.pi-collapse-closed .pi-header::after { | ||
content: " [-]"; | content: " [-]"; | ||
} | } | ||
| Строка 158: | Строка 158: | ||
} | } | ||
/* Print styles | /* Print styles */ | ||
@media print { | @media print { | ||
.portable-infobox { | .portable-infobox { | ||
| Строка 170: | Строка 170: | ||
text-shadow: none; | text-shadow: none; | ||
border: 1px solid #000; | border: 1px solid #000; | ||
} | |||
.portable-infobox .pi-header, | |||
.portable-infobox .pi-navigation { | |||
background: #fff; | |||
} | } | ||
Версия от 16:28, 3 июля 2026
/* Retro PortableInfobox for MediaWiki Vector - Revised */
.portable-infobox {
/* Core structure */
border: 2px solid #4a5568;
border-radius: 0;
background: #f7f5e6;
color: #2d3748;
font-size: 13px;
line-height: 1.5;
box-shadow: 4px 4px 0 #a0aec0;
/* Wider, better fitting */
margin: 1em 0;
width: 300px;
float: right;
clear: right;
margin-left: 1em;
}
/* Title - black and yellow */
.portable-infobox .pi-title {
background: #1a202c;
color: #f6e05e;
font-size: 15px;
font-weight: bold;
letter-spacing: 0.5px;
padding: 10px 12px;
border-bottom: 2px solid #4a5568;
text-shadow: 0 0 3px #f6e05e;
}
/* Header sections - default Vector gray */
.portable-infobox .pi-header {
background: #eaecf0;
color: #2d3748;
font-size: 12px;
font-weight: bold;
letter-spacing: 0.5px;
padding: 8px 12px;
border-top: 1px solid #a0aec0;
border-bottom: 1px solid #a0aec0;
}
/* Data rows */
.portable-infobox .pi-data {
border-bottom: 1px dotted #a0aec0;
padding: 6px 12px;
}
.portable-infobox .pi-data:last-child {
border-bottom: none;
}
/* Labels */
.portable-infobox .pi-data-label {
color: #4a5568;
font-size: 11px;
font-weight: bold;
letter-spacing: 0.5px;
margin-bottom: 2px;
}
/* Values */
.portable-infobox .pi-data-value {
color: #2d3748;
font-size: 12px;
}
/* Links */
.portable-infobox a {
color: #2b6cb0;
text-decoration: underline;
}
.portable-infobox a:hover {
color: #c53030;
background: #fefcbf;
}
/* Images - contained within infobox */
.portable-infobox .pi-image {
background: #1a202c;
border-bottom: 2px solid #4a5568;
padding: 8px;
overflow: hidden;
}
.portable-infobox .pi-image img {
display: block;
max-width: 100%;
height: auto;
border: 1px solid #4a5568;
image-rendering: pixelated;
image-rendering: crisp-edges;
box-sizing: border-box;
}
/* Image collection - contained */
.portable-infobox .pi-image-collection {
background: #1a202c;
border-bottom: 2px solid #4a5568;
overflow: hidden;
}
.portable-infobox .pi-image-collection img {
display: block;
max-width: 100%;
height: auto;
box-sizing: border-box;
}
/* Navigation */
.portable-infobox .pi-navigation {
background: #eaecf0;
font-size: 11px;
padding: 8px 12px;
border-top: 2px solid #4a5568;
}
/* Horizontal group */
.portable-infobox .pi-horizontal-group {
border-bottom: 1px dotted #a0aec0;
}
.portable-infobox .pi-horizontal-group-item {
border-right: 1px dotted #a0aec0;
}
.portable-infobox .pi-horizontal-group-item:last-child {
border-right: none;
}
/* Collapsible sections */
.portable-infobox .pi-collapse .pi-header::after {
content: " [+]";
color: #4a5568;
font-size: 10px;
}
.portable-infobox .pi-collapse.pi-collapse-closed .pi-header::after {
content: " [-]";
}
/* Mobile responsiveness */
@media screen and (max-width: 720px) {
.portable-infobox {
float: none;
width: 100%;
margin: 1em 0;
box-shadow: 2px 2px 0 #a0aec0;
}
}
/* Print styles */
@media print {
.portable-infobox {
box-shadow: none;
border: 1px solid #000;
}
.portable-infobox .pi-title {
background: #fff;
color: #000;
text-shadow: none;
border: 1px solid #000;
}
.portable-infobox .pi-header,
.portable-infobox .pi-navigation {
background: #fff;
}
.portable-infobox .pi-image {
background: #fff;
}
}