Notifications in bottom right; Loader as notification
This commit is contained in:
@ -22,7 +22,6 @@
|
||||
@import 'components/header';
|
||||
@import 'components/notifications';
|
||||
@import 'components/dropdown-field';
|
||||
@import 'components/loader';
|
||||
@import 'components/debug';
|
||||
|
||||
@import 'views/artist';
|
||||
|
||||
@ -1,28 +0,0 @@
|
||||
|
||||
.loader {
|
||||
opacity: 0;
|
||||
position: fixed;
|
||||
bottom: 12px;
|
||||
right: 12px;
|
||||
margin: 0 auto;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
border: {
|
||||
radius: 100%;
|
||||
style: solid;
|
||||
color: $blue;
|
||||
width: 2px;
|
||||
}
|
||||
border-top-color: transparent;
|
||||
pointer-events: none;
|
||||
|
||||
&.active {
|
||||
opacity: 1;
|
||||
@include animate();
|
||||
@include spin();
|
||||
}
|
||||
}
|
||||
|
||||
.lazy-loader {
|
||||
padding: 20px 0 40px;
|
||||
}
|
||||
@ -2,32 +2,21 @@
|
||||
|
||||
.notifications {
|
||||
position: fixed;
|
||||
top: 15px;
|
||||
left: 0;
|
||||
right: 0;
|
||||
text-align: center;
|
||||
bottom: 15px;
|
||||
right: 15px;
|
||||
z-index: 99;
|
||||
pointer-events: none;
|
||||
max-width: 400px;
|
||||
|
||||
.notification {
|
||||
display: inline-block;
|
||||
display: block;
|
||||
position: relative;
|
||||
background: $dark_grey;
|
||||
padding: 12px 32px 12px 18px;
|
||||
margin: 0 0.5px;
|
||||
margin: 10px 0 0 0;
|
||||
color: #FFFFFF;
|
||||
pointer-events: all;
|
||||
|
||||
&:first-child {
|
||||
border-top-left-radius: 50px;
|
||||
border-bottom-left-radius: 50px;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
border-top-right-radius: 50px;
|
||||
border-bottom-right-radius: 50px;
|
||||
}
|
||||
|
||||
.close-button {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
@ -54,6 +43,25 @@
|
||||
&.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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.shortcut-notification {
|
||||
@ -63,9 +71,10 @@
|
||||
height: 400px;
|
||||
width: 400px;
|
||||
margin: -200px 0 0 -200px;
|
||||
background: rgba(10, 10, 10, 0.95);
|
||||
background: $dark_grey;
|
||||
color: $white;
|
||||
border-radius: 10px;
|
||||
text-align: center;
|
||||
|
||||
.fa {
|
||||
font-size: 140px;
|
||||
|
||||
@ -59,6 +59,12 @@ $bp_shallow: 650px;
|
||||
transition: none !important;
|
||||
}
|
||||
|
||||
@keyframes slideloader {
|
||||
0% { left: 0%; right: 100%; }
|
||||
50% { left: 0%; right: 0%; }
|
||||
100% { left: 100%; right: 0%; }
|
||||
}
|
||||
|
||||
@keyframes shrink_from_right {
|
||||
from { width: 100%; }
|
||||
to { width: 0%; }
|
||||
|
||||
Reference in New Issue
Block a user