Files
Iris/src/scss/components/_notifications.scss

84 lines
1.3 KiB
SCSS
Raw Normal View History

2016-12-13 11:08:13 +13:00
.notifications {
position: fixed;
bottom: 15px;
right: 15px;
z-index: 99;
pointer-events: none;
max-width: 400px;
2016-12-13 11:08:13 +13:00
.notification {
display: block;
2016-12-13 11:08:13 +13:00
position: relative;
background: $dark_grey;
padding: 12px 32px 12px 18px;
margin: 10px 0 0 0;
2016-12-13 11:08:13 +13:00
color: #FFFFFF;
pointer-events: all;
2016-12-13 11:08:13 +13:00
.close-button {
position: absolute;
top: 10px;
right: 11px;
font-size: 11px;
2016-12-13 11:08:13 +13:00
padding: 4px;
cursor: pointer;
opacity: 0.5;
&:hover {
opacity: 1;
}
}
&.good {
background: $green;
}
&.info {
background: $yellow;
color: #000000;
}
&.bad {
background: $red;
}
&.loading {
position: relative;
padding-right: 18px;
&:after {
position: absolute;
display: block;
content: '';
background: $blue;
opacity: 1;
animation: slideloader 1s infinite;
bottom: 0;
left: 0;
right: 0;
height: 3px;
z-index: 1;
}
}
2016-12-13 11:08:13 +13:00
}
.shortcut-notification {
position: fixed;
top: 50vh;
left: 50vw;
height: 400px;
width: 400px;
margin: -200px 0 0 -200px;
background: $dark_grey;
color: $white;
border-radius: 10px;
text-align: center;
.fa {
font-size: 140px;
line-height: 400px;
}
}
2016-12-13 11:08:13 +13:00
}