Template:Infocard/styles.css: Difference between revisions

From MB Wiki
Jump to navigation Jump to search
(Created page with ".infocard { background: #f8f9fa; border: 1px solid #a2a9b1; border-radius: 4px; padding: 10px; margin: 10px 0; overflow: hidden; } .infocard .card { float: left; margin-right: 15px; } .infocard .image { background: #fff; border: 1px solid #a2a9b1; border-radius: 4px; padding: 5px; margin-bottom: 10px; } .infocard .content { background: #fff; border: 1px solid #a2a9b1; border-radius: 4px; padding: 8px;...")
 
mNo edit summary
 
Line 1: Line 1:
.infocard {
.infocard {
     background: #f8f9fa;
     font-family: sans-serif;
    border: 1px solid #a2a9b1;
    border-radius: 4px;
    padding: 10px;
    margin: 10px 0;
    overflow: hidden;
}
 
.infocard .card {
    float: left;
    margin-right: 15px;
}
 
.infocard .image {
    background: #fff;
    border: 1px solid #a2a9b1;
    border-radius: 4px;
    padding: 5px;
    margin-bottom: 10px;
}
}


.infocard .content {
.infocard-media img {
    background: #fff;
     border: 1px solid #a2a9b1;
     border: 1px solid #a2a9b1;
     border-radius: 4px;
     border-radius: 4px;
     padding: 8px;
     padding: 3px;
}
    background: white;
 
     max-width: 100%;
.infocard .intro,
     height: auto;
.infocard .outro {
     margin: 5px 0;
     padding: 3px 0;
}
}


.infocard-header {
.infocard-header {
     min-height: 60px;
     min-height: 40px;
    position: relative;
    padding: 5px 0;
}
 
.infocard-title {
    float: left;
}
}


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


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


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


Line 67: Line 41:
     color: #777;
     color: #777;
     text-transform: uppercase;
     text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}
}


.infocard-icon {
.infocard-content {
     float: right;
     padding: 5px 0;
    margin-left: 10px;
}
}


.infocard-row {
.infocard-row {
     clear: both;
     transition: background-color 0.2s;
    padding: 3px 0;
    border-bottom: 1px solid #eee;
    margin-left: 150px;
}
}


.infocard-row:last-child {
.infocard-row:hover {
     border-bottom: none;
     background-color: #f0f0f0;
}
}


.infocard-label {
.infocard-row:last-child {
    float: left;
     border-bottom: none !important;
    width: 120px;
    font-weight: bold;
    color: #555;
}
 
.infocard-value {
     margin-left: 130px;
    color: #333;
}
}


Line 102: Line 66:
     display: table;
     display: table;
     clear: both;
     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;
    }
}
}

Latest revision as of 08:09, 24 February 2026

.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;
    }
}