Module:Sandbox/Aurelain/Heroes/styles.css: Difference between revisions

From Heroes of Might and Magic: Olden Era Official Wiki
No edit summary
No edit summary
 
(19 intermediate revisions by the same user not shown)
Line 2: Line 2:
/*    G E N E R A L
/*    G E N E R A L
/* ===================================================== */
/* ===================================================== */
.wiki-hint {
.heroes-overview table {
    width: 100%
}
 
.heroes-overview table.forced-class {
    width: auto
}
 
.heroes-overview .wiki-hint {
     border-bottom: none !important; /* hide the underline applied by the Hint template */
     border-bottom: none !important; /* hide the underline applied by the Hint template */
}
}


th {
.heroes-overview th {
     padding-right: 4px !important; /* suppress the space allotted to the sortable markers */
     padding-right: 4px !important; /* suppress the space allotted to the sortable markers */
}
}


th .wiki-hint {
.heroes-overview th .wiki-hint {
     cursor: pointer;
     cursor: pointer;
}
}


td {
.heroes-overview td {
     color: #cbced1;
     color: #cbced1;
     text-align: left;
     text-align: left;
     padding: 0 4px;
     padding: 0 4px;
}
}
.spec {
 
     padding:0.5em;
.heroes-overview .specialty-full-td {
     padding: 8px 8px 24px 74px;
}
}
.heroes-overview .is-compact th:nth-child(2),
.heroes-overview .is-compact th:nth-child(3),
.heroes-overview .is-compact td:nth-child(3),
.heroes-overview .is-compact td:nth-child(4) {
    display: none;
}
/* ===================================================== */
/* ===================================================== */
/*    C O L U M N S
/*    C O L U M N S
/* ===================================================== */
/* ===================================================== */
.hero td:nth-child(1) {
/* Icon */
.heroes-overview .hero td:nth-child(1) {
     border-right: 0;
     border-right: 0;
     padding: 0;
     padding: 0;
    width: 70px;
}
}


td:nth-child(2) {
/* Name */
.heroes-overview td:nth-child(2) {
     border-left: 0;
     border-left: 0;
}
}


td:nth-child(5) {
/* Type */
.heroes-overview td:nth-child(3) {
    text-align: center;
}
 
/* Specialty icon */
.heroes-overview td:nth-child(5) {
     border-right: 0;
     border-right: 0;
     padding: 3px 4px;
     padding: 3px 4px;
    width: 70px;
}
}


td:nth-child(6) {
/* Specialty text */
.heroes-overview td:nth-child(6) {
     border-left: 0;
     border-left: 0;
}
}


td:nth-child(7) > div:last-child {
/* Starting skills */
.heroes-overview td:nth-child(7) {
    white-space: nowrap;
}
 
.heroes-overview td:nth-child(7) > div:last-child {
     opacity: 0.25;
     opacity: 0.25;
}
}


td:nth-child(7) > div:first-child {
.heroes-overview td:nth-child(7) > div:first-child {
     opacity: 1;
     opacity: 1;
}
.specialty {
    display: flex;
    flex-direction: row;
}
.specialty-icon {
    flex-shrink: 0;
    padding-right: 6px;
}
.specialty-text {
    flex-grow: 1;
}
@media (max-width: 900px) {
    .specialty {
        flex-direction: column;
    }
}
}


Line 74: Line 87:
/*    S E P A R A T O R S
/*    S E P A R A T O R S
/* ===================================================== */
/* ===================================================== */
.separator:first-child, .separator:last-child, .separator + .separator {
.heroes-overview .separator:first-child,
.heroes-overview .separator:last-child,
.heroes-overview .separator + .separator {
     display: none;
     display: none;
}
}


.separator-tiny {
.heroes-overview .separator-tiny {
     height: 4px;
     height: 4px;
     background: #c8b36c !important;
     background: #c8b36c !important;
}
}


.separator-tiny td {
.heroes-overview .separator-tiny td {
     padding: 0;
     padding: 0;
}
}


.separator-large {
.heroes-overview .separator-large {
     background-color: #101622 !important;
     background-color: #101622 !important;
     font-size: 24px;
     font-size: 24px;
}
}


.separator-large td {
.heroes-overview .separator-large td {
     text-align: center;
     text-align: center;
     padding: 0.5em;
     padding: 0.5em;
}
/* ===================================================== */
/*    T O G G L E
/* ===================================================== */
.heroes-overview .toggle-container {
    text-align: right;
}
.heroes-overview .toggle {
    padding: 0.5em 1em;
    border: 1px solid #45494e;
    color: dodgerblue;
    border-radius: 4px;
}
.heroes-overview td .toggle {
    padding: 1px 2px;
}
.heroes-overview .toggle:hover {
    text-decoration: underline;
    background: #2a3347;
}
.heroes-overview .toggle:active {
    background: #101622;
}
}

Latest revision as of 14:07, 24 June 2026

/* ===================================================== */
/*     G E N E R A L
/* ===================================================== */
.heroes-overview table {
    width: 100%
}

.heroes-overview table.forced-class {
    width: auto
}

.heroes-overview .wiki-hint {
    border-bottom: none !important; /* hide the underline applied by the Hint template */
}

.heroes-overview th {
    padding-right: 4px !important; /* suppress the space allotted to the sortable markers */
}

.heroes-overview th .wiki-hint {
    cursor: pointer;
}

.heroes-overview td {
    color: #cbced1;
    text-align: left;
    padding: 0 4px;
}

.heroes-overview .specialty-full-td {
    padding: 8px 8px 24px 74px;
}

.heroes-overview .is-compact th:nth-child(2),
.heroes-overview .is-compact th:nth-child(3),
.heroes-overview .is-compact td:nth-child(3),
.heroes-overview .is-compact td:nth-child(4) {
    display: none;
}

/* ===================================================== */
/*     C O L U M N S
/* ===================================================== */
/* Icon */
.heroes-overview .hero td:nth-child(1) {
    border-right: 0;
    padding: 0;
    width: 70px;
}

/* Name */
.heroes-overview td:nth-child(2) {
    border-left: 0;
}

/* Type */
.heroes-overview td:nth-child(3) {
    text-align: center;
}

/* Specialty icon */
.heroes-overview td:nth-child(5) {
    border-right: 0;
    padding: 3px 4px;
    width: 70px;
}

/* Specialty text */
.heroes-overview td:nth-child(6) {
    border-left: 0;
}

/* Starting skills */
.heroes-overview td:nth-child(7) {
    white-space: nowrap;
}

.heroes-overview td:nth-child(7) > div:last-child {
    opacity: 0.25;
}

.heroes-overview td:nth-child(7) > div:first-child {
    opacity: 1;
}

/* ===================================================== */
/*     S E P A R A T O R S
/* ===================================================== */
.heroes-overview .separator:first-child,
.heroes-overview .separator:last-child,
.heroes-overview .separator + .separator {
    display: none;
}

.heroes-overview .separator-tiny {
    height: 4px;
    background: #c8b36c !important;
}

.heroes-overview .separator-tiny td {
    padding: 0;
}

.heroes-overview .separator-large {
    background-color: #101622 !important;
    font-size: 24px;
}

.heroes-overview .separator-large td {
    text-align: center;
    padding: 0.5em;
}

/* ===================================================== */
/*     T O G G L E
/* ===================================================== */
.heroes-overview .toggle-container {
    text-align: right;
}

.heroes-overview .toggle {
    padding: 0.5em 1em;
    border: 1px solid #45494e;
    color: dodgerblue;
    border-radius: 4px;
}

.heroes-overview td .toggle {
    padding: 1px 2px;
}

.heroes-overview .toggle:hover {
    text-decoration: underline;
    background: #2a3347;
}

.heroes-overview .toggle:active {
    background: #101622;
}