Mailspring/app/internal_packages/activity/styles/list.less
Ben Gotow 251d7c44d1
Activity Summary / Insights v1 🎉
* Initial commit

* SVG-based graph components

* Add histogram, pull data into graphs

* Loading animation, timespan descriptions

* Improvements to read receipt / link tracking section

* Initial pass at subject line analysis

* Fixes to subject-line stats

* Fix theme `ui-variables` include paths

* Add “Share this report” button

* Add “Learn More” button

* Make it more clear how to edit your shortcuts

* Merge activity-list and new activity-dashboard, move in sidebar
2017-11-07 20:05:25 +01:00

163 lines
3.5 KiB
Plaintext

@import 'ui-variables';
.toolbar-activity {
order: 100;
position: relative;
.unread-count {
display: none;
&.active {
display: inline-block;
background: @component-active-color;
text-align: center;
color: @white;
border-radius: @border-radius-base;
font-size: 8px;
padding: 0 4px;
position: absolute;
right: -7px;
top: 5px;
line-height: 11px;
}
}
.activity-toolbar-icon {
margin-top: 20px;
background: @gray;
&.unread {
background: @component-active-color;
}
}
}
.activity-list-container {
width: 260px;
overflow: hidden;
font-size: @font-size-small;
color: @text-color-subtle;
.spacer {
flex: 1 1 0;
}
height: 282px;
&.empty {
height: 182px;
.activity-summary-cta {
display: none;
}
}
.activity-summary-cta {
border-top: 1px solid @border-color-divider;
border-bottom-right-radius: @border-radius-base;
border-bottom-left-radius: @border-radius-base;
background: @btn-default-bg-color;
text-align: center;
padding: @padding-base-vertical @padding-base-horizontal;
color: @text-color;
img {
vertical-align: baseline;
}
&:active {
background: darken(@btn-default-bg-color, 9%);
}
}
.empty-state-container {
text-align: center;
padding: @padding-base-horizontal * 2;
padding-top: @padding-base-vertical * 8;
img.logo {
background-color: @text-color-very-subtle;
}
.text {
margin-top: @padding-base-vertical * 6;
color: @text-color-very-subtle;
}
}
.activity-list-item {
padding: @padding-small-vertical @padding-small-horizontal;
white-space: nowrap;
border-bottom: 1px solid @border-color-primary;
cursor: default;
&.unread {
color: @text-color;
background: @background-primary;
&:hover {
background: darken(@background-primary, 2%);
}
.action-message {
font-weight: 600;
}
}
&:hover {
background: darken(@background-secondary, 2%);
}
.disclosure-triangle {
padding-top: 5px;
padding-bottom: 0;
}
.activity-icon-container {
flex-shrink: 0;
}
.activity-icon {
vertical-align: text-bottom;
}
.action-message,
.title {
text-overflow: ellipsis;
overflow: hidden;
}
.timestamp {
color: @text-color-very-subtle;
text-overflow: ellipsis;
overflow: hidden;
flex-shrink: 0;
padding-left: 5px;
}
}
.activity-list-toggle-item {
height: 30px;
white-space: nowrap;
background: @background-secondary;
cursor: default;
overflow-y: hidden;
transition-property: all;
transition-duration: 0.5s;
transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
&:last-child {
border-bottom: 1px solid @border-color-primary;
}
.action-message {
padding: @padding-small-vertical @padding-small-horizontal;
text-overflow: ellipsis;
overflow: hidden;
}
.timestamp {
padding: @padding-small-vertical @padding-small-horizontal;
color: @text-color-very-subtle;
text-overflow: ellipsis;
overflow: hidden;
}
}
.activity-toggle-container {
&.hidden {
.activity-list-toggle-item {
height: 0;
&:last-child {
border-bottom: none;
}
}
}
}
}
body.platform-win32,
body.platform-linux {
.toolbar-activity {
margin-right: @padding-base-horizontal;
}
}