mediawiki-skins-Citizen/skinStyles/mediawiki/action/mediawiki.action.view.filepage.less

114 lines
2.2 KiB
Plaintext
Raw Normal View History

2019-08-16 06:35:44 +00:00
/*
* Citizen
*
* SkinStyles for File pages
* Module: mediawiki.action.view.filepage
* Version: 1.39.0
*
* Date: 2022-10-28
2019-08-16 06:35:44 +00:00
*/
// Custom sticky header handling
#citizen-body-header-sticky-sentinel {
display: none;
}
2019-08-16 06:35:44 +00:00
#filetoc {
position: sticky;
top: 0;
2020-01-07 17:49:15 +00:00
display: flex;
padding: 0;
border: 0;
border-bottom: 1px solid var( --border-color-base );
margin: 0;
background-color: var( --color-surface-0 );
font-weight: var( --font-weight-medium );
2020-01-07 17:49:15 +00:00
li {
padding-right: 0;
}
2020-01-07 17:49:15 +00:00
a {
display: block;
padding: var( --space-xxs ) var( --space-md );
border-radius: var( --border-radius--small );
margin-top: var( --space-xs );
margin-bottom: var( --space-xs );
2020-01-07 17:49:15 +00:00
&:hover {
background-color: var( --background-color-quiet--hover );
}
2021-03-08 16:43:02 +00:00
&:active {
background-color: var( --background-color-quiet--active );
2020-01-07 17:49:15 +00:00
}
}
2019-08-16 06:35:44 +00:00
}
.mw-filepage-resolutioninfo {
margin-top: var( --space-xs );
margin-right: ~'calc( var( --space-xxs ) * -1 )';
// Compensate for margin in links, because we can't use flex gap
margin-left: ~'calc( var( --space-xxs ) * -1 )';
// HACK: Hide text
font-size: 0;
.mw-thumbnail-link {
display: inline-block;
padding: var( --space-xxs ) var( --space-md );
border: 1px solid var( --border-color-base );
border-radius: 100px;
margin: var( --space-xxs );
background-color: var( --color-surface-0 );
color: var( --color-base--subtle );
font-size: 0.875rem;
&:hover {
background-color: var( --color-primary--hover );
color: #fff;
2020-01-07 17:49:15 +00:00
}
&:active {
background-color: var( --color-primary--active );
color: #fff;
}
2020-01-07 17:49:15 +00:00
}
2019-08-16 06:35:44 +00:00
// Current preview resolution
> .mw-thumbnail-link {
background-color: var( --color-primary );
color: #fff;
2020-01-07 17:49:15 +00:00
}
2019-08-16 06:35:44 +00:00
}
.fullImageLink {
2020-01-07 17:49:15 +00:00
display: flex;
flex-direction: column;
align-items: flex-start;
margin-top: var( --space-xl );
margin-bottom: var( --space-xl );
img {
// Large image can overflow
max-width: 100%;
height: auto;
2020-01-07 17:49:15 +00:00
}
}
2020-01-07 17:49:15 +00:00
#file {
> a {
overflow: hidden;
border-radius: var( --border-radius--medium );
box-shadow: var( --box-shadow-card );
2020-01-07 17:49:15 +00:00
}
}
2020-01-07 17:49:15 +00:00
.fileInfo {
color: var( --color-base--subtle );
2019-08-16 06:35:44 +00:00
}
.fullMedia {
border-bottom: 1px solid var( --border-color-base );
font-size: 0.875rem;
}