Jump to content

Welcome to King Warz Charts Wiki! Please note that the site is still under construction as I work on creating past chart week pages, as well as templates and pages for artists, songs, and albums. Because of this, you may see a lot of red links throughout the site.

Template:InfoboxPerson/styles.css

From King Warz Charts
.infobox-container {
    float: right;
    clear: right;
    margin: 0 0 1em 1em;
    border: 1px solid #a2a9b1;
    background-color: #f8f9fa;
    width: 22em;
    font-size: 88%;
    line-height: 1.5em;
    padding: 0.2em;
}

.infobox {
    width: 100%;
    border-collapse: collapse;
}

.infobox-title {
    text-align: center;
    font-size: 1.2em;
    font-weight: normal;
    padding: 0.5em 0;
    margin-bottom: 0.5em; /* Remove redundant styling causing extra lines */
}

.infobox-header {
    background-color: #eaecf0;
    font-weight: bold;
    text-align: center;
    padding: 0.4em;
}

.infobox-label {
    background-color: #eaecf0;
    font-weight: bold;
    padding: 0.4em;
    text-align: left;
}

.infobox-data {
    padding: 0.4em;
    text-align: left;
}

.infobox-image img {
    display: block;
    margin: 0 auto;
    max-width: 220px; /* Image width fixed */
    height: auto; /* Proportional scaling */
}

.infobox-caption {
    text-align: center;
    font-size: 85%;
    color: #555;
    margin-top: 0.5em;
}

/* Mobile Behavior */
@media screen and (max-width: 768px) {
    .infobox-container {
        float: none;
        clear: both;
        margin: 1em auto;
        width: 100%;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle styling */
    }

    .infobox {
        width: 95%;
        margin: 0 auto;
    }
}