2019-12-29 18:45:17 +00:00
|
|
|
/*
|
2022-11-28 03:30:34 +00:00
|
|
|
* Citizen
|
|
|
|
*
|
|
|
|
* SkinStyles for Extension:MultimediaViewer
|
|
|
|
* Module: mmv
|
|
|
|
* Version: REL1_39 (1b97775)
|
|
|
|
*
|
|
|
|
* Date: 2022-11-26
|
2019-12-29 18:45:17 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
@import '../../../resources/variables.less';
|
|
|
|
|
2022-11-28 03:30:34 +00:00
|
|
|
// FIXME: Use relative units
|
|
|
|
@mmv-width-toolbar: 52px;
|
|
|
|
@mmv-height-abovethefold: 86px;
|
|
|
|
@mmv-button-size: 40px;
|
2021-03-08 18:32:30 +00:00
|
|
|
|
2022-11-28 03:30:34 +00:00
|
|
|
/* mmv.ui.dialog.less */
|
|
|
|
.mw-mmv-dialog {
|
|
|
|
right: @mmv-width-toolbar;
|
|
|
|
margin: var( --space-xs );
|
|
|
|
background-color: var( --color-surface-1 );
|
2024-07-05 17:24:31 +00:00
|
|
|
border-radius: var( --border-radius-medium );
|
2024-07-25 01:53:51 +00:00
|
|
|
box-shadow: var( --box-shadow-drop-xx-large );
|
2022-11-28 03:30:34 +00:00
|
|
|
|
|
|
|
// The dialog will always show above the metadata in mobile view
|
2023-11-16 22:55:23 +00:00
|
|
|
@media ( max-width: @max-width-breakpoint-tablet ) {
|
2022-11-28 03:30:34 +00:00
|
|
|
top: unset !important;
|
|
|
|
right: 0 !important;
|
|
|
|
bottom: @mmv-height-abovethefold !important;
|
|
|
|
left: 0 !important;
|
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Make arrow slightly smaller
|
|
|
|
.mw-mmv-dialog-down-arrow {
|
|
|
|
right: @mmv-width-toolbar;
|
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
|
|
|
background-color: var( --color-surface-1 );
|
|
|
|
|
|
|
|
// Hide arrow since the dialog is no longer relative
|
2023-11-16 22:55:23 +00:00
|
|
|
@media ( max-width: @max-width-breakpoint-tablet ) {
|
2022-11-28 03:30:34 +00:00
|
|
|
display: none;
|
2021-03-08 18:32:30 +00:00
|
|
|
}
|
2022-11-28 03:30:34 +00:00
|
|
|
}
|
2021-03-08 18:32:30 +00:00
|
|
|
|
2022-11-28 03:30:34 +00:00
|
|
|
.mw-mmv-dialog-warning {
|
|
|
|
background-color: var( --color-warning );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* mmv.ui.reuse.dialog.less */
|
|
|
|
.mw-mmv-reuse-dialog {
|
|
|
|
bottom: @mmv-height-abovethefold;
|
|
|
|
|
|
|
|
.mw-mmv-reuse-tabs {
|
|
|
|
border-bottom-color: var( --border-color-base );
|
2024-07-05 17:24:31 +00:00
|
|
|
border-radius: var( --border-radius-medium ) var( --border-radius-medium ) 0 0; // Sync with dialog
|
2022-11-28 03:30:34 +00:00
|
|
|
|
|
|
|
.oo-ui-optionWidget {
|
|
|
|
padding: var( --space-xs ) var( --space-sm );
|
|
|
|
font-size: 1rem;
|
|
|
|
font-weight: var( --font-weight-semibold );
|
|
|
|
|
|
|
|
&.oo-ui-optionWidget-highlighted {
|
|
|
|
border-bottom: 0; // border will cause reflow
|
2024-06-30 05:04:30 +00:00
|
|
|
box-shadow: inset 0 -2px 0 0 var( --color-progressive--hover );
|
2022-11-28 03:30:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.oo-ui-optionWidget-selected,
|
|
|
|
&.oo-ui-optionWidget-highlighted.oo-ui-optionWidget-selected {
|
|
|
|
border-bottom: 0; // border will cause reflow
|
2024-06-30 05:04:30 +00:00
|
|
|
box-shadow: inset 0 -2px 0 0 var( --color-progressive );
|
2022-11-28 03:30:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:first-child {
|
2024-07-05 17:24:31 +00:00
|
|
|
border-radius: var( --border-radius-medium ) 0 0 0;
|
2022-11-28 03:30:34 +00:00
|
|
|
}
|
2021-03-08 17:12:27 +00:00
|
|
|
}
|
2022-11-28 03:30:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mw-mmv-reuse-pane {
|
|
|
|
padding: var( --space-md );
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-mmv-dialog-down-arrow {
|
|
|
|
bottom: @mmv-height-abovethefold + @mmv-button-size / 2;
|
|
|
|
}
|
2019-12-29 18:45:17 +00:00
|
|
|
|
2022-11-28 03:30:34 +00:00
|
|
|
.mw-mmv-dialog-warning {
|
|
|
|
padding: var( --space-md ) var( --space-xl );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* mmv.ui.download.dialog.less */
|
|
|
|
.mw-mmv-download-dialog {
|
|
|
|
bottom: @mmv-height-abovethefold;
|
|
|
|
|
|
|
|
.mw-mmv-download-size .oo-ui-optionWidget {
|
|
|
|
padding: var( --space-sm ) var( --space-md );
|
|
|
|
font-size: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-mmv-dialog-down-arrow {
|
|
|
|
bottom: @mmv-height-abovethefold + @mmv-button-size + @mmv-button-size / 2;
|
|
|
|
background-color: var( --color-surface-1 );
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-mmv-dialog-warning {
|
|
|
|
padding: var( --space-md ) var( --space-xl );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* mmv.ui.viewingOptions.less */
|
|
|
|
.mw-mmv-options-dialog {
|
|
|
|
top: 0;
|
|
|
|
padding: var( --space-md );
|
|
|
|
|
|
|
|
&.mw-mmv-enable-confirmation-shown {
|
2024-07-01 03:50:21 +00:00
|
|
|
background-color: var( --background-color-success-subtle );
|
2024-07-25 01:53:51 +00:00
|
|
|
box-shadow: var( --box-shadow-drop-xx-large );
|
2022-11-28 03:30:34 +00:00
|
|
|
|
|
|
|
// Hide arrow since those are notifications
|
|
|
|
.mw-mmv-dialog-down-arrow {
|
|
|
|
display: none;
|
2021-03-08 17:12:27 +00:00
|
|
|
}
|
2022-11-28 03:30:34 +00:00
|
|
|
}
|
2021-03-01 17:19:09 +00:00
|
|
|
|
2022-11-28 03:30:34 +00:00
|
|
|
&.mw-mmv-disable-confirmation-shown {
|
|
|
|
background-color: var( --color-surface-1 );
|
|
|
|
|
|
|
|
// Hide arrow since those are notifications
|
|
|
|
.mw-mmv-dialog-down-arrow {
|
|
|
|
display: none;
|
2021-03-08 17:12:27 +00:00
|
|
|
}
|
2022-11-28 03:30:34 +00:00
|
|
|
}
|
2021-03-01 17:19:09 +00:00
|
|
|
|
2022-11-28 03:30:34 +00:00
|
|
|
.mw-mmv-dialog-down-arrow {
|
|
|
|
top: @mmv-button-size + @mmv-button-size + @mmv-button-size / 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-mmv-disable-confirmation {
|
|
|
|
.mw-mmv-options-dialog-header {
|
2024-06-30 05:04:30 +00:00
|
|
|
color: var( --color-emphasized );
|
2021-03-01 20:42:19 +00:00
|
|
|
}
|
2021-03-01 17:19:09 +00:00
|
|
|
|
2022-11-28 03:30:34 +00:00
|
|
|
.mw-mmv-options-text-header {
|
2024-06-30 05:04:30 +00:00
|
|
|
color: var( --color-subtle );
|
2021-03-01 20:42:19 +00:00
|
|
|
}
|
2022-11-28 03:30:34 +00:00
|
|
|
}
|
2021-03-01 17:19:09 +00:00
|
|
|
|
2022-11-28 03:30:34 +00:00
|
|
|
.mw-mmv-enable-confirmation {
|
|
|
|
.mw-mmv-options-dialog-header {
|
2024-06-30 05:04:30 +00:00
|
|
|
color: var( --color-emphasized );
|
2021-03-08 17:12:27 +00:00
|
|
|
}
|
2021-03-01 17:19:09 +00:00
|
|
|
|
2022-11-28 03:30:34 +00:00
|
|
|
.mw-mmv-options-text-header {
|
2024-06-30 05:04:30 +00:00
|
|
|
color: var( --color-subtle );
|
2021-03-08 17:12:27 +00:00
|
|
|
}
|
2022-11-28 03:30:34 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-mmv-options-submit {
|
|
|
|
margin-top: var( --space-md );
|
|
|
|
}
|
|
|
|
|
|
|
|
// Just use flex layout
|
|
|
|
.mw-mmv-options-subcontainer {
|
|
|
|
display: flex;
|
|
|
|
gap: var( --space-sm );
|
2023-07-28 01:19:27 +00:00
|
|
|
margin-top: var( --space-md );
|
2022-11-28 03:30:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mw-mmv-options-subcontainer .mw-mmv-options-text {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-mmv-options-dialog-header {
|
|
|
|
margin: 0 0 var( --space-xs ) 0;
|
|
|
|
font-size: 1rem;
|
|
|
|
font-weight: var( --font-weight-semibold );
|
2024-06-30 05:04:30 +00:00
|
|
|
color: var( --color-emphasized );
|
2022-11-28 03:30:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mw-mmv-options-text-header {
|
2024-02-26 22:16:07 +00:00
|
|
|
font-size: var( --font-size-small );
|
2023-07-28 01:19:27 +00:00
|
|
|
color: var( --color-base );
|
2022-11-28 03:30:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mw-mmv-options-text-body {
|
|
|
|
margin-top: var( --space-xs );
|
2024-02-26 22:14:19 +00:00
|
|
|
font-size: var( --font-size-x-small );
|
2024-06-30 05:04:30 +00:00
|
|
|
color: var( --color-subtle );
|
2022-11-28 03:30:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mw-mmv-options-enable-alert {
|
|
|
|
position: unset;
|
|
|
|
padding: var( --space-sm ) var( --space-md );
|
|
|
|
margin: ~'calc( var(--space-md ) * -1)';
|
|
|
|
margin-bottom: var( --space-md );
|
2023-07-28 01:19:27 +00:00
|
|
|
font-weight: var( --font-weight-semibold );
|
2022-11-28 03:30:34 +00:00
|
|
|
background-color: var( --color-warning );
|
2024-07-05 17:24:31 +00:00
|
|
|
border-top-left-radius: var( --border-radius-medium );
|
|
|
|
border-top-right-radius: var( --border-radius-medium );
|
2022-11-28 03:30:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* mmv.ui.canvas.less */
|
|
|
|
.mw-mmv-image img {
|
2023-11-16 22:55:23 +00:00
|
|
|
@media ( max-width: @max-width-breakpoint-tablet ) {
|
2023-07-28 01:19:27 +00:00
|
|
|
pointer-events: none;
|
2022-11-28 03:30:34 +00:00
|
|
|
// It is frustrating to misclick the image on mobile
|
|
|
|
// So that the image is not clickable on mobile
|
|
|
|
cursor: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* mmv.ui.canvasButtons.less */
|
|
|
|
// Align icon with the rest of the skin
|
|
|
|
.mw-mmv-download-button,
|
|
|
|
.mw-mmv-reuse-button,
|
|
|
|
.mw-mmv-options-button,
|
|
|
|
.mw-mmv-close,
|
|
|
|
.mw-mmv-fullscreen,
|
|
|
|
.mw-mmv-next-image,
|
|
|
|
.mw-mmv-prev-image {
|
|
|
|
padding: 0;
|
|
|
|
background-size: var( --size-icon );
|
2024-07-05 17:24:31 +00:00
|
|
|
border-radius: var( --border-radius-base );
|
2022-11-28 03:30:34 +00:00
|
|
|
opacity: var( --opacity-icon-base );
|
|
|
|
|
|
|
|
&.mw-mmv-dialog-open,
|
|
|
|
&:hover {
|
2024-07-01 18:53:24 +00:00
|
|
|
background-color: rgba( 255, 255, 255, 0.04 );
|
2022-11-28 03:30:34 +00:00
|
|
|
opacity: var( --opacity-icon-base--hover );
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
2024-07-01 18:53:24 +00:00
|
|
|
background-color: rgba( 255, 255, 255, 0.08 );
|
2024-06-30 05:04:30 +00:00
|
|
|
opacity: var( --opacity-icon-base--selected );
|
2022-11-28 03:30:34 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-07-01 18:53:24 +00:00
|
|
|
// These icons have improper sizing in the source file
|
|
|
|
// Let's try to fix it
|
|
|
|
.mw-mmv-close,
|
|
|
|
.mw-mmv-fullscreen,
|
|
|
|
.mw-mmv-next-image,
|
|
|
|
.mw-mmv-prev-image {
|
|
|
|
--size-icon: 1rem;
|
|
|
|
}
|
|
|
|
|
2022-11-28 03:30:34 +00:00
|
|
|
.mw-mmv-download-button,
|
|
|
|
.mw-mmv-reuse-button,
|
|
|
|
.mw-mmv-options-button,
|
|
|
|
.mw-mmv-close,
|
|
|
|
.mw-mmv-fullscreen {
|
|
|
|
right: 8px !important;
|
|
|
|
width: @mmv-button-size !important;
|
|
|
|
height: @mmv-button-size !important;
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-mmv-close {
|
|
|
|
top: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-mmv-fullscreen {
|
|
|
|
top: 8px + @mmv-button-size;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-mmv-options-button {
|
|
|
|
top: 8px + @mmv-button-size * 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-mmv-reuse-button {
|
|
|
|
bottom: @mmv-height-abovethefold + 8px; // close to space-xs
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-mmv-download-button {
|
|
|
|
bottom: @mmv-button-size + @mmv-height-abovethefold + 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-mmv-prev-image {
|
|
|
|
left: 8px;
|
|
|
|
background-position: left 8px center;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
// Changing margin is expensive and we don't want to move the hover background
|
|
|
|
margin-left: 0;
|
|
|
|
background-position: left 4px center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-mmv-next-image {
|
|
|
|
right: 8px;
|
|
|
|
background-position: right 8px center;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
// Changing margin is expensive and we don't want to move the hover background
|
|
|
|
margin-right: 0;
|
|
|
|
background-position: right 4px center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Make it much bigger so it is easier to click
|
|
|
|
.mw-mmv-prev-image,
|
|
|
|
.mw-mmv-next-image {
|
|
|
|
top: 20vh !important;
|
2023-07-28 01:19:27 +00:00
|
|
|
z-index: 1002; // avoid covering other buttons
|
2022-11-28 03:30:34 +00:00
|
|
|
height: 50vh;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* mmv.ui.permission.less */
|
|
|
|
.mw-mmv-permission-box {
|
|
|
|
width: auto; // We use grid to align metadata so no need to hardcode
|
|
|
|
margin: var( --space-md ) 0 0 0;
|
|
|
|
background-color: var( --color-surface-2 ) !important; // Somehow there is an inline style overriding it
|
|
|
|
|
|
|
|
&.empty {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
h3 {
|
|
|
|
margin: 0;
|
2024-02-26 22:14:19 +00:00
|
|
|
font-size: var( --font-size-x-small );
|
2022-11-28 03:30:34 +00:00
|
|
|
font-weight: var( --font-weight-normal );
|
2024-06-30 05:04:30 +00:00
|
|
|
color: var( --color-subtle );
|
2022-11-28 03:30:34 +00:00
|
|
|
letter-spacing: 0.05em;
|
|
|
|
}
|
2021-03-01 17:19:09 +00:00
|
|
|
|
2022-11-28 03:30:34 +00:00
|
|
|
// Make button bigger and aligned
|
|
|
|
.mw-mmv-permission-close {
|
|
|
|
top: var( --space-xs );
|
|
|
|
right: var( --space-xs );
|
|
|
|
width: 2rem;
|
|
|
|
height: 2rem;
|
|
|
|
padding: var( --space-xs );
|
|
|
|
background-color: transparent;
|
|
|
|
background-repeat: no-repeat;
|
2023-07-28 01:19:27 +00:00
|
|
|
background-position: center;
|
2022-11-28 03:30:34 +00:00
|
|
|
background-size: 14px;
|
2023-07-28 01:19:27 +00:00
|
|
|
border: 0;
|
2024-07-05 17:24:31 +00:00
|
|
|
border-radius: var( --border-radius-base );
|
2022-11-28 03:30:34 +00:00
|
|
|
|
|
|
|
// Add hover state
|
|
|
|
&:hover {
|
2024-07-01 00:41:31 +00:00
|
|
|
background-color: var( --background-color-button-quiet--hover );
|
2021-03-01 20:42:19 +00:00
|
|
|
}
|
2021-03-01 17:19:09 +00:00
|
|
|
|
2022-11-28 03:30:34 +00:00
|
|
|
&:active {
|
2024-07-01 00:41:31 +00:00
|
|
|
background-color: var( --background-color-button-quiet--active );
|
2021-03-08 17:12:27 +00:00
|
|
|
}
|
2022-11-28 03:30:34 +00:00
|
|
|
}
|
2021-03-01 20:42:19 +00:00
|
|
|
|
2022-11-28 03:30:34 +00:00
|
|
|
.mw-mmv-permission-text {
|
|
|
|
.mw-mmv-permission-text-fader {
|
|
|
|
top: 2.7em;
|
|
|
|
background-image: linear-gradient( to bottom, rgba( 255, 255, 255, 0 ) 0%, var( --color-surface-1 ) 100% );
|
2021-03-01 17:19:09 +00:00
|
|
|
|
2022-11-28 03:30:34 +00:00
|
|
|
a {
|
|
|
|
padding-top: 2px;
|
2022-04-26 02:27:52 +00:00
|
|
|
background-color: var( --color-surface-1 );
|
2021-03-08 17:12:27 +00:00
|
|
|
}
|
|
|
|
}
|
2022-11-28 03:30:34 +00:00
|
|
|
}
|
2021-03-01 20:42:19 +00:00
|
|
|
|
2022-11-28 03:30:34 +00:00
|
|
|
.mw-mmv-permission-text,
|
|
|
|
.mw-mmv-permission-html {
|
|
|
|
margin: var( --space-xxs ) 0 0 0;
|
2024-02-26 22:14:19 +00:00
|
|
|
font-size: var( --font-size-x-small );
|
2022-11-28 03:30:34 +00:00
|
|
|
line-height: var( --line-height-sm );
|
2023-07-28 01:19:27 +00:00
|
|
|
color: var( --color-base );
|
2022-11-28 03:30:34 +00:00
|
|
|
}
|
2021-03-01 17:19:09 +00:00
|
|
|
|
2022-11-28 03:30:34 +00:00
|
|
|
.mw-mmv-permission-html {
|
|
|
|
padding: 0;
|
|
|
|
}
|
2021-03-08 17:12:27 +00:00
|
|
|
|
2022-11-28 03:30:34 +00:00
|
|
|
&.full-size {
|
|
|
|
.mw-mmv-permission-html {
|
|
|
|
border-top: 0;
|
2021-03-08 17:12:27 +00:00
|
|
|
}
|
2022-11-28 03:30:34 +00:00
|
|
|
}
|
|
|
|
}
|
2021-03-01 17:19:09 +00:00
|
|
|
|
2022-11-28 03:30:34 +00:00
|
|
|
/* mmv.ui.progressBar.less */
|
|
|
|
// Sync with citizen progress bar
|
|
|
|
.mw-mmv-progress {
|
|
|
|
top: -2px;
|
|
|
|
height: 2px;
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-mmv-progress-percent {
|
|
|
|
height: 2px;
|
2024-06-30 05:04:30 +00:00
|
|
|
background: linear-gradient( -45deg, transparent 33%, rgba( 0, 0, 0, 0.1 ) 33%, rgba( 0, 0, 0, 0.1 ) 66%, transparent 66% ), var( --color-progressive );
|
|
|
|
filter: drop-shadow( 0 0 16px var( --color-progressive ) );
|
2024-07-05 17:24:31 +00:00
|
|
|
border-top-right-radius: var( --border-radius-large );
|
|
|
|
border-bottom-right-radius: var( --border-radius-large );
|
2022-11-28 03:30:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* mmv.ui.stripeButtons.less */
|
|
|
|
.mw-mmv-stripe-button {
|
2024-07-01 18:53:24 +00:00
|
|
|
min-height: 32px !important;
|
|
|
|
max-height: 32px !important;
|
2024-02-26 22:16:07 +00:00
|
|
|
font-size: var( --font-size-small );
|
2022-11-28 03:30:34 +00:00
|
|
|
|
2024-07-01 18:53:24 +00:00
|
|
|
.mw-mmv-post-image:not( .mw-mmv-untruncated ) & {
|
|
|
|
background-color: transparent !important;
|
|
|
|
border-color: rgba( 255, 255, 255, 0.1 ) !important;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: rgba( 255, 255, 255, 0.04 ) !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
background-color: rgba( 255, 255, 255, 0.08 ) !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Icon alignment fixes */
|
|
|
|
&::before {
|
|
|
|
inset: unset !important;
|
|
|
|
width: 1rem !important;
|
|
|
|
height: 1rem !important;
|
|
|
|
margin: 0 var( --space-xs ) 0 0 !important;
|
|
|
|
}
|
|
|
|
|
2022-11-28 03:30:34 +00:00
|
|
|
// Icon only button for smaller screen size
|
2023-11-16 22:55:23 +00:00
|
|
|
@media ( max-width: @max-width-breakpoint-tablet ) {
|
2022-11-28 03:30:34 +00:00
|
|
|
text-indent: -9999px;
|
2021-03-01 17:19:09 +00:00
|
|
|
|
2024-07-01 18:53:24 +00:00
|
|
|
&::before,
|
|
|
|
> .cdx-button__icon {
|
2022-11-28 03:30:34 +00:00
|
|
|
margin-right: 0 !important;
|
2021-03-08 17:12:27 +00:00
|
|
|
}
|
2022-11-28 03:30:34 +00:00
|
|
|
}
|
2021-03-01 20:42:19 +00:00
|
|
|
|
2022-11-28 03:30:34 +00:00
|
|
|
&.mw-mmv-description-page-button,
|
|
|
|
&.mw-mmv-description-page-button:active,
|
|
|
|
&.mw-mmv-description-page-button:visited {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2023-07-28 01:19:27 +00:00
|
|
|
float: none;
|
|
|
|
min-width: auto;
|
|
|
|
max-width: none;
|
2022-11-28 03:30:34 +00:00
|
|
|
padding: 0 var( --space-sm );
|
|
|
|
margin: var( --space-md );
|
2024-02-26 22:16:07 +00:00
|
|
|
font-size: var( --font-size-small );
|
2022-11-28 03:30:34 +00:00
|
|
|
white-space: nowrap;
|
2024-07-05 17:24:31 +00:00
|
|
|
border-radius: var( --border-radius-base );
|
2022-11-28 03:30:34 +00:00
|
|
|
}
|
|
|
|
}
|
2021-03-08 17:12:27 +00:00
|
|
|
|
2022-11-28 03:30:34 +00:00
|
|
|
/* mmv.ui.truncatableTextField.less */
|
|
|
|
// TODO: Revisit later
|
2021-03-08 17:12:27 +00:00
|
|
|
|
2022-11-28 03:30:34 +00:00
|
|
|
/* mmv.ui.metadataPanel.less */
|
|
|
|
.mw-mmv-info-box {
|
|
|
|
padding: var( --space-md );
|
2023-07-28 01:19:27 +00:00
|
|
|
background-color: var( --color-surface-2 );
|
2022-11-28 03:30:34 +00:00
|
|
|
border: 0;
|
2024-07-05 17:24:31 +00:00
|
|
|
border-radius: var( --border-radius-medium );
|
2022-11-28 03:30:34 +00:00
|
|
|
}
|
2021-03-08 17:12:27 +00:00
|
|
|
|
2022-11-28 03:30:34 +00:00
|
|
|
.mw-mmv-title-para {
|
|
|
|
flex-grow: 1;
|
|
|
|
order: -1; // Reorder because we use flex in container
|
2023-07-28 01:19:27 +00:00
|
|
|
// Changing height and line-height like the origina causes reflow
|
|
|
|
height: auto;
|
2022-11-28 03:30:34 +00:00
|
|
|
padding: 0;
|
|
|
|
margin: var( --space-xl ) var( --space-md ) var( --space-md ) var( --space-md );
|
2023-07-28 01:19:27 +00:00
|
|
|
overflow: hidden;
|
2022-11-28 03:30:34 +00:00
|
|
|
line-height: var( --line-height-sm );
|
|
|
|
// Enforce single line
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
|
|
// Reset when expanded
|
|
|
|
.mw-mmv-untruncated & {
|
|
|
|
white-space: normal;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.mw-mmv-title-smaller {
|
|
|
|
padding: 0;
|
|
|
|
margin: var( --space-md );
|
|
|
|
}
|
|
|
|
|
|
|
|
// Enforce consistent sizing
|
|
|
|
&.mw-mmv-ttf-normal,
|
|
|
|
&.mw-mmv-title-small,
|
|
|
|
&.mw-mmv-title-smaller {
|
|
|
|
font-size: 1rem;
|
|
|
|
|
2023-11-16 22:55:23 +00:00
|
|
|
@media ( max-width: @max-width-breakpoint-tablet ) {
|
2024-02-26 22:16:07 +00:00
|
|
|
font-size: var( --font-size-small );
|
2021-03-08 17:12:27 +00:00
|
|
|
}
|
2022-11-28 03:30:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mw-mmv-ttf-ellipsis {
|
|
|
|
// Never need to use it anyways
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
}
|
2021-03-01 20:42:19 +00:00
|
|
|
|
2022-11-28 03:30:34 +00:00
|
|
|
.mw-mmv-credit {
|
2024-07-01 19:47:28 +00:00
|
|
|
height: ~'calc( 1em * var( --line-height-xs ) )';
|
2022-11-28 03:30:34 +00:00
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
2024-02-26 22:16:07 +00:00
|
|
|
font-size: var( --font-size-small );
|
2024-07-01 19:47:28 +00:00
|
|
|
color: #999;
|
2024-07-01 18:53:24 +00:00
|
|
|
|
|
|
|
.mw-mmv-untruncated & {
|
|
|
|
color: var( --color-subtle );
|
|
|
|
}
|
2022-11-28 03:30:34 +00:00
|
|
|
|
2023-11-16 22:55:23 +00:00
|
|
|
@media ( max-width: @max-width-breakpoint-tablet ) {
|
2024-02-26 22:14:19 +00:00
|
|
|
font-size: var( --font-size-x-small );
|
2022-11-28 03:30:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mw-mmv-ttf-ellipsis {
|
|
|
|
// Never need to use it anyways
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-mmv-source-author {
|
|
|
|
line-height: var( --line-height-xs );
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-mmv-title {
|
|
|
|
.mw-mmv-untruncated & {
|
2024-06-30 05:04:30 +00:00
|
|
|
color: var( --color-emphasized );
|
2022-11-28 03:30:34 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-mmv-image-metadata {
|
|
|
|
// Use grid instead
|
|
|
|
display: grid;
|
2023-07-28 01:19:27 +00:00
|
|
|
grid-template-areas:
|
|
|
|
'desc links'
|
|
|
|
'about about';
|
|
|
|
grid-template-columns: 2fr 1fr;
|
2024-07-01 19:49:29 +00:00
|
|
|
gap: var( --space-md ) var( --space-xl );
|
2022-11-28 03:30:34 +00:00
|
|
|
width: auto;
|
2024-07-01 18:53:24 +00:00
|
|
|
padding: 0 var( --space-md );
|
2022-11-28 03:30:34 +00:00
|
|
|
margin-top: -4px;
|
|
|
|
// Sync with title
|
|
|
|
background-color: #000;
|
2023-07-28 01:19:27 +00:00
|
|
|
border-top: 0;
|
2022-11-28 03:30:34 +00:00
|
|
|
|
|
|
|
.mw-mmv-untruncated & {
|
2023-07-28 01:19:27 +00:00
|
|
|
background-color: transparent;
|
2022-11-28 03:30:34 +00:00
|
|
|
|
2023-11-16 22:55:23 +00:00
|
|
|
@media ( max-width: @max-width-breakpoint-tablet ) {
|
2023-07-20 22:18:16 +00:00
|
|
|
grid-template-areas:
|
|
|
|
'desc desc'
|
2022-11-28 03:30:34 +00:00
|
|
|
'links links'
|
|
|
|
'about about';
|
2021-03-08 17:12:27 +00:00
|
|
|
}
|
2022-11-28 03:30:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Reset hardcoded styles for grid
|
|
|
|
&-column {
|
2023-07-28 01:19:27 +00:00
|
|
|
float: none !important;
|
2022-11-28 03:30:34 +00:00
|
|
|
width: auto !important;
|
|
|
|
max-width: none !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-desc-column {
|
|
|
|
grid-area: desc;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-links-column {
|
|
|
|
grid-area: links;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-mmv-image-desc {
|
|
|
|
padding: 0;
|
2024-02-26 22:16:07 +00:00
|
|
|
font-size: var( --font-size-small );
|
2023-07-28 01:19:27 +00:00
|
|
|
color: inherit;
|
2022-11-28 03:30:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mw-mmv-image-links {
|
|
|
|
margin: 0;
|
|
|
|
|
|
|
|
li {
|
2024-02-26 22:16:07 +00:00
|
|
|
font-size: var( --font-size-small );
|
2021-03-08 17:12:27 +00:00
|
|
|
|
2023-11-16 22:55:23 +00:00
|
|
|
@media ( max-width: @max-width-breakpoint-tablet ) {
|
2024-02-26 22:14:19 +00:00
|
|
|
font-size: var( --font-size-x-small );
|
2021-03-08 17:12:27 +00:00
|
|
|
}
|
|
|
|
|
2022-11-28 03:30:34 +00:00
|
|
|
+ li {
|
|
|
|
margin-top: var( --space-xs );
|
2021-03-01 17:19:09 +00:00
|
|
|
}
|
2021-03-08 17:59:18 +00:00
|
|
|
|
2022-11-28 03:30:34 +00:00
|
|
|
// Reset hardcoded styles
|
|
|
|
.metadata-panel-is-closed &.mw-mmv-license-li {
|
|
|
|
height: auto;
|
|
|
|
line-height: var( --line-height-xs );
|
2021-03-08 17:59:18 +00:00
|
|
|
}
|
2021-03-01 17:19:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-07-01 19:47:28 +00:00
|
|
|
.mw-mmv-image-desc-div,
|
|
|
|
.mw-mmv-image-links-div {
|
|
|
|
display: block; /* Take full width */
|
|
|
|
}
|
|
|
|
|
2022-11-28 03:30:34 +00:00
|
|
|
.mw-mmv-image-desc-div {
|
2024-07-01 19:49:29 +00:00
|
|
|
margin-top: var( --space-md );
|
2022-11-28 03:30:34 +00:00
|
|
|
margin-bottom: 0;
|
2024-07-15 06:07:25 +00:00
|
|
|
border-top: var( --border-width-base ) solid var( --border-color-base );
|
2022-11-28 03:30:34 +00:00
|
|
|
}
|
2021-03-08 18:32:30 +00:00
|
|
|
|
2022-11-28 03:30:34 +00:00
|
|
|
.mw-mmv-about-links {
|
2023-07-28 01:19:27 +00:00
|
|
|
grid-area: about;
|
2024-07-01 18:53:24 +00:00
|
|
|
width: auto;
|
|
|
|
padding: var( --space-md ) 0;
|
2024-02-26 22:16:07 +00:00
|
|
|
font-size: var( --font-size-small );
|
2024-07-15 06:07:25 +00:00
|
|
|
border-top: var( --border-width-base ) solid var( --border-color-base );
|
2022-11-28 03:30:34 +00:00
|
|
|
}
|
2021-03-01 20:42:19 +00:00
|
|
|
|
2022-11-28 03:30:34 +00:00
|
|
|
.mw-mmv-label {
|
2024-02-26 22:14:19 +00:00
|
|
|
font-size: var( --font-size-x-small );
|
2023-07-28 01:19:27 +00:00
|
|
|
color: var( --color-base );
|
|
|
|
background-color: var( --color-surface-3 );
|
2022-11-28 03:30:34 +00:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: var( --color-surface-2--hover );
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
background-color: var( --color-surface-2--active );
|
2019-12-29 18:45:17 +00:00
|
|
|
}
|
|
|
|
}
|
2022-11-28 03:30:34 +00:00
|
|
|
|
|
|
|
/* mmv.ui.metadataPanelScroller.less */
|
|
|
|
|
|
|
|
/* mmv.lightboxinterface.less */
|
|
|
|
.mw-mmv-image-wrapper {
|
|
|
|
bottom: @mmv-height-abovethefold;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Only apply background color when scroll up
|
|
|
|
.mw-mmv-post-image {
|
|
|
|
min-height: @mmv-height-abovethefold;
|
2024-06-10 23:47:49 +00:00
|
|
|
color: var( --color-inverted-fixed );
|
2022-11-28 03:30:34 +00:00
|
|
|
background-color: transparent;
|
2024-07-05 17:24:31 +00:00
|
|
|
border-top-left-radius: var( --border-radius-large );
|
|
|
|
border-top-right-radius: var( --border-radius-large );
|
2022-11-28 03:30:34 +00:00
|
|
|
|
|
|
|
&.mw-mmv-untruncated {
|
2023-07-28 01:19:27 +00:00
|
|
|
color: var( --color-base );
|
2022-11-28 03:30:34 +00:00
|
|
|
background-color: var( --color-surface-1 );
|
|
|
|
box-shadow: none; // We already have top border
|
|
|
|
}
|
2022-11-28 23:54:14 +00:00
|
|
|
|
|
|
|
// Add scroll up affordance
|
|
|
|
// On touch device, when user drag/swipe the indicator, it will cause the
|
|
|
|
// page to scroll up and show the card below.
|
|
|
|
@media ( hover: none ) {
|
2023-02-28 21:59:36 +00:00
|
|
|
&::before {
|
2022-11-28 23:54:14 +00:00
|
|
|
position: absolute;
|
|
|
|
top: var( --space-xs );
|
|
|
|
right: 0;
|
|
|
|
left: 0;
|
2022-12-02 20:14:33 +00:00
|
|
|
width: 40px;
|
2022-11-28 23:54:14 +00:00
|
|
|
height: 4px;
|
|
|
|
margin: 0 auto;
|
|
|
|
content: '';
|
2023-07-28 01:19:27 +00:00
|
|
|
background-color: ~'rgba( 255, 255, 255, var( --opacity-icon-base ) )';
|
2024-07-05 17:24:31 +00:00
|
|
|
border-radius: var( --border-radius-pill );
|
2022-11-28 23:54:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.mw-mmv-untruncated {
|
|
|
|
// Since background color is dependent on theme now
|
2023-02-28 21:59:36 +00:00
|
|
|
&::before {
|
2024-04-19 19:14:18 +00:00
|
|
|
background-color: var( --border-color-interactive );
|
2022-11-28 23:54:14 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-11-28 03:30:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mw-mmv-above-fold {
|
|
|
|
display: flex; // let's use flex instead of float
|
2023-07-28 01:19:27 +00:00
|
|
|
gap: var( --space-xs );
|
2022-11-28 03:30:34 +00:00
|
|
|
height: auto; // avoid layout shift when scroll up
|
|
|
|
padding-bottom: 0; // let metadata handle the padding
|
|
|
|
}
|