Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4123853
referencePreview.less
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
referencePreview.less
View Options
@
import
'mediawiki.skin.variables.less'
;
//
Should
be
in
sync
with
Popups
/
src
/
ui
/
variables
.
less
@
popupPadding
:
16px
;
@
lineHeight
:
20px
;
/* stylelint-disable selector-class-pattern */
.
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
/* stylelint-disable-next-line selector-max-id */
#mw-content-text .reference a[ href*='
#'
]
*
{
pointer-events
:
none
;
}
.
mwe-popups
.
mwe-popups-type-reference
.
mwe-popups-container
{
.mwe-popups-title
.popups-icon--reference-note
{
//
There
is
currently
no
"reference-note"
icon
specified
in
extension.json
display
:
none
;
}
.
mwe-popups-extract
{
margin-right
:
0
;
max-height
:
inherit
;
.mwe-popups-scroll
{
//
This
is
how
the
@previewFooterHeight
in
popup.less
is
calculated
@
marginBottom
:
@
popupPadding
+
34
px
;
//
Same
as
@previewPointerHeight
in
popup.less
@
pointerHeight
:
8
px
;
max-height
:
401
px
-
@
popupPadding
-
@
marginBottom
+
@
pointerHeight
;
overflow
:
auto
;
padding-right
:
@
popupPadding
;
}
.
mw-parser-output
{
overflow-wrap
:
break-word
;
}
//
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
:
linear-gradient
(
rgba
(
255
,
255
,
255
,
0
),
rgba
(
255
,
255
,
255
,
1
)
);
opacity
:
0
;
pointer-events
:
none
;
//
Allows
clicking
"through"
the
element
transition
:
opacity
250
ms
ease
;
}
&
.
mwe-popups-fade-out
.
mwe-popups-fade
{
opacity
:
1
;
}
}
.
mwe-collapsible-placeholder
{
font-weight
:
bold
;
margin
:
1
em
0
;
position
:
relative
;
}
.
mw-reference-previews-parent
{
margin-bottom
:
1
em
;
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Aug 19, 06:23 (1 w, 3 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
a0/44/4bea7b4eb5ffcc1f89e8dcf6379b
Default Alt Text
referencePreview.less (2 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment