2022-11-18 21:22:27 +00:00
|
|
|
/*
|
|
|
|
* Citizen
|
|
|
|
*
|
|
|
|
* Module: mediawiki.skinning.content.media-screen
|
|
|
|
* Version: REL1_39
|
|
|
|
*
|
2023-07-23 18:16:38 +00:00
|
|
|
* Date: 2023-07-23
|
|
|
|
*/
|
2024-04-06 18:05:05 +00:00
|
|
|
|
2022-11-18 21:22:27 +00:00
|
|
|
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;
|
|
|
|
|
2023-07-24 19:36:22 +00:00
|
|
|
img,
|
|
|
|
source {
|
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;
|
2023-07-07 21:02:27 +00:00
|
|
|
transition: var( --transition-hover );
|
|
|
|
transition-property: transform;
|
2023-05-06 04:31:50 +00:00
|
|
|
|
2023-05-06 04:30:37 +00:00
|
|
|
// Prevent constraining image width in tables
|
|
|
|
table & {
|
2023-05-09 21:04:16 +00:00
|
|
|
max-width: none;
|
2023-05-06 04:30:37 +00:00
|
|
|
}
|
2022-11-18 21:22:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Add affordance to replace magnify icon
|
|
|
|
&:hover:not( .lazy ):not( .new ) {
|
2023-07-24 19:37:25 +00:00
|
|
|
img,
|
|
|
|
source {
|
2022-11-18 21:22:27 +00:00
|
|
|
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 );
|
2023-07-23 18:16:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Broken file styles
|
|
|
|
> a:first-child:not( .mw-file-description ) {
|
|
|
|
padding: var( --space-sm );
|
2024-04-19 19:14:18 +00:00
|
|
|
border: 1px solid var( --border-color-interactive );
|
2023-07-23 18:16:38 +00:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: #fff;
|
2023-07-28 01:19:27 +00:00
|
|
|
background-color: var( --color-primary--hover );
|
2023-07-23 18:16:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
color: #fff;
|
2023-07-28 01:19:27 +00:00
|
|
|
background-color: var( --color-primary--active );
|
2023-07-23 18:16:38 +00:00
|
|
|
}
|
2022-11-18 21:22:27 +00:00
|
|
|
|
|
|
|
&.new {
|
2023-07-23 18:16:38 +00:00
|
|
|
border-style: dashed;
|
2022-11-18 21:22:27 +00:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: var( --color-destructive--hover );
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
background-color: var( --color-destructive--active );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|