2022-11-18 20:09:08 +00:00
|
|
|
/*
|
|
|
|
* Citizen
|
|
|
|
*
|
|
|
|
* Module: mediawiki.skinning.content.thumbnails-common
|
|
|
|
* Version: REL1_39
|
|
|
|
*
|
2023-07-23 18:18:05 +00:00
|
|
|
* Date: 2023-07-23
|
|
|
|
*/
|
2022-11-18 20:09:08 +00:00
|
|
|
|
|
|
|
/* @noflip */
|
|
|
|
div.floatleft,
|
|
|
|
table.floatleft,
|
|
|
|
div.floatright,
|
|
|
|
table.floatright {
|
2022-11-18 21:22:27 +00:00
|
|
|
margin: 0;
|
2022-11-18 20:09:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* @noflip */
|
|
|
|
div.tleft,
|
|
|
|
div.tright {
|
|
|
|
margin: var( --space-xs ) 0 var( --space-md ) 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.thumbcaption {
|
|
|
|
// Sync with rounded corner
|
2024-07-05 17:24:31 +00:00
|
|
|
padding-right: var( --border-radius-base );
|
2022-11-18 21:22:27 +00:00
|
|
|
// Sync with rounded corner
|
2024-07-05 17:24:31 +00:00
|
|
|
padding-left: var( --border-radius-base );
|
2022-11-18 21:22:27 +00:00
|
|
|
margin-top: var( --space-xs );
|
2024-06-30 05:04:30 +00:00
|
|
|
color: var( --color-subtle );
|
2022-11-18 20:09:08 +00:00
|
|
|
text-align: center;
|
2023-07-28 01:19:27 +00:00
|
|
|
letter-spacing: 0.025em;
|
2022-11-18 20:09:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
div.thumbinner {
|
|
|
|
// Avoid overflow
|
|
|
|
max-width: 100%;
|
|
|
|
margin-right: auto;
|
|
|
|
// Center thumbnail without float
|
|
|
|
margin-left: auto;
|
2023-07-28 01:19:27 +00:00
|
|
|
/* new block formatting context,
|
|
|
|
* to clear background from floating content */
|
|
|
|
overflow: hidden;
|
2022-11-18 20:09:08 +00:00
|
|
|
// We use the same font size for both caption and inner
|
2024-02-26 22:14:19 +00:00
|
|
|
font-size: var( --font-size-x-small );
|
2022-11-18 20:09:08 +00:00
|
|
|
text-align: center;
|
2023-07-23 18:18:05 +00:00
|
|
|
|
|
|
|
> a {
|
|
|
|
overflow-wrap: break-word;
|
|
|
|
}
|
2022-11-18 20:09:08 +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 20:09:08 +00:00
|
|
|
/* @noflip */
|
|
|
|
div.tright,
|
|
|
|
div.floatright,
|
|
|
|
table.floatright {
|
2023-07-28 01:19:27 +00:00
|
|
|
float: right;
|
2022-11-18 20:09:08 +00:00
|
|
|
margin-left: var( --space-lg );
|
|
|
|
clear: right;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* @noflip */
|
|
|
|
div.tleft,
|
|
|
|
div.floatleft,
|
|
|
|
table.floatleft {
|
2023-07-28 01:19:27 +00:00
|
|
|
float: left;
|
2022-11-18 20:09:08 +00:00
|
|
|
margin-right: var( --space-lg );
|
|
|
|
clear: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
.thumbcaption {
|
|
|
|
text-align: start;
|
|
|
|
}
|
|
|
|
}
|