Template:Infocard/styles.css: Difference between revisions
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 { | ||
font-family: sans-serif; | |||
} | } | ||
.infocard | .infocard-media img { | ||
border: 1px solid #a2a9b1; | border: 1px solid #a2a9b1; | ||
border-radius: 4px; | border-radius: 4px; | ||
padding: | padding: 3px; | ||
background: white; | |||
max-width: 100%; | |||
height: auto; | |||
} | } | ||
.infocard-header { | .infocard-header { | ||
min-height: | min-height: 40px; | ||
} | } | ||
.infocard-name { | .infocard-name { | ||
font-size: 1. | 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. | font-size: 0.9em; | ||
color: #666; | |||
font-weight: normal; | font-weight: normal; | ||
margin-left: 5px; | margin-left: 5px; | ||
} | } | ||
.infocard-subname { | .infocard-subname { | ||
font-size: 1. | 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- | .infocard-content { | ||
padding: 5px 0; | |||
} | } | ||
.infocard-row { | .infocard-row { | ||
transition: background-color 0.2s; | |||
} | } | ||
.infocard-row: | .infocard-row:hover { | ||
background-color: #f0f0f0; | |||
} | } | ||
.infocard- | .infocard-row:last-child { | ||
border-bottom: none !important; | |||
} | } | ||
| 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;
}
}