mirror of
https://github.com/moparisthebest/mail
synced 2024-08-13 16:43:47 -04:00
6a0ae4d55d
* Use same list style in desktop as mobile * Bugfix: don't download all body when list not displayed * Use ng-infinite-scroll to load DOM nodes on demand * Custom search filter for FTS and reomve angular filters * Rubber band scrolling on iOS * Add CSP support in cordova via html meta tag
133 lines
3.1 KiB
SCSS
Executable File
133 lines
3.1 KiB
SCSS
Executable File
.view-mail-list {
|
|
$padding-horizontal: 15px;
|
|
$padding-vertical: 10px;
|
|
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
width: 100%;
|
|
background: $color-white;
|
|
|
|
header {
|
|
flex-shrink: 0;
|
|
cursor: pointer;
|
|
padding: $padding-vertical $padding-horizontal;
|
|
@include respond-to(mobile) {
|
|
padding: ($padding-vertical + 5px) $padding-horizontal;
|
|
}
|
|
|
|
&:before {
|
|
color: $color-blue;
|
|
font-size: $font-size-bigger;
|
|
margin-right: 0.5em;
|
|
vertical-align: middle;
|
|
}
|
|
h2 {
|
|
margin: 0;
|
|
display: inline;
|
|
color: $color-grey-dark;
|
|
font-size: $font-size-bigger;
|
|
font-weight: normal;
|
|
vertical-align: middle;
|
|
text-shadow: 0px 1px 1px $color-grey-lighter;
|
|
}
|
|
|
|
&.active {
|
|
background-color: darken($color-white, 10%);
|
|
}
|
|
}
|
|
|
|
.compose {
|
|
position: absolute;
|
|
top: $padding-vertical;
|
|
right: $padding-horizontal;
|
|
margin-top: -0.05em; // for perfect vertical alignment with headline
|
|
padding-left: 40px;
|
|
|
|
&.active {
|
|
top: $padding-vertical + 2px;
|
|
right: $padding-horizontal - 2px;
|
|
}
|
|
|
|
@include respond-to(desktop) {
|
|
display: none;
|
|
}
|
|
|
|
button {
|
|
&:active,
|
|
&.active {
|
|
top: 0;
|
|
right: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
.search {
|
|
flex-shrink: 0;
|
|
padding: 0 $padding-horizontal $padding-vertical $padding-horizontal;
|
|
margin: 0 auto;
|
|
width: 100%;
|
|
position: relative;
|
|
input {
|
|
width: 100%;
|
|
padding-left: 1.7em;
|
|
}
|
|
&:before {
|
|
position: absolute;
|
|
left: 25px;
|
|
color: $color-grey-medium;
|
|
top: 8px;
|
|
line-height: 1.3em;
|
|
}
|
|
}
|
|
|
|
.list-wrapper {
|
|
flex-grow: 1;
|
|
padding: 0 ($padding-horizontal - $scrollbar-width) 0 $padding-horizontal;
|
|
overflow-y: scroll;
|
|
// allow scrolling on iOS
|
|
-webkit-overflow-scrolling: touch;
|
|
// put layer on GPU
|
|
transform: translatez(0);
|
|
}
|
|
|
|
footer {
|
|
flex-shrink: 0;
|
|
position: relative;
|
|
height: 28px;
|
|
padding: 0 $nav-padding;
|
|
background: $color-white;
|
|
width: 100%;
|
|
font-size: $font-size-smaller;
|
|
color: $color-grey-dark;
|
|
line-height: em(28,12);
|
|
|
|
&:before {
|
|
content: '';
|
|
display: block;
|
|
position: absolute;
|
|
top: 0;
|
|
left: $nav-padding;
|
|
right: $nav-padding;
|
|
height: 0;
|
|
border-top: 1px solid $color-grey-medium;
|
|
}
|
|
|
|
.offline {
|
|
&[data-icon]:before {
|
|
padding-right: 0.5em;
|
|
}
|
|
}
|
|
|
|
.spinner {
|
|
display:none;
|
|
}
|
|
|
|
&.syncing {
|
|
.spinner {
|
|
display: inline-block;
|
|
}
|
|
}
|
|
}
|
|
|
|
} |