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

Add Cosmic Law page styles
 
Restore collapsible Cosmic Law blocks
Строка 242: Строка 242:
         min-width: 820px;
         min-width: 820px;
     }
     }
}
/* ---------- Collapsible document blocks ---------- */
.rs-law-fold {
    position: relative;
    margin: 0.65rem 0 1.2rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 8px;
    background: rgba(10, 12, 16, 0.58);
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.12),
        inset 0 1px rgba(255, 255, 255, 0.018);
}
.rs-law-fold__heading {
    min-height: 38px;
    box-sizing: border-box;
    padding: 9px 46px 9px 12px;
    border-bottom: 1px solid rgba(255, 59, 63, 0.14);
    background:
        linear-gradient(
            90deg,
            rgba(255, 59, 63, 0.045),
            rgba(255, 255, 255, 0.022) 55%,
            transparent
        );
    color: #e8ebf1;
    font-size: 0.95rem;
    font-weight: 700;
}
.rs-law-fold > .mw-collapsible-toggle {
    position: absolute;
    top: 7px;
    right: 7px;
    z-index: 2;
    float: none;
}
.rs-law-fold .mw-collapsible-content {
    padding: 0;
}
.rs-law-fold .rs-law-table-wrap {
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
}

Версия от 05:05, 30 сентября 2026

/* ===== Cosmic Law page ===== */

.rs-law > p,
.rs-law .rs-law-prose {
    max-width: 112ch;
    line-height: 1.65;
}

.rs-law h4 {
    margin-top: 1.6rem;
    margin-bottom: 0.65rem;
    padding-left: 10px;

    border-left: 2px solid rgba(255, 59, 63, 0.55);

    color: #e8ebf1;
    font-size: 1.05rem;
    font-weight: 700;
}


/* ---------- Rules / prose blocks ---------- */

.rs-law-rules {
    max-width: 112ch;
    margin: 0.6rem 0 1.25rem;
    padding: 10px 14px;

    border: 1px solid rgba(255, 255, 255, 0.075);
    border-left: 3px solid rgba(255, 59, 63, 0.32);
    border-radius: 7px;

    background:
        linear-gradient(
            90deg,
            rgba(255, 59, 63, 0.028),
            rgba(255, 255, 255, 0.015) 55%,
            rgba(255, 255, 255, 0.008)
        );

    box-shadow:
        inset 0 1px rgba(255, 255, 255, 0.018);
}

.rs-law-rules ul {
    margin: 0;
    padding-left: 1.35rem;
}

.rs-law-rules li {
    margin: 0.38rem 0;
    line-height: 1.55;
}

.rs-law-note-list {
    max-width: 112ch;
    margin: 0.8rem 0 1.35rem;
}

.rs-law-note-list > ul {
    margin-top: 0.35rem;
}

.rs-law-note-list li {
    margin: 0.32rem 0;
    line-height: 1.55;
}


/* ---------- Tables ---------- */

.rs-law-table-wrap {
    width: 100%;
    margin: 0.65rem 0 1.15rem;
    overflow-x: auto;

    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 8px;

    background: rgba(9, 11, 15, 0.48);

    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.12),
        inset 0 1px rgba(255, 255, 255, 0.018);
}

.rs-law .rs-law-table {
    width: 100%;
    margin: 0 !important;

    border: 0 !important;
    border-collapse: collapse;

    background: transparent !important;
}

.rs-law .rs-law-table th {
    padding: 9px 11px;

    border: 0 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.050) !important;
    border-bottom: 1px solid rgba(255, 59, 63, 0.16) !important;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.022)
        ) !important;

    color: #e5e9ef;
    font-weight: 700;
    text-align: left;
}

.rs-law .rs-law-table th:last-child {
    border-right: 0 !important;
}

.rs-law .rs-law-table td {
    padding: 9px 11px;

    border: 0 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.050) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.050) !important;

    background: rgba(255, 255, 255, 0.010) !important;

    color: rgba(226, 230, 237, 0.88);
    line-height: 1.48;
    vertical-align: top;
}

.rs-law .rs-law-table td:last-child {
    border-right: 0 !important;
}

.rs-law .rs-law-table tr:last-child td {
    border-bottom: 0 !important;
}

.rs-law .rs-law-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.027) !important;
}


/* Punishments */

.rs-law .rs-law-table--punishments th:first-child,
.rs-law .rs-law-table--punishments td:first-child {
    width: 20%;
    font-weight: 700;
}

.rs-law .rs-law-table--punishments th:nth-child(2),
.rs-law .rs-law-table--punishments td:nth-child(2) {
    width: 40%;
}

.rs-law .rs-law-table--punishments th:nth-child(3),
.rs-law .rs-law-table--punishments td:nth-child(3) {
    width: 40%;
}

.rs-law .rs-law-table--punishments td:nth-child(2) strong {
    color: #f0c4c6;
}


/* Modifiers */

.rs-law .rs-law-table--modifiers th:first-child,
.rs-law .rs-law-table--modifiers td:first-child {
    width: 18%;
}

.rs-law .rs-law-table--modifiers th:nth-child(2),
.rs-law .rs-law-table--modifiers td:nth-child(2) {
    width: 52%;
}

.rs-law .rs-law-table--modifiers th:last-child,
.rs-law .rs-law-table--modifiers td:last-child {
    width: 30%;
}

.rs-law .rs-law-table--modifiers td:first-child {
    color: #e8ebf1;
    font-weight: 700;
}

.rs-law .rs-law-table--modifiers td:last-child {
    color: #efc6c8;
    font-weight: 600;
}


/* ---------- Investigation ---------- */

.rs-law-investigation {
    max-width: 112ch;
}

.rs-law-investigation p {
    margin: 0.7rem 0;
    line-height: 1.65;
}

.rs-law-investigation ul {
    margin: 0.35rem 0 0.9rem;
}

.rs-law-investigation li {
    margin: 0.3rem 0;
    line-height: 1.5;
}

.rs-law-investigation__label {
    margin-top: 1rem;

    color: #e5e9ef;
    font-weight: 700;
}


/* ---------- Mobile ---------- */

@media (max-width: 760px) {
    .rs-law > p,
    .rs-law .rs-law-prose,
    .rs-law-rules,
    .rs-law-note-list,
    .rs-law-investigation {
        max-width: none;
    }

    .rs-law .rs-law-table {
        min-width: 680px;
    }

    .rs-law .rs-law-table--modifiers {
        min-width: 820px;
    }
}

/* ---------- Collapsible document blocks ---------- */

.rs-law-fold {
    position: relative;
    margin: 0.65rem 0 1.2rem;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 8px;

    background: rgba(10, 12, 16, 0.58);

    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.12),
        inset 0 1px rgba(255, 255, 255, 0.018);
}

.rs-law-fold__heading {
    min-height: 38px;
    box-sizing: border-box;
    padding: 9px 46px 9px 12px;

    border-bottom: 1px solid rgba(255, 59, 63, 0.14);

    background:
        linear-gradient(
            90deg,
            rgba(255, 59, 63, 0.045),
            rgba(255, 255, 255, 0.022) 55%,
            transparent
        );

    color: #e8ebf1;

    font-size: 0.95rem;
    font-weight: 700;
}

.rs-law-fold > .mw-collapsible-toggle {
    position: absolute;
    top: 7px;
    right: 7px;
    z-index: 2;

    float: none;
}

.rs-law-fold .mw-collapsible-content {
    padding: 0;
}

.rs-law-fold .rs-law-table-wrap {
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}