2015-02-07 06:46:30 +08:00
|
|
|
@import "ui-variables";
|
|
|
|
|
2015-08-04 04:06:28 +08:00
|
|
|
@token-top:lighten(@background-secondary,0.6%);
|
|
|
|
@token-bottom:darken(@background-secondary, 2.5%);
|
|
|
|
|
|
|
|
@token-hover-top: mix(@token-top, @component-active-color, 92%);
|
|
|
|
@token-hover-bottom: mix(@token-bottom, @component-active-color, 90%);
|
|
|
|
|
|
|
|
@token-selected-top: mix(@token-top, @component-active-color, 15%);
|
|
|
|
@token-selected-bottom: mix(@token-bottom, @component-active-color, 0%);
|
|
|
|
|
|
|
|
@token-invalid-selected-top: mix(@token-top, red, 60%);
|
|
|
|
@token-invalid-selected-bottom: mix(@token-bottom, red, 55%);
|
|
|
|
|
2015-02-07 06:46:30 +08:00
|
|
|
.tokenizing-field {
|
2015-03-05 04:30:54 +08:00
|
|
|
display: block;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
position: relative;
|
|
|
|
|
2015-03-21 01:23:50 +08:00
|
|
|
.content-container {
|
|
|
|
border: 1px solid @border-secondary-bg;
|
|
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.2);
|
|
|
|
border-radius: @border-radius-small;
|
2015-11-10 10:52:24 +08:00
|
|
|
background-color: @background-primary;
|
2015-03-21 01:23:50 +08:00
|
|
|
position: absolute;
|
2015-08-11 05:47:47 +08:00
|
|
|
z-index: 2;
|
2015-03-21 01:23:50 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.content-container.empty {
|
|
|
|
border: 0;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
|
2015-03-05 04:30:54 +08:00
|
|
|
.header-container, .footer-container {
|
|
|
|
background-color: transparent;
|
|
|
|
padding:0;
|
|
|
|
margin:0;
|
|
|
|
border:0;
|
|
|
|
}
|
|
|
|
|
2015-08-04 04:06:28 +08:00
|
|
|
.token-editing-input {
|
|
|
|
max-width: 100%;
|
|
|
|
font-size: 15px;
|
|
|
|
line-height: 17px;
|
|
|
|
padding: 2em;//0.5em @spacing-three-quarters 0.5em @spacing-three-quarters;
|
|
|
|
padding-right: 1.5em;
|
|
|
|
margin: 3px 6px 6px 1px;
|
|
|
|
}
|
|
|
|
|
2015-03-05 04:30:54 +08:00
|
|
|
.token {
|
|
|
|
display: inline-block;
|
2015-02-07 06:46:30 +08:00
|
|
|
position: relative;
|
2015-06-06 02:40:44 +08:00
|
|
|
color: @text-color;
|
2015-08-04 04:06:28 +08:00
|
|
|
padding: 0.5em @spacing-three-quarters 0.5em @spacing-three-quarters;
|
2015-03-05 04:30:54 +08:00
|
|
|
padding-right: 1.5em;
|
2015-08-04 04:06:28 +08:00
|
|
|
margin: 3px 6px 6px 1px;
|
|
|
|
border-radius: @border-radius-base * 0.8;
|
2015-03-05 10:47:48 +08:00
|
|
|
max-width: 100%;
|
2015-08-04 04:06:28 +08:00
|
|
|
font-size: 15px;
|
|
|
|
line-height: 17px;
|
|
|
|
|
|
|
|
background: linear-gradient(to bottom, @token-top 0%, @token-bottom 100%);
|
|
|
|
box-shadow: 0 0.5px 0 rgba(0,0,0,0.17), 0 -0.5px 0 rgba(0,0,0,0.17), 0.5px 0 0 rgba(0,0,0,0.17), -0.5px 0 0 rgba(0,0,0,0.17), 0 1px 1px rgba(0, 0, 0, 0.1);
|
2015-02-07 06:46:30 +08:00
|
|
|
|
2015-03-05 04:30:54 +08:00
|
|
|
.action {
|
|
|
|
position:absolute;
|
|
|
|
padding: 0;
|
|
|
|
border: 0;
|
|
|
|
margin: 0;
|
2015-08-04 04:06:28 +08:00
|
|
|
right: 7px;
|
2015-03-05 04:30:54 +08:00
|
|
|
background-color: transparent;
|
|
|
|
color: @text-color-very-subtle;
|
2015-06-12 09:45:48 +08:00
|
|
|
img { background-color: @text-color-very-subtle; }
|
2015-03-05 04:30:54 +08:00
|
|
|
font-size: 10px;
|
2015-02-07 06:46:30 +08:00
|
|
|
}
|
2015-03-05 04:30:54 +08:00
|
|
|
&:hover {
|
2015-08-04 04:06:28 +08:00
|
|
|
background: linear-gradient(to bottom, @token-hover-top 0%, @token-hover-bottom 100%);
|
|
|
|
box-shadow: 0 0.5px 0 darken(@token-hover-bottom, 35%), 0 -0.5px 0 darken(@token-hover-top, 25%), 0.5px 0 0 darken(@token-hover-bottom, 25%), -0.5px 0 0 darken(@token-hover-bottom, 25%), 0 1px 1px rgba(0, 0, 0, 0.07);
|
2015-03-19 09:21:04 +08:00
|
|
|
cursor: default;
|
2015-02-07 06:46:30 +08:00
|
|
|
}
|
2015-08-04 04:06:28 +08:00
|
|
|
&.invalid {
|
|
|
|
border-bottom:1px dashed red;
|
|
|
|
margin-bottom: -1px;
|
|
|
|
background: transparent;
|
|
|
|
&:hover {
|
|
|
|
box-shadow: 0 -0.5px 0 @token-invalid-selected-top, 0.5px 0 0 @token-invalid-selected-bottom, -0.5px 0 0 @token-invalid-selected-bottom, 0 1px 1px rgba(0, 0, 0, 0.07);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.invalid.selected, &.invalid.dragging {
|
|
|
|
background: linear-gradient(to bottom, @token-invalid-selected-top 0%, @token-invalid-selected-bottom 100%);
|
|
|
|
box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.3), 0 1px 1px rgba(0, 0, 0, 0.1);
|
|
|
|
border: 1px solid darken(@token-invalid-selected-bottom, 8%);
|
|
|
|
border-top: 1px solid darken(@token-invalid-selected-top, 10%);
|
|
|
|
}
|
|
|
|
|
2015-03-05 04:30:54 +08:00
|
|
|
&.selected,
|
|
|
|
&.dragging {
|
2015-08-04 04:06:28 +08:00
|
|
|
background: linear-gradient(to bottom, @token-selected-top 0%, @token-selected-bottom 100%);
|
|
|
|
box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.3), 0 1px 1px rgba(0, 0, 0, 0.1);
|
|
|
|
border: 1px solid darken(@token-selected-bottom, 8%);
|
|
|
|
border-top: 1px solid darken(@token-selected-top, 10%);
|
|
|
|
border-radius: @border-radius-base;
|
|
|
|
|
|
|
|
// Note: we switch from 0.5px borders with box shadows to a real border,
|
|
|
|
// because the 0.5px shadows can't be as dark as we want. This means
|
|
|
|
// margins / border radius change by 1px.
|
|
|
|
margin: 2px 5px 5px 0;
|
|
|
|
|
2015-03-05 04:30:54 +08:00
|
|
|
color: @text-color-inverse;
|
2015-06-04 02:07:59 +08:00
|
|
|
.action {
|
|
|
|
color: @text-color-inverse-subtle;
|
2015-06-12 09:45:48 +08:00
|
|
|
img { background-color: @text-color-inverse-subtle; }
|
2015-06-04 02:07:59 +08:00
|
|
|
}
|
2015-08-04 04:06:28 +08:00
|
|
|
.secondary,
|
|
|
|
.participant-secondary {
|
|
|
|
color: @text-color-inverse-subtle;
|
|
|
|
}
|
2015-02-07 06:46:30 +08:00
|
|
|
}
|
2015-03-18 07:19:40 +08:00
|
|
|
&.dragging {
|
|
|
|
cursor: -webkit-grabbing;
|
|
|
|
}
|
2015-03-05 04:30:54 +08:00
|
|
|
}
|
2015-02-07 06:46:30 +08:00
|
|
|
|
2015-03-05 04:30:54 +08:00
|
|
|
.tokenizing-field-label {
|
2015-03-05 07:52:40 +08:00
|
|
|
color: @text-color-very-subtle;
|
2015-03-05 04:30:54 +08:00
|
|
|
float: left;
|
|
|
|
text-transform: capitalize;
|
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
|
|
|
padding-top: 9px;
|
2015-03-05 04:30:54 +08:00
|
|
|
display: block;
|
|
|
|
}
|
2015-03-05 07:52:40 +08:00
|
|
|
|
2015-03-05 04:30:54 +08:00
|
|
|
.tokenizing-field-input {
|
2015-03-05 10:47:48 +08:00
|
|
|
position: relative;
|
2015-08-04 08:05:31 +08:00
|
|
|
padding-left: 2.8em;
|
2015-02-07 06:46:30 +08:00
|
|
|
|
2015-05-08 06:28:44 +08:00
|
|
|
&:hover {
|
|
|
|
cursor: text;
|
|
|
|
}
|
|
|
|
|
2015-03-05 04:30:54 +08:00
|
|
|
input {
|
|
|
|
display: inline-block;
|
|
|
|
width: initial;
|
2015-06-04 02:07:59 +08:00
|
|
|
vertical-align:top;
|
2015-03-05 04:30:54 +08:00
|
|
|
border: none;
|
2015-06-26 22:06:57 +08:00
|
|
|
min-width: 0.5em;
|
2015-03-05 04:30:54 +08:00
|
|
|
background-color:transparent;
|
2015-06-04 02:07:59 +08:00
|
|
|
|
2015-06-12 09:39:55 +08:00
|
|
|
// NOTE: padding-top and padding-bottom need to match that of
|
|
|
|
// `.token`. to ensure they have the same baseline.
|
|
|
|
//
|
|
|
|
// The padding-left and padding-right must be 0 so we can manually
|
|
|
|
// set the width properly to always match the size of the input
|
|
|
|
// test.
|
2015-08-07 03:27:49 +08:00
|
|
|
padding: 0.4em 0 0.4em 0;
|
|
|
|
margin: 2px 0 3px 0;
|
2015-06-04 02:07:59 +08:00
|
|
|
|
2015-05-08 06:28:44 +08:00
|
|
|
&.noop-input {
|
|
|
|
position: absolute;
|
|
|
|
min-width: 0;
|
|
|
|
padding-left: 0;
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
2015-02-07 06:46:30 +08:00
|
|
|
}
|
2015-05-08 06:28:44 +08:00
|
|
|
|
2015-03-06 02:59:00 +08:00
|
|
|
input:focus {
|
|
|
|
box-shadow: none;
|
2015-02-07 06:46:30 +08:00
|
|
|
}
|
2015-03-05 04:30:54 +08:00
|
|
|
}
|
2015-06-18 11:40:08 +08:00
|
|
|
|
|
|
|
.placeholder {
|
|
|
|
color: fade(@text-color, 50%);
|
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
margin-top: -0.8em;
|
|
|
|
left: 1em;
|
|
|
|
font-size: 12px;
|
|
|
|
}
|
2015-02-07 06:46:30 +08:00
|
|
|
}
|
|
|
|
|
2015-08-04 04:06:28 +08:00
|
|
|
body.is-blurred .tokenizing-field .token:not(.invalid) {
|
|
|
|
background: @background-secondary;
|
2015-02-07 06:46:30 +08:00
|
|
|
}
|
2015-10-22 11:32:33 +08:00
|
|
|
|
|
|
|
body.platform-win32 {
|
|
|
|
.tokenizing-field {
|
|
|
|
.content-container {
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.token {
|
|
|
|
border-radius: 0;
|
|
|
|
background: @token-bottom;
|
|
|
|
&.selected,
|
|
|
|
&.dragging {
|
|
|
|
border-radius: 0;
|
|
|
|
background: @token-selected-top;
|
|
|
|
}
|
|
|
|
&:hover {
|
|
|
|
background: @token-hover-bottom;
|
|
|
|
}
|
|
|
|
&.invalid.selected, &.invalid.dragging {
|
|
|
|
background: @token-invalid-selected-top;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|