Template:Infobox character player/styles.css: Difference between revisions
Jump to navigation
Jump to search
(create) |
(remove pre style) |
||
| Line 42: | Line 42: | ||
padding: 4px; | padding: 4px; | ||
text-align: center; | text-align: center; | ||
} | } | ||
Revision as of 08:18, 3 June 2025
/* === Infobox Character Styles (hard‐coded colors) === */
.infobox-character {
/* Entire box: medium-weight border, subtle shadow */
border: 1px solid;
border-radius: 6px;
font-size: 0.9em;
font-family: sans-serif;
width: 280px;
margin: 0.5em 0 0 1em; /* float-right margin (can be overridden by inline style) */
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
overflow: hidden;
}
.infobox-character th,
.infobox-character td {
padding: 6px 8px;
vertical-align: top;
}
.infobox-character th {
/* Row labels: slightly darker text on transparent background */
text-align: left;
font-weight: bold;
background-color: transparent;
border: none;
}
.infobox-character tr:not(:first-child) {
/* Light horizontal separator between rows */
border-top: 1px solid;
}
.infobox-character .infobox-header-row th {
/* Header (name) row
text-align: center;
font-size: 1.1em;
padding: 4px 2px;
}
.infobox-character .infobox-image-row td {
/* Image row: theme background and slightly smaller padding */
padding: 4px;
text-align: center;
}
.infobox-character img {
/* Prevent the portrait from overflowing, add subtle rounding */
max-width: 100%;
height: auto;
border-radius: 4px;
}
/* Optional: row hover highlight (uncomment to enable) */
/*
.infobox-character tr:hover td {
background-color: rgba(0,0,0,0.02);
}
*/
/* === End Infobox Character Styles === */