Шаблон:Рамочка/style.css: различия между версиями
Материал из SpaceOnyx
Дополнительные действия
Neyran (обсуждение | вклад) Нет описания правки |
Neyran (обсуждение | вклад) Нет описания правки |
||
| Строка 15: | Строка 15: | ||
.рамка .wikitable { | .рамка .wikitable { | ||
margin: 0 !important; | |||
} | } | ||
| Строка 25: | Строка 25: | ||
cursor: pointer; | cursor: pointer; | ||
line-height: 1; | line-height: 1; | ||
} | } | ||
| Строка 33: | Строка 32: | ||
align-items: center; | align-items: center; | ||
text-align: left; | text-align: left; | ||
margin: 0; | margin: 0 6px; | ||
line-height: 1; | line-height: 1; | ||
min-height: 0; | min-height: 0; | ||
} | } | ||
.рамка-название { | .рамка-название { | ||
margin: 0; /* ← было 3px 0 | margin: 0; /* ← ЕДИНСТВЕННОЕ ИЗМЕНЕНИЕ: было 3px 0, теперь 0 */ | ||
color: #fff; | color: #fff; | ||
flex-grow: 1; | flex-grow: 1; | ||
line-height: 1. | line-height: 1.3; | ||
font-size: 0.95em; | font-size: 0.95em; | ||
} | } | ||
/* Кнопка сворачивания | /* Кнопка сворачивания */ | ||
.рамка-кнопка { | .рамка-кнопка { | ||
color: #fff; | color: #fff; | ||
| Строка 59: | Строка 56: | ||
height: 14px; | height: 14px; | ||
padding: 0; | padding: 0; | ||
background: transparent; | background: transparent; | ||
border-radius: 2px; | border-radius: 2px; | ||
| Строка 68: | Строка 64: | ||
vertical-align: middle; | vertical-align: middle; | ||
flex: 0 0 auto; | flex: 0 0 auto; | ||
transition: background 0.15s ease; | transition: background 0.15s ease; | ||
} | } | ||
| Строка 100: | Строка 95: | ||
.рамка-содержимое p:first-child { | .рамка-содержимое p:first-child { | ||
margin-top: 0; | |||
} | } | ||
.рамка-содержимое p:last-child { | .рамка-содержимое p:last-child { | ||
margin-bottom: 0; | |||
} | } | ||
/* Стили для MediaWiki collapsible */ | /* Стили для MediaWiki collapsible */ | ||
.mw-collapsible-toggle { | .mw-collapsible-toggle { | ||
display: | display: inline-block; | ||
user-select: none; | user-select: none; | ||
} | } | ||
.mw-collapsible-text { | .mw-collapsible-text { | ||
font-size: 0.9em; | font-size: 0.9em; | ||
} | } | ||
@media screen and (max-width: 751px) { | @media screen and (max-width: 751px) { | ||
.рамка { | |||
min-width: 0; | |||
} | |||
} | } | ||
Версия от 22:16, 12 сентября 2026
/* Основные стили рамки */
.рамка {
display: flex;
flex-direction: column;
max-width: 100%;
min-width: 300px;
width: 100%;
margin: 0.5em 0 5px 0;
border: 1px solid #465298;
padding: 2px;
border-radius: 3px;
box-sizing: border-box;
overflow: hidden;
}
.рамка .wikitable {
margin: 0 !important;
}
/* Заголовок рамки */
.рамка-заголовок {
background-color: #465298;
border-radius: 3px;
text-align: center;
cursor: pointer;
line-height: 1;
}
.рамка-заголовок-контент {
display: flex;
justify-content: space-between;
align-items: center;
text-align: left;
margin: 0 6px;
line-height: 1;
min-height: 0;
}
.рамка-название {
margin: 0; /* ← ЕДИНСТВЕННОЕ ИЗМЕНЕНИЕ: было 3px 0, теперь 0 */
color: #fff;
flex-grow: 1;
line-height: 1.3;
font-size: 0.95em;
}
/* Кнопка сворачивания */
.рамка-кнопка {
color: #fff;
cursor: pointer;
font-size: 0 !important;
display: inline-flex;
align-items: center;
justify-content: center;
width: 14px;
height: 14px;
padding: 0;
background: transparent;
border-radius: 2px;
text-decoration: none !important;
user-select: none;
line-height: 1;
box-sizing: border-box;
vertical-align: middle;
flex: 0 0 auto;
transition: background 0.15s ease;
}
.рамка-кнопка:hover {
background: rgba(0, 0, 0, 0.22);
}
.рамка-кнопка::before {
font-size: 10px;
line-height: 1;
color: #fff;
display: block;
}
/* Развёрнуто — стрелка вниз */
.рамка:not(.mw-collapsed) .рамка-кнопка::before {
content: "▼";
}
/* Свёрнуто — стрелка влево */
.рамка.mw-collapsed .рамка-кнопка::before {
content: "◀";
}
/* Содержимое рамки */
.рамка-содержимое {
padding: 5px 8px;
display: block;
}
.рамка-содержимое p:first-child {
margin-top: 0;
}
.рамка-содержимое p:last-child {
margin-bottom: 0;
}
/* Стили для MediaWiki collapsible */
.mw-collapsible-toggle {
display: inline-block;
user-select: none;
}
.mw-collapsible-text {
font-size: 0.9em;
}
@media screen and (max-width: 751px) {
.рамка {
min-width: 0;
}
}