User:Sur/vector.css: Difference between revisions

From Deadlock Wiki
Jump to navigation Jump to search
Sur (talk | contribs)
m table padding
Sur (talk | contribs)
m Undo revision 7137 by Sur (talk)
Tag: Undo
Line 23: Line 23:
.stat-infobox-table th:hover,
.stat-infobox-table th:hover,
.stat-infobox-table td:hover {
.stat-infobox-table td:hover {
padding: 5px;
     overflow: visible;
     overflow: visible;
     text-overflow: clip;
     text-overflow: clip;

Revision as of 19:57, 22 September 2024

/* Used for {{Infobox_stat}} and [[Module:HeroData]]'s write_stat_infoboxes for hero pages*/

.stat-infobox-table {
    width: 100%;
    border-collapse: separate;
    margin-top: 10px; /* Add space above to prevent overlap with content above */
}

.stat-infobox-table th, 
.stat-infobox-table td {
    padding: 5px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.08);
    border: 1px solid black;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    max-width: 320px;
    font-family: 'Retail Demo', sans-serif;
}

.stat-infobox-table th:hover,
.stat-infobox-table td:hover {
    overflow: visible;
    text-overflow: clip;
    background-color: rgba(0, 0, 0, .4);
}

.stat-infobox-table td::before, 
.stat-infobox-table th::before {
    content: '';
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.08);
    mix-blend-mode: multiply;
}

.stat-infobox-table .darker {
    background-color: rgba(0, 0, 0, 0.25);
}