Открыть меню
Переключить меню настроек
Открыть персональное меню
Вы не представились системе
Ваш IP-адрес будет виден всем, если вы внесёте какие-либо изменения.

Шаблон:Рамочка/style.css: различия между версиями

Материал из SpaceOnyx
Нет описания правки
Нет описания правки
 
(не показано 19 промежуточных версий этого же участника)
Строка 11: Строка 11:
     border-radius: 3px;
     border-radius: 3px;
     box-sizing: border-box;
     box-sizing: border-box;
    overflow: hidden;
}
}


.рамка .wikitable {
.рамка .wikitable {
margin: 0 !important;
    margin: 0 !important;
}
}


Строка 40: Строка 39:
}
}


/* Кнопка сворачивания — компактная, символ вместо текста */
/* Кнопка сворачивания */
.рамка-кнопка {
.рамка-кнопка {
     color: #fff;
     color: #fff;
Строка 48: Строка 47:
     align-items: center;
     align-items: center;
     justify-content: center;
     justify-content: center;
     width: 18px;
     width: 14px;
     height: 18px;
     height: 14px;
     padding: 0;
     padding: 0;
    margin: 0;
     background: transparent;
     background: transparent;
     border-radius: 3px;
     border-radius: 2px;
     text-decoration: none !important;
     text-decoration: none !important;
     user-select: none;
     user-select: none;
     line-height: 1;
     line-height: 1;
     box-sizing: border-box;
     box-sizing: border-box;
    vertical-align: middle;
     flex: 0 0 auto;
     flex: 0 0 auto;
     transition: background 0.15s ease;
     transition: background 0.15s ease;
Строка 67: Строка 66:


.рамка-кнопка::before {
.рамка-кнопка::before {
     font-size: 12px;
     font-size: 10px;
     line-height: 1;
     line-height: 1;
     color: #fff;
     color: #fff;
Строка 74: Строка 73:


/* Развёрнуто — стрелка вниз */
/* Развёрнуто — стрелка вниз */
.рамка:not(.mw-collapsed) .рамка-кнопка::before {
.рамка.mw-collapsible:not(.mw-collapsed) .рамка-кнопка::before {
     content: "▼";
     content: "▼";
}
}


/* Свёрнуто — стрелка влево */
/* Свёрнуто — стрелка влево */
.рамка.mw-collapsed .рамка-кнопка::before {
.рамка.mw-collapsible.mw-collapsed .рамка-кнопка::before {
     content: "◀";
     content: "◀";
}
}
Строка 90: Строка 89:


.рамка-содержимое p:first-child {
.рамка-содержимое p:first-child {
margin-top: 0;
    margin-top: 0;
}
}


.рамка-содержимое p:last-child {
.рамка-содержимое p:last-child {
margin-bottom: 0;
    margin-bottom: 0;
}
}


Строка 104: Строка 103:


.mw-collapsible-text {
.mw-collapsible-text {
     font-size: 0.9em;
     font-size: 0 !important;
}
}


@media screen and (max-width: 751px) {
@media screen and (max-width: 751px) {
.рамка {
    .рамка {
min-width: 0;
        min-width: 0;
}
    }
}
}

Текущая версия от 23:23, 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;
}

.рамка .wikitable {
    margin: 0 !important;
}

/* Заголовок рамки */
.рамка-заголовок {
    background-color: #465298;
    border-radius: 3px;
    text-align: center;
    cursor: pointer;
}

.рамка-заголовок-контент {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    margin: 0 6px;
}

.рамка-название {
    margin: 6px 0;
    color: #fff;
    flex-grow: 1;
}

/* Кнопка сворачивания */
.рамка-кнопка {
    color: #fff;
    cursor: pointer;
    font-size: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    padding: 0;
    margin: 0;
    background: transparent;
    border-radius: 2px;
    text-decoration: none !important;
    user-select: none;
    line-height: 1;
    box-sizing: border-box;
    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;
}

/* Развёрнуто — стрелка вниз */
.рамка.mw-collapsible:not(.mw-collapsed) .рамка-кнопка::before {
    content: "▼";
}

/* Свёрнуто — стрелка влево */
.рамка.mw-collapsible.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 !important;
}

@media screen and (max-width: 751px) {
    .рамка {
        min-width: 0;
    }
}