2022-11-18 21:22:27 +00:00
|
|
|
/*
|
|
|
|
* Citizen
|
|
|
|
*
|
|
|
|
* Module: mediawiki.skinning.content.media-screen
|
|
|
|
* Version: REL1_39
|
|
|
|
*
|
|
|
|
* Date: 2022-11-18
|
|
|
|
*/
|
|
|
|
figure[ typeof~='mw:File' ],
|
|
|
|
figure[ typeof~='mw:File/Frameless' ],
|
|
|
|
figure[ typeof~='mw:File/Thumb' ],
|
|
|
|
figure[ typeof~='mw:File/Frame' ] {
|
|
|
|
> a:first-child {
|
|
|
|
display: inline-block;
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
> img {
|
2023-02-22 20:12:06 +00:00
|
|
|
max-width: 100%;
|
2023-03-27 17:48:29 +00:00
|
|
|
height: auto;
|
2022-12-06 20:29:49 +00:00
|
|
|
contain: strict;
|
2022-12-06 20:30:42 +00:00
|
|
|
transition: @transition-transform;
|
2022-11-18 21:22:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Add affordance to replace magnify icon
|
|
|
|
&:hover:not( .lazy ):not( .new ) {
|
|
|
|
> img {
|
|
|
|
transform: scale( 1.1 );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
figure[ typeof~='mw:File/Thumb' ],
|
|
|
|
figure[ typeof~='mw:File/Frame' ] {
|
|
|
|
> a:first-child,
|
|
|
|
> span:first-child {
|
|
|
|
display: block;
|
|
|
|
border-radius: var( --border-radius--small );
|
|
|
|
|
|
|
|
// Broken file styles
|
|
|
|
&.new {
|
|
|
|
padding: var( --space-sm );
|
2022-11-18 21:25:31 +00:00
|
|
|
border: 1px dashed var( --border-color-base--darker );
|
2022-11-18 21:22:27 +00:00
|
|
|
transition: @transition-background, @transition-color;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: var( --color-destructive--hover );
|
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
background-color: var( --color-destructive--active );
|
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|