121 lines
2.3 KiB
SCSS
Raw Normal View History

2016-09-30 18:25:04 +02:00
/* Import */
@import '../../styles/variables/variables';
.notification {
position: relative;
display: flex;
align-items: stretch;
width: 300px;
min-height: 60px;
margin-bottom: 14px;
2017-09-09 14:43:11 +02:00
background: $white;
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;
transition: all 0.15s ease;
overflow: hidden;
2016-09-30 18:25:04 +02:00
}
.notification:hover {
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;
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;
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 {
display: flex;
align-items: center;
width: 220px;
2016-09-30 18:25:04 +02:00
margin: 0;
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;
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;
position: relative;
display: block;
width: 20px;
2018-03-06 09:47:37 +01:00
font-size: 1.4rem;
// NOTE: @aurelisicoko what is the right color?
// color: #BBC2BF; <-- ?
opacity: 0.25;
color: #0E1622; // <-- ?
// color: #C3C5C8; // <-- ?
transition: opacity 0.1s ease;
2016-09-30 18:25:04 +02:00
&:hover {
opacity: 1;
}
&:before {
position: absolute;
top: calc(50% - 6px);
height: 100%;
font-size: 1.4rem;
2016-09-30 18:25:04 +02:00
}
2017-09-09 14:43:11 +02:00
}
.notificationSuccess{
background: linear-gradient(100deg , #FFFFFF 50%, rgba(39, 183, 15, .05)), $white;
}
2017-09-09 14:43:11 +02:00
.notificationWarning {
background: linear-gradient(100deg , #FFFFFF 50%, rgba(250, 156, 0, .05)), $white;
2017-09-09 14:43:11 +02:00
.notificationIcon:before {
padding-top: 4px;
2017-09-09 14:43:11 +02:00
border-color: $brand-warning;
color: $brand-warning;
}
}
.notificationError {
background: linear-gradient(100deg , #FFFFFF 50%, rgba(255, 93, 0, .05)), $white;
2017-09-09 14:43:11 +02:00
.notificationIcon:before {
padding-top: 4px;
2017-09-09 14:43:11 +02:00
border-color: $brand-danger;
color: $brand-danger;
}
}
.notificationInfo {
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;
}
}