2019-12-29 18:45:17 +00:00
|
|
|
/*
|
2021-08-31 17:03:41 +00:00
|
|
|
* Citizen
|
|
|
|
*
|
|
|
|
* SkinStyles for Extension:Popups
|
|
|
|
* Module: ext.popups.main
|
2022-11-29 03:04:07 +00:00
|
|
|
* Version: REL1_39 a40ebc1
|
2021-08-31 17:03:41 +00:00
|
|
|
*
|
2024-10-05 19:22:19 +00:00
|
|
|
* Date: 2024-10-05
|
2019-12-29 18:45:17 +00:00
|
|
|
*/
|
|
|
|
|
2022-11-29 17:51:54 +00:00
|
|
|
@import '../../../resources/variables.less';
|
|
|
|
|
2024-06-14 16:54:07 +00:00
|
|
|
.popups-icon {
|
|
|
|
filter: var( --filter-invert );
|
|
|
|
}
|
|
|
|
|
2022-11-29 03:04:07 +00:00
|
|
|
/* popup.less */
|
2019-12-29 18:45:17 +00:00
|
|
|
.mwe-popups {
|
2022-11-29 03:04:07 +00:00
|
|
|
background: var( --color-surface-1 );
|
2024-10-05 19:22:19 +00:00
|
|
|
border: 1px solid var( --border-color-base );
|
|
|
|
border-radius: var( --border-radius-medium );
|
2024-07-25 01:53:51 +00:00
|
|
|
box-shadow: var( --box-shadow-drop-xx-large );
|
2019-12-29 18:45:17 +00:00
|
|
|
|
2024-10-05 19:22:19 +00:00
|
|
|
&.mwe-popups-is-not-tall {
|
|
|
|
.mwe-popups-extract {
|
|
|
|
min-height: auto;
|
|
|
|
margin-bottom: 16px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Add hover state to page type cards
|
|
|
|
&.mwe-popups-type-page:hover {
|
|
|
|
background: var( --color-surface-2 );
|
|
|
|
}
|
|
|
|
|
2022-11-29 03:04:07 +00:00
|
|
|
.mwe-popups-container {
|
|
|
|
color: var( --color-base );
|
2024-10-05 19:22:19 +00:00
|
|
|
|
|
|
|
// Hide footer
|
|
|
|
footer {
|
|
|
|
display: none;
|
|
|
|
}
|
2021-09-02 15:47:04 +00:00
|
|
|
}
|
|
|
|
|
2022-11-29 03:04:07 +00:00
|
|
|
.mwe-popups-settings-icon {
|
2024-07-05 17:24:31 +00:00
|
|
|
border-radius: var( --border-radius-base );
|
2022-11-29 03:04:07 +00:00
|
|
|
opacity: var( --opacity-icon-base );
|
2021-09-02 15:47:04 +00:00
|
|
|
|
2022-11-29 03:04:07 +00:00
|
|
|
&:hover {
|
2024-07-01 00:41:31 +00:00
|
|
|
background-color: var( --background-color-button-quiet--hover );
|
2022-11-29 03:04:07 +00:00
|
|
|
opacity: var( --opacity-icon-base--hover );
|
2021-09-02 15:47:04 +00:00
|
|
|
}
|
|
|
|
|
2022-11-29 03:04:07 +00:00
|
|
|
&:active {
|
2024-07-01 00:41:31 +00:00
|
|
|
background-color: var( --background-color-button-quiet--active );
|
2024-06-30 05:04:30 +00:00
|
|
|
opacity: var( --opacity-icon-base--selected );
|
2021-08-31 17:03:41 +00:00
|
|
|
}
|
2021-01-29 16:17:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mwe-popups-extract {
|
|
|
|
color: var( --color-base );
|
|
|
|
|
2023-02-28 21:59:36 +00:00
|
|
|
&[ dir='ltr' ]::after {
|
2021-01-29 17:45:01 +00:00
|
|
|
/* @noflip */
|
2021-08-31 17:03:41 +00:00
|
|
|
background-image: linear-gradient( to right, transparent, var( --color-surface-1 ) 50% );
|
2021-01-29 17:45:01 +00:00
|
|
|
}
|
2021-01-29 16:17:10 +00:00
|
|
|
|
2023-02-28 21:59:36 +00:00
|
|
|
&[ dir='rtl' ]::after {
|
2021-01-29 17:45:01 +00:00
|
|
|
/* @noflip */
|
2021-08-31 17:03:41 +00:00
|
|
|
background-image: linear-gradient( to left, transparent, var( --color-surface-1 ) 50% );
|
2021-01-29 17:45:01 +00:00
|
|
|
}
|
2019-12-29 18:45:17 +00:00
|
|
|
|
2023-02-28 21:59:36 +00:00
|
|
|
blockquote::after {
|
2022-11-29 03:04:07 +00:00
|
|
|
/* @noflip */
|
|
|
|
background-image: linear-gradient( to bottom, transparent, var( --color-surface-1 ) 75% );
|
2019-12-29 18:45:17 +00:00
|
|
|
}
|
|
|
|
|
2022-11-29 03:04:07 +00:00
|
|
|
&.mwe-popups-type-generic,
|
|
|
|
&.mwe-popups-type-disambiguation {
|
|
|
|
.mwe-popups-read-link {
|
2024-10-23 21:34:41 +00:00
|
|
|
font-weight: var( --font-weight-semi-bold );
|
2022-11-29 03:04:07 +00:00
|
|
|
}
|
2021-01-29 16:17:10 +00:00
|
|
|
}
|
|
|
|
|
2022-11-29 03:04:07 +00:00
|
|
|
&.mwe-popups-no-image-pointer {
|
2023-02-28 21:59:36 +00:00
|
|
|
&::before {
|
2022-11-29 03:04:07 +00:00
|
|
|
border-bottom-color: var( --border-color-base );
|
|
|
|
}
|
2019-12-29 18:45:17 +00:00
|
|
|
|
2023-02-28 21:59:36 +00:00
|
|
|
&::after {
|
2022-11-29 03:04:07 +00:00
|
|
|
border-bottom-color: var( --color-surface-1 );
|
|
|
|
}
|
2019-12-29 18:45:17 +00:00
|
|
|
}
|
2020-05-17 23:40:16 +00:00
|
|
|
|
2022-11-29 03:04:07 +00:00
|
|
|
&.mwe-popups-image-pointer {
|
2023-02-28 21:59:36 +00:00
|
|
|
&::before {
|
2021-08-31 17:03:41 +00:00
|
|
|
border-bottom-color: var( --border-color-base );
|
2020-05-17 23:39:43 +00:00
|
|
|
}
|
|
|
|
|
2023-02-28 21:59:36 +00:00
|
|
|
&::after {
|
2021-08-31 17:03:41 +00:00
|
|
|
border-bottom-color: var( --color-surface-1 );
|
2020-05-17 23:39:43 +00:00
|
|
|
}
|
2020-05-17 23:40:16 +00:00
|
|
|
|
2022-11-29 03:04:07 +00:00
|
|
|
&.flipped-x {
|
2023-02-28 21:59:36 +00:00
|
|
|
&::before {
|
2022-11-29 03:04:07 +00:00
|
|
|
border-bottom-color: var( --border-color-base );
|
|
|
|
}
|
2020-05-17 23:40:16 +00:00
|
|
|
|
2023-02-28 21:59:36 +00:00
|
|
|
&::after {
|
2022-11-29 03:04:07 +00:00
|
|
|
border-bottom-color: var( --color-surface-1 );
|
|
|
|
}
|
|
|
|
}
|
2020-05-17 23:39:43 +00:00
|
|
|
}
|
2020-05-17 23:40:16 +00:00
|
|
|
|
2022-11-29 03:04:07 +00:00
|
|
|
&.flipped-x.mwe-popups-is-tall {
|
2023-02-28 21:59:36 +00:00
|
|
|
&::before {
|
2022-11-29 03:04:07 +00:00
|
|
|
border-bottom-color: var( --border-color-base );
|
|
|
|
}
|
2021-01-29 16:17:10 +00:00
|
|
|
}
|
2019-12-30 10:14:11 +00:00
|
|
|
|
2022-11-29 03:04:07 +00:00
|
|
|
&.flipped-x-y {
|
2023-02-28 21:59:36 +00:00
|
|
|
&::before {
|
2022-11-29 03:04:07 +00:00
|
|
|
border-top-color: var( --border-color-base );
|
|
|
|
}
|
|
|
|
|
2023-02-28 21:59:36 +00:00
|
|
|
&::after {
|
2021-08-31 17:03:41 +00:00
|
|
|
border-top-color: var( --color-surface-1 );
|
2020-05-17 23:39:43 +00:00
|
|
|
}
|
2020-05-17 23:40:16 +00:00
|
|
|
|
2022-11-29 03:04:07 +00:00
|
|
|
&.mwe-popups-is-tall {
|
2023-02-28 21:59:36 +00:00
|
|
|
&::before {
|
2022-11-29 03:04:07 +00:00
|
|
|
border-top-color: var( --border-color-base );
|
|
|
|
}
|
|
|
|
|
2023-02-28 21:59:36 +00:00
|
|
|
&::after {
|
2022-11-29 03:04:07 +00:00
|
|
|
border-top-color: var( --color-surface-1 );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.flipped-y {
|
2023-02-28 21:59:36 +00:00
|
|
|
&::before {
|
2021-08-31 17:03:41 +00:00
|
|
|
border-top-color: var( --border-color-base );
|
2020-05-17 23:39:43 +00:00
|
|
|
}
|
2020-05-17 23:40:16 +00:00
|
|
|
|
2023-02-28 21:59:36 +00:00
|
|
|
&::after {
|
2022-11-29 03:04:07 +00:00
|
|
|
border-top-color: var( --color-surface-1 );
|
|
|
|
}
|
2021-01-29 16:17:10 +00:00
|
|
|
}
|
2022-11-29 03:04:07 +00:00
|
|
|
}
|
2019-12-30 10:14:11 +00:00
|
|
|
|
2022-11-29 03:04:07 +00:00
|
|
|
/* preview.less */
|
|
|
|
.mwe-popups-title {
|
2024-10-23 21:34:41 +00:00
|
|
|
font-weight: var( --font-weight-semi-bold );
|
2019-12-29 18:45:17 +00:00
|
|
|
}
|
2021-03-07 18:40:35 +00:00
|
|
|
|
|
|
|
/* referencePreview.less */
|
|
|
|
&.mwe-popups-type-reference {
|
|
|
|
.mwe-popups-extract {
|
|
|
|
.mwe-popups-fade {
|
2021-08-31 17:03:41 +00:00
|
|
|
background-image: linear-gradient( transparent, var( --color-surface-1 ) );
|
2021-03-07 18:40:35 +00:00
|
|
|
}
|
2022-11-29 03:04:07 +00:00
|
|
|
}
|
2021-03-07 18:40:35 +00:00
|
|
|
|
2022-11-29 03:04:07 +00:00
|
|
|
.mwe-collapsible-placeholder {
|
2024-10-23 21:34:41 +00:00
|
|
|
font-weight: var( --font-weight-semi-bold );
|
2021-03-07 18:40:35 +00:00
|
|
|
}
|
|
|
|
}
|
2022-11-29 03:04:07 +00:00
|
|
|
}
|
2021-09-02 15:47:04 +00:00
|
|
|
|
2022-11-29 03:04:07 +00:00
|
|
|
@supports ( clip-path: polygon( 1px 1px ) ) {
|
|
|
|
.mwe-popups {
|
|
|
|
.mwe-popups-container {
|
2024-10-05 19:22:19 +00:00
|
|
|
background: inherit;
|
2022-11-29 03:04:07 +00:00
|
|
|
// FIXME: Come up with a clip path that works with increased border radius
|
|
|
|
// Popups is using polygon to clip the card
|
|
|
|
// So the thumbnail corner would look weird if we adjust the border radius
|
2024-07-05 17:24:31 +00:00
|
|
|
// --pseudo-radius: var( --border-radius-medium );
|
2021-09-02 15:47:04 +00:00
|
|
|
}
|
|
|
|
}
|
2024-10-05 19:22:19 +00:00
|
|
|
|
|
|
|
// Fix inconsistent pointer height in older MW versions
|
|
|
|
.mwe-popups.flipped-y .mwe-popups-container,
|
|
|
|
.mwe-popups.flipped-x-y .mwe-popups-container {
|
|
|
|
padding-bottom: var( --pointer-height );
|
|
|
|
margin-bottom: ~'calc( var(--pointer-height) * -1 )';
|
|
|
|
}
|
2022-11-29 03:04:07 +00:00
|
|
|
}
|
2022-05-03 01:32:12 +00:00
|
|
|
|
2022-11-29 03:04:07 +00:00
|
|
|
/* settingsDialog.less */
|
|
|
|
#mwe-popups-settings {
|
2023-07-28 01:19:27 +00:00
|
|
|
background: var( --color-surface-1 );
|
2022-11-29 03:04:07 +00:00
|
|
|
border-color: var( --border-color-base );
|
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-29 03:04:07 +00:00
|
|
|
|
|
|
|
header {
|
|
|
|
border-bottom-color: var( --border-color-base );
|
|
|
|
|
|
|
|
h1 {
|
|
|
|
font-family: var( --font-family-base );
|
2024-10-23 21:34:41 +00:00
|
|
|
font-weight: var( --font-weight-semi-bold );
|
2022-11-29 03:04:07 +00:00
|
|
|
}
|
2022-05-03 01:32:12 +00:00
|
|
|
}
|
|
|
|
|
2022-11-29 03:04:07 +00:00
|
|
|
.mwe-ui-icon-popups-close {
|
|
|
|
opacity: var( --opacity-icon-base );
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
opacity: var( --opacity-icon-base--hover );
|
2022-05-03 01:32:12 +00:00
|
|
|
}
|
|
|
|
|
2022-11-29 03:04:07 +00:00
|
|
|
&:active {
|
2024-06-30 05:04:30 +00:00
|
|
|
opacity: var( --opacity-icon-base--selected );
|
2022-11-29 03:04:07 +00:00
|
|
|
}
|
|
|
|
}
|
2022-05-03 01:32:12 +00:00
|
|
|
|
2022-11-29 03:04:07 +00:00
|
|
|
main#mwe-popups-settings-form {
|
|
|
|
p {
|
2024-06-30 05:04:30 +00:00
|
|
|
color: var( --color-subtle );
|
2022-11-29 03:04:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
form {
|
|
|
|
label {
|
|
|
|
> span {
|
2024-10-23 21:34:41 +00:00
|
|
|
font-weight: var( --font-weight-semi-bold );
|
2024-06-30 05:04:30 +00:00
|
|
|
color: var( --color-emphasized );
|
2022-05-03 01:32:12 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-11-29 03:04:07 +00:00
|
|
|
/* settingsDialogRenderer.less */
|
|
|
|
.mwe-popups-overlay {
|
2024-07-01 00:41:31 +00:00
|
|
|
background-color: var( --background-color-backdrop-light );
|
2019-12-29 18:45:17 +00:00
|
|
|
}
|
2022-11-29 17:51:54 +00:00
|
|
|
|
|
|
|
// Responsive support
|
2023-11-16 22:55:23 +00:00
|
|
|
@media ( max-width: @max-width-breakpoint-tablet ) {
|
2022-11-29 17:51:54 +00:00
|
|
|
.mwe-popups {
|
|
|
|
position: fixed;
|
2023-07-28 01:19:27 +00:00
|
|
|
inset: auto 0 0 0 !important;
|
2022-11-29 17:51:54 +00:00
|
|
|
width: auto !important;
|
2023-07-28 01:19:27 +00:00
|
|
|
overflow: hidden; // Hide pointer and also rounded corners
|
2024-07-05 17:24:31 +00:00
|
|
|
border-radius: var( --border-radius-medium ) var( --border-radius-medium ) 0 0;
|
2022-11-29 17:51:54 +00:00
|
|
|
|
|
|
|
// Top aligned cards
|
|
|
|
&.flipped-x-y,
|
|
|
|
&.flipped-y {
|
|
|
|
top: 0 !important;
|
|
|
|
bottom: auto !important;
|
2024-07-05 17:24:31 +00:00
|
|
|
border-radius: 0 0 var( --border-radius-medium ) var( --border-radius-medium );
|
2022-11-29 17:51:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mwe-popups-container {
|
|
|
|
margin-bottom: 0 !important; // cancel negative margin as we have no pointers
|
|
|
|
}
|
|
|
|
|
|
|
|
// Vertical card
|
|
|
|
&.mwe-popups-is-not-tall {
|
|
|
|
.mwe-popups-thumbnail {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mwe-popups-extract {
|
|
|
|
min-height: auto;
|
|
|
|
max-height: 58px;
|
|
|
|
margin-bottom: var( --space-xl );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|