User:Sur/vector.css: Difference between revisions

From Deadlock Wiki
Jump to navigation Jump to search
Sur (talk | contribs)
m flex-direction: column;
Sur (talk | contribs)
m overflow of all kinds removed
 
(91 intermediate revisions by the same user not shown)
Line 1: Line 1:
.hover-box {
/* Used for {{Infobox_stat}} and [[Module:HeroData]]'s write_stat_infoboxes for hero pages */
    width: 150px;
    height: 150px;
    background-color: #f0f0f0;
    border-radius: 10px;
    text-align: center;
    position: relative;
    transition: width 0.3s ease;
}


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


.hover-box-content {
.stat-infobox-table th,
    display: flex;
.stat-infobox-table td {
    flex-direction: column;
     padding: 5px;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
     height: 100%;
     text-align: center;
     text-align: center;
    background-color: rgba(0, 0, 0, 0.08);
    border: 1px solid black;
    position: relative;
    font-family: 'Retail Demo', sans-serif;
}
}


.hover-box-icon {
.stat-infobox-table th:hover,
     width: 40px;
.stat-infobox-table td:hover {
    height: 40px;
     background-color: rgba(0, 0, 0, .4);
}
}


.hover-box-label {
.stat-infobox-table td::before,
    margin-top: 10px;
.stat-infobox-table th::before {
    font-size: 16px;
     content: '';
    font-weight: bold;
}
 
.hover-box-hidden {
     display: none;
    position: absolute;
     top: 0;
     top: 0;
     left: 200px;
     left: 0;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 10px;
    transition: width 0.3s ease;
}
 
.hover-box:hover .hover-box-hidden {
    display: block;
}
 
.hover-box-table {
     width: 100%;
     width: 100%;
     border-collapse: separate;
     height: 100%;
}
     background-color: rgba(0, 0, 0, 0.08);
 
     mix-blend-mode: multiply;
.hover-box-table th,
.hover-box-table td {
    padding: 5px;
    text-align: center;
     background-color: rgba(255, 255, 255, 0.35);
     border: 1px solid #ccc;
}
 
.hover-box-table th:first-child,
.hover-box-table td:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}
}


.hover-box-table th:last-child,
.stat-infobox-table .darker {
.hover-box-table td:last-child {
     background-color: rgba(0, 0, 0, 0.25);
     border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}
}

Latest revision as of 20:13, 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 */
    margin-bottom: 10px; /* Add space below the table */
}

.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;
    position: relative;
    font-family: 'Retail Demo', sans-serif;
}

.stat-infobox-table th:hover,
.stat-infobox-table td:hover {
    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);
}