MediaWiki:Common.css: Difference between revisions

Content added Content deleted
(trying to test something)
No edit summary
Line 328: Line 328:


/* Image frame fix */
/* Image frame fix */
figure:is([typeof~="mw:File/Thumb"],
tright,
[typeof~="mw:File/Frame"],
tleft {
[typeof~="mw:Image/Thumb"],
border: 1px #3B5263;
[typeof~="mw:Video/Thumb"],
[typeof~="mw:Audio/Thumb"],
[typeof~="mw:Image/Frame"],
[typeof~="mw:Video/Frame"],
[typeof~="mw:Audio/Frame"]),
figure:is([typeof~="mw:File/Thumb"],
[typeof~="mw:File/Frame"],
[typeof~="mw:Image/Thumb"],
[typeof~="mw:Video/Thumb"],
[typeof~="mw:Audio/Thumb"],
[typeof~="mw:Image/Frame"],
[typeof~="mw:Video/Frame"],
[typeof~="mw:Audio/Frame"]) > :is(a, span):first-child > *:first-child:not(.mw-broken-media),
div.thumbinner,
.gallerytext {
background-color: unset;
border: none;
color: var(--theme-secondary);
}
}

thumbinner {
figure:is([typeof~="mw:File/Thumb"],
background: #3B5263;
[typeof~="mw:File/Frame"],
border: none;
[typeof~="mw:Image/Thumb"],
color: #3B5263;
[typeof~="mw:Video/Thumb"],
[typeof~="mw:Audio/Thumb"],
[typeof~="mw:Image/Frame"],
[typeof~="mw:Video/Frame"],
[typeof~="mw:Audio/Frame"]) > figcaption,
.thumbcaption,
.gallerytext {
background-color: unset;
border: none;
font: 400 .75rem/1.25rem var(--font-body-sans-serif);
letter-spacing: .0333333333em;
}
}

#article thumb {
figure:is([typeof~="mw:File/Thumb"],
color: #3B5263;
[typeof~="mw:Image/Thumb"],
[typeof~="mw:Video/Thumb"],
[typeof~="mw:Audio/Thumb"]):not([typeof~="mw:Error"]) > a::after {
content: unset;
}

.mw-parser-output .gallery {
text-align: center;
}
.mw-parser-output .gallery .gallerybox {
margin: 0 !important;
vertical-align: middle;
width: unset !important;
width: -moz-min-content !important;
width: min-content !important;
}
.mw-parser-output .gallery .thumb {
height: unset !important;
min-width: 16ch;
width: unset !important;
width: -moz-fit-content !important;
width: fit-content !important;
}

.mw-content-ltr ul.gallery {
margin: 0;
}

li.gallerybox div.thumb {
border: 1px solid rgba(var(--theme-border), 0.48);
background-color: rgb(var(--theme-background-secondary));
}
}