2023-03-29 21:04:02 +00:00
|
|
|
@import 'mediawiki.skin.variables.less';
|
2024-01-03 01:00:34 +00:00
|
|
|
@import '../../src/ui/variables.less';
|
2023-03-29 21:04:02 +00:00
|
|
|
|
2024-01-03 01:00:34 +00:00
|
|
|
.popups-icon--reference-generic {
|
|
|
|
.cdx-mixin-css-icon( @cdx-icon-reference );
|
|
|
|
}
|
|
|
|
|
|
|
|
.popups-icon--reference-book {
|
|
|
|
.cdx-mixin-css-icon( @cdx-icon-book );
|
|
|
|
}
|
|
|
|
|
|
|
|
.popups-icon--reference-journal {
|
|
|
|
.cdx-mixin-css-icon( @cdx-icon-journal );
|
|
|
|
}
|
|
|
|
|
|
|
|
.popups-icon--reference-news {
|
|
|
|
.cdx-mixin-css-icon( @cdx-icon-newspaper );
|
|
|
|
}
|
|
|
|
|
|
|
|
.popups-icon--reference-web {
|
|
|
|
.cdx-mixin-css-icon( @cdx-icon-browser );
|
|
|
|
}
|
|
|
|
|
|
|
|
.popups-icon--preview-disambiguation {
|
|
|
|
.cdx-mixin-css-icon( @cdx-icon-articles );
|
|
|
|
}
|
|
|
|
|
|
|
|
// Don't do any event bubbling on childs like <a><span>[</span>2]</a>
|
|
|
|
// see https://phabricator.wikimedia.org/T214693
|
2019-05-09 11:23:45 +00:00
|
|
|
#mw-content-text .reference a[ href*='#' ] * {
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
2024-01-03 01:00:34 +00:00
|
|
|
.mwe-popups.mwe-popups-type-reference .mwe-popups-container {
|
2023-09-01 16:24:11 +00:00
|
|
|
.mwe-popups-title .popups-icon--reference-note {
|
2021-02-17 09:50:54 +00:00
|
|
|
// There is currently no "reference-note" icon specified in extension.json
|
2023-08-15 18:19:56 +00:00
|
|
|
display: none;
|
2021-02-17 09:50:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mwe-popups-extract {
|
|
|
|
margin-right: 0;
|
|
|
|
max-height: inherit;
|
2020-10-27 13:24:40 +00:00
|
|
|
.mwe-popups-scroll {
|
2024-01-03 01:00:34 +00:00
|
|
|
// This is how the @previewFooterHeight in popup.less is calculated
|
|
|
|
@marginBottom: @popupPadding + 34px;
|
|
|
|
// Same as @previewPointerHeight in popup.less
|
2021-02-17 10:12:28 +00:00
|
|
|
@pointerHeight: 8px;
|
2024-01-03 01:00:34 +00:00
|
|
|
max-height: 401px - @popupPadding - @marginBottom + @pointerHeight;
|
2020-10-27 13:24:40 +00:00
|
|
|
overflow: auto;
|
|
|
|
padding-right: @popupPadding;
|
|
|
|
}
|
2019-02-07 14:56:53 +00:00
|
|
|
|
2020-10-30 15:05:41 +00:00
|
|
|
.mw-parser-output {
|
|
|
|
overflow-wrap: break-word;
|
|
|
|
}
|
|
|
|
|
2019-05-09 11:16:33 +00:00
|
|
|
// Remove the default fade-out effect set by popup.less
|
2023-03-28 20:06:56 +00:00
|
|
|
&::after {
|
2019-05-09 11:16:33 +00:00
|
|
|
display: none;
|
2019-04-26 11:35:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mwe-popups-fade {
|
|
|
|
position: absolute;
|
2019-02-28 17:50:36 +00:00
|
|
|
width: 100%;
|
2019-04-26 11:35:27 +00:00
|
|
|
height: @lineHeight;
|
2019-02-28 17:50:36 +00:00
|
|
|
background-color: transparent;
|
|
|
|
background-image: linear-gradient( rgba( 255, 255, 255, 0 ), rgba( 255, 255, 255, 1 ) );
|
2019-04-26 11:35:27 +00:00
|
|
|
opacity: 0;
|
|
|
|
pointer-events: none; // Allows clicking "through" the element
|
2023-02-03 17:44:28 +00:00
|
|
|
transition: opacity 250ms ease;
|
2019-02-28 17:50:36 +00:00
|
|
|
}
|
|
|
|
|
2019-04-26 11:35:27 +00:00
|
|
|
&.mwe-popups-fade-out .mwe-popups-fade {
|
|
|
|
opacity: 1;
|
2019-02-28 17:50:36 +00:00
|
|
|
}
|
2021-02-17 09:50:54 +00:00
|
|
|
}
|
|
|
|
.mwe-collapsible-placeholder {
|
|
|
|
font-weight: bold;
|
|
|
|
margin: 1em 0;
|
|
|
|
position: relative;
|
2019-02-07 14:56:53 +00:00
|
|
|
}
|
2018-12-12 18:37:19 +00:00
|
|
|
}
|