User:Sur/vector.css: Difference between revisions

From Deadlock Wiki
Jump to navigation Jump to search
Sur (talk | contribs)
m more height match testing
Sur (talk | contribs)
m overflow of all kinds removed
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
.stat-infobox {
/* Used for {{Infobox_stat}} and [[Module:HeroData]]'s write_stat_infoboxes for hero pages */
     width: 175px;
 
     min-height: 150px; /* Set minimum height instead of fixed height */
.stat-infobox-table {
     background-color: #f0f0f0;
     width: 100%;
     border-radius: 10px;
    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;
     text-align: center;
    background-color: rgba(0, 0, 0, 0.08);
    border: 1px solid black;
     position: relative;
     position: relative;
     display: flex;
     font-family: 'Retail Demo', sans-serif;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: width 0.3s ease;
    margin-bottom: 10px;
}
}


.stat-infobox-hover {
.stat-infobox-table th:hover,
    display: block;
.stat-infobox-table td:hover {
    position: relative; /* Adjusted from absolute to relative to follow normal flow */
     background-color: rgba(0, 0, 0, .4);
    width: 100%; /* Ensures the table inside fills the width of the infobox */
     background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 15px;
    opacity: 1;
}
}


.stat-infobox-table {
.stat-infobox-table td::before,
.stat-infobox-table th::before {
    content: '';
    top: 0;
    left: 0;
     width: 100%;
     width: 100%;
     border-collapse: separate;
     height: 100%;
     margin-top: 10px;
    background-color: rgba(0, 0, 0, 0.08);
     overflow: hidden; /* Ensure the table doesn't overflow */
     mix-blend-mode: multiply;
}
 
.stat-infobox-table .darker {
     background-color: rgba(0, 0, 0, 0.25);
}
}

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);
}