mediawiki-skins-Citizen/skinStyles/extensions/MultimediaViewer/mmv.less

181 lines
3.6 KiB
Plaintext
Raw Normal View History

2019-12-29 18:45:17 +00:00
/*
* Citizen - MultimediaViewer Styles
* https://starcitizen.tools
*/
@import '../../../resources/variables.less';
.skin-citizen {
2021-03-08 17:12:27 +00:00
.mw-mmv {
2021-03-08 18:32:30 +00:00
&-progress {
top: 0;
height: 2px;
background-color: transparent;
&-percent {
height: inherit;
}
}
2021-03-08 17:12:27 +00:00
&-post-image {
2021-03-08 18:32:30 +00:00
overflow: hidden;
2021-03-08 17:12:27 +00:00
background-color: var( --background-color-dp-04 );
border-radius: var( --border-radius--large ) var( --border-radius--large ) 0 0;
2021-03-08 17:12:27 +00:00
color: var( --color-base--emphasized );
}
2019-12-29 18:45:17 +00:00
2021-03-08 17:12:27 +00:00
&-image-metadata {
border-color: var( --border-color-base );
background-color: var( --background-color-framed );
color: var( --color-base );
}
2021-03-01 17:19:09 +00:00
2021-03-08 17:12:27 +00:00
&-info-box {
border-color: var( --border-color-base );
background-color: var( --background-color-dp-02 );
}
2021-03-01 17:19:09 +00:00
2021-03-08 17:12:27 +00:00
&--label {
background-color: var( --background-color-dp-02 );
color: var( --color-base );
}
2021-03-01 17:19:09 +00:00
2021-03-08 17:12:27 +00:00
&-credit,
&-image-links li {
color: var( --color-base--subtle );
}
2021-03-01 17:19:09 +00:00
2021-03-08 17:12:27 +00:00
&-stripe-button.mw-mmv-description-page-button {
margin: 11px var( --padding-page );
font-size: @ui-menu-text;
}
2021-03-01 17:19:09 +00:00
2021-03-08 17:12:27 +00:00
&-permission-box {
h3 {
color: var( --color-base );
}
2021-03-01 17:19:09 +00:00
2021-03-08 17:12:27 +00:00
.mw-mmv-permission-text {
.mw-mmv-permission-text-fader {
background-image: linear-gradient( to bottom, rgba( 255, 255, 255, 0 ) 0%, var( --background-color-dp-02 ) 100% );
}
}
}
2021-03-01 17:19:09 +00:00
2021-03-08 17:12:27 +00:00
&-title-para .mw-mmv-ttf-ellipsis {
background-color: var( --background-color-dp-04 );
box-shadow: none;
}
2021-03-01 17:19:09 +00:00
2021-03-08 17:12:27 +00:00
&-ttf-container .mw-mmv-ttf-ellipsis:before {
background-image: linear-gradient( to right, rgba( 255, 255, 255, 0 ) 0%, var( --background-color-dp01 ) 100% );
}
2021-03-08 17:12:27 +00:00
&-dialog {
background-color: var( --background-color-dp-08 );
box-shadow: var( --box-shadow-dialog );
2021-03-01 17:19:09 +00:00
2021-03-08 17:12:27 +00:00
.mw-mmv-dialog-down-arrow {
background-color: var( --background-color-dp-08 );
}
}
2021-03-08 17:12:27 +00:00
&-reuse-dialog .mw-mmv-reuse-tabs {
border-color: var( --border-color-base );
}
2021-03-01 17:19:09 +00:00
2021-03-08 17:12:27 +00:00
&-options-dialog-header {
color: var( --color-base--emphasized );
}
&-options-text-header {
color: var( --color-base );
}
2021-03-01 17:19:09 +00:00
2021-03-08 17:12:27 +00:00
&-options-text-body {
color: var( --color-base--subtle );
2021-03-01 17:19:09 +00:00
}
2021-03-08 17:12:27 +00:00
&-download-dialog .mw-mmv-dialog-down-arrow {
background-color: var( --background-color-framed );
2021-03-08 17:12:27 +00:00
}
2021-03-08 17:12:27 +00:00
&-download-pane {
.mw-mmv-download {
&-area .mw-mmv-download-preview-link {
color: var( --color-base--subtle );
}
&-attribution {
background-color: var( --background-color-framed );
color: var( --color-base );
&:hover {
background-color: var( --background-color-framed--hover );
color: var( --color-base--emphasized );
}
&-attribution-cta-invite {
color: var( --color-base--subtle );
}
}
}
2021-03-08 17:12:27 +00:00
}
2021-03-08 17:12:27 +00:00
&-download-button,
&-reuse-button,
&-options-button,
&-close,
&-fullscreen,
&-next-image,
&-prev-image {
background-position: center;
background-size: 20px; // smaller icon
}
/* So that tapping the border won't open the file */
&-next-image {
right: 0;
}
&-prev-image {
left: 0;
2021-03-01 17:19:09 +00:00
}
/* Increase click area */
&-next-image,
&-prev-image {
z-index: 1002; // avoid covering other buttons
top: 20vh !important; // override inline style
2021-03-08 18:00:33 +00:00
height: 50vh;
}
2021-03-01 17:19:09 +00:00
}
}
@media only screen and ( max-width: @width-breakpoint-tablet ) {
.skin-citizen {
2021-03-08 17:12:27 +00:00
.mw-mmv {
2021-03-08 18:32:30 +00:00
&-image {
/* So that the image is not clickable on mobile */
img {
cursor: auto;
pointer-events: none;
}
&-metadata-links-column {
width: auto; // Fix mobile bouncing
float: none;
}
2021-03-08 17:12:27 +00:00
}
2021-03-08 17:12:27 +00:00
&-untruncated {
.mw-mmv-image-metadata-desc-column,
.mw-mmv-image-metadata-links-column {
width: auto;
max-width: none;
}
}
2019-12-29 18:45:17 +00:00
}
}
}