Mailspring/static/components/menu.less
Annie bd361c8abb refactor(signatures): Removed old signature imgs and made static empty signatures page
Summary:
Refactored signature preferences page to allow more signatures than the previous 1-1 mapping for signatures and accounts. Created a multi select dropdown of the accounts for which a certain signature is set as default for. Added a button into the draft header From field to toggle between saved signatures.

refactor(signatures): Add basic add/remove capabilities to static

refactor(signatures): Hooked up signature actions and signature store for basic functionality

fix(signatures): Cleaned up signature store and started on multiselectdropdown

fix(signatures): Add multi signature toggle select to multiselect dropdown

build(signatures): Built framework for multiselect dropdown

build(signatures): Toggle button functionality for dropdown

build(signatures): Build multi select from components and add debounce

refactor(signatures): Move signature actions and signature store into flux

fix(signatures): Styled composer signatures button/dropdown and fixed preferences checkmarks

build(signatures): Finish main functionality, about to refactor composer signature button into injected component

fix(signatures): Changed position styles

fix(signatures): Fixed background color for dropdown button when blurred

build(signatures): Began to write tests for signatures store, preferences and dropdown

Test Plan: Wrote tests for preferences signatures, signature store, signature composer dropdown and refactored tests for signature composer extension. For signature composer extension I removed applyTransformsToDraft and unapplyTransformsToDraft and tested by sending emails with signatures to different providers to make sure the <signature> tag caused problems.

Reviewers: bengotow, juan

Reviewed By: juan

Differential Revision: https://phab.nylas.com/D3073
2016-07-11 12:35:41 -07:00

99 lines
2 KiB
Plaintext

@import "ui-variables";
.menu {
flex: 1;
display: flex;
flex-direction: column;
.header-container {
flex-shrink: 0; // Don't squish the header! There may be a search box here
background-color: @background-secondary;
border-bottom: 1px solid @border-color-secondary;
padding: 3px;
position: relative;
}
.footer-container {
position: relative;
}
.content-container {
background: @background-secondary;
width: 100%;
margin-top: -1px;
overflow: auto;
}
.item {
display: block;
padding-left: @padding-base-horizontal;
padding-top: @padding-base-vertical;
padding-bottom: @padding-base-vertical;
cursor: default;
color: @text-color;
width: 100%;
overflow: hidden;
.primary {
max-width: 100%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.secondary {
max-width: 100%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
padding-left:5px;
color:@text-color-very-subtle;
}
}
.item.divider {
font-weight:@headings-font-weight;
color: @border-color-divider;
font-size: @font-size-small;
text-transform: uppercase;
margin-top: 10px;
pointer-events: none;
}
.item.checked {
background-image:url(./images/menu/checked@2x.png);
background-size: 16px;
background-position: right;
background-repeat: no-repeat;
background-position-x: 97%;
margin-right: 20px;
padding-right: 10%;
}
.item.selected, .item:active {
text-decoration: none;
background-color: @accent-primary;
color: @text-color-inverse;
.primary {
color: @text-color-inverse;
}
.secondary {
color: @text-color-inverse-very-subtle;
}
}
.item:not(.active):not(.selected):hover {
text-decoration: none;
background-color: fade(@black, 3%);
}
}
body.platform-win32 {
.menu {
.header-container {
input.search {
box-shadow: none;
}
}
}
}