Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F2750610
ambox.less
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
3 KB
Referenced Files
None
Subscribers
None
ambox.less
View Options
@
import
'mediawiki.skin.variables.less'
;
/**
* Ambox classes are nested in a top-level class
* This class is appended to the DOM via JS
* THESE RULES ONLY APPLY TO MINERVA skin.
**/
@
ambox-padding
:
8px
;
@
ambox-icon-padding
:
@
ambox-padding
*
4
;
@
line-height-content
:
1
.
65
;
body
.
skin-minerva
.
mw-parser-output
.
ambox
,
/* Be more specific than .content table styles in Minerva */
body
.
skin-minerva
.
mw-parser-output
table
.
ambox
{
display
:
block
;
margin
:
0
;
}
.
client-js
body
.
skin-minerva
.
mw-parser-output
.
ambox
{
cursor
:
pointer
;
width
:
auto
;
//
!important
needed
to
override
core
ambox
styles
background
:
@
background-color
-
interactive-subtle
!important
;
color
:
@
color
-
subtle
;
margin-bottom
:
1
px
;
tbody
{
display
:
table
;
width
:
100
%
;
}
//
Assuming
that
most
ambox
templates
wrap
content
in
this
element
.
//
See
https
://
en
.
wikipedia
.
org
/
w
/
index
.
php
?
title
=
Module
:
Message_box
&
action
=
raw
(
search
for
'mbox-text-span'
).
//
https
://
phabricator
.
wikimedia
.
org
/
T206887
suggests
.
mbox-text-div
is
also
needed
.
.
mbox-text-div
,
.
mbox-text-span
{
display
:
block
;
max-height
:
@
line-height
-
content
*
2
em
;
//
All
will
have
this
height
(approx
2
lines)
even
if
a
single
line
e.g.
{{dictdef
}
}
when
on
mobile
.
//
Overriden
later
in
tablet
styles
.
height
:
@
line-height-content
*
2em
;
overflow
:
hidden
;
}
//
Wrestle
with
inline
styles
that
editors
may
place
on
elements
inside
the
ambox
div
{
//
e.g.
on
mw-collapsible
inside
Multiple
issues
template
margin
:
0
!important
;
//
e.g.
on
Template
:
Expand
Russian
padding
:
0
!important
;
}
td
,
div
.
mbox-text
{
position
:
relative
;
//
Override
!important
above
if
this
is
a
div
padding
:
@
ambox-padding
@
ambox-padding
@
ambox-padding
@
ambox-icon-padding
!important
;
>
div,
>
span
{
font-size
:
unit
(
13
/
16
,
rem
);
}
}
//
All
text
should
be
treated
the
same
b
{
font-weight
:
inherit
;
}
//
Hide
links
in
new
treatment
a
{
color
:
inherit
!important
;
-webkit-
tap-highlight-color
:
rgba
(
0
,
0
,
0
,
0
)
!important
;
&:hover,
&:focus
{
text-decoration
:
none
;
outline
:
inherit
;
}
}
small
,
.
hide-when-compact
,
/* Template:Expand Russian */
.
mw-collapsible-content
,
/* Remove empty leftmost column when present (.mbox-empty-cell)
* and .verbose and any hr tags that might be present in the ambox
* See https://en.wikipedia.org/w/index.php?
* title=Special:WhatLinksHere/Template:Proposed_deletion_notify
* (https://phabricator.wikimedia.org/T197265) */
.
mbox-empty-cell
,
hr
,
.
verbose
,
/* Nested amboxes (multiple issues) */
table
,
.
mbox-image
{
display
:
none
;
}
.
minerva-ambox-icon
{
position
:
absolute
;
left
:
@
ambox-padding
;
top
:
11
px
;
}
.
ambox-learn-more
{
color
:
@
color
-
progressive
;
position
:
absolute
;
right
:
@
ambox-padding
;
bottom
:
@
ambox-padding
;
z-index
:
@
z-index
-
base
;
line-height
:
@
line-height
-
content
;
//
sets
height
for
fade
&
aligns
"learn
more"
to
ambox
text.
/* creates a fade under the "learn more" button to avoid overlapping text. */
&::before
{
content
:
''
;
position
:
absolute
;
z-index
:
@
z-index
-
bottom
;
bottom
:
0
;
right
:
0
;
width
:
100
%
;
//
width
&
height
defined
by
length
of
"learn
more".
height
:
100
%
;
box-sizing
:
content-box
;
//
explicitly
setting
box-sizing
so
padding
extends
beyond
100%.
padding-left
:
4
em
;
background
:
linear-gradient
(
to
right
,
transparent
0
,
@
background
-color-interactive-subtle
3
em
);
}
}
@
media
screen
and
(
min-width
:
@
min-width-breakpoint-tablet
)
{
.
mbox-text-div
,
.
mbox-text-span
{
height
:
auto
;
margin-bottom
:
@
ambox-padding
*
3
!important
;
//
important
offsets
`.ambox
div
{
margin
:
0
!important
}
`
which
offsets
inline
styles
.
}
.
ambox-learn-more
{
left
:
@
ambox-icon-padding
;
right
:
0
;
background
:
none
;
//
Move
blur
to
far
right
last
line
//
https
://
phabricator
.
wikimedia
.
org
/
T197931
#
4475197
&
::
before
{
top
:
unit
(
-
@
line
-height-content
,
em
);
width
:
10
px
;
}
}
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jul 3, 16:49 (8 h, 9 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
f3/02/e6d08a53d4e2c123863c6a955b44
Default Alt Text
ambox.less (3 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment