mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-12-11 05:56:16 +00:00
00b2495c1a
- Move border radius calculation to CSS variable instead of LESS - Rename CSS variable according to Codex, soft-deprecating the existing border radius
78 lines
1.4 KiB
Plaintext
78 lines
1.4 KiB
Plaintext
/*
|
|
* Citizen
|
|
*
|
|
* Module: mediawiki.skinning.content.media-screen
|
|
* Version: REL1_39
|
|
*
|
|
* Date: 2023-07-23
|
|
*/
|
|
|
|
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,
|
|
source {
|
|
max-width: 100%;
|
|
height: auto;
|
|
contain: strict;
|
|
transition: var( --transition-hover );
|
|
transition-property: transform;
|
|
|
|
// Prevent constraining image width in tables
|
|
table & {
|
|
max-width: none;
|
|
}
|
|
}
|
|
|
|
// Add affordance to replace magnify icon
|
|
&:hover:not( .lazy ):not( .new ) {
|
|
img,
|
|
source {
|
|
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-base );
|
|
}
|
|
|
|
// Broken file styles
|
|
> a:first-child:not( .mw-file-description ) {
|
|
padding: var( --space-sm );
|
|
border: 1px solid var( --border-color-interactive );
|
|
|
|
&:hover {
|
|
color: var( --color-inverted-primary );
|
|
background-color: var( --color-progressive--hover );
|
|
}
|
|
|
|
&:active {
|
|
color: var( --color-inverted-primary );
|
|
background-color: var( --color-progressive--active );
|
|
}
|
|
|
|
&.new {
|
|
border-style: dashed;
|
|
|
|
&:hover {
|
|
background-color: var( --color-destructive--hover );
|
|
}
|
|
|
|
&:active {
|
|
background-color: var( --color-destructive--active );
|
|
}
|
|
}
|
|
}
|
|
}
|