MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 16: | Line 16: | ||
font-size: 90%; | font-size: 90%; | ||
} | } | ||
.character-infobox-title { | .character-infobox-title { | ||
background: var(--infobox-color); | background: var(--infobox-color); | ||
| Line 24: | Line 23: | ||
font-weight: bold; | font-weight: bold; | ||
padding: 8px; | padding: 8px; | ||
border-radius: 0; | |||
} | } | ||
| Line 63: | Line 63: | ||
margin: 1em 0; | margin: 1em 0; | ||
} | } | ||
} | |||
.character-infobox tr:last-child td:last-child { | |||
border-radius: 0 0 6px 0; | |||
} | |||
.character-infobox tr:last-child th:first-child { | |||
border-radius: 0 0 0 6px; | |||
} | } | ||
Revision as of 18:38, 16 July 2026
/* CSS placed here will be applied to all skins */
/* Character Infobox */
.character-infobox {
float: right;
width: 300px;
margin: 0 0 1em 1em;
border-collapse: separate;
border-spacing: 0;
border: 2px solid var(--infobox-color);
border-radius: 0 0 8px 8px;
overflow: hidden;
background: #ffffff;
box-shadow: 0 2px 6px rgba(0,0,0,0.15);
font-size: 90%;
}
.character-infobox-title {
background: var(--infobox-color);
color: var(--infobox-text);
text-align: center;
font-size: 130%;
font-weight: bold;
padding: 8px;
border-radius: 0;
}
.character-infobox-image {
text-align: center;
padding: 10px;
background: #f8f8f8;
}
.character-infobox th {
width: 35%;
text-align: left;
background: #eeeeee;
padding: 6px;
border-top: 1px solid #ddd;
font-weight: bold;
}
.character-infobox td {
padding: 6px;
border-top: 1px solid #ddd;
}
.character-infobox tr:first-of-type th,
.character-infobox tr:first-of-type td {
border-top: none;
}
.character-infobox tr:hover th,
.character-infobox tr:hover td {
background: rgba(0,0,0,0.03);
}
/* Mobile support */
@media (max-width: 700px) {
.character-infobox {
float: none;
width: 100%;
margin: 1em 0;
}
}
.character-infobox tr:last-child td:last-child {
border-radius: 0 0 6px 0;
}
.character-infobox tr:last-child th:first-child {
border-radius: 0 0 0 6px;
}