mirror of
https://github.com/moparisthebest/mail
synced 2024-11-22 08:52:15 -05:00
Merge pull request #177 from whiteout-io/dev/WO-728
Display text body preview in desktop mode
This commit is contained in:
commit
996730f160
@ -25,7 +25,7 @@ $color-grey-dark: #333;
|
||||
$color-grey-medium: #999;
|
||||
$color-grey-light: #ccc;
|
||||
$color-grey-lighter: #ddd;
|
||||
$color-grey-lighterer: #f0eff5;
|
||||
$color-grey-lighterer: #f4f4f4;
|
||||
$color-grey-lightest: #f9f9f9;
|
||||
$color-grey-dark-alpha: rgba(0, 0, 0, 0.80);
|
||||
|
||||
@ -33,6 +33,7 @@ $color-grey-dark-alpha: rgba(0, 0, 0, 0.80);
|
||||
// -------------------------------------------
|
||||
|
||||
$color-bg: $color-white;
|
||||
$color-bg-dark: $color-grey-lighterer;
|
||||
$color-text: $color-grey-dark;
|
||||
$color-text-light: $color-grey-medium;
|
||||
$color-main: $color-blue;
|
||||
|
@ -14,7 +14,7 @@
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 10px 20px;
|
||||
background: $color-grey-lighterer;
|
||||
background: $color-bg-dark;
|
||||
color: $color-text;
|
||||
}
|
||||
|
||||
|
@ -109,7 +109,7 @@
|
||||
|
||||
@include respond-to(lg) {
|
||||
height: 100%;
|
||||
background: $color-border-light;
|
||||
background: $color-bg-dark;
|
||||
|
||||
& > header {
|
||||
display: none;
|
||||
@ -265,6 +265,9 @@
|
||||
font-weight: bold;
|
||||
padding-right: 90px; // to make room for time
|
||||
padding-bottom: 8px;
|
||||
& > span {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
&__time {
|
||||
@include scut-truncate;
|
||||
@ -326,7 +329,7 @@
|
||||
$cell-padding-horizontal: 10px;
|
||||
|
||||
display: table-row;
|
||||
background: mix($color-bg, $color-border-light, 70%);
|
||||
background: $color-bg-dark;
|
||||
color: $color-grey;
|
||||
cursor: pointer;
|
||||
|
||||
@ -406,12 +409,24 @@
|
||||
display: table-cell;
|
||||
border-bottom: 1px solid $color-border-light;
|
||||
padding: $cell-padding-vertical $cell-padding-horizontal;
|
||||
width: 16em;
|
||||
}
|
||||
&__subject {
|
||||
@include scut-truncate;
|
||||
display: table-cell;
|
||||
border-bottom: 1px solid $color-border-light;
|
||||
padding: $cell-padding-vertical $cell-padding-horizontal;
|
||||
& > strong {
|
||||
font-weight: normal;
|
||||
}
|
||||
& > span {
|
||||
margin-left: 0.2em;
|
||||
color: $color-text-light;
|
||||
&:before {
|
||||
content: '-';
|
||||
margin-right: 0.2em;
|
||||
}
|
||||
}
|
||||
}
|
||||
&__time {
|
||||
display: table-cell;
|
||||
@ -439,6 +454,12 @@
|
||||
.mail-list-entry__name {
|
||||
font-weight: bold;
|
||||
}
|
||||
.mail-list-entry__subject {
|
||||
font-weight: normal;
|
||||
& > strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
}
|
||||
&--attachment {
|
||||
.mail-list-entry__attachment > svg {
|
||||
|
@ -52,7 +52,12 @@
|
||||
</li>
|
||||
</ul>
|
||||
<h3 class="mail-list-entry__name">{{email.from[0].name || email.from[0].address}}</h3>
|
||||
<div class="mail-list-entry__subject">{{email.subject || 'No subject'}}</div>
|
||||
<div class="mail-list-entry__subject">
|
||||
<strong>{{email.subject || 'No subject'}}</strong>
|
||||
<span>
|
||||
{{email.body ? email.body.substr(0, 200) : ''}}
|
||||
</span>
|
||||
</div>
|
||||
<div class="mail-list-entry__attachment">
|
||||
<svg><use xlink:href="#icon-attachment" /><title>Attachments</title></svg>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user