Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4133664
Drawer.less
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
Drawer.less
View Options
@
import
'../../mobile.less/mobile.variables.less'
;
@
import
'mediawiki.mixins.less'
;
//
Drawers
//
//
Drawers
appear
at
the
bottom
of
the
page
and
contain
CTAs
//
Drawers
are
hidden
when
overlays
are
opened
.
//
Basic
drawer
styling
//
//
The
close
button
should
appear
at
the
top
of
the
drawer
.
//
The
visible
class
needs
to
be
present
for
the
drawer
to
show
.
//
//
Markup
:
//
<
div
class
=
"drawer visible"
>
//
<
a
class
=
"cancel icon"
>
close
</
a
>
//
<
p
>
hello
</
p
>
//
</
div
>
.
drawer
{
text-align
:
center
;
padding-top
:
0
;
padding-bottom
:
1
em
;
max-width
:
500
px
;
margin
:
0
auto
;
&.text
{
font-size
:
0.9
em
;
text-align
:
left
;
padding-top
:
0.5
em
;
}
p
{
margin-top
:
0.5
em
;
}
p
,
a
:
not
(
:
last-child
)
{
margin-bottom
:
1
em
;
}
}
//
prevent
body
from
scrolling
//
won
'
t
work
on
firefox
for
android
because
of
this
bug
:
https
://
bugzilla
.
mozilla
.
org
/
show_bug
.
cgi
?
id
=
886969
.
has-drawer--with-scroll-locked
{
overflow
:
hidden
;
}
//
When
overlays
are
opened
drawers
do
not
look
good
.
overlay-enabled
{
.drawer
{
//
!important
to
override
rules
set
by
animations
display
:
none
!important
;
}
}
.
drawer-container__mask
{
position
:
fixed
;
bottom
:
0
;
left
:
0
;
right
:
0
;
background
:
rgba
(
0
,
0
,
0
,
0.8
);
transition
:
opacity
100
ms
ease-in-out
;
opacity
:
0
;
top
:
0
;
&--visible
{
opacity
:
0.2
;
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Aug 19, 12:16 (3 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
a7/66/2c0b1d652b75158bde3cd2f47e60
Default Alt Text
Drawer.less (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment