MediaWiki:Gadget-site-styles.css: Difference between revisions

no edit summary
(Undo revision 5605 by Diamondback88 (talk))
Tag: Undo
No edit summary
Line 690: Line 690:
.infobox-footer {
.infobox-footer {
text-align: center;
text-align: center;
}
/* [[Template:Sprite]] */
.sprite {
display: inline-block;
vertical-align: text-top;
height: 16px;
width: 16px;
background-repeat: no-repeat;
}
.sprite-file {
--vertical-align: text-top;
display: inline-block;
height: 16px;
width: 16px;
}
.sprite-file img {
vertical-align: var(--vertical-align);
}
.sprite-file + a > .sprite-text,
.sprite-file + .sprite-text,
.sprite + .sprite-text {
padding-left: 0.312em;
}
.sprite-file:has(> a:hover:not(.new)) + a:has(> .sprite-text),
.sprite-file:has(> a:focus:not(.new)) + a:has(> .sprite-text) {
text-decoration: underline;
}
.wgl-theme-light .sprite-file:has(> a:active:not(.new)) + a:has(> .sprite-text) {
    color: #faa700;
}
/* [[File:Grid Unknown.png]] */
.sprite-file > a.new:first-child {
vertical-align: var(--vertical-align);
background-image: url('filepath://Grid_Unknown.png');
    background-size: 100% 100%;
display: inline-block;
text-indent: -9999px;
overflow: hidden;
height: 100%;
width: 100%;
    image-rendering: optimizeSpeed;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimize-contrast;
    image-rendering: -moz-crisp-edges;
    image-rendering: -o-crisp-edges;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    -ms-interpolation-mode: nearest-neighbor;
}
/* [[Template:AprilFoolsSprite]]: [[File:AprilFoolsSprite.png]] */
.af-sprite {
background-image: url('filepath://AprilFoolsSprite.png');
}
/* [[Template:BlockLegacySprite]]: [[File:BlockLegacyCSS.png]] */
.blocklegacy-sprite {
background-image: url('filepath://BlockLegacyCSS.png');
}
/* [[Template:ClockPhase]]: [[File:ClockSprite.png]] */
.clock-sprite {
background-image: url('filepath://ClockSprite.png');
}
/* [[Template:CommentSprite]]: [[File:CommentCSS.png]] */
.comment-sprite {
background-image: url('filepath://CommentCSS.png');
}
/* [[Template:Nbt/sprite]]: [[File:Nbtsheet.png]] */
.nbt-sprite {
background-image: url('filepath://Nbtsheet.png');
}
/* [[Template:Schematic]]: [[File:SchematicSprite.png]] */
.schematic-sprite {
background-image: url('filepath://SchematicSprite.png');
background-size: 32em auto;
width: 1em;
height: 1em;
}
/* [[Template:TintSprite]]: [[File:TintSprite.png]] */
.tint-sprite {
background-image: url('filepath://TintSprite.png');
}
.tint-sprite-mask {
-webkit-mask-image: url('filepath://TintSprite.png');
mask-image: url('filepath://TintSprite.png');
}
/* [[Template:LegendsAchievementSprite]]: [[File:LegendsAchievementSprite.png]] */
.legendsachievement-sprite {
background-image: url('filepath://LegendsAchievementSprite.png');
}
/* [[Template:LegendsEntitySprite]]: [[File:LegendsEntityCSS.png]] */
.legendsentity-sprite {
background-image: url('filepath://LegendsEntityCSS.png');
}
/* [[Template:LegendsStructureSprite]]: [[File:LegendsStructureCSS.png]] */
.legendsstructure-sprite {
background-image: url('filepath://LegendsStructureCSS.png');
}
}