User:Sur/vector.css: Difference between revisions

From Deadlock Wiki
Jump to navigation Jump to search
Sur (talk | contribs)
m testing hover remove again
Sur (talk | contribs)
m Blanked the page
Tags: Blanking Manual revert
 
(22 intermediate revisions by the same user not shown)
Line 1: Line 1:
.stat-infobox {
    width: 175px;
    height: 150px;
    background-color: #f0f0f0;
    border-radius: 10px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px; /* Add space below to prevent overlap */
}


.stat-infobox-hover {
    display: block; /* Ensure always visible */
    position: absolute;
    top: 0;
    left: 175px; /* Ensure it's offset by the infobox's width */
    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;
    transform: translateX(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 100; /* Ensure it's on top of other elements */
}
.stat-infobox-table {
    width: 100%;
    border-collapse: separate;
    margin-top: 10px;
}
.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, 0.4);
}
.stat-infobox-table td::before,
.stat-infobox-table th::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.08);
    mix-blend-mode: multiply;
}
.stat-infobox-table th:first-child,
.stat-infobox-table td:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}
.stat-infobox-table th:last-child,
.stat-infobox-table td:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}
.stat-infobox-table .darker {
    background-color: rgba(0, 0, 0, 0.25);
}

Latest revision as of 00:47, 23 September 2024