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

95 lines
1.4 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;
width: 200px;
2016-12-13 11:08:13 +13:00
.notification {
display: block;
2016-12-13 11:08:13 +13:00
position: relative;
2017-04-09 18:16:46 +12:00
background: $blue;
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;
}
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-04-09 18:16:46 +12:00
background: rgba(0,0,0,0.35);
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;
}
}
2017-04-09 18:16:46 +12:00
@include responsive( $bp_medium ){
bottom: 48px;
left: 0;
right: 0;
width: auto;
}
2016-12-13 11:08:13 +13:00
}