diff --git a/src/sass/_scaffolding.scss b/src/sass/_scaffolding.scss index 438c8c9..515f4e4 100755 --- a/src/sass/_scaffolding.scss +++ b/src/sass/_scaffolding.scss @@ -49,7 +49,7 @@ textarea { background: $color-grey-lighter; border: 3px solid transparent; background-clip: content-box; - cursor: pointer; + cursor: pointer !important; &:hover { background-color: $color-blue; } diff --git a/src/sass/all.scss b/src/sass/all.scss index 29a61de..c05a6e2 100755 --- a/src/sass/all.scss +++ b/src/sass/all.scss @@ -21,6 +21,7 @@ @import "components/layout"; @import "components/popover"; @import "components/input"; +@import "components/mail-addresses"; // Views @import "views/shared"; diff --git a/src/sass/components/_mail-addresses.scss b/src/sass/components/_mail-addresses.scss new file mode 100644 index 0000000..994a619 --- /dev/null +++ b/src/sass/components/_mail-addresses.scss @@ -0,0 +1,17 @@ +.mail-addresses { + p { + margin: 0.4em 0 0.2em; + cursor: text; + } + + .label { + margin-bottom: 0.2em; + margin-right: 0.5em; + } + + label { + display: inline-block; + width: 2.75em; + color: $color-grey; + } +} \ No newline at end of file diff --git a/src/sass/views/_read.scss b/src/sass/views/_read.scss index 4ef3e09..ed90a3d 100644 --- a/src/sass/views/_read.scss +++ b/src/sass/views/_read.scss @@ -1,19 +1,19 @@ .view-read { + display: flex; + flex-direction: column; margin: 0px; padding: 10px 15px; height: 100%; + width: 100%; color: $color-grey-dark; .headers { + flex-shrink: 0; margin-bottom: 1em; - p { - margin: 0px; - padding: 0px; - } - .subject { font-size: $font-size-bigger; + margin: 0; } .date { @@ -21,24 +21,31 @@ font-size: $font-size-small; margin-top: 0.25em; margin-bottom: 1.5em; - padding: 0px; } - .address { - color: $color-grey; - padding: 0.2em 0; - + .mail-addresses { .label { - margin-left: 0.3em; + cursor: pointer; + } - &:hover { - cursor: pointer; - } + p { + margin-top: 0.2em; + margin-bottom: 0; + } + } + + .controls { + float: right; + margin: 0 15px 10px; + + button { + margin-left: 7px; } } } .attachments { + flex-shrink: 0; position: relative; width: inherit; border: 1px; @@ -72,54 +79,50 @@ } .seperator-line { + flex-shrink: 0; height: 1px; color: $color-grey-lighter; background-color: $color-grey-lighter; } .body { + flex-grow: 1; + position: relative; margin-top: 1.75em; cursor: text; - padding-bottom: 250px; line-height: 1.5em; - height: 100%; overflow-y: scroll; user-select: text; .working { - margin: 0 auto; - height: 100%; - width: 230px; - display: table; + position: absolute; + top: 50%; + width: 100%; + transform: translateY(-50%); + vertical-align: middle; + text-align: center; - .container { - display: table-cell; + .spinner { + font-size: 2em; + margin-right: 0.2em; vertical-align: middle; - .spinner { - position: relative; + // todo: outsource component + display: inline-block; + height: 1em; + width: 1em; + animation: rotation .6s linear infinite; + border-left: 0.17em solid $color-grey-light; + border-right: 0.17em solid $color-grey-light; + border-bottom: 0.17em solid $color-grey-light; + border-top: 0.17em solid $color-grey; + border-radius: 100%; + } - div { - position: absolute; - top: 0; - left: 0; - height: 30px; - width: 30px; - animation: rotation .6s linear infinite; - border-left: 5px solid $color-grey-light; - border-right: 5px solid $color-grey-light; - border-bottom: 5px solid $color-grey-light; - border-top: 5px solid $color-grey; - border-radius: 100%; - } - } - - h1 { - margin: 0; - padding-left: 40px; - line-height: 30px; - color: $color-grey-input; - } + strong { + color: $color-grey-input; + font-size: 2em; + vertical-align: middle; } } @@ -137,6 +140,7 @@ } iframe { + flex-grow: 1; width: 100%; } @@ -175,13 +179,4 @@ } } -} - -.controls { - float: right; - margin: 10px 15px; - - button { - margin-left: 7px; - } } \ No newline at end of file diff --git a/src/sass/views/_write.scss b/src/sass/views/_write.scss index 96b6de9..d5bbf16 100644 --- a/src/sass/views/_write.scss +++ b/src/sass/views/_write.scss @@ -20,31 +20,12 @@ border: 0!important; } - .headers { + .mail-addresses { flex-shrink: 0; margin-top: 10px; - - p { - margin: 0.4em 0 0.2em; - cursor: text; - } - - .label { - margin-bottom: 0.2em; - } - - label { - display: inline-block; - width: 2em; - color: $color-grey; - } - - input { - margin-left: 0.3em; - } } - .headers-more { + .mail-addresses-more { float: right; margin: 0.4em 0; diff --git a/src/tpl/read.html b/src/tpl/read.html index 618fc14..32cc377 100644 --- a/src/tpl/read.html +++ b/src/tpl/read.html @@ -1,24 +1,29 @@ -
- - - -
-
+
+ + + +
+

{{(state.mailList.selected.subject) ? state.mailList.selected.subject : 'No subject'}}

{{state.mailList.selected.sentDate | date:'EEEE, MMM d, yyyy h:mm a'}}

-

- From: {{u.name || u.address}} -

-

- To: {{u.name || u.address}} -

-
-

- Cc: {{u.name || u.address}} +

+

+ + {{u.name || u.address}}

-
+

+ + {{u.name || u.address}} +

+
+

+ + {{u.name || u.address}} +

+
+
@@ -44,13 +49,8 @@
-
-
- -

Loading...

-

Decrypting...

-
-
+ +
diff --git a/src/tpl/write.html b/src/tpl/write.html index 96fed9b..7beb025 100644 --- a/src/tpl/write.html +++ b/src/tpl/write.html @@ -6,30 +6,24 @@
-
-
+
+

- - - +

- - - +

- - - +

-
+