Page MenuHomeWickedGov Phorge

content.media-common.less
No OneTemporary

Size
2 KB
Referenced Files
None
Subscribers
None

content.media-common.less

/*
* Citizen
*
* Module: mediawiki.skinning.content.media-common
* Version: REL1_39
*
* Date: 2023-07-23
*/
@import '../../mixins.less';
/**
* Block media items
*/
figure[ typeof~='mw:File' ],
figure[ typeof~='mw:File/Frameless' ],
figure[ typeof~='mw:File/Thumb' ],
figure[ typeof~='mw:File/Frame' ] {
&.mw-halign-none {
float: none;
clear: none;
}
&.mw-halign-center {
margin-inline: auto;
text-align: center;
}
}
figure[ typeof~='mw:File' ],
figure[ typeof~='mw:File/Frameless' ] {
/* Hide the caption for frameless and plain floated images */
> figcaption {
display: none;
}
}
figure[ typeof~='mw:File/Thumb' ],
figure[ typeof~='mw:File/Frame' ] {
display: table;
margin: var( --space-xs ) auto var( --space-md ) auto;
text-align: center;
.mixin-citizen-font-styles( 'small' );
> a:first-child,
> span:first-child {
/**
* Broken media get a span instead.
*/
span.mw-broken-media {
display: inline-block;
/* This is hardcoded in Linker::makeThumbLink2 for broken media */
width: 180px;
overflow-wrap: break-word;
}
}
> figcaption {
display: table-caption;
// Sync with rounded corner
padding-inline: var( --border-radius-base );
caption-side: bottom;
&:not( :empty ) {
margin-top: var( --space-xs );
}
}
}
/**
* Inline media items
* img is needed for 1.39 compat, change to .mw-file-element later
*/
.mw-valign-middle img {
vertical-align: middle;
}
.mw-valign-baseline img {
vertical-align: baseline;
}
.mw-valign-sub img {
vertical-align: sub;
}
.mw-valign-super img {
vertical-align: super;
}
.mw-valign-top img {
vertical-align: top;
}
.mw-valign-text-top img {
vertical-align: text-top;
}
.mw-valign-bottom img {
vertical-align: bottom;
}
.mw-valign-text-bottom img {
vertical-align: text-bottom;
}
// Do not float content in mobile view
@media ( min-width: @min-width-breakpoint-tablet ) {
figure[ typeof~='mw:File/Thumb' ],
figure[ typeof~='mw:File/Frame' ] {
> figcaption {
text-align: start;
}
// When float is not explicitly set
.mw-content-ltr & {
/* @noflip */
float: right;
/* @noflip */
clear: right;
/* @noflip */
margin-left: var( --space-lg );
}
.mw-content-rtl & {
/* @noflip */
float: left;
/* @noflip */
clear: left;
/* @noflip */
margin-right: var( --space-lg );
}
}
figure[ typeof~='mw:File' ],
figure[ typeof~='mw:File/Frameless' ],
figure[ typeof~='mw:File/Thumb' ],
figure[ typeof~='mw:File/Frame' ] {
&.mw-halign-right {
/* @noflip */
float: right;
/* @noflip */
clear: right;
/* @noflip */
margin-right: 0;
/* @noflip */
margin-left: var( --space-lg );
}
&.mw-halign-left {
/* @noflip */
float: left;
/* @noflip */
clear: left;
/* @noflip */
margin-right: var( --space-lg );
/* @noflip */
margin-left: 0;
}
&.mw-halign-center {
float: none;
clear: both;
margin-inline: auto;
text-align: center;
}
}
}

File Metadata

Mime Type
text/plain
Expires
Wed, Aug 19, 10:46 (3 w, 6 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
91/1f/1d65a7d30ead508dcc55bd9836dc
Default Alt Text
content.media-common.less (2 KB)

Event Timeline