styled plain read view

This commit is contained in:
Tankred Hase 2013-09-11 15:19:18 +02:00
parent eb5b8a1162
commit 88b12aa2bf
6 changed files with 76 additions and 8 deletions

View File

@ -3,6 +3,9 @@
.left-listing {
float: left;
width: 344px;
border: 1px;
border-right-style:solid;
border-color: $grey-text-color;
}
.right-reader {

View File

@ -101,7 +101,7 @@
}
.sent-date {
float: right;
color: #D8D8D8;
color: $grey-text-color;
}
.text-preview {
font-size: 0.875em;

View File

@ -2,4 +2,44 @@
.read-message {
padding: 10px 15px;
.subject {
font-size: 1.5em;
}
.date {
color: $grey-text-color;
font-size: 0.875em;
margin-top: 0.5em;
margin-bottom: 1.5em;
}
.address-headers {
color: $header-text-color;
p {
line-height: 1.9em;
}
.address {
color: $blue-color;
}
}
.seperator-line {
height: 1px;
color: $grey-border-color;
background-color: $grey-border-color;
border-color: $grey-border-color;
margin-top: 1em;
margin-bottom: 1.5em;
}
.body {
line-height: 1.5em;
p {
margin-bottom: 1em;
}
}
}

View File

@ -1,6 +1,10 @@
/* colors */
$default-text-color: #333333;
$header-text-color: #666666;
$grey-text-color: #cccccc;
$grey-border-color: #dddddd;
$blue-color: #00c6ff;
$lightgrey-color: #f9f9f9;
$blue-box-shadow-color: #A4A4A4;

View File

@ -9,6 +9,7 @@ define(function(require) {
$scope.messageId = $routeParams.messageId;
$scope.select = function(email) {
email.bodyDisplayParts = email.body.split('\n');
$scope.selected = email;
};
@ -68,11 +69,17 @@ define(function(require) {
this.to = [{
address: 'max.musterman@gmail.com'
}]; // list of receivers
this.cc = [{
address: 'hans.wurst@gmail.com'
}]; // list of receivers
this.unread = unread;
this.displayDate = '23.08.13';
this.longDisplayDate = 'Wednesday, 23.08.2013 19:23';
this.subject = "Welcome Max"; // Subject line
this.body = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy."; // plaintext body
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" +
"Best regards\nYour whiteout team"; // plaintext body
};
var dummys = [new Email(true), new Email(true), new Email(false), new Email(false), new Email(false), new Email(false)];

View File

@ -1,8 +1,22 @@
<div class="read-message">
<p>{{selected.subject}}</p>
<p>{{selected.longDisplayDate}}</p>
<p>From: {{selected.from[0].name}}</p>
<p>To: <span ng-repeat="t in selected.to">{{t.address}} </span></p>
<p>CC: <span ng-repeat="t in selected.cc">{{t.address}} </span></p>
<p>{{selected.body}}</p>
<p class="subject">{{selected.subject}}</p>
<p class="date">{{selected.longDisplayDate}}</p>
<div class="address-headers">
<p>From: <span class="address">{{selected.from[0].name}}</span></p>
<p>To: <span class="address" ng-repeat="t in selected.to">{{t.address}} </span></p>
<div ng-switch="selected.cc !== undefined">
<p ng-switch-when="true">
CC: <span class="address" ng-repeat="t in selected.cc">{{t.address}} </span>
</p>
</div>
</div>
<div class="seperator-line"></div>
<div class="body">
<p ng-repeat="part in selected.bodyDisplayParts">{{part}}</p>
</div>
</div>