2019-05-09 11:23:45 +00:00
|
|
|
// Don't do any event bubbling on childs like <a><span>[</span>2]</a>, see T214693
|
|
|
|
#mw-content-text .reference a[ href*='#' ] * {
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
2019-02-07 14:56:53 +00:00
|
|
|
.mwe-popups.mwe-popups-type-reference {
|
2019-01-30 19:15:54 +00:00
|
|
|
.mwe-popups-title {
|
2020-10-27 13:24:40 +00:00
|
|
|
margin: 0 0 @popupPadding;
|
2019-01-24 17:48:13 +00:00
|
|
|
|
2021-02-05 15:47:46 +00:00
|
|
|
.mw-ui-icon {
|
2021-04-21 10:27:17 +00:00
|
|
|
// Since 6bc3aada (T277663) this is @min-size-icon = 20px upstream in
|
|
|
|
// …/mediawiki.ui/components/icons.less, too small for us
|
|
|
|
min-height: @size-icon;
|
2021-02-05 15:47:46 +00:00
|
|
|
vertical-align: middle;
|
|
|
|
|
|
|
|
&.mw-ui-icon-element {
|
2021-04-21 10:27:17 +00:00
|
|
|
// This is @width-icon--legacy = 3.5em upstream in
|
|
|
|
// …/mediawiki.ui/components/icons.less, way to wide for us
|
|
|
|
min-width: @size-icon;
|
|
|
|
width: @size-icon;
|
2021-02-05 15:47:46 +00:00
|
|
|
|
|
|
|
&:before {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-02-17 09:50:54 +00:00
|
|
|
.mw-ui-icon-reference-generic {
|
|
|
|
/* align narrow icon with the text */
|
|
|
|
margin-left: -2px;
|
|
|
|
}
|
|
|
|
|
|
|
|
// There is currently no "reference-note" icon specified in extension.json
|
|
|
|
.mw-ui-icon-reference-note {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mwe-popups-extract {
|
|
|
|
margin-right: 0;
|
|
|
|
max-height: inherit;
|
|
|
|
|
2020-10-27 13:24:40 +00:00
|
|
|
.mwe-popups-scroll {
|
2021-02-17 10:12:28 +00:00
|
|
|
// This is how the `margin-bottom: 47px` in popup.less is calculated
|
|
|
|
@marginBottom: 2 * @lineHeight + 7px;
|
|
|
|
// Same as the --pointer-height in popup.less
|
|
|
|
@pointerHeight: 8px;
|
|
|
|
max-height: 403px - @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
|
2019-02-07 14:56:53 +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: -webkit-linear-gradient( top, rgba( 255, 255, 255, 0 ), rgba( 255, 255, 255, 1 ) );
|
|
|
|
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
|
|
|
|
.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
|
|
|
}
|
2020-10-25 18:22:09 +00:00
|
|
|
|
2021-02-17 09:50:54 +00:00
|
|
|
.mwe-collapsible-placeholder {
|
|
|
|
font-weight: bold;
|
|
|
|
margin: 1em 0;
|
|
|
|
position: relative;
|
2020-10-28 16:57:43 +00:00
|
|
|
|
2021-02-17 09:50:54 +00:00
|
|
|
// This mirrors .oo-ui-iconElement-icon
|
|
|
|
.mw-ui-icon {
|
|
|
|
margin-left: -@width-icon-gutter;
|
|
|
|
min-height: @size-icon;
|
|
|
|
position: absolute;
|
|
|
|
}
|
2020-10-28 16:57:43 +00:00
|
|
|
|
2021-02-17 09:50:54 +00:00
|
|
|
// This mirrors .oo-ui-messageWidget > .oo-ui-labelElement-label
|
|
|
|
.mwe-collapsible-placeholder-label {
|
|
|
|
margin-left: @size-icon + 0.5em;
|
2020-10-25 18:22:09 +00:00
|
|
|
}
|
2019-02-07 14:56:53 +00:00
|
|
|
}
|
2018-12-12 18:37:19 +00:00
|
|
|
}
|