Шаблон:Инфобокс/styles.css: различия между версиями
Перейти к навигации
Перейти к поиску
Milarsh (обсуждение | вклад) Новая страница: «.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; } /* Названи...» |
Milarsh (обсуждение | вклад) Нет описания правки |
||
| Строка 144: | Строка 144: | ||
0; | 0; | ||
} | } | ||
} | |||
/* ========================================================= | |||
НАВИГАЦИЯ ПО ВЕРСИЯМ | |||
========================================================= */ | |||
.em-version-infobox .em-version-nav { | |||
padding: 10px !important; | |||
background: #eaf5fd !important; | |||
text-align: center; | |||
} | |||
/* Центральные кнопки предыдущей/следующей версии */ | |||
.em-version-nav__minor { | |||
display: flex; | |||
gap: 8px; | |||
margin: 3px 0; | |||
justify-content: space-between; | |||
align-items: stretch; | |||
} | |||
/* Кнопка версии */ | |||
.em-version-nav__button { | |||
display: block; | |||
flex: 1; | |||
min-width: 0; | |||
} | |||
/* Ссылка внутри кнопки */ | |||
.em-version-nav__button a { | |||
display: block; | |||
padding: 7px 9px; | |||
border: 1px solid #91c7ed; | |||
border-radius: 6px; | |||
background: #ffffff; | |||
color: #0967c8 !important; | |||
font-weight: 600; | |||
text-decoration: none !important; | |||
transition: | |||
background 0.15s ease, | |||
border-color 0.15s ease; | |||
} | |||
.em-version-nav__button a:hover { | |||
background: #dff1ff; | |||
border-color: #48a8ea; | |||
} | |||
/* Левая кнопка */ | |||
.em-version-nav__button--prev { | |||
text-align: left; | |||
} | |||
/* Правая кнопка */ | |||
.em-version-nav__button--next { | |||
text-align: right; | |||
} | |||
/* Переход между крупными версиями */ | |||
.em-version-nav__major { | |||
min-height: 1.25em; | |||
margin: 3px 2px; | |||
font-size: 0.85rem; | |||
color: #5a7893; | |||
} | |||
.em-version-nav__major:first-child { | |||
text-align: left; | |||
} | |||
.em-version-nav__major:last-child { | |||
text-align: right; | |||
} | |||
.em-version-nav__major a { | |||
color: #527896 !important; | |||
font-weight: 500; | |||
text-decoration: none !important; | |||
} | |||
.em-version-nav__major a:hover { | |||
color: #0967c8 !important; | |||
text-decoration: underline !important; | |||
} | } | ||
Версия от 17:06, 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: 10px !important;
background: #eaf5fd !important;
text-align: center;
}
/* Центральные кнопки предыдущей/следующей версии */
.em-version-nav__minor {
display: flex;
gap: 8px;
margin: 3px 0;
justify-content: space-between;
align-items: stretch;
}
/* Кнопка версии */
.em-version-nav__button {
display: block;
flex: 1;
min-width: 0;
}
/* Ссылка внутри кнопки */
.em-version-nav__button a {
display: block;
padding: 7px 9px;
border: 1px solid #91c7ed;
border-radius: 6px;
background: #ffffff;
color: #0967c8 !important;
font-weight: 600;
text-decoration: none !important;
transition:
background 0.15s ease,
border-color 0.15s ease;
}
.em-version-nav__button a:hover {
background: #dff1ff;
border-color: #48a8ea;
}
/* Левая кнопка */
.em-version-nav__button--prev {
text-align: left;
}
/* Правая кнопка */
.em-version-nav__button--next {
text-align: right;
}
/* Переход между крупными версиями */
.em-version-nav__major {
min-height: 1.25em;
margin: 3px 2px;
font-size: 0.85rem;
color: #5a7893;
}
.em-version-nav__major:first-child {
text-align: left;
}
.em-version-nav__major:last-child {
text-align: right;
}
.em-version-nav__major a {
color: #527896 !important;
font-weight: 500;
text-decoration: none !important;
}
.em-version-nav__major a:hover {
color: #0967c8 !important;
text-decoration: underline !important;
}