Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4123697
toast.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
toast.less
View Options
@
import
'../../minerva.less/minerva.variables.less'
;
@
import
'../../minerva.less/minerva.mixins.less'
;
.
mw-notification
,
.
toast
{
font-size
:
@
font-size
-
minerva-small
;
padding
:
0.9
em
1
em
;
background-color
:
@
background-color
-
toast-notification
;
//
the
text
should
be
white
in
both
modes
color
:
@
color
-
inverted-fixed
;
margin
:
0
10
%
20
px
;
width
:
80
%
;
text-align
:
center
;
border-radius
:
@
border-radius
-
base
;
//
Toast
notification
error
state
//
//
When
the
toast
message
needs
to
convey
that
an
error
has
occurred
add
the
error
class
//
//
Markup
:
//
<
div
class
=
"toast visible error"
>
//
An
error
occurred
.
//
</
div
>
&.
mw-notification-type-error
{
background-size
:
24
px
;
background-position
:
16
px
50
%
;
background-repeat
:
no-repeat
;
padding-left
:
5
%
;
width
:
75
%
;
border
:
0
;
//
FIXME
:
this
is
needed
because
a
global
.
error
adds
border
}
.
oo-ui-iconElement-icon
{
//
Fix
icon
placement
in
post-edit
notifications
(T336001)
display
:
block
;
}
a
{
color
:
@
color
-
inverted-fixed
;
text-decoration
:
underline
;
}
}
.
mw-notification-area
{
z-index
:
@
z-index
-
over
-
overlay
;
position
:
fixed
;
bottom
:
0
;
width
:
100
%
;
}
.
mw-notification
,
.
drawer
{
display
:
block
;
visibility
:
hidden
;
/* we can't determine the actual size of the drawer in CSS, so this is
* an estimate; it doesn't have to be exact because it's used only for
* the sliding animation, not for hiding the drawer */
transform
:
translate
(
0
,
100
px
);
bottom
:
0
;
opacity
:
0
;
transition
:
transform
@
transition-duration
-
medium
,
opacity
@
transition-duration
-
medium
,
visibility
@
transition-duration
-
medium
;
&.visible,
&.mw-notification-visible
{
visibility
:
visible
;
opacity
:
1
;
transform
:
translate
(
0
,
0
);
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Aug 19, 06:18 (5 d, 3 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
f8/5e/487f6dcb42b87bb9e1c5f1256a4d
Default Alt Text
toast.less (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment