User:Sur/vector.css: Difference between revisions

From Deadlock Wiki
Jump to navigation Jump to search
Sur (talk | contribs)
mNo edit summary
Tag: Manual revert
Sur (talk | contribs)
m Undo revision 6800 by Sur (talk)
Tag: Undo
 
(71 intermediate revisions by the same user not shown)
Line 1: Line 1:
.hover-box {
/* Used for {{StatBoxes}} for hero pages*/
     width: 150px;
 
.stat-infobox {
     width: 175px; /* Wider by default */
     height: 150px;
     height: 150px;
     background-color: #f0f0f0;
     background-color: #f0f0f0;
     border-radius: 10px;
     border-radius: 10px;
     text-align: center;
     text-align: center;
     vertical-align: middle;
     position: relative; /* Maintain relative positioning */
     position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
     align-items: center;
     transition: width 0.3s ease;
     transition: width 0.3s ease;
    margin-bottom: 10px; /* Add space below to prevent overlap */
}
}


.hover-box:hover {
.stat-infobox:hover {
     width: 200px;
     width: 175px; /* Width remains the same on hover */
}
}


.hover-box-content {
.stat-infobox-content {
     display: flex;
     display: flex;
     flex-direction: column;
     flex-direction: column;
Line 21: Line 27:
     border-radius: 15px;
     border-radius: 15px;
     height: 100%;
     height: 100%;
    width: 100%;
}
}


.hover-box-icon {
.stat-infobox-icon {
     width: 40px;
     width: 40px;
     height: 40px;
     height: 40px;
}
}


.hover-box-label {
.stat-infobox-label {
     margin-top: 10px;
     margin-top: 10px;
     font-size: 16px;
     font-size: 16px;
     font-weight: bold;
     font-weight: bold;
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-decoration-thickness: 2px;
    font-family: 'Retail Demo', sans-serif;
}
}


.hover-box-hidden {
.stat-infobox-hover {
     display: none;
     display: block; /* Table is now always visible */
     position: absolute;
     position: absolute;
     top: 0px;
     top: 0;
     left: 200px;
     left: 175px; /* Keep this fixed to prevent horizontal shifts */
     background-color: #ffffff;
     background-color: #fff;
     border: 1px solid #cccccc;
     border: 1px solid #ccc;
     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
     padding: 10px;
     padding: 10px;
     transition: width 0.3s ease;
    border-radius: 15px;
    opacity: 1;
    transform: translateX(0);
     transition: opacity 0.3s ease, transform 0.3s ease;
}
}


.hover-box:hover .hover-box-hidden {
.stat-infobox-table {
    display: block;
}
 
.hover-box-table {
     width: 100%;
     width: 100%;
     border-collapse: separate; /* Use separate borders to apply radius */
     border-collapse: separate;
    border-spacing: 0; /* Avoid gaps between cells */
     margin-top: 10px; /* Add space above to prevent overlap with content above */
     border-radius: 10px; /* Add curved edges to the table */
}
}


.hover-box-table th, .hover-box-table td {
.stat-infobox-table th,  
    border: 1px solid #cccccc;
.stat-infobox-table td {
     padding: 5px;
     padding: 5px;
     text-align: center;
     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);
}
}


.hover-box-table th:first-child, .hover-box-table td:first-child {
.stat-infobox-table td::before,  
     border-top-left-radius: 10px; /* Round top-left corner */
.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;
}
}


.hover-box-table th:last-child, .hover-box-table td:last-child {
.stat-infobox-table th:first-child,
     border-top-right-radius: 10px; /* Round top-right corner */
.stat-infobox-table td:first-child {
     border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}
}


.hover-box-table td:first-child {
.stat-infobox-table th:last-child,
     border-bottom-left-radius: 10px; /* Round bottom-left corner */
.stat-infobox-table td:last-child {
     border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}
}


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

Latest revision as of 02:59, 22 September 2024

/* Used for {{StatBoxes}} for hero pages*/

.stat-infobox {
    width: 175px; /* Wider by default */
    height: 150px;
    background-color: #f0f0f0;
    border-radius: 10px;
    text-align: center;
    position: relative; /* Maintain relative positioning */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: width 0.3s ease;
    margin-bottom: 10px; /* Add space below to prevent overlap */
}

.stat-infobox:hover {
    width: 175px; /* Width remains the same on hover */
}

.stat-infobox-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    height: 100%;
    width: 100%;
}

.stat-infobox-icon {
    width: 40px;
    height: 40px;
}

.stat-infobox-label {
    margin-top: 10px;
    font-size: 16px;
    font-weight: bold;
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-decoration-thickness: 2px;
    font-family: 'Retail Demo', sans-serif;
}

.stat-infobox-hover {
    display: block; /* Table is now always visible */
    position: absolute;
    top: 0;
    left: 175px; /* Keep this fixed to prevent horizontal shifts */
    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;
}

.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: '';
    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);
}