mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-16 04:06:19 +00:00
Adjust the reference popup size and enable scollbars
This patch mainly adjusts the min-height and paddings for the reference popups according to the mocks. It also enables scrolling inside of these popups if the content exceeds the max sizes. For now the scrollbars don't get specific styling. Also not, that the fade out effect seen in the mocks is not part of this task. Bug: T214169 Change-Id: Ifcc355fbcb6410778e7d4c569eb4cab09ed5dbf5
This commit is contained in:
parent
5bc4ed8f9f
commit
608a6a79cb
|
@ -1,4 +1,4 @@
|
|||
.mwe-popups-type-reference {
|
||||
.mwe-popups.mwe-popups-type-reference {
|
||||
.mwe-popups-title {
|
||||
margin-top: @popupPadding;
|
||||
|
||||
|
@ -21,6 +21,17 @@
|
|||
}
|
||||
}
|
||||
|
||||
.mwe-popups-extract {
|
||||
// Reference previews can be smaller than page preview, where the minimum is two lines.
|
||||
min-height: @lineHeight;
|
||||
overflow: auto;
|
||||
|
||||
// We don't want footnotes to have a fade-out effect (introduced with T150814).
|
||||
&:after {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.mwe-popups-read-link {
|
||||
// Same font size as the read link in disambiguation popups
|
||||
font-size: 12px;
|
||||
|
|
Loading…
Reference in a new issue