Skip to content

Commit

Permalink
refactor(mail,feed,todo): mail-navigation text left
Browse files Browse the repository at this point in the history
  • Loading branch information
SashaSkywalker committed Feb 23, 2016
1 parent bd2ae2d commit 63e73a5
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 73 deletions.
4 changes: 2 additions & 2 deletions src/app/pages/components/mail/list/mailList.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@
<table>
<tr ng-repeat="m in listCtrl.messages track by m.id | orderBy:'-date'"
class="side-message-navigation-item little-human shineHover {{m.tag}}">
<td>
<td class="check-td">
<div class="mail-checkbox">
<label class="checkbox-inline custom-checkbox nowrap">
<input type="checkbox">
<span></span>
</label>
</div>
</td>
<td ui-sref="components.mail.detail({id: m.id, label: listCtrl.label})"><img ng-src="{{m.name.split(' ')[0] | profilePicture}}" class="little-human-picture"></td>
<td class="photo-td" ui-sref="components.mail.detail({id: m.id, label: listCtrl.label})"><img ng-src="{{m.name.split(' ')[0] | profilePicture}}" class="little-human-picture"></td>
<td ui-sref="components.mail.detail({id: m.id, label: listCtrl.label})">
<div class="name-container">
<div><span class="name">{{m.name}}</span></div>
Expand Down
4 changes: 1 addition & 3 deletions src/app/pages/components/mail/mail.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
</div>
<div class="labels">
<div class="labels-title">
<h5 class="label-header">
Labels
</h5>

</div>
<div class="labels-container">
<div class="label-item">
Expand Down
109 changes: 43 additions & 66 deletions src/sass/app/_email.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,26 @@
}

.mail-navigation-container {
width: 300px;
width: 200px;
.mail-navigation {
cursor: pointer;
font-weight: $font-light;
font-size: 16px;
padding: 10px;
margin-left: 22px;
text-align: left;
padding: 10px 10px 10px 30px;
transition: 0.8s padding ease;
.new-mails {
display: inline-block;
float: right;
position: absolute;
left: 150px;
padding: 1px 6px;
border: 1px solid;
color: white;
background-color: $primary-light;
padding: 1px 6px;
margin-top: -2px;
font-size: 12px;
margin-right: 5px;
border-radius: 10px;
transition: 0.8s left ease;
}
&.active {
background-color: $primary-light;
Expand All @@ -41,7 +44,7 @@
color: $primary-light;
background-color: white;
}
transition: background-color .2s ease;
transition: background-color .2s ease, 0.8s padding ease;
}
&:hover {
background-color: $border-light;
Expand All @@ -63,6 +66,15 @@
margin-left: 22px;
}

.labels-container {
text-align: center;
padding-right: 28px;
padding-left: 20px;
.label-item {
display: inline-block;
}
}

.labels-title {
padding-left: 10px;
border-bottom: 1px solid $border-light;
Expand All @@ -80,6 +92,7 @@
font-size: 16px;
font-weight: $font-light;
.label-input-stub {
font-size: 14px;
margin-left: 5px;
}
i {
Expand Down Expand Up @@ -125,7 +138,7 @@

.side-message-navigation {
padding: 10px 0 0 0;
width: calc(100% - 300px);
width: calc(100% - 200px);
box-shadow: -4px 0 7px -2px $input-border;
.side-message-navigation-item {
border-bottom: 1px solid $input-border;
Expand Down Expand Up @@ -183,7 +196,7 @@
width: 45px;
height: 45px;
border-radius: 23px;
margin: 7px 0 7px 7px;
margin: 7px 0px 7px 7px;
transition: all .2s ease-in-out;
}
.name {
Expand Down Expand Up @@ -265,6 +278,14 @@
width: 100%;
}
}
@media screen and (min-width: 1199px) {
.photo-td {
width: 55px;
}
.check-td{
width: 35px;
}
}

.important {
color: $warning;
Expand Down Expand Up @@ -454,21 +475,6 @@
}
}

@media screen and (max-width: 1300px) {

.mail-navigation-container {
width: 260px
}

.side-message-navigation {
width: calc(100% - 260px);
}

.message-container {
width: calc(100% - 260px);
}

}

@media screen and (max-width: 1199px) {
.name-h {
Expand All @@ -483,17 +489,6 @@
}

@media screen and (max-width: 990px) {
.mail-navigation-container {
width: 200px
}

.side-message-navigation {
width: calc(100% - 200px);
}

.message-container {
width: calc(100% - 200px);
}

.person-info .human-picture {
width: 150px;
Expand Down Expand Up @@ -533,7 +528,13 @@
@media screen and (max-width: 760px) {

.mail-navigation-container {
width: 175px
width: 175px;
.mail-navigation{
padding-left: 19px;
.new-mails {
left: 137px;
}
}
}

.side-message-navigation {
Expand Down Expand Up @@ -565,8 +566,9 @@
}
.mail-navigation {
font-size: 14px;
padding-left: 23px;
.new-mails {
left: 82%;
left: 116px;
padding: 0px 5px;
margin-top: 0px;
font-size: 12px;
Expand Down Expand Up @@ -755,16 +757,11 @@
body.badmin-transparent {
.mail-navigation-container {
overflow: hidden;
width: 250px;
width: 200px;
padding: 0;
.mail-navigation {
margin-left: 0;
text-align: center;
.new-mails {
position: absolute;
left: 85%;
padding: 1px 6px;
border: 1px solid;
background-color: transparent;
}
&.active {
Expand All @@ -786,7 +783,7 @@ body.badmin-transparent {
}

.message-container, .side-message-navigation{
width: calc(100% - 250px);
width: calc(100% - 200px);
border-bottom-right-radius: 5px;
border-top-right-radius: 5px;
border-left: 1px solid rgba(0, 0, 0, 0.12);
Expand All @@ -798,14 +795,6 @@ body.badmin-transparent {
padding: 0;
}

.labels-container {
text-align: center;
padding-right: 8px;
.label-item {
display: inline-block;
}
}

.labels, .add-label-container {
margin-left: 0;
}
Expand Down Expand Up @@ -937,17 +926,6 @@ body.badmin-transparent {
}
}

.mail-navigation-container {
width: 200px
}

.side-message-navigation {
width: calc(100% - 200px);
}

.message-container {
width: calc(100% - 200px);
}
.back-button {
margin-left: 10px;
}
Expand Down Expand Up @@ -990,9 +968,8 @@ body.badmin-transparent {
.mail-navigation {
font-size: 14px;
.new-mails {
left: 82%;
padding: 0px 5px;
margin-top: 0px;
padding: 0 5px;
margin-top: 0;
font-size: 12px;
}
.labels {
Expand Down
1 change: 1 addition & 0 deletions src/sass/theme/dashboard/_blurFeed.scss
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@
font-size: 11px;
padding-top: 10px;
color: $help-text;
margin-bottom: 5px;
.post-time {
float: left;
}
Expand Down
4 changes: 2 additions & 2 deletions src/sass/theme/dashboard/_todo.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
input.task-todo {
margin-bottom: 14px;
margin-bottom: 8px;
}

ul.todo-list {
Expand Down Expand Up @@ -126,7 +126,7 @@ body.badmin-transparent {
input.task-todo {
color: white;
width: calc(100% - 25px);
opacity: 0.9;
border-radius: 0;
border: none;
background: transparent;
&:focus {
Expand Down

0 comments on commit 63e73a5

Please sign in to comment.