Шаблон:Инфобокс/styles.css: различия между версиями
Перейти к навигации
Перейти к поиску
Milarsh (обсуждение | вклад) Нет описания правки |
Milarsh (обсуждение | вклад) Нет описания правки |
||
| Строка 151: | Строка 151: | ||
.em-version-infobox .em-version-nav { | .em-version-infobox .em-version-nav { | ||
padding: | padding: 8px !important; | ||
background: #eaf5fd !important; | background: #eaf5fd !important; | ||
} | } | ||
/* | /* Одна строка навигации */ | ||
.em-version- | .em-version-nav__row { | ||
display: | display: grid; | ||
grid-template-columns: 1fr 1fr; | |||
gap: 8px; | gap: 8px; | ||
margin: | margin: 0; | ||
} | |||
/* Между двумя уровнями навигации */ | |||
.em-version-nav__row + .em-version-nav__row { | |||
margin-top: 6px; | |||
} | } | ||
/* | /* Левая / правая стороны */ | ||
.em-version- | .em-version-nav__row > div:first-child { | ||
text-align: left; | |||
} | |||
.em-version-nav__row > div:last-child { | |||
text-align: right; | |||
} | } | ||
/* | /* Основные кнопки */ | ||
.em-version- | .em-version-nav__row a { | ||
display: block; | display: inline-block; | ||
padding: | padding: 5px 8px; | ||
border: 1px solid #91c7ed; | border: 1px solid #91c7ed; | ||
border-radius: 6px; | border-radius: 6px; | ||
background: # | background: #fff; | ||
color: #0967c8 !important; | color: #0967c8 !important; | ||
font-size: 0.9rem; | |||
font-weight: 600; | font-weight: 600; | ||
line-height: 1.25; | |||
text-decoration: none !important; | text-decoration: none !important; | ||
| Строка 196: | Строка 202: | ||
} | } | ||
.em-version- | .em-version-nav__row a:hover { | ||
background: #dff1ff; | background: #dff1ff; | ||
border-color: #48a8ea; | border-color: #48a8ea; | ||
} | } | ||
/* | /* Переход между более крупными версиями — | ||
.em-version- | чуть менее заметный */ | ||
.em-version-nav__row--major a { | |||
border-color: transparent; | |||
background: transparent; | |||
color: #527896 !important; | color: #527896 !important; | ||
font-size: 0.82rem; | |||
font-weight: 500; | font-weight: 500; | ||
} | } | ||
.em-version- | .em-version-nav__row--major a:hover { | ||
border-color: #b9d9ef; | |||
background: rgba(255, 255, 255, 0.55); | |||
color: #0967c8 !important; | color: #0967c8 !important; | ||
} | } | ||
Текущая версия от 17:11, 24 октября 2026
.em-infobox {
float: right;
clear: right;
width: 300px;
max-width: 100%;
margin: 0 0 1.25rem 1.5rem;
border: 1px solid #8ebfe8;
border-radius: 10px;
border-spacing: 0;
overflow: hidden;
background: rgba(247, 251, 255, 0.98);
color: #173652;
box-shadow:
0 10px 28px rgba(10, 53, 99, 0.14);
}
/* Ячейки */
.em-infobox th,
.em-infobox td {
padding: 8px 10px;
border-bottom: 1px solid #d6e7f4;
vertical-align: top;
}
/* Название параметра */
.em-infobox th {
width: 42%;
background: rgba(225, 241, 253, 0.55);
color: #345774;
font-weight: 600;
text-align: left;
}
/* Значение */
.em-infobox td {
background: rgba(250, 253, 255, 0.9);
}
/* Главный заголовок */
.em-infobox__title {
padding: 11px !important;
background:
linear-gradient(
135deg,
#0b4f9d,
#168bf0
) !important;
color: white !important;
font-size: 1.2rem;
font-weight: 700 !important;
text-align: center !important;
text-shadow:
0 1px 2px rgba(0, 0, 0, 0.25);
}
/* Изображение */
.em-infobox__image {
padding: 12px !important;
background: #eef7fe !important;
text-align: center;
}
.em-infobox__image img {
display: block;
max-width: 100%;
height: auto;
margin: 0 auto;
}
/* Подзаголовок внутри инфобокса */
.em-infobox__section {
background: #dceefa !important;
color: #214b70 !important;
font-weight: 700 !important;
text-align: center !important;
}
/* Текст на всю ширину */
.em-infobox__full {
background: rgba(245, 251, 255, 0.95) !important;
text-align: center;
}
/* Небольшой статус */
.em-infobox__status {
display: inline-block;
padding: 2px 7px;
border: 1px solid #9bc8e8;
border-radius: 999px;
background: #e8f6ff;
color: #145991;
font-size: 0.9em;
font-weight: 600;
}
/* Нижняя строка без дополнительной границы */
.em-infobox tr:last-child th,
.em-infobox tr:last-child td {
border-bottom: 0;
}
/* Ссылки */
.em-infobox a {
color: #0967c8;
}
.em-infobox a:hover {
color: #008ed8;
}
/* Мобильная версия */
@media (max-width: 700px) {
.em-infobox {
float: none;
width: 100%;
margin:
1rem
0;
}
}
/* =========================================================
НАВИГАЦИЯ ПО ВЕРСИЯМ
========================================================= */
.em-version-infobox .em-version-nav {
padding: 8px !important;
background: #eaf5fd !important;
}
/* Одна строка навигации */
.em-version-nav__row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8px;
margin: 0;
}
/* Между двумя уровнями навигации */
.em-version-nav__row + .em-version-nav__row {
margin-top: 6px;
}
/* Левая / правая стороны */
.em-version-nav__row > div:first-child {
text-align: left;
}
.em-version-nav__row > div:last-child {
text-align: right;
}
/* Основные кнопки */
.em-version-nav__row a {
display: inline-block;
padding: 5px 8px;
border: 1px solid #91c7ed;
border-radius: 6px;
background: #fff;
color: #0967c8 !important;
font-size: 0.9rem;
font-weight: 600;
line-height: 1.25;
text-decoration: none !important;
transition:
background 0.15s ease,
border-color 0.15s ease;
}
.em-version-nav__row a:hover {
background: #dff1ff;
border-color: #48a8ea;
}
/* Переход между более крупными версиями —
чуть менее заметный */
.em-version-nav__row--major a {
border-color: transparent;
background: transparent;
color: #527896 !important;
font-size: 0.82rem;
font-weight: 500;
}
.em-version-nav__row--major a:hover {
border-color: #b9d9ef;
background: rgba(255, 255, 255, 0.55);
color: #0967c8 !important;
}