From 74f52ef52c858162acc1195f58845be5db5ece1c Mon Sep 17 00:00:00 2001 From: Tankred Hase Date: Sat, 14 Sep 2013 18:20:25 +0200 Subject: [PATCH] implement inputs for address headers in write --- src/css/global.scss | 9 ++++----- src/css/write.scss | 14 ++++++++++---- src/js/controller/message-list.js | 6 +++--- src/tpl/read.html | 13 +++++++++---- src/tpl/write.html | 18 ++++++++++++------ 5 files changed, 38 insertions(+), 22 deletions(-) diff --git a/src/css/global.scss b/src/css/global.scss index a4dd8fe..d7fb11c 100644 --- a/src/css/global.scss +++ b/src/css/global.scss @@ -17,9 +17,12 @@ body, input, button { .address { margin-left: 0.3em; + padding: 0.25em 1em; +} + +.address-verified { color: $lightgrey-color; background-color: $blue-color; - padding: 0.25em 1em; border-radius: 1em; box-shadow: 1px 1px 0px $blue-box-shadow-color; } @@ -38,8 +41,4 @@ body, input, button { .mail-text-body { line-height: 1.5em; - - p { - margin-bottom: 1em; - } } \ No newline at end of file diff --git a/src/css/write.scss b/src/css/write.scss index 881a900..a799398 100644 --- a/src/css/write.scss +++ b/src/css/write.scss @@ -9,6 +9,16 @@ margin-bottom: 20px; } + input { + font-size: 1em; + border: 0!important; + outline: 0px; + } + + .address-input { + width: 90%; + } + .subject-box { margin: 20px 0; width: inherit; @@ -25,12 +35,8 @@ } .subject { - border: 0!important; font-weight: bold; - font-size: 1em; width: 100%; - color: $default-text-color; - outline: 0px; } .attachment-btn { diff --git a/src/js/controller/message-list.js b/src/js/controller/message-list.js index f713128..01b65ce 100644 --- a/src/js/controller/message-list.js +++ b/src/js/controller/message-list.js @@ -122,9 +122,9 @@ define(function(require) { this.displayDate = '23.08.13'; this.longDisplayDate = 'Wednesday, 23.08.2013 19:23'; this.subject = "Welcome Max"; // Subject line - this.body = "Hi Max,\n" + - "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.\n" + - "Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet,\n" + + this.body = "Hi Max,\n\n" + + "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.\n\n" + + "Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet.\n\n" + "Best regards\nYour whiteout team"; // plaintext body }; diff --git a/src/tpl/read.html b/src/tpl/read.html index 07fe7c2..871120f 100644 --- a/src/tpl/read.html +++ b/src/tpl/read.html @@ -17,11 +17,11 @@

{{selected.longDisplayDate}}

-

From: {{selected.from[0].name || selected.from[0].address}}

-

To: {{t.address}}

+

From: {{selected.from[0].name || selected.from[0].address}}

+

To: {{t.address}}

- CC: {{t.address}} + CC: {{t.address}}

@@ -29,6 +29,11 @@
-

{{part}}

+

+ +
+ {{part}} +
+

\ No newline at end of file diff --git a/src/tpl/write.html b/src/tpl/write.html index 1f3e2db..28c4a0e 100644 --- a/src/tpl/write.html +++ b/src/tpl/write.html @@ -2,13 +2,19 @@

New Mail

-

To: Max Musterman

-

CC: Alice Example Hans Wurst

+

+ To: + +

+

+ CC: + +

- +
@@ -16,13 +22,13 @@
-

+

-----BEGIN ENCRYPTED PREVIEW-----
{{ciphertextPreview}}
-----END ENCRYPTED PREVIEW-----

-

--
{{signature}}

+


--
{{signature}}

-
Send securely
+
Send securely
\ No newline at end of file