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

134 lines
1.9 KiB
SCSS
Raw Normal View History

2016-12-13 11:08:13 +13:00
.notifications {
position: fixed;
2017-06-18 05:47:36 +12:00
bottom: 55px;
right: 15px;
z-index: 97;
pointer-events: none;
2017-05-29 16:29:49 +12:00
width: 300px;
2016-12-13 11:08:13 +13:00
.notification {
2017-05-29 16:29:49 +12:00
@include fadein();
display: block;
2016-12-13 11:08:13 +13:00
position: relative;
2017-05-29 16:29:49 +12:00
background: $darkest_grey;
padding: 16px 40px 16px 22px;
margin: 10px 0 0 0;
2017-05-29 16:29:49 +12:00
color: $white;
pointer-events: all;
2017-05-29 16:29:49 +12:00
h4 {
padding-top: 0;
}
p a {
color: inherit;
text-decoration: none;
border-bottom: 1px dotted $black;
}
2016-12-13 11:08:13 +13:00
.close-button {
position: absolute;
2017-05-29 16:29:49 +12:00
top: 4px;
right: 0;
font-size: 12px;
padding: 14px;
2016-12-13 11:08:13 +13:00
cursor: pointer;
opacity: 0.5;
&:hover {
opacity: 1;
}
}
&.good {
background: $green;
}
2017-05-29 16:29:49 +12:00
&.broadcast {
2016-12-13 11:08:13 +13:00
background: $yellow;
2017-05-29 16:29:49 +12:00
color: $black;
2016-12-13 11:08:13 +13:00
}
&.bad {
background: $red;
}
2017-04-05 20:28:41 +12:00
&.process {
position: relative;
padding-right: 18px;
2017-04-09 18:16:46 +12:00
&.cancelling {
color: rgba(255,255,255,0.5);
}
&:after {
position: absolute;
display: block;
content: '';
2017-05-29 16:29:49 +12:00
background: $blue;
opacity: 1;
animation: slideloader 1s infinite;
bottom: 0;
left: 0;
right: 0;
height: 4px;
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;
2017-04-21 08:43:20 +12:00
background: $overlay_dark;
color: $white;
border-radius: 10px;
text-align: center;
.fa {
font-size: 140px;
line-height: 400px;
}
}
2017-04-09 18:16:46 +12:00
.loading {
@include pulse(0.1s);
position: fixed;
bottom: 8px;
right: 8px;
width: 5px;
height: 5px;
border-radius: 50%;
background: $mid_grey;
&.high {
background: $red;
}
&.medium {
background: $orange;
}
&.low {
background: $green;
}
}
2017-04-09 18:16:46 +12:00
@include responsive( $bp_medium ){
bottom: 48px;
left: 0;
right: 0;
width: auto;
.loading {
bottom: 20px;
right: 40px;
}
2017-04-09 18:16:46 +12:00
}
2016-12-13 11:08:13 +13:00
}