MediaWiki:Item.css: Difference between revisions
Appearance
ReisuDesign (talk | contribs) No edit summary |
ReisuDesign (talk | contribs) No edit summary |
||
| Line 38: | Line 38: | ||
/* Add Unknown icon to missing img */ | /* Add Unknown icon to missing img */ | ||
.item-image > a.new, .item-image > span > span > a.new { | |||
position: absolute; | position: absolute; | ||
display: flex; | display: flex; | ||
| Line 46: | Line 46: | ||
background-size: cover; | background-size: cover; | ||
font-size: 0; | font-size: 0; | ||
} | } | ||
Revision as of 00:05, 12 November 2025
/* For [[Template:Item]] */
.item {
display: inline;
}
.item .item-image {
vertical-align: middle;
position: relative;
display: inline-block;
}
.item .item-image .hidden {
display: inline-block;
position: relative;
text-align: center;
vertical-align: middle;
top: -2px;
}
.item .item-image .hidden a {
display: inline-flex;
}
.item .item-icon {
position: absolute;
display: flex;
align-items: center;
top: -5px;
left: -5px;
width: 14px;
height: 14px;
}
.item.newline {
display: inline-block;
text-align: center;
}
/* Add Unknown icon to missing img */
.item-image > a.new, .item-image > span > span > a.new {
position: absolute;
display: flex;
height: 100%;
width: 100%;
background-image: var(--unknown-img);
background-size: cover;
font-size: 0;
}