You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Hydro/packages/ui-default/components/notification/notification.page.styl

68 lines
1.3 KiB
Stylus

.notification
position: fixed
left: rem(20px)
bottom: rem(20px)
padding: rem(10px)
border-radius: rem(2px)
background: rgba(#222, 0.9)
color: #FFF
font-size: rem($font-size-secondary)
transition: transform .2s, opacity .2s
transition-timing-function: ease-out-cubic
z-index: 1000 // managed
line-height: rem(20px)
box-shadow: 0 4px 10px rgba(#000, 0.4)
min-width: rem(150px)
img
border-radius: 50%
&.hide
opacity: 0
transform: translateY(20px) scale(0.9)
&:before
display: inline-block
font-family: $icon-font-name !important
margin-right: rem(10px)
font-size: rem($font-size-icon)
line-height: 1
vertical-align: top
margin-top: rem((20px - $font-size-icon) / 2)
for key, value in $notification-color
&.{key}
border-left: 5px solid value
&:before
color: value
for key, value in $notification-icon
&.{key}:before
content: value
+mobile()
.notification
padding: rem(20px 15px)
left: 0
width: 100%
min-width: auto
bottom: 0
.notification-content
float: right
margin-top: rem(7px)
margin-left: rem(10px)
margin-right: rem(15px)
h2
color: #FFFFFF
p
margin-top: rem(7px);
font-size: larger
@media print {
.notification {
display: none !important
}
}