diff --git a/src/app/pages/mail/MailCtrl.js b/src/app/pages/mail/MailCtrl.js index eb7af77..d19c908 100644 --- a/src/app/pages/mail/MailCtrl.js +++ b/src/app/pages/mail/MailCtrl.js @@ -10,14 +10,17 @@ /** @ngInject */ function MailCtrl($scope, $location, $sce) { + + $scope.showMail = false; + $scope.messages = [ { "id": "4563faass", - "name": "Nasta Tyshkavets", + "name": "Nasta Linnie", "subject": "Great text", "date": "2015-08-28T07:57:09", "important": true, - "body": $sce.trustAsHtml("

Hey John,

Check out this cool text.

"), + "body": $sce.trustAsHtml("

Hey John,

Check out this cool text.

"), "pic": "img/Nasta.png", "email": "petraramsey@mail.com", "attachment": "poem.txt", @@ -28,26 +31,26 @@ }, { "id": "4563fdfvd", - "name": "Nasta Tyshkavets", + "name": "Nasta Linnie", "subject": "Lores ipsum", "date": "2015-11-19T03:30:45", "important": false, - "body": $sce.trustAsHtml("

Hey John,


Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris ex mauris, ultrices vel lectus quis, scelerisque hendrerit ipsum. Suspendisse ullamcorper turpis neque, eget dapibus magna placerat ac. Suspendisse rhoncus ligula ac mi tempus varius ut sed lacus. Sed et commodo nulla, et placerat leo. Nam rhoncus vulputate sem non pharetra. Praesent fringilla massa in laoreet convallis. Aliquam lobortis dui a congue facilisis. Aenean dapibus semper semper. Quisque aliquam, nibh dapibus interdum condimentum, ex velit tempor tortor, at vestibulum magna leo quis leo. Morbi pulvinar varius erat ac rutrum. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; In hac habitasse platea dictumst.

" + + "body": $sce.trustAsHtml("

Hey John,


Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris ex mauris, ultrices vel lectus quis, scelerisque hendrerit ipsum. Suspendisse ullamcorper turpis neque, eget dapibus magna placerat ac. Suspendisse rhoncus ligula ac mi tempus varius ut sed lacus. Sed et commodo nulla, et placerat leo. Nam rhoncus vulputate sem non pharetra. Praesent fringilla massa in laoreet convallis. Aliquam lobortis dui a congue facilisis. Aenean dapibus semper semper. Quisque aliquam, nibh dapibus interdum condimentum, ex velit tempor tortor, at vestibulum magna leo quis leo. Morbi pulvinar varius erat ac rutrum. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; In hac habitasse platea dictumst.

" + "

Cras rhoncus quam ipsum, vel dignissim nisl egestas sed. Aliquam erat volutpat. Integer eu nisl elit. Donec malesuada diam vitae tellus luctus tincidunt. Donec tempus blandit neque, rutrum egestas ipsum sagittis tempor. Curabitur volutpat ligula enim, nec vehicula purus molestie at. Sed a facilisis enim, nec molestie magna. Donec in augue non est viverra dapibus vel tempus risus. Nam porttitor purus sit amet hendrerit ullamcorper. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.

"), "pic": "img/Nasta.png", "email": "petraramsey@mail.com", "position": "Great Employee", - "tag": "work", + "tag": "study", "draft": false, "trash": false }, { "id": "4563zxcss", - "name": "Nasta Tyshkavets", + "name": "Nasta Linnie", "subject": "Lores ipsum", "date": "2015-10-19T03:30:45", "important": false, - "body": $sce.trustAsHtml("

Hey John,

Lorem ipsum dolor sit amet, consectetur adipiscing elit

"), + "body": $sce.trustAsHtml("

Hey John,

Lorem ipsum dolor sit amet, consectetur adipiscing elit

"), "pic": "img/Nasta.png", "email": "petraramsey@mail.com", "position": "Great Employee", @@ -77,13 +80,13 @@ "subject": "Gift card", "date": "2015-07-18T10:19:01", "important": false, - "body": $sce.trustAsHtml("

Hey John,


Consectetur adipiscing elit, Lorem ipsum dolor sit amet

"), + "body": $sce.trustAsHtml("

Hey John,


Consectetur adipiscing elit, Lorem ipsum dolor sit amet

"), "pic": "img/Nick.png", "email": "barlowshort@mail.com", "position": "Graphical designer", "draft": false, "trash": false, - "tag": "work" + "tag": "study" }, { "id": "8955asewf", @@ -91,7 +94,7 @@ "subject": "Some news", "date": "2015-09-23T03:04:10", "important": true, - "body": $sce.trustAsHtml("

Hey John,


Integer eu nisl elit. Donec malesuada diam vitae tellus luctus tincidunt. Donec tempus blandit neque, rutrum egestas ipsum sagittis tempor. Curabitur volutpat ligula enim, nec vehicula purus molestie at. Sed a facilisis enim, nec molestie magna. Donec in augue non est viverra dapibus vel tempus risus. Nam porttitor purus sit amet hendrerit ullamcorper. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.

"), + "body": $sce.trustAsHtml("

Hey John,


Integer eu nisl elit. Donec malesuada diam vitae tellus luctus tincidunt. Donec tempus blandit neque, rutrum egestas ipsum sagittis tempor. Curabitur volutpat ligula enim, nec vehicula purus molestie at. Sed a facilisis enim, nec molestie magna. Donec in augue non est viverra dapibus vel tempus risus. Nam porttitor purus sit amet hendrerit ullamcorper. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.

"), "pic": "img/Nick.png", "email": "barlowshort@mail.com", "position": "Graphical designer", @@ -99,13 +102,27 @@ "trash": false, "tag": "work" }, + { + "id": "8955asdff", + "name": "Nick Cat", + "subject": "Some news ", + "date": "2015-09-23T03:04:10", + "important": false, + "body": $sce.trustAsHtml("

Hey John,


Integer eu nisl elit. Donec malesuada diam vitae tellus luctus tincidunt. Donec tempus blandit neque, rutrum egestas ipsum sagittis tempor. Curabitur volutpat ligula enim, nec vehicula purus molestie at. Sed a facilisis enim, nec molestie magna. Donec in augue non est viverra dapibus vel tempus risus. Nam porttitor purus sit amet hendrerit ullamcorper. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.

"), + "pic": "img/Nick.png", + "email": "barlowshort@mail.com", + "position": "Graphical designer", + "draft": true, + "trash": false, + "tag": "work" + }, { "id": "2334uudsa", "name": "Kostya Danovsky", "subject": "Street Art", "date": "2015-11-22T10:05:09", "important": false, - "body": $sce.trustAsHtml("

Hey John,

Aliquam eu facilisis eros, quis varius est.

" + + "body": $sce.trustAsHtml("

Hey John,

Aliquam eu facilisis eros, quis varius est.

" + "

Consectetur adipiscing elit. Aliquam sodales sem in nibh pellentesque, ac dignissim mi dapibus.

" + "

Lorem ipsum dolor sit amet! Nullam imperdiet justo a ipsum laoreet euismod.

" + "

Cras tincidunt fermentum lectus, quis scelerisque lorem volutpat sed." + @@ -116,7 +133,7 @@ "draft": false, "attachment": "file.doc", "trash": false, - "tag" : "work" + "tag" : "family" }, { "id": "2334aefvv", @@ -124,7 +141,7 @@ "subject": "New product", "date": "2015-06-22T06:26:10", "important": true, - "body": $sce.trustAsHtml("

Hello John,

Lorem ipsum dolor sit amet!

" + + "body": $sce.trustAsHtml("

Hello John,

Lorem ipsum dolor sit amet!

" + "

Consectetur adipiscing elit. Aliquam sodales sem in nibh pellentesque, ac dignissim mi dapibus.

" + "

Aliquam eu facilisis eros, quis varius est. Nullam imperdiet justo a ipsum laoreet euismod.

" + "

Nulla facilisi. Nulla congue, arcu eget blandit lacinia, leo ante ullamcorper lectus, vel pulvinar justo ipsum vitae justo." + @@ -134,7 +151,7 @@ "position": "Technical Chef", "draft": false, "trash": false, - "tag" : "work" + "tag" : "family" }, { "id": "8223xzxfn", @@ -142,7 +159,7 @@ "subject": "Skype moji", "date": "2015-07-16T06:47:53", "important": false, - "body": $sce.trustAsHtml("

Hello John,

Aliquam sodales sem in nibh pellentesque

" + + "body": $sce.trustAsHtml("

Hello John,

Aliquam sodales sem in nibh pellentesque

" + "

Lorem ipsum dolor I find moji in skype sit amet!.

"), "pic": "img/Andrey.png", "email": "lakeishaphillips@mail.com", @@ -157,7 +174,7 @@ "subject": "My App", "date": "2015-06-20T07:05:02", "important": false, - "body": $sce.trustAsHtml("

Hey Vlad.

Lorem ipsum dolor sit amet!

" + + "body": $sce.trustAsHtml("

Hey Vlad.

Lorem ipsum dolor sit amet!

" + "

Consectetur My Falasson App elit. Aliquam sodales sem in nibh pellentesque, ac dignissim mi dapibus.

"), "pic": "img/Andrey.png", "email": "lakeishaphillips@mail.com", @@ -173,7 +190,7 @@ "subject": "Cool", "date": "2015-03-31T11:52:58", "important": false, - "body": $sce.trustAsHtml("

Hey Vlad.

Aliquam sodales sem in nibh pellentesque

" + + "body": $sce.trustAsHtml("

Hey Vlad.

Aliquam sodales sem in nibh pellentesque

" + "

Cras tincidunt fermentum lectus, quis scelerisque lorem volutpat sed.

"), "pic": "img/Vlad.png", "email": "carlsongoodman@mail.com", @@ -187,10 +204,10 @@ { "id": "9391xdsff", "name": "Vlad Lugovsky", - "subject": "Whan next", + "subject": "What next", "date": "2015-03-31T11:52:58", "important": false, - "body": $sce.trustAsHtml("

Hey Vlad.

Lorem ipsum dolor sit amet!

" + + "body": $sce.trustAsHtml("

Hey Vlad.

Lorem ipsum dolor sit amet!

" + "

Esse esse labore tempor ullamco ullamco. Id veniam laborum c.

"), "pic": "img/Vlad.png", "email": "carlsongoodman@mail.com", @@ -210,6 +227,7 @@ { label: 'inbox', name: 'Inbox', + "newMails" : 7, filter: function (messages) { return messages.filter(function (m) { return !m.trash && !m.draft && !m.spam && !m.my @@ -237,6 +255,7 @@ { label: 'draft', name: 'Draft', + "newMails" : 2, filter: function (messages) { return messages.filter(function (m) { return m.draft && !m.trash @@ -266,12 +285,14 @@ $scope.tab = tab; $scope.currentMessages = $scope.tabs[tab].filter($scope.messages); $scope.mail = $scope.currentMessages[0]; + $scope.showMail = false; //var mailId = $scope.mail ? $scope.mail.id : ''; //$location.path("/mail/"+$scope.tabs[tab].label+"/"+ mailId); }; $scope.selectMail = function (mail) { $scope.mail = mail; + $scope.showMail = true; //$location.path("/mail/"+$scope.tabs[$scope.tab].label+"/"+ mail.id); }; diff --git a/src/app/pages/mail/blurEmail.html b/src/app/pages/mail/blurEmail.html index 1fa5a69..5621967 100644 --- a/src/app/pages/mail/blurEmail.html +++ b/src/app/pages/mail/blurEmail.html @@ -1,95 +1,116 @@
-
+
-
- {{t.name}} -
-
-
-
-
- -
-
- - - -
- -
-
- - +
+ {{t.name}}{{t.newMails}}
-
- - +
+
+
+ Labels +
+
+
+ Work +
+
+ Family +
+
+ Friend +
+
+ Study +
+
+
+ Add new label
-
-
-
+
+
+ + + +
- + - - - - + + + +
+
+ +
+
{{m.name.split(' ')[0] + ' ' + m.name.split(' ')[1][0]}}.{{m.tag}}{{m.subject}}{{m.date | date : 'MMM d HH:mm'}} +
+
{{m.name.split(' ')[0] + ' ' + m.name.split(' ')[1][0]}}.
+
{{m.tag}}
+
+
+
+ {{m.subject}} +
+
+
{{m.body | plainText}}
+
+ {{m.date | date : 'MMM d HH:mm'}} +
-
+ +
+
+ +
-
+
-

{{mail.name.split(' ')[0]}}

+

{{mail.name.split(' ')[0]}}

+ +

{{mail.name.split(' ')[1]}}

-

{{mail.name.split(' ')[1]}}

+
+ {{mail.tag}} +
-
+
@@ -102,7 +123,7 @@
-
+
{{mail.position}} @@ -114,17 +135,6 @@
-
- -
-
-
- Work - Family - Friend - Study -
-
@@ -137,14 +147,19 @@
- - {{mail.attachment}} - + 1 Attachment - View | Download +
+ + {{mail.attachment}} +
-
- - +
+ + + + +
@@ -152,5 +167,6 @@
Nothing to show
+
diff --git a/src/app/pages/mail/mail.html b/src/app/pages/mail/mail.html index 0f52567..0e6726e 100644 --- a/src/app/pages/mail/mail.html +++ b/src/app/pages/mail/mail.html @@ -1,6 +1,6 @@
- +
diff --git a/src/app/theme/components/contentTop/contentTop.directive.js b/src/app/theme/components/contentTop/contentTop.directive.js index 18e345a..a2e4511 100644 --- a/src/app/theme/components/contentTop/contentTop.directive.js +++ b/src/app/theme/components/contentTop/contentTop.directive.js @@ -30,7 +30,7 @@ '/icons': 'Icons', '/login': 'Authentication', '/maps': 'Maps', - '/mail': 'Mail', + '/mail': 'Mail Box', '/modals': 'Modals', '/profile': 'User Profile', '/tables': 'Tables', diff --git a/src/app/theme/filters/text/removeHtml.js b/src/app/theme/filters/text/removeHtml.js new file mode 100644 index 0000000..5d7cc86 --- /dev/null +++ b/src/app/theme/filters/text/removeHtml.js @@ -0,0 +1,18 @@ +/** + * @author a.demeshko + * created on 23.12.2015 + */ +(function () { + 'use strict'; + + angular.module('BlurAdmin.theme') + .filter('plainText', plainText); + + /** @ngInject */ + function plainText() { + return function(text) { + return text ? String(text).replace(/<[^>]+>/gm, '') : ''; + }; + } + +})(); diff --git a/src/sass/app/_email.scss b/src/sass/app/_email.scss index 2e70342..a048cf9 100644 --- a/src/sass/app/_email.scss +++ b/src/sass/app/_email.scss @@ -1,95 +1,190 @@ +.letter-layout{ + margin-top: -15px; +} + +.mail-panel { + .panel-content { + padding: 15px 22px 0 0; + } +} + .mail-navigation-container { - display: table; - table-layout: fixed; - width: 100%; - padding: 15px 0; + width: 300px; .mail-navigation { cursor: pointer; - display: table-cell; - line-height: 1; - text-align: center; font-weight: 100; - font-size: 18px; + font-size: 16px; + padding: 10px; + margin-left: 22px; + .new-mails { + display: inline-block; + float: right; + color: white; + background-color: $primary-light; + padding: 1px 6px; + margin-top: -2px; + font-size: 12px; + margin-right: 5px; + border-radius: 10px; + } &.active { - color: $dribble-color; + background-color: $primary-light; + color: white; + &:hover { + background-color: $primary-light; + } + .new-mails { + color: $primary-light; + background-color: white; + } + transition: background-color .2s ease; } - transition: transform .5s ease; - &:hover{ - transform: skew(-10deg); + &:hover { + background-color: $border-light; + } + } + .compose-button { + margin: 7px 0; + .btn { + width: 150px; + color: white; + font-weight: 100; + background-color: $dribble-color; } } } -.message-container, .side-message-navigation{ - float: left; - padding: 0 15px; - position: relative; - min-height: 1px; - height: 650px; - overflow: scroll; +.labels, .add-label-container{ + margin-top: 16px; + margin-left: 22px; } -@media (max-width: 1400px) { - - .side-message-navigation{ - width: 249px; +.labels-title{ + padding-left: 10px; + border-bottom: 1px solid $border-light; + .label-header{ + line-height: 24px; } +} - .message-container{ - width: calc(100% - 250px); - } +.label-item{ + margin: 10px 0 0 10px; +} - .additional-info{ - display: none; - &.date{ - display: table-cell; - } +.add-label-container{ + padding-left: 10px; + font-size: 16px; + font-weight: 100; + .label-input-stub{ + margin-left: 5px; + } + i{ + cursor: pointer; } } -@media (max-width: 1100px) { +.margin-left { + margin-left: 10px; +} - .additional-info{ - &.date{ - display: none; - } +.messages-control{ + padding: 10px; + + .dropdown-menu { + margin-left: 10px; } - .side-message-navigation{ - width: 180px; + .btn{ + background-color: transparent; + border: 1px solid $border-light; } - .message-container{ - width: calc(100% - 180px); + .more-button { + width: 60px; + + font-size: 12px; + font-weight: 100; + } + + span.select-all-label{ + font-size: 13px; + font-weight: 100; } } -@media (min-width: 1400px) { - .side-message-navigation{ - width: 380px; - } +.message-container, .side-message-navigation, .mail-navigation-container { + float: left; + padding: 0 15px; + position: relative; + min-height: 650px; + overflow: scroll; +} - .message-container{ - width: calc(100% - 380px); +.side-message-navigation{ + padding: 10px 0 0 0; + width: calc(100% - 300px); + box-shadow: -4px 0 7px -2px $input-border; + .side-message-navigation-item{ + border-bottom: 1px solid $input-border; + &.work { + border-left:4px solid $primary-light; + } + + &.study { + border-left:4px solid $google-color; + } + + &.family { + border-left:4px solid $warning; + } + + &.friend { + border-left:4px solid $danger; + } } +} +.mail-body-part{ + text-overflow: ellipsis; + height: 16px; + overflow: hidden; + margin-top: 3px; + margin-left: 5px; } +.border-tag{ + +} + +.mail-tag.tag.label{ + display: inline-block; + font-size: 14px; + text-transform: uppercase; + margin-top: 10px; + width: 65px; +} + +.phone-email{ + i{ + color:$primary-dark; + } +} + +.message-container { + width: calc(100% - 320px); + padding: 15px 0 10px 30px; + box-shadow: -4px 0 7px -2px $input-border; + overflow: inherit; +} + + .control-container { background-color: #ebebeb; padding-left: 15px; margin-bottom: 30px; - .compose-button { - color: white; - font-size: 16px; - font-weight: 100; - padding-left: 40px; - padding-right: 40px; - background-color: $dribble-color; - } .icon-buttons { margin-left: -10px; @@ -126,57 +221,64 @@ width: 45px; height: 45px; border-radius: 23px; - margin: 0 10px 10px 0; + margin: 7px 0 7px 7px; transition: all .2s ease-in-out; } .name { font-size: 14px; vertical-align: super; + white-space: nowrap; + } + .name-wrap{ + margin-left: 10px; } .date { - text-align: right; - span { - vertical-align: super; - padding-rigth: 5px; - } + float: right; + margin-top: 10px; + display: inline-block; + font-size: 13px; + margin-left: 5px; + margin-right: 5px; + white-space: nowrap; } .tag { vertical-align: super; - margin: 0 3px; } .subject { - vertical-align: super; - margin-right: 3px; + font-size: 14px; + white-space: nowrap; } - &:hover { .little-human-picture { transform: rotate(5deg); } - } - - &.active { - .name { color: $dribble-color; - } } +} +.mail-checkbox{ + margin-top: 5px; + margin-left: 6px; } .tag { - text-transform: uppercase; + text-transform: lowercase; font-size: 11px; font-weight: 100; + width: 45px; cursor: pointer; + display: inline-block; &.label { - padding: .3em .6em; + padding: .2em .5em; + border-radius: 2px; + line-height: 1.1; } &.work { - background-color: $primary; + background-color: $primary-light; } &.study { - background-color: $success; + background-color: $google-color; } &.family { @@ -206,12 +308,13 @@ } .person-info { - padding:0 15px; + padding: 0 0 10px 15px; + margin-top: 10px; .human-picture { - width: 90px; - height: 90px; - border-radius: 45px; - margin-top: -43px; + width: 80px; + height: 80px; + border-radius: 40px; + margin-top: -115px; } .name { @@ -221,7 +324,6 @@ h2 { margin-bottom: 0; font-size: 24px; - font-weight: bold; } } @@ -265,7 +367,7 @@ } .position { font-size: 20px; - font-weight: bold; + font-weight: 100; } .address { @@ -280,6 +382,7 @@ .subject { font-size: 20px; margin-right: 10px; + font-weight: 100; } .control-icons { float: right; @@ -293,7 +396,6 @@ .message-body { margin: 20px 0; - width: 85%; font-weight: 100; line-height: 18px; p { @@ -302,31 +404,22 @@ } .attachment { - margin: 5px 0; - .file-icon { - font-size: 30px; + font-size: 24px; + cursor: pointer; } .file-name { - font-size: 16px; - vertical-align: super; - margin-left: 10px; - } - - .file-link { - font-size: 25px; - border-bottom: solid 3px; - float: right; - cursor: pointer; + font-size: 14px; + margin-left: 3px; + position: relative; + top: -3px; + font-weight: 100; } -} -.tag-line { - margin: 15px; - .tag{ - margin-left: 10px; + .file-links { + font-size: 14px; } } @@ -356,10 +449,150 @@ } .answer-container { - margin-top: 30px; + float: right; + margin-top: 10px; + .btn{ + margin-top: 3px; + background-color: $primary-light; + border: none; + color: white; + width: 100px; + transition: none; + &:hover{ + transform: none; + background-color: $danger; + } + } } -.answer-area { - width: 60%; - float: left; +.second-name { + margin-top: -7px; +} +@media screen and (max-width: 1199px) { + .name-h{ + display: inline; + } + .person-info .human-picture { + margin-top: -45px; + } + .second-name { + margin-top: 0; + } +} + +@media screen and (max-width: 990px) { + .mail-navigation-container{ + width: 200px + } + + .side-message-navigation { + width: calc(100% - 200px); + } + + .message-container { + width: calc(100% - 220px); + } + + .person-info .human-picture { + width: 150px; + height: 150px; + border-radius: 75px; + margin: 5px auto; + display: block; + + } + + .person-info{ + padding-left: 0; + } + + .message-container{ + padding-left: 15px; + } + + .back-button, .contact-info{ + margin-left: 15px; + } + + .additional-info{ + display: none; + } + + .little-human .date { + font-size: 10px; + } + + .margin-left{ + margin-left: 5px; + } + +} + +@media screen and (max-width: 650px) { + + .mail-navigation-container{ + width: 175px + } + + .side-message-navigation { + width: calc(100% - 175px); + } + + .message-container { + width: calc(100% - 185px); + } + + .mail-body-part{ + display: none; + } + .little-human .little-human-picture{ + display: none; + } + .messages-control .more-button { + width: 50px; + } } +@media screen and (max-width: 470px) { + + + .mail-navigation-container{ + width: 155px + } + + .side-message-navigation { + width: calc(100% - 155px); + } + + .message-container { + width: calc(100% - 165px); + } + + .mail-navigation-container .compose-button .btn { + width: 110px; + } + + .mail-navigation-container .mail-navigation { + font-size: 14px; + } + + .mail-navigation-container .mail-navigation .new-mails{ + padding: 0px 5px; + margin-top: 0px; + font-size: 12px; + } + + .mail-navigation-container .mail-navigation, .labels { + margin-left: 10px; + } + + .add-label-container { + padding-left: 0; + font-size: 13px; + font-weight: 100; + } + +} + + + +