mediawiki-extensions-Popups/src/ui/templates/referencePreview/referencePreview.less
Thiemo Kreuz 0c889c4cd4 Add default OOUI reference icon to all reference popups
I tried hard to keep the CSS as small and robust as possible. The
icon will be align with the text by adding a negativ margin. With
that we also decided against using RTL and LTR specific icons that
are positioned at the edge of the canvas for now.

Bug: T213907
Change-Id: I98888114e1c50e249cf31e71749323bd4f69da3f
2019-01-29 17:06:40 +01:00

22 lines
336 B
Plaintext

.mwe-popups-type-reference .mwe-popups-title {
margin-top: @popupPadding;
.mw-ui-icon {
vertical-align: middle;
&.mw-ui-icon-element {
min-width: @iconSize;
width: @iconSize;
&:before {
margin: 0;
}
}
&.mw-ui-icon-preview-reference {
/* align narrow icon with the text */
margin-left: -2px;
}
}
}