2017-10-15 08:36:44 +08:00
|
|
|
@import '../buttons';
|
2015-06-23 06:49:52 +08:00
|
|
|
|
|
|
|
.button-dropdown {
|
|
|
|
position: relative;
|
|
|
|
display: inline-block;
|
2015-07-22 04:52:59 +08:00
|
|
|
|
|
|
|
&.open {
|
2016-01-30 07:51:00 +08:00
|
|
|
.secondary-items {
|
|
|
|
visibility: inherit;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.open.open-up {
|
|
|
|
.secondary-items {
|
2016-02-19 07:21:36 +08:00
|
|
|
border-radius: @border-radius-base @border-radius-base 0 @border-radius-base;
|
2017-10-15 08:36:44 +08:00
|
|
|
box-shadow: 0 0.5px 0 @standard-shadow-color, 0 -0.5px 0 @standard-shadow-color,
|
|
|
|
0.5px 0 0 @standard-shadow-color, -0.5px 0 0 @standard-shadow-color,
|
|
|
|
0 -3px 12px @standard-shadow-color;
|
2016-01-30 07:51:00 +08:00
|
|
|
top: -100%;
|
2017-10-15 08:36:44 +08:00
|
|
|
transform: translate(0, -6px);
|
2016-01-30 07:51:00 +08:00
|
|
|
}
|
2015-07-22 04:52:59 +08:00
|
|
|
.secondary-picker {
|
2016-01-30 07:51:00 +08:00
|
|
|
border-top-right-radius: 0;
|
2015-07-22 04:52:59 +08:00
|
|
|
}
|
2016-01-30 07:51:00 +08:00
|
|
|
}
|
|
|
|
&.open.open-down {
|
2015-07-22 04:52:59 +08:00
|
|
|
.secondary-items {
|
2016-02-19 07:21:36 +08:00
|
|
|
border-radius: @border-radius-base 0 @border-radius-base @border-radius-base;
|
2017-10-15 08:36:44 +08:00
|
|
|
box-shadow: 0 0.5px 0 @standard-shadow-color, 0 -0.5px 0 @standard-shadow-color,
|
|
|
|
0.5px 0 0 @standard-shadow-color, -0.5px 0 0 @standard-shadow-color,
|
|
|
|
0 5px 12px @standard-shadow-color;
|
|
|
|
transform: translate(0, 1.5px);
|
2016-01-30 07:51:00 +08:00
|
|
|
}
|
|
|
|
.secondary-picker {
|
|
|
|
border-bottom-right-radius: 0;
|
2015-07-22 04:52:59 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-01-30 07:51:00 +08:00
|
|
|
&.btn-emphasis {
|
2016-01-26 06:14:09 +08:00
|
|
|
.primary-item,
|
|
|
|
.secondary-picker,
|
|
|
|
.only-item {
|
2016-02-10 11:45:24 +08:00
|
|
|
.btn.btn-emphasis();
|
2016-01-26 06:14:09 +08:00
|
|
|
}
|
2016-01-30 07:51:00 +08:00
|
|
|
.primary-item {
|
2017-10-15 08:36:44 +08:00
|
|
|
border-right: 0;
|
2016-01-30 07:51:00 +08:00
|
|
|
}
|
2016-01-26 06:14:09 +08:00
|
|
|
}
|
|
|
|
|
feat(accounts): Kill namespaces, long live accounts
Summary:
This diff replaces the Namespace object with the Account object, and changes all references to namespace_id => account_id, etc. The endpoints are now `/threads` instead of `/n/<id>/threads`.
This diff also adds preliminary support for multiple accounts. When you log in, we now log you in to all the attached accounts on edgehill server. From the preferences panel, you can auth with / unlink additional accounts. Shockingly, this all seems to pretty much work.
When replying to a thread, you cannot switch from addresses. However, when creating a new message in a popout composer, you can change the from address and the SaveDraftTask will delete/re-root the draft on the new account.
Search bar doesn't need to do full refresh on clear if it never committed
Allow drafts to be switched to a different account when not in reply to an existing thread
Fix edge case where ChangeMailTask throws exception if no models are modified during performLocal
Show many dots for many accounts in long polling status bar
add/remove accounts from prefs
Spec fixes!
Test Plan: Run tests, none broken!
Reviewers: evan, dillon
Reviewed By: evan, dillon
Differential Revision: https://phab.nylas.com/D1928
2015-08-22 06:29:58 +08:00
|
|
|
.primary-item,
|
|
|
|
.only-item {
|
2016-02-10 11:45:24 +08:00
|
|
|
.btn();
|
feat(accounts): Kill namespaces, long live accounts
Summary:
This diff replaces the Namespace object with the Account object, and changes all references to namespace_id => account_id, etc. The endpoints are now `/threads` instead of `/n/<id>/threads`.
This diff also adds preliminary support for multiple accounts. When you log in, we now log you in to all the attached accounts on edgehill server. From the preferences panel, you can auth with / unlink additional accounts. Shockingly, this all seems to pretty much work.
When replying to a thread, you cannot switch from addresses. However, when creating a new message in a popout composer, you can change the from address and the SaveDraftTask will delete/re-root the draft on the new account.
Search bar doesn't need to do full refresh on clear if it never committed
Allow drafts to be switched to a different account when not in reply to an existing thread
Fix edge case where ChangeMailTask throws exception if no models are modified during performLocal
Show many dots for many accounts in long polling status bar
add/remove accounts from prefs
Spec fixes!
Test Plan: Run tests, none broken!
Reviewers: evan, dillon
Reviewed By: evan, dillon
Differential Revision: https://phab.nylas.com/D1928
2015-08-22 06:29:58 +08:00
|
|
|
cursor: default;
|
|
|
|
color: @btn-default-text-color;
|
2015-06-23 06:49:52 +08:00
|
|
|
}
|
feat(accounts): Kill namespaces, long live accounts
Summary:
This diff replaces the Namespace object with the Account object, and changes all references to namespace_id => account_id, etc. The endpoints are now `/threads` instead of `/n/<id>/threads`.
This diff also adds preliminary support for multiple accounts. When you log in, we now log you in to all the attached accounts on edgehill server. From the preferences panel, you can auth with / unlink additional accounts. Shockingly, this all seems to pretty much work.
When replying to a thread, you cannot switch from addresses. However, when creating a new message in a popout composer, you can change the from address and the SaveDraftTask will delete/re-root the draft on the new account.
Search bar doesn't need to do full refresh on clear if it never committed
Allow drafts to be switched to a different account when not in reply to an existing thread
Fix edge case where ChangeMailTask throws exception if no models are modified during performLocal
Show many dots for many accounts in long polling status bar
add/remove accounts from prefs
Spec fixes!
Test Plan: Run tests, none broken!
Reviewers: evan, dillon
Reviewed By: evan, dillon
Differential Revision: https://phab.nylas.com/D1928
2015-08-22 06:29:58 +08:00
|
|
|
.primary-item {
|
2016-02-19 07:21:36 +08:00
|
|
|
border-radius: @border-radius-base 0 0 @border-radius-base;
|
feat(accounts): Kill namespaces, long live accounts
Summary:
This diff replaces the Namespace object with the Account object, and changes all references to namespace_id => account_id, etc. The endpoints are now `/threads` instead of `/n/<id>/threads`.
This diff also adds preliminary support for multiple accounts. When you log in, we now log you in to all the attached accounts on edgehill server. From the preferences panel, you can auth with / unlink additional accounts. Shockingly, this all seems to pretty much work.
When replying to a thread, you cannot switch from addresses. However, when creating a new message in a popout composer, you can change the from address and the SaveDraftTask will delete/re-root the draft on the new account.
Search bar doesn't need to do full refresh on clear if it never committed
Allow drafts to be switched to a different account when not in reply to an existing thread
Fix edge case where ChangeMailTask throws exception if no models are modified during performLocal
Show many dots for many accounts in long polling status bar
add/remove accounts from prefs
Spec fixes!
Test Plan: Run tests, none broken!
Reviewers: evan, dillon
Reviewed By: evan, dillon
Differential Revision: https://phab.nylas.com/D1928
2015-08-22 06:29:58 +08:00
|
|
|
}
|
|
|
|
|
2015-06-23 06:49:52 +08:00
|
|
|
.secondary-picker {
|
|
|
|
.btn();
|
2017-10-15 08:36:44 +08:00
|
|
|
box-shadow: @standard-shadow-color 0 0.5px 0, @standard-shadow-color 0 -0.5px 0,
|
|
|
|
@standard-shadow-color 0.5px 0 0, @standard-shadow-color 0 0.5px 1px;
|
2016-02-19 07:21:36 +08:00
|
|
|
border-radius: 0 @border-radius-base @border-radius-base 0;
|
2015-06-23 06:49:52 +08:00
|
|
|
border-left: 0;
|
2016-02-19 07:21:36 +08:00
|
|
|
padding: 0 6px;
|
2015-06-23 06:49:52 +08:00
|
|
|
}
|
|
|
|
.secondary-items {
|
|
|
|
&:hover {
|
|
|
|
cursor: default;
|
|
|
|
}
|
feat(accounts): Kill namespaces, long live accounts
Summary:
This diff replaces the Namespace object with the Account object, and changes all references to namespace_id => account_id, etc. The endpoints are now `/threads` instead of `/n/<id>/threads`.
This diff also adds preliminary support for multiple accounts. When you log in, we now log you in to all the attached accounts on edgehill server. From the preferences panel, you can auth with / unlink additional accounts. Shockingly, this all seems to pretty much work.
When replying to a thread, you cannot switch from addresses. However, when creating a new message in a popout composer, you can change the from address and the SaveDraftTask will delete/re-root the draft on the new account.
Search bar doesn't need to do full refresh on clear if it never committed
Allow drafts to be switched to a different account when not in reply to an existing thread
Fix edge case where ChangeMailTask throws exception if no models are modified during performLocal
Show many dots for many accounts in long polling status bar
add/remove accounts from prefs
Spec fixes!
Test Plan: Run tests, none broken!
Reviewers: evan, dillon
Reviewed By: evan, dillon
Differential Revision: https://phab.nylas.com/D1928
2015-08-22 06:29:58 +08:00
|
|
|
&.left {
|
2017-10-15 08:36:44 +08:00
|
|
|
width: auto;
|
|
|
|
left: -1px;
|
|
|
|
right: auto;
|
|
|
|
white-space: nowrap;
|
feat(accounts): Kill namespaces, long live accounts
Summary:
This diff replaces the Namespace object with the Account object, and changes all references to namespace_id => account_id, etc. The endpoints are now `/threads` instead of `/n/<id>/threads`.
This diff also adds preliminary support for multiple accounts. When you log in, we now log you in to all the attached accounts on edgehill server. From the preferences panel, you can auth with / unlink additional accounts. Shockingly, this all seems to pretty much work.
When replying to a thread, you cannot switch from addresses. However, when creating a new message in a popout composer, you can change the from address and the SaveDraftTask will delete/re-root the draft on the new account.
Search bar doesn't need to do full refresh on clear if it never committed
Allow drafts to be switched to a different account when not in reply to an existing thread
Fix edge case where ChangeMailTask throws exception if no models are modified during performLocal
Show many dots for many accounts in long polling status bar
add/remove accounts from prefs
Spec fixes!
Test Plan: Run tests, none broken!
Reviewers: evan, dillon
Reviewed By: evan, dillon
Differential Revision: https://phab.nylas.com/D1928
2015-08-22 06:29:58 +08:00
|
|
|
}
|
Totally overhauled composer based on Slate (#524)
* Remove the composer contenteditable, replace with basic <textarea>
* Beginning broader cleanup of draft session
* DraftJS composer with color, style support
* Serialization/unserialization of basic styles, toolbar working
* WIP
* Switch to draft-js-plugins approach, need to revisit HTML
* Move HTML conversion functionality into plugins
* Add spellcheck context menu to editor
* Initial work on quoted text
* Further work on quoted text
* BLOCK approach
* Entity approach - better, does not bump out to top level
* Hiding and showing quoted text via CSS
* Get rid of ability to inject another subject line component
* Clean up specs, DraftFactory to ES6
* Remove old initial focus hack
* Fix focusing, initial text selection
* Remove participant “collapsing” support, it can be confusing
* Correctly terminate links on carriage returns
* Initial signature support, allow removal of uneditable blocks
* Sync body string with body editorstate
* Simplify draft editor session, finish signatures
* Templates
* Minor fixes
* Simplify link/open tracking, ensure it works
* Reorg composer, rework template editor
* Omg the slowness is all the stupid emoji button
* Polish and small fixes
* Performance improvements, new templates UI
* Don’t assume nodes are elements
* Fix for sending drafts twice due to back-to-back saves
* Fix order of operations on app quit to save drafts reliably
* Improve DraftJS-Convert whitespace handling
* Use contentID throughout attachment lifecycle
* Try to fix images
* Switch to Slate instead of DraftJS… much better
* Fix newline handling
* Bug fixes
* Cleanup
* Finish templates plugin
* Clean up text editing / support for Gmail email styles
* Support for color + size on the same node, clean trailing whitespace
* Restore emoji typeahead / emoji picker
* Fix scrolling in template editor
* Fix specs
* Fix newlines
* Re-implement spellcheck to be faster
* Make spellcheck decorator changes invisible to the undo/redo stack
* Remove comment
* Polish themplates panel
* Fix #521
2018-01-12 07:55:56 +08:00
|
|
|
z-index: 3;
|
2016-02-19 07:21:36 +08:00
|
|
|
background-color: @background-secondary;
|
2015-06-23 06:49:52 +08:00
|
|
|
position: absolute;
|
2016-02-19 07:49:45 +08:00
|
|
|
right: 0;
|
2017-10-15 08:36:44 +08:00
|
|
|
white-space: nowrap;
|
|
|
|
visibility: hidden;
|
2015-06-27 06:03:13 +08:00
|
|
|
|
2015-07-22 04:52:59 +08:00
|
|
|
.menu {
|
|
|
|
.footer-container,
|
|
|
|
.header-container {
|
2017-10-15 08:36:44 +08:00
|
|
|
display: none;
|
2015-07-22 04:52:59 +08:00
|
|
|
}
|
|
|
|
.content-container {
|
|
|
|
background: transparent;
|
2017-10-15 08:36:44 +08:00
|
|
|
margin-top: 0;
|
2015-07-22 04:52:59 +08:00
|
|
|
}
|
|
|
|
.item {
|
2016-02-10 11:45:24 +08:00
|
|
|
font-size: 13px;
|
|
|
|
padding: 4px 11px;
|
|
|
|
&:first-child {
|
|
|
|
padding-top: 6px;
|
|
|
|
}
|
|
|
|
&:last-child {
|
|
|
|
padding-bottom: 6px;
|
|
|
|
}
|
2015-07-22 04:52:59 +08:00
|
|
|
img {
|
2017-10-15 08:36:44 +08:00
|
|
|
margin-right: 4px;
|
2015-07-22 04:52:59 +08:00
|
|
|
vertical-align: text-bottom;
|
|
|
|
}
|
|
|
|
&.selected {
|
|
|
|
background-color: inherit;
|
2017-10-15 08:36:44 +08:00
|
|
|
color: @text-color;
|
2015-07-22 04:52:59 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
.item:first-child {
|
2016-02-19 07:21:36 +08:00
|
|
|
border-top-left-radius: @border-radius-base;
|
2015-07-22 04:52:59 +08:00
|
|
|
}
|
|
|
|
.item:last-child {
|
2016-02-19 07:21:36 +08:00
|
|
|
border-bottom-left-radius: @border-radius-base;
|
|
|
|
border-bottom-right-radius: @border-radius-base;
|
2015-07-22 04:52:59 +08:00
|
|
|
}
|
|
|
|
.item:hover {
|
2016-02-19 07:21:36 +08:00
|
|
|
background-color: darken(@background-secondary, 3%);
|
2017-10-15 08:36:44 +08:00
|
|
|
color: inherit;
|
2015-06-27 06:03:13 +08:00
|
|
|
}
|
|
|
|
}
|
2015-06-23 06:49:52 +08:00
|
|
|
}
|
|
|
|
img {
|
|
|
|
background-color: @text-color;
|
|
|
|
}
|
|
|
|
}
|
2015-09-28 18:09:34 +08:00
|
|
|
|
|
|
|
body.platform-win32 {
|
|
|
|
.button-dropdown {
|
|
|
|
.primary-item {
|
2015-10-22 11:32:33 +08:00
|
|
|
.windows-btn-bg;
|
|
|
|
.windows-btn-border;
|
2015-09-28 18:09:34 +08:00
|
|
|
border-radius: 0;
|
2016-03-05 03:36:52 +08:00
|
|
|
position: relative;
|
|
|
|
left: -1px;
|
2015-10-22 11:32:33 +08:00
|
|
|
}
|
|
|
|
.secondary-picker {
|
|
|
|
.windows-btn-bg;
|
|
|
|
.windows-btn-border;
|
2016-03-05 03:36:52 +08:00
|
|
|
position: relative;
|
|
|
|
right: -1px;
|
2015-09-28 18:09:34 +08:00
|
|
|
}
|
|
|
|
.secondary-picker,
|
|
|
|
.secondary-items {
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
2016-01-30 07:51:00 +08:00
|
|
|
&.btn-emphasis {
|
2016-01-26 06:14:09 +08:00
|
|
|
.primary-item,
|
|
|
|
.secondary-picker,
|
|
|
|
.only-item {
|
|
|
|
border: 0;
|
|
|
|
background: @btn-emphasis-bg-color;
|
|
|
|
&:hover {
|
|
|
|
border-radius: 0;
|
|
|
|
background: darken(@btn-emphasis-bg-color, 10%);
|
|
|
|
}
|
|
|
|
&:active {
|
|
|
|
background: @btn-emphasis-bg-color;
|
|
|
|
}
|
|
|
|
}
|
2016-02-23 04:07:09 +08:00
|
|
|
.primary-item {
|
|
|
|
box-shadow: -1px 0 0 2px @btn-emphasis-bg-color;
|
2017-10-15 08:36:44 +08:00
|
|
|
&:hover {
|
|
|
|
box-shadow: -1px 0 0 2px darken(@btn-emphasis-bg-color, 10%);
|
|
|
|
}
|
2016-02-23 04:07:09 +08:00
|
|
|
}
|
|
|
|
.secondary-picker {
|
|
|
|
box-shadow: 1px 0 0 2px @btn-emphasis-bg-color;
|
2017-10-15 08:36:44 +08:00
|
|
|
&:hover {
|
|
|
|
box-shadow: 1px 0 0 2px darken(@btn-emphasis-bg-color, 10%);
|
|
|
|
}
|
2016-02-23 04:07:09 +08:00
|
|
|
}
|
|
|
|
.only-item {
|
|
|
|
box-shadow: 0 0 0 2px @btn-emphasis-bg-color;
|
2017-10-15 08:36:44 +08:00
|
|
|
&:hover {
|
|
|
|
box-shadow: 0 0 0 2px darken(@btn-emphasis-bg-color, 10%);
|
|
|
|
}
|
2016-02-23 04:07:09 +08:00
|
|
|
}
|
2016-01-26 06:14:09 +08:00
|
|
|
}
|
2015-09-28 18:09:34 +08:00
|
|
|
}
|
|
|
|
}
|