User:Sur/vector.css: Difference between revisions

From Deadlock Wiki
Jump to navigation Jump to search
Sur (talk | contribs)
mNo edit summary
Sur (talk | contribs)
m hero infobox initial
 
(67 intermediate revisions by the same user not shown)
Line 1: Line 1:
.hover-box {
.infobox-hero {
     width: 150px;
     color: #FFEFD7;
    height: 150px;
     background-color: #2F2F2F;
     background-color: #f0f0f0;
     font-weight: bold;
     border-radius: 10px;
     font-family: 'PT Serif', 'Palatino', 'Georgia', serif;
     text-align: center;
     width: 100%;
     vertical-align: middle;
    position: relative;
    transition: width 0.3s ease;
}
}


.hover-box:hover {
.infobox-hero th,
     width: 200px;
.infobox-hero td {
    color: #999999;
    background-color: #2F2F2F;
     padding: 0.5em;
}
}


.hover-box-content {
.infobox-hero .title {
    font-size: 25px;
    text-shadow: 0px 0px 4px black;
    text-align: center;
    padding: 0.5em;
     display: flex;
     display: flex;
    flex-direction: column;
     justify-content: space-between;
     justify-content: center;
    align-items: center;
    border-radius: 15px;
    height: 100%;
}
 
.hover-box-icon {
    width: 40px;
    height: 40px;
}
}


.hover-box-label {
.infobox-hero .card-image {
     margin-top: 10px;
     padding: 0;
    font-size: 16px;
     background-color: #a79986;
     font-weight: bold;
}
}


.hover-box-hidden {
.infobox-hero .stat-title {
     display: none;
     font-size: 14px;
    position: absolute;
     font-style: italic;
    top: 0px;
     text-shadow: 0px 0px 4px black;
     left: 200px;
    background-color: #ffffff;
     border: 1px solid #cccccc;
    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%;
    border-collapse: separate; /* Use separate borders to apply radius */
    border-spacing: 0; /* Avoid gaps between cells */
    border-radius: 10px; /* Add curved edges to the table */
}
 
.hover-box-table th, .hover-box-table td {
    border: 1px solid #cccccc;
    padding: 5px;
     text-align: center;
     text-align: center;
}
}


.hover-box-table th:first-child, .hover-box-table td:first-child {
.infobox-hero .section-header {
     border-top-left-radius: 10px; /* Round top-left corner */
    background-color: #d5903f;
    font-size: 16px;
    text-shadow: 0px 0px 4px black;
     border-bottom: none;
}
}


.hover-box-table th:last-child, .hover-box-table td:last-child {
.infobox-hero .vitality-header {
     border-top-right-radius: 10px; /* Round top-right corner */
     background-color: #74b01c;
}
     font-size: 16px;
 
.hover-box-table td:first-child {
     border-bottom-left-radius: 10px; /* Round bottom-left corner */
}
}


.hover-box-table td:last-child {
.infobox-hero .hero-stat {
     border-bottom-right-radius: 10px; /* Round bottom-right corner */
    color: #999999;
     background-color: #2F2F2F;
}
}

Latest revision as of 20:23, 20 September 2024

.infobox-hero {
    color: #FFEFD7;
    background-color: #2F2F2F;
    font-weight: bold;
    font-family: 'PT Serif', 'Palatino', 'Georgia', serif;
    width: 100%;
}

.infobox-hero th,
.infobox-hero td {
    color: #999999;
    background-color: #2F2F2F;
    padding: 0.5em;
}

.infobox-hero .title {
    font-size: 25px;
    text-shadow: 0px 0px 4px black;
    text-align: center;
    padding: 0.5em;
    display: flex;
    justify-content: space-between;
}

.infobox-hero .card-image {
    padding: 0;
    background-color: #a79986;
}

.infobox-hero .stat-title {
    font-size: 14px;
    font-style: italic;
    text-shadow: 0px 0px 4px black;
    text-align: center;
}

.infobox-hero .section-header {
    background-color: #d5903f;
    font-size: 16px;
    text-shadow: 0px 0px 4px black;
    border-bottom: none;
}

.infobox-hero .vitality-header {
    background-color: #74b01c;
    font-size: 16px;
}

.infobox-hero .hero-stat {
    color: #999999;
    background-color: #2F2F2F;
}