mediawiki-skins-Citizen/resources/skins.citizen.styles/skinning/content.media-screen.less
沈澄心 f0f0a07121
feat(MediaWiki): update bad file styles for bad image list (#697)
* Update content.media-screen.less

* Update content.thumbnails-screen.less

* Update content.thumbnails-screen.less

* Update content.media-screen.less
2023-07-23 14:16:38 -04:00

75 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 {
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 {
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
> a:first-child:not( .mw-file-description ) {
padding: var( --space-sm );
border: 1px solid var( --border-color-base--darker );
&:hover {
background-color: var( --color-primary--hover );
color: #fff;
}
&:active {
background-color: var( --color-primary--active );
color: #fff;
}
&.new {
border-style: dashed;
&:hover {
background-color: var( --color-destructive--hover );
}
&:active {
background-color: var( --color-destructive--active );
}
}
}
}