Mailspring/internal_packages/notifications/stylesheets/notifications.less
Ben Gotow 0efdec5fd5 fix(initial-sync): Make initial sync more robust, show progress, retry on failure
Summary:
Rename ActivityBar => DeveloperBar

Expose sync workers and make them observable

New activity sidebar that replaces momentary notifications

Updated specs

Test Plan: Run new specs!

Reviewers: evan

Reviewed By: evan

Maniphest Tasks: T1131

Differential Revision: https://phab.nylas.com/D1521
2015-05-19 15:59:37 -07:00

122 lines
2.6 KiB
Plaintext

@import "ui-variables";
@import "ui-mixins";
.sidebar-activity {
width: 100%;
bottom: 0;
order:2;
background: @background-off-primary;
font-size: @font-size-small;
color: @text-color-subtle;
line-height:@line-height-computed * 0.95;
height:140px;
overflow-y:scroll;
box-shadow:inset 0 1px 0 @border-color-divider;
.item {
border-bottom:1px solid @border-color-divider;
.inner {
padding: @padding-large-vertical @padding-base-horizontal @padding-large-vertical @padding-base-horizontal;
margin-top:3px;
}
.count {
color: @text-color-very-subtle;
float:right;
}
.btn {
display:block;
text-align:center;
margin-top:4px;
margin-bottom:4px;
font-size: @font-size-small;
}
.progress-track {
display:block;
height:3px;
font-size:0;
.progress {
transition: width 0.4s;
height:3px;
background-color: @background-color-info;
}
}
}
transition: height 0.4s;
transition-delay: 2s;
&.sidebar-activity-error {
.progress {
background-color: @error-color;
}
}
}
.activity-item-enter {
opacity:0;
transition: opacity .125s ease-out;
}
.activity-item-enter.activity-item-enter-active {
opacity:1;
}
.activity-item-leave {
opacity:1;
transition: opacity .125s ease-in;
transition-delay: 0.5s;
}
.activity-item-leave.activity-item-leave-active {
transition-delay: 0.5s;
opacity:0;
}
.notifications-sticky {
width:100%;
.notification-info {
background-color: @background-color-info;
}
.notification-error {
border-color: @background-color-error;
color: @error-color;
}
.notification-success {
border-color: @background-color-success;
}
.notifications-sticky-item {
display:block;
font-size: @font-size-base;
line-height: @line-height-base;
padding: @padding-base-vertical @padding-base-horizontal @padding-base-vertical @padding-base-horizontal;
color:@text-color-inverse;
border-top:1px solid rgba(0,0,0,0.25);
border-bottom:1px solid rgba(0,0,0,0.25);
a {
float:right;
font-size:13px;
background-color: rgba(255,255,255,0.2);
color:@text-color-inverse;
border-radius: 4px;
padding:1px;
padding-left:6px;
padding-right:6px;
margin-left:10px;
border-top:1px solid transparent;
border-bottom:none;
}
a:hover {
background-color: rgba(0,0,0,0.2);
border-top:1px solid rgba(0,0,0,0.35);
text-decoration:none;
color:@text-color-inverse;
}
i {
margin-right:@padding-base-horizontal;
}
}
}