2016-10-04 23:02:11 +08:00
|
|
|
@import 'ui-variables';
|
|
|
|
|
|
|
|
.notifications {
|
|
|
|
background-color: @panel-background-color;
|
2016-10-19 03:39:05 +08:00
|
|
|
box-shadow: 0 -6px 4px @panel-background-color;
|
|
|
|
z-index: 2;
|
2016-10-04 23:02:11 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.notification {
|
|
|
|
background: @background-color-info;
|
|
|
|
display: none;
|
|
|
|
color: @text-color-inverse;
|
|
|
|
margin: 10px;
|
2016-10-19 03:39:05 +08:00
|
|
|
margin-top: 0;
|
2016-10-04 23:02:11 +08:00
|
|
|
border-radius: @border-radius-large;
|
|
|
|
}
|
|
|
|
|
|
|
|
.notification.error {
|
|
|
|
background: @background-color-error;
|
|
|
|
}
|
|
|
|
|
2017-01-12 09:24:30 +08:00
|
|
|
.notification.offline {
|
|
|
|
background: linear-gradient(to top, darken(#CC9900, 4%) 0%, #CC9900 100%);
|
|
|
|
}
|
|
|
|
|
2016-10-04 23:02:11 +08:00
|
|
|
.notification.highest-priority {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.notif-top {
|
|
|
|
display: flex;
|
|
|
|
align-items: flex-start;
|
|
|
|
padding: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.notification .icon {
|
2016-10-19 03:39:05 +08:00
|
|
|
margin-right: 10px;
|
2016-10-04 23:02:11 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.notification .title {
|
|
|
|
padding: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.notification .subtitle {
|
|
|
|
font-size: @font-size-smaller;
|
|
|
|
position: relative;
|
|
|
|
opacity: 0.8;
|
|
|
|
}
|
|
|
|
|
|
|
|
.notification .subtitle.has-action {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.notification .subtitle.has-action::after {
|
|
|
|
content:'';
|
|
|
|
background: url(nylas://notifications/assets/minichevron@2x.png) top left no-repeat;
|
|
|
|
background-size: 4.5px 7px;
|
|
|
|
margin-left:3px;
|
|
|
|
display: inline-block;
|
|
|
|
width:4.5px;
|
|
|
|
height:7px;
|
|
|
|
vertical-align: baseline;
|
|
|
|
}
|
|
|
|
|
|
|
|
.notification .actions-wrapper {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.notification .action {
|
|
|
|
text-align: center;
|
|
|
|
flex: 1;
|
|
|
|
border-top: solid rgba(255, 255, 255, 0.5) 1px;
|
|
|
|
border-left: solid rgba(255, 255, 255, 0.5) 1px;
|
|
|
|
padding: 10px;
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
/* The semi-transparent backgrounds that can be layered on top
|
|
|
|
of this class shouldn't have sharp corners on the bottom */
|
|
|
|
border-bottom-left-radius: @border-radius-large;
|
|
|
|
border-bottom-right-radius: @border-radius-large;
|
|
|
|
}
|
|
|
|
|
|
|
|
.notification .action:first-child {
|
|
|
|
border-left: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.notification .action:hover {
|
|
|
|
background-color: rgba(255, 255, 255, 0.2);
|
|
|
|
box-shadow: @standard-shadow inset;
|
|
|
|
}
|
|
|
|
|
|
|
|
.notification .action.loading {
|
|
|
|
cursor: progress;
|
|
|
|
background-color: rgba(0, 0, 0, 0.2);
|
|
|
|
box-shadow: @standard-shadow inset;
|
|
|
|
}
|