2019-08-16 06:35:44 +00:00
|
|
|
/*
|
2022-10-29 01:54:14 +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
|
|
|
*/
|
|
|
|
|
2022-10-29 01:54:14 +00:00
|
|
|
// Custom sticky header handling
|
|
|
|
#citizen-body-header-sticky-sentinel {
|
|
|
|
display: none;
|
|
|
|
}
|
2019-08-16 06:35:44 +00:00
|
|
|
|
|
|
|
#filetoc {
|
2022-10-29 01:54:14 +00:00
|
|
|
position: sticky;
|
|
|
|
top: 0;
|
2020-01-07 17:49:15 +00:00
|
|
|
display: flex;
|
2021-01-11 16:45:52 +00:00
|
|
|
padding: 0;
|
2022-10-29 01:54:14 +00:00
|
|
|
border: 0;
|
|
|
|
border-bottom: 1px solid var( --border-color-base );
|
2021-01-11 16:45:52 +00:00
|
|
|
margin: 0;
|
2022-10-29 01:54:14 +00:00
|
|
|
background-color: var( --color-surface-0 );
|
|
|
|
font-weight: var( --font-weight-medium );
|
2020-01-07 17:49:15 +00:00
|
|
|
|
|
|
|
li {
|
2022-10-29 01:54:14 +00:00
|
|
|
padding-right: 0;
|
|
|
|
}
|
2020-01-07 17:49:15 +00:00
|
|
|
|
2022-10-29 01:54:14 +00:00
|
|
|
a {
|
|
|
|
display: block;
|
2022-11-01 00:34:00 +00:00
|
|
|
padding: var( --space-xxs ) var( --space-md );
|
2022-10-29 01:54:14 +00:00
|
|
|
border-radius: var( --border-radius--small );
|
2022-11-01 00:34:00 +00:00
|
|
|
margin-top: var( --space-xs );
|
|
|
|
margin-bottom: var( --space-xs );
|
2020-01-07 17:49:15 +00:00
|
|
|
|
2022-10-29 01:54:14 +00:00
|
|
|
&:hover {
|
|
|
|
background-color: var( --background-color-quiet--hover );
|
|
|
|
}
|
2021-03-08 16:43:02 +00:00
|
|
|
|
2022-10-29 01:54:14 +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
|
|
|
}
|
|
|
|
|
2022-10-29 01:54:14 +00:00
|
|
|
.mw-filepage-resolutioninfo {
|
2022-11-01 00:34:00 +00:00
|
|
|
margin-top: var( --space-xs );
|
|
|
|
margin-right: ~'calc( var( --space-xxs ) * -1 )';
|
2022-10-29 01:54:14 +00:00
|
|
|
// Compensate for margin in links, because we can't use flex gap
|
2022-11-01 00:34:00 +00:00
|
|
|
margin-left: ~'calc( var( --space-xxs ) * -1 )';
|
2022-10-29 01:54:14 +00:00
|
|
|
// HACK: Hide text
|
|
|
|
font-size: 0;
|
|
|
|
|
|
|
|
.mw-thumbnail-link {
|
|
|
|
display: inline-block;
|
2022-11-01 00:34:00 +00:00
|
|
|
padding: var( --space-xxs ) var( --space-md );
|
2022-10-29 01:54:14 +00:00
|
|
|
border: 1px solid var( --border-color-base );
|
|
|
|
border-radius: 100px;
|
2022-11-01 00:34:00 +00:00
|
|
|
margin: var( --space-xxs );
|
2022-10-29 01:54:14 +00:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2022-10-29 01:54:14 +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
|
|
|
|
2022-10-29 01:54:14 +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
|
|
|
}
|
|
|
|
|
2022-10-29 01:54:14 +00:00
|
|
|
.fullImageLink {
|
2020-01-07 17:49:15 +00:00
|
|
|
display: flex;
|
2022-10-29 01:54:14 +00:00
|
|
|
flex-direction: column;
|
|
|
|
align-items: flex-start;
|
2022-11-01 00:34:00 +00:00
|
|
|
margin-top: var( --space-xl );
|
|
|
|
margin-bottom: var( --space-xl );
|
2022-10-29 01:54:14 +00:00
|
|
|
|
|
|
|
img {
|
|
|
|
// Large image can overflow
|
|
|
|
max-width: 100%;
|
|
|
|
height: auto;
|
2020-01-07 17:49:15 +00:00
|
|
|
}
|
2022-10-29 01:54:14 +00:00
|
|
|
}
|
2020-01-07 17:49:15 +00:00
|
|
|
|
2022-10-29 01:54:14 +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
|
|
|
}
|
2022-10-29 01:54:14 +00:00
|
|
|
}
|
2020-01-07 17:49:15 +00:00
|
|
|
|
2022-10-29 01:54:14 +00:00
|
|
|
.fileInfo {
|
|
|
|
color: var( --color-base--subtle );
|
2019-08-16 06:35:44 +00:00
|
|
|
}
|
|
|
|
|
2022-10-29 01:54:14 +00:00
|
|
|
.fullMedia {
|
|
|
|
border-bottom: 1px solid var( --border-color-base );
|
|
|
|
font-size: 0.875rem;
|
2020-01-07 17:47:21 +00:00
|
|
|
}
|