2022-11-18 21:22:27 +00:00
|
|
|
/*
|
|
|
|
* Citizen
|
|
|
|
*
|
|
|
|
* Module: mediawiki.skinning.content.media-common
|
|
|
|
* Version: REL1_39
|
|
|
|
*
|
2023-07-23 18:18:05 +00:00
|
|
|
* Date: 2023-07-23
|
|
|
|
*/
|
2022-11-18 21:22:27 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 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;
|
2023-07-28 01:19:27 +00:00
|
|
|
clear: none;
|
2022-11-18 21:22:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.mw-halign-center {
|
|
|
|
margin-right: auto;
|
|
|
|
margin-left: auto;
|
2024-06-25 19:19:10 +00:00
|
|
|
text-align: center;
|
2022-11-18 21:22:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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;
|
2024-02-26 22:14:19 +00:00
|
|
|
font-size: var( --font-size-x-small );
|
2022-11-18 21:22:27 +00:00
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
> a:first-child,
|
|
|
|
> span:first-child {
|
|
|
|
/**
|
|
|
|
* Broken media get a span instead.
|
|
|
|
*/
|
2023-07-24 19:36:22 +00:00
|
|
|
span.mw-broken-media {
|
2022-11-18 21:22:27 +00:00
|
|
|
display: inline-block;
|
|
|
|
/* This is hardcoded in Linker::makeThumbLink2 for broken media */
|
|
|
|
width: 180px;
|
2023-07-23 18:18:57 +00:00
|
|
|
overflow-wrap: break-word;
|
2022-11-18 21:22:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> figcaption {
|
|
|
|
display: table-caption;
|
|
|
|
// Sync with rounded corner
|
|
|
|
padding-right: var( --border-radius--small );
|
|
|
|
// Sync with rounded corner
|
|
|
|
padding-left: var( --border-radius--small );
|
|
|
|
margin-top: var( --space-xs );
|
2024-06-30 05:04:30 +00:00
|
|
|
color: var( --color-subtle );
|
2022-11-18 21:22:27 +00:00
|
|
|
letter-spacing: 0.025em;
|
2023-07-28 01:19:27 +00:00
|
|
|
caption-side: bottom;
|
2022-11-18 21:22:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-04-06 18:05:05 +00:00
|
|
|
/**
|
|
|
|
* 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;
|
|
|
|
}
|
|
|
|
|
2022-11-18 21:22:27 +00:00
|
|
|
// Do not float content in mobile view
|
2023-11-16 22:55:23 +00:00
|
|
|
@media ( min-width: @min-width-breakpoint-tablet ) {
|
2022-11-18 21:22:27 +00:00
|
|
|
figure[ typeof~='mw:File/Thumb' ],
|
|
|
|
figure[ typeof~='mw:File/Frame' ] {
|
2023-07-23 18:18:05 +00:00
|
|
|
> figcaption {
|
|
|
|
text-align: start;
|
|
|
|
}
|
2022-11-18 21:22:27 +00:00
|
|
|
|
|
|
|
// When float is not explicitly set
|
|
|
|
.mw-content-ltr & {
|
2023-07-28 01:19:27 +00:00
|
|
|
/* @noflip */
|
|
|
|
float: right;
|
2022-11-18 21:22:27 +00:00
|
|
|
/* @noflip */
|
2024-06-17 00:57:14 +00:00
|
|
|
margin-left: var( --space-lg );
|
2022-11-18 21:22:27 +00:00
|
|
|
/* @noflip */
|
|
|
|
clear: right;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-content-rtl & {
|
2023-07-28 01:19:27 +00:00
|
|
|
/* @noflip */
|
|
|
|
float: left;
|
2022-11-18 21:22:27 +00:00
|
|
|
/* @noflip */
|
|
|
|
margin-right: var( --space-lg );
|
|
|
|
/* @noflip */
|
|
|
|
clear: left;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
figure[ typeof~='mw:File' ],
|
|
|
|
figure[ typeof~='mw:File/Frameless' ],
|
|
|
|
figure[ typeof~='mw:File/Thumb' ],
|
|
|
|
figure[ typeof~='mw:File/Frame' ] {
|
|
|
|
&.mw-halign-right {
|
2023-07-28 01:19:27 +00:00
|
|
|
/* @noflip */
|
|
|
|
float: right;
|
2022-11-18 21:22:27 +00:00
|
|
|
/* @noflip */
|
2024-07-01 17:42:28 +00:00
|
|
|
margin-right: 0;
|
|
|
|
/* @noflip */
|
2022-11-18 21:22:27 +00:00
|
|
|
margin-left: var( --space-lg );
|
|
|
|
/* @noflip */
|
|
|
|
clear: right;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.mw-halign-left {
|
2023-07-28 01:19:27 +00:00
|
|
|
/* @noflip */
|
|
|
|
float: left;
|
2022-11-18 21:22:27 +00:00
|
|
|
/* @noflip */
|
|
|
|
margin-right: var( --space-lg );
|
|
|
|
/* @noflip */
|
2024-07-01 17:42:28 +00:00
|
|
|
margin-left: 0;
|
|
|
|
/* @noflip */
|
2022-11-18 21:22:27 +00:00
|
|
|
clear: left;
|
|
|
|
}
|
2023-02-17 05:25:36 +00:00
|
|
|
|
2023-02-17 05:24:34 +00:00
|
|
|
&.mw-halign-center {
|
2023-07-28 01:19:27 +00:00
|
|
|
float: none;
|
2023-02-17 05:24:34 +00:00
|
|
|
margin-right: auto;
|
|
|
|
margin-left: auto;
|
|
|
|
clear: both;
|
|
|
|
text-align: center;
|
|
|
|
}
|
2022-11-18 21:22:27 +00:00
|
|
|
}
|
|
|
|
}
|