Files
Iris/src/scss/components/_notifications.scss
2018-07-23 21:14:43 +12:00

183 lines
2.6 KiB
SCSS
Executable File

.notifications {
position: fixed;
bottom: 65px;
right: 15px;
z-index: 97;
pointer-events: none;
width: 300px;
.notification {
@include fadein();
display: block;
position: relative;
background: $grey;
padding: 16px 40px 16px 22px;
margin: 10px 0 0 0;
color: $white;
pointer-events: all;
border-radius: 3px;
h4 {
padding-top: 0;
}
p a {
text-decoration: none;
&:not(.button) {
color: inherit;
border-bottom: 1px dotted $black;
}
}
p.description {
font-size: 14px;
opacity: 0.5;
padding-top: 5px;
line-height: 1.1em;
}
.close-button {
position: absolute;
top: 4px;
right: 0;
font-size: 12px;
padding: 14px;
cursor: pointer;
opacity: 0.5;
&:hover {
opacity: 1;
}
}
&--good {
background: $green;
}
&--broadcast {
background: $yellow;
color: $black;
}
&--info {
background: $blue;
}
&--warning {
background: $orange;
}
&--bad {
background: $red;
}
&--shortcut {
position: fixed;
top: 50vh;
left: 50vw;
height: 400px;
width: 400px;
margin: -200px 0 0 -200px;
background: $overlay_dark;
color: $white;
border-radius: 10px;
text-align: center;
.icon {
font-size: 140px;
line-height: 400px;
}
}
&--process {
position: relative;
padding-right: 18px;
padding-left: 50px;
background: $blue;
&.cancelling {
color: rgba(255,255,255,0.5);
}
.loader {
width: 20px;
height: 20px;
position: absolute;
top: 16px;
left: 18px;
opacity: 1;
z-index: 2;
&:before {
border-color: transparent;
}
&:after {
border-right-color: $white;
}
.progress {
position: absolute;
top: 4px;
left: 4px;
bottom: 4px;
right: 4px;
border-radius: 50%;
overflow: hidden;
.fill {
background: $white;
position: absolute;
top: 0;
left: 0;
bottom: 0;
opacity: 0.35;
}
}
}
}
&.closing,
&.finishing {
@include fadeout();
}
}
.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: 60px;
left: 10px;
right: 10px;
width: auto;
.loading {
bottom: 20px;
right: 40px;
}
}
}