2016-09-30 18:25:04 +02:00
|
|
|
/* Import */
|
|
|
|
@import '../../styles/variables/variables';
|
|
|
|
|
|
|
|
.notification {
|
|
|
|
position: relative;
|
|
|
|
display: flex;
|
|
|
|
align-items: stretch;
|
2017-09-19 13:40:26 +02:00
|
|
|
width: 300px;
|
|
|
|
min-height: 60px;
|
|
|
|
margin-bottom: 14px;
|
2017-09-09 14:43:11 +02:00
|
|
|
background: $white;
|
2017-09-19 13:40:26 +02:00
|
|
|
border-radius: 2px;
|
2017-09-09 14:43:11 +02:00
|
|
|
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.15);
|
|
|
|
color: #333740;
|
2017-09-19 13:40:26 +02:00
|
|
|
transition: all 0.15s ease;
|
|
|
|
overflow: hidden;
|
2018-08-08 12:39:37 +02:00
|
|
|
z-index: 10;
|
|
|
|
|
|
|
|
// The last notification must appear from
|
|
|
|
// the background of the previous one.
|
|
|
|
&:last-child {
|
|
|
|
z-index: 1;
|
|
|
|
}
|
2016-09-30 18:25:04 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.notification:hover {
|
2017-09-19 13:40:26 +02:00
|
|
|
cursor: pointer;
|
|
|
|
box-shadow: 0 1px 5px 0 rgba(0, 0, 0, 0.2);
|
2016-09-30 18:25:04 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.notificationIcon {
|
|
|
|
position: relative;
|
|
|
|
display: block;
|
2017-09-19 13:40:26 +02:00
|
|
|
width: 60px;
|
2016-09-30 18:25:04 +02:00
|
|
|
text-align: center;
|
|
|
|
font-size: 2.4rem;
|
|
|
|
|
2017-09-09 14:43:11 +02:00
|
|
|
&:before {
|
|
|
|
position: absolute;
|
2017-09-19 13:40:26 +02:00
|
|
|
top: calc(50% - 10px); left: calc(50% - 10px);
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
padding-top: 4px;
|
2017-09-09 14:43:11 +02:00
|
|
|
border-radius: 100%;
|
|
|
|
border: 1px solid $brand-success;
|
|
|
|
color: $brand-success;
|
|
|
|
font-size: 1.2rem;
|
|
|
|
text-align: center;
|
|
|
|
}
|
2016-09-30 18:25:04 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.notificationContent {
|
2017-09-19 13:40:26 +02:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
width: 220px;
|
2016-09-30 18:25:04 +02:00
|
|
|
margin: 0;
|
2017-09-19 13:40:26 +02:00
|
|
|
padding-right: 10px;
|
2016-09-30 18:25:04 +02:00
|
|
|
border-right: 1px solid rgba(255, 255, 255, 0.3);
|
|
|
|
}
|
|
|
|
|
|
|
|
.notificationTitle {
|
2017-09-09 14:43:11 +02:00
|
|
|
margin-bottom: 0;
|
2017-09-19 13:40:26 +02:00
|
|
|
font-size: 1.4rem;
|
|
|
|
font-weight: 400;
|
|
|
|
line-height: 1.8rem;
|
2016-09-30 18:25:04 +02:00
|
|
|
}
|
|
|
|
|
2017-09-09 14:43:11 +02:00
|
|
|
|
2016-09-30 18:25:04 +02:00
|
|
|
.notificationClose {
|
|
|
|
cursor: pointer;
|
|
|
|
opacity: 0.6;
|
2017-09-19 13:40:26 +02:00
|
|
|
position: relative;
|
|
|
|
display: block;
|
|
|
|
|
|
|
|
width: 20px;
|
2018-03-06 09:47:37 +01:00
|
|
|
font-size: 1.4rem;
|
2018-03-06 14:02:56 +01:00
|
|
|
color: #BBC2BF;
|
2017-09-19 13:40:26 +02:00
|
|
|
transition: opacity 0.1s ease;
|
2018-03-06 14:02:56 +01:00
|
|
|
-webkit-font-smoothing: antialiased;
|
2016-09-30 18:25:04 +02:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
position: absolute;
|
2017-09-19 13:40:26 +02:00
|
|
|
top: calc(50% - 6px);
|
|
|
|
height: 100%;
|
2018-03-06 14:02:56 +01:00
|
|
|
font-size: 1.3rem;
|
|
|
|
font-weight: 100!important;
|
2016-09-30 18:25:04 +02:00
|
|
|
}
|
2017-09-09 14:43:11 +02:00
|
|
|
}
|
|
|
|
|
2017-09-19 13:40:26 +02:00
|
|
|
.notificationSuccess{
|
|
|
|
background: linear-gradient(100deg , #FFFFFF 50%, rgba(39, 183, 15, .05)), $white;
|
|
|
|
}
|
|
|
|
|
2017-09-09 14:43:11 +02:00
|
|
|
.notificationWarning {
|
2017-09-19 13:40:26 +02:00
|
|
|
background: linear-gradient(100deg , #FFFFFF 50%, rgba(250, 156, 0, .05)), $white;
|
|
|
|
|
2017-09-09 14:43:11 +02:00
|
|
|
.notificationIcon:before {
|
2017-09-19 13:40:26 +02:00
|
|
|
padding-top: 4px;
|
2017-09-09 14:43:11 +02:00
|
|
|
border-color: $brand-warning;
|
|
|
|
color: $brand-warning;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.notificationError {
|
2017-09-19 13:40:26 +02:00
|
|
|
background: linear-gradient(100deg , #FFFFFF 50%, rgba(255, 93, 0, .05)), $white;
|
|
|
|
|
2017-09-09 14:43:11 +02:00
|
|
|
.notificationIcon:before {
|
2017-09-19 13:40:26 +02:00
|
|
|
padding-top: 4px;
|
2017-09-09 14:43:11 +02:00
|
|
|
border-color: $brand-danger;
|
|
|
|
color: $brand-danger;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.notificationInfo {
|
2017-09-19 13:40:26 +02:00
|
|
|
background: linear-gradient(100deg , #FFFFFF 50%, rgba(28, 93, 231, .05)), $white;
|
|
|
|
|
2017-09-09 14:43:11 +02:00
|
|
|
.notificationIcon:before {
|
|
|
|
border-color: $brand-primary;
|
|
|
|
color: $brand-primary;
|
|
|
|
}
|
|
|
|
}
|