Template:Infocard/styles.css

From MB Wiki
< Template:Infocard
Revision as of 08:09, 24 February 2026 by Ais (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
.infocard {
    font-family: sans-serif;
}

.infocard-media img {
    border: 1px solid #a2a9b1;
    border-radius: 4px;
    padding: 3px;
    background: white;
    max-width: 100%;
    height: auto;
}

.infocard-header {
    min-height: 40px;
}

.infocard-name {
    font-size: 1.8em;
    font-weight: bold;
    color: #333;
    line-height: 1.2;
}

.infocard-namenote {
    font-size: 0.9em;
    color: #666;
    font-weight: normal;
    margin-left: 5px;
}

.infocard-subname {
    font-size: 1.2em;
    color: #555;
    font-style: italic;
    margin-top: 2px;
}

.infocard-type {
    font-size: 0.9em;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

.infocard-content {
    padding: 5px 0;
}

.infocard-row {
    transition: background-color 0.2s;
}

.infocard-row:hover {
    background-color: #f0f0f0;
}

.infocard-row:last-child {
    border-bottom: none !important;
}

/* Clearfix */
.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive design for mobile */
@media (max-width: 600px) {
    .infocard-media {
        float: none !important;
        margin-bottom: 10px;
        text-align: center;
    }
    
    .infocard-content {
        margin-left: 0 !important;
    }
    
    .infocard-row div {
        float: none !important;
        width: auto !important;
        margin-left: 0 !important;
    }
    
    .infocard-row div:first-child {
        font-weight: bold;
        margin-bottom: 2px;
    }
}