MediaWiki:Common.css: Difference between revisions

From Medalist Wiki
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 28: Line 28:
}
}


.character-card {
img[alt]:hover::after {
margin: 0;
    content: attr(alt);
line-height: 0;
    display: block;
}
    position: absolute;
.character-card img {
    background: white;
display: block;
    padding: 5px;
width: 100%;
    border: 1px solid black;
height: auto;
}
}

Revision as of 04:36, 8 February 2025

/* CSS placed here will be applied to all skins */
.infobox {
    background: #eee;
    border: 1px solid #aaa;
    float: right;
    margin: 0 0 0.5em 0.5em;
    padding: 1em;
    width: 270px;
}
.infobox-title {
    font-size: 1.8em;
    text-align: center;
    vertical-align: top;
}
.infobox-image {
    text-align: center;
}
.infobox-table th {
    text-align: left;
    vertical-align: top;
    width: 40%;
    font-size: 0.80em;
}
.infobox-table td {
    vertical-align: top;
    width: 60%;
    font-size: 0.90em;
}

img[alt]:hover::after {
    content: attr(alt);
    display: block;
    position: absolute;
    background: white;
    padding: 5px;
    border: 1px solid black;
}