mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-07 16:48:02 +08:00
c629967c3d
commit423cf4f407
Author: Ben Gotow <ben@foundry376.com> Date: Fri Oct 11 22:33:53 2019 -0500 Replace belcard with homegrown VCard parser because our needs are minimal and the linux binary has relocation issues commit4ae19c0ed5
Author: Ben Gotow <ben@foundry376.com> Date: Fri Oct 11 10:38:26 2019 -0500 Skip building a few more belr components, still looking for relocation error cause commita7ec02a449
Author: Ben Gotow <ben@foundry376.com> Date: Thu Oct 10 22:16:15 2019 -0500 Fix windows SRV record lookups for contact directory autodiscovery commit318a31d279
Author: Ben Gotow <ben@foundry376.com> Date: Thu Oct 10 20:50:06 2019 -0500 Leave vcard_grammar unpacked so mailsync can find it at runtime commitbf7e43e37d
Author: Ben Gotow <ben@foundry376.com> Date: Thu Oct 10 20:43:01 2019 -0500 Fix bug in icon case sensitivity commitc283513653
Author: Ben Gotow <ben@foundry376.com> Date: Thu Oct 10 17:29:24 2019 -0500 Renew Windows Authenticode code signing cert (there goes $500…) commitd13235f65b
Author: Ben Gotow <ben@foundry376.com> Date: Wed Oct 9 23:25:34 2019 -0500 Bump mailsync to move belr dlls commit00ca6431df
Author: Ben Gotow <ben@foundry376.com> Date: Wed Oct 9 23:22:53 2019 -0500 Bump to xcode9 to fix odd C++11 error commit47903c99c4
Author: Ben Gotow <ben@foundry376.com> Date: Wed Oct 9 23:01:32 2019 -0500 Bump mailsync to build belr as a dll instead of a static lib commit21d645d4e7
Author: Ben Gotow <ben@foundry376.com> Date: Wed Oct 9 22:38:24 2019 -0500 Bump mailsync commit3f943031cb
Author: Ben Gotow <ben@foundry376.com> Date: Wed Oct 9 21:57:39 2019 -0500 Bump mailsync to fix windows libetpan failure commit8fb55ca0fc
Author: Ben Gotow <ben@foundry376.com> Date: Wed Oct 9 21:36:57 2019 -0500 Bump mailsync, add grammar commitb959c54e50
Author: Ben Gotow <ben@foundry376.com> Date: Wed Oct 9 21:20:13 2019 -0500 Bump mailsync for linux / win32 commitddb5229d67
Author: Ben Gotow <ben@foundry376.com> Date: Tue Oct 8 22:44:12 2019 -0500 Bump mailsync commitf80e1bc422
Author: Ben Gotow <ben@foundry376.com> Date: Tue Oct 8 11:11:39 2019 -0500 Fix LESS linter failures commit66dc60a731
Author: Ben Gotow <ben@foundry376.com> Date: Tue Oct 8 11:00:37 2019 -0500 Extend participant search to return / expand groups commit3bded91307
Author: Ben Gotow <ben@foundry376.com> Date: Tue Oct 8 03:18:11 2019 -0500 Add comments, etc commit4ede5446de
Author: Ben Gotow <ben@foundry376.com> Date: Tue Oct 8 02:38:50 2019 -0500 Google People API contacts CRUD alongside CardDav commit96c6a64e46
Author: Ben Gotow <ben@foundry376.com> Date: Mon Oct 7 14:00:34 2019 -0500 Build ContactBook concept to track which accounts have sync running commit1f6aab1083
Author: Ben Gotow <ben@foundry376.com> Date: Mon Oct 7 11:38:03 2019 -0500 Contact and contact group CRUD, address book menus commitb877c58d48
Author: Ben Gotow <ben@foundry376.com> Date: Sun Oct 6 16:32:33 2019 -0500 Editing contact names working commit761079304c
Author: Ben Gotow <ben@foundry376.com> Date: Mon Sep 30 15:42:59 2019 -0500 Improved styling of YYYYMMDD field commit71a567276b
Author: Ben Gotow <ben@foundry376.com> Date: Mon Sep 30 15:06:28 2019 -0500 UI for edit + move + delete contacts commitf1967dd603
Author: Ben Gotow <ben@foundry376.com> Date: Thu Sep 26 13:50:44 2019 -0500 Allow you to turn on / off the “Found in Mail” autocompletions commit0c2b0eb03b
Author: Ben Gotow <ben@foundry376.com> Date: Thu Sep 26 13:50:14 2019 -0500 Improve contacts window launch perf by lazy loading composer support, scanning less of fs for themes commit07abd6cb71
Author: Ben Gotow <ben@foundry376.com> Date: Thu Sep 26 04:36:10 2019 -0500 Support for CardDav contact display, better groups presentation commit0a9e166d79
Author: Ben Gotow <ben@foundry376.com> Date: Tue Sep 24 12:42:37 2019 -0500 Add hidden attribute to the model in prep for deletion of auto-created contacts commite6ce3b2af9
Author: Ben Gotow <ben@foundry376.com> Date: Tue Sep 24 12:12:52 2019 -0500 Initial pass at address book commit740d7e8655
Author: Ben Gotow <ben@foundry376.com> Date: Tue Sep 24 08:27:06 2019 -0500 Make headers of Preferences > Accounts consistent with General
280 lines
5.7 KiB
Text
280 lines
5.7 KiB
Text
@import 'ui-variables';
|
|
@import 'ui-mixins';
|
|
@file-icon-color: #c7c7c7;
|
|
@attachment-border-color: rgba(0, 0, 0, 0.09);
|
|
|
|
.nylas-attachment-item {
|
|
cursor: default;
|
|
display: inline-block;
|
|
position: relative;
|
|
font-size: @font-size-small;
|
|
margin: 0 0 @spacing-standard @spacing-standard;
|
|
width: calc(~'50% - 23px');
|
|
min-width: 320px;
|
|
|
|
&.file-attachment-item:focus {
|
|
.file-info-wrap,
|
|
.file-action-icon,
|
|
.file-thumbnail-preview {
|
|
border-color: lighten(@component-active-color, 10%);
|
|
}
|
|
.file-action-icon {
|
|
border-left-color: @attachment-border-color;
|
|
}
|
|
}
|
|
|
|
.file-thumbnail-preview {
|
|
width: 100%;
|
|
height: 94px;
|
|
text-align: left;
|
|
overflow: hidden;
|
|
border: solid 1px @attachment-border-color;
|
|
border-bottom: none;
|
|
border-top-left-radius: 8px;
|
|
border-top-right-radius: 8px;
|
|
}
|
|
|
|
&.file-attachment-item.has-preview {
|
|
&:focus {
|
|
.file-info-wrap,
|
|
.file-action-icon {
|
|
border-top-color: @attachment-border-color;
|
|
}
|
|
}
|
|
.file-info-wrap {
|
|
border-top-left-radius: 0;
|
|
}
|
|
.file-action-icon {
|
|
border-top-right-radius: 0;
|
|
}
|
|
}
|
|
|
|
.inner {
|
|
border-radius: 2px;
|
|
color: @text-color;
|
|
background: @background-off-primary;
|
|
height: 37px;
|
|
}
|
|
|
|
.file-info-wrap {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-grow: 2;
|
|
min-width: 65%;
|
|
padding: 10px;
|
|
height: 105%;
|
|
border: solid 1px @attachment-border-color;
|
|
border-top-left-radius: 8px;
|
|
border-bottom-left-radius: 8px;
|
|
border-right: none;
|
|
|
|
.file-icon {
|
|
margin-right: 10px;
|
|
flex-shrink: 0;
|
|
}
|
|
.file-name {
|
|
font-weight: @font-weight-medium;
|
|
flex: 1;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
max-width: 235px;
|
|
}
|
|
.file-size {
|
|
@file-size-color: #b8b8b8;
|
|
|
|
margin-left: auto;
|
|
margin-right: @spacing-three-quarters;
|
|
color: @file-size-color;
|
|
}
|
|
}
|
|
|
|
.file-action-icon {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
flex-grow: 0;
|
|
flex-basis: 38px;
|
|
margin-left: auto;
|
|
padding: 10px;
|
|
height: 105%;
|
|
width: 38px;
|
|
border: solid 1px @attachment-border-color;
|
|
border-top-right-radius: 8px;
|
|
border-bottom-right-radius: 8px;
|
|
// box-shadow: inset 0 0 0 1px @attachment-border-color;
|
|
|
|
img {
|
|
background-color: @file-icon-color;
|
|
}
|
|
|
|
&.quicklook {
|
|
border-radius: 0;
|
|
border-right: none;
|
|
}
|
|
&:hover img {
|
|
background-color: darken(@file-icon-color, 20%);
|
|
}
|
|
&:active {
|
|
background-color: darken(@btn-default-bg-color, 5%);
|
|
}
|
|
}
|
|
|
|
.progress-bar-wrap {
|
|
display: none;
|
|
|
|
&.state-downloading,
|
|
&.state-started,
|
|
&.state-progress {
|
|
display: block;
|
|
}
|
|
|
|
&.state-completed,
|
|
&.state-success {
|
|
display: block;
|
|
.progress-foreground {
|
|
background: @background-color-success;
|
|
}
|
|
}
|
|
|
|
&.state-aborted,
|
|
&.state-failed {
|
|
display: block;
|
|
.progress-foreground {
|
|
background: @background-color-error;
|
|
}
|
|
}
|
|
|
|
.progress-foreground {
|
|
position: absolute;
|
|
left: 4px;
|
|
bottom: 0;
|
|
height: 2px;
|
|
width: 0; // Changed by React
|
|
z-index: 3;
|
|
display: block;
|
|
background: @blue-light;
|
|
border-bottom-left-radius: 4px;
|
|
transition: width 0.3s linear;
|
|
}
|
|
.progress-background {
|
|
position: absolute;
|
|
left: 4px;
|
|
bottom: 0;
|
|
height: 2px;
|
|
width: 97.5%;
|
|
z-index: 2;
|
|
display: block;
|
|
background: @background-color-pending;
|
|
border-bottom-left-radius: 4px;
|
|
border-bottom-right-radius: 4px;
|
|
}
|
|
}
|
|
}
|
|
|
|
body.platform-win32 {
|
|
.nylas-attachment-item {
|
|
.inner {
|
|
border-radius: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
.nylas-attachment-item.image-attachment-item {
|
|
position: relative;
|
|
text-align: center;
|
|
display: inline-block;
|
|
vertical-align: top;
|
|
margin-bottom: @spacing-standard;
|
|
margin-right: @spacing-standard;
|
|
margin-left: @spacing-standard;
|
|
width: initial;
|
|
max-width: calc(~'100% - 30px');
|
|
|
|
.progress-foreground,
|
|
.progress-foreground {
|
|
bottom: -2px;
|
|
}
|
|
.progress-background {
|
|
bottom: -2px;
|
|
}
|
|
|
|
.file-action-icon,
|
|
.file-name-container,
|
|
.file-name {
|
|
display: none;
|
|
}
|
|
.file-action-icon:active {
|
|
background: none;
|
|
filter: brightness(95%);
|
|
}
|
|
|
|
&:hover {
|
|
border: 1px dashed fade(@text-color, 20%);
|
|
|
|
.file-action-icon,
|
|
.file-name-container,
|
|
.file-name {
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
.file-action-icon {
|
|
position: absolute;
|
|
z-index: 2;
|
|
right: 2px;
|
|
top: -14px;
|
|
width: 26px;
|
|
height: 26px;
|
|
border-radius: 0 0 0 3px;
|
|
border: none;
|
|
img {
|
|
background: none;
|
|
}
|
|
}
|
|
|
|
.file-preview {
|
|
position: relative;
|
|
z-index: 1;
|
|
overflow: hidden;
|
|
|
|
.file-name-container {
|
|
cursor: default;
|
|
position: absolute;
|
|
bottom: 0;
|
|
z-index: 2;
|
|
height: 30px;
|
|
max-width: 100%;
|
|
border-top-right-radius: 3px;
|
|
background: linear-gradient(
|
|
to top,
|
|
rgba(0, 0, 0, 0.5) 0px,
|
|
rgba(0, 0, 0, 0.5) 20px,
|
|
rgba(0, 0, 0, 0) 50px
|
|
);
|
|
vertical-align: bottom;
|
|
|
|
// Important! file-name-container is on top of the image and prevents you from dragging it.
|
|
pointer-events: none;
|
|
|
|
.file-name {
|
|
color: @white;
|
|
padding: 5px 10px;
|
|
z-index: 3;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
max-width: 100%;
|
|
}
|
|
}
|
|
|
|
img {
|
|
position: relative;
|
|
z-index: 1;
|
|
max-width: 100%;
|
|
background: url(../static/images/attachments/transparency-background.png) top left repeat;
|
|
background-size: 8px;
|
|
}
|
|
}
|
|
}
|