// Don't do any event bubbling on childs like [2], see T214693 #mw-content-text .reference a[ href*='#' ] * { pointer-events: none; } .mwe-popups.mwe-popups-type-reference { .mwe-popups-title { margin: 0 0 @popupPadding; .mw-ui-icon { vertical-align: middle; &.mw-ui-icon-element { min-width: @iconSize; width: @iconSize; &:before { margin: 0; } } &.mw-ui-icon-reference-generic { /* align narrow icon with the text */ margin-left: -2px; } } } .mwe-popups-extract { margin-right: 0; margin-bottom: 2.75 * @lineHeight; max-height: inherit; .mwe-popups-scroll { // 8px caused by different margin-bottom, 55px here vs. 47px upstream max-height: 200px - 8px + 7 * @lineHeight; overflow: auto; padding-right: @popupPadding; } // Remove the default fade-out effect set by popup.less &:after { display: none; } .mwe-popups-fade { position: absolute; width: 100%; height: @lineHeight; background-color: transparent; background-image: -webkit-linear-gradient( top, rgba( 255, 255, 255, 0 ), rgba( 255, 255, 255, 1 ) ); background-image: -moz-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 ) ); opacity: 0; pointer-events: none; // Allows clicking "through" the element .transition( opacity 250ms ease ); } &.mwe-popups-fade-out .mwe-popups-fade { opacity: 1; } } .mwe-popups-read-link { // Same font size as the read link in disambiguation popups font-size: 12px; } }