Files
Iris/src/scss/components/_notifications.scss
2017-04-11 20:01:03 +12:00

123 lines
1.8 KiB
SCSS
Executable File

.notifications {
position: fixed;
bottom: 15px;
right: 30px;
z-index: 97;
pointer-events: none;
width: 200px;
.notification {
display: block;
position: relative;
background: $blue;
padding: 12px 32px 12px 18px;
margin: 10px 0 0 0;
color: #FFFFFF;
pointer-events: all;
.close-button {
position: absolute;
top: 10px;
right: 11px;
font-size: 11px;
padding: 4px;
cursor: pointer;
opacity: 0.5;
&:hover {
opacity: 1;
}
}
&.good {
background: $green;
}
&.info {
background: $yellow;
color: #000000;
}
&.bad {
background: $red;
}
&.process {
position: relative;
padding-right: 18px;
&.cancelling {
color: rgba(255,255,255,0.5);
}
&:after {
position: absolute;
display: block;
content: '';
background: rgba(0,0,0,0.35);
opacity: 1;
animation: slideloader 1s infinite;
bottom: 0;
left: 0;
right: 0;
height: 4px;
z-index: 1;
}
}
}
.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;
}
}
.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;
}
}
@include responsive( $bp_medium ){
bottom: 48px;
left: 0;
right: 0;
width: auto;
.loading {
bottom: 20px;
right: 40px;
}
}
}