2013-09-16 13:46:04 -04:00
|
|
|
.mail-list {
|
2013-09-18 17:15:22 -04:00
|
|
|
$padding-vertical: 12px;
|
2013-09-16 13:46:04 -04:00
|
|
|
$padding-horizontal: 30px;
|
|
|
|
|
|
|
|
list-style: none;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
li {
|
|
|
|
display: block;
|
2013-09-18 17:15:22 -04:00
|
|
|
margin-bottom: 7px;
|
2013-09-16 13:46:04 -04:00
|
|
|
padding: $padding-vertical $padding-horizontal;
|
|
|
|
background: $color-white;
|
|
|
|
cursor: pointer;
|
2013-09-19 06:36:57 -04:00
|
|
|
transition: background-color $time-li-fade, color $time-li-fade;
|
2013-09-16 13:46:04 -04:00
|
|
|
|
|
|
|
h3 {
|
|
|
|
@include text-overflow;
|
|
|
|
|
|
|
|
color: $color-blue;
|
|
|
|
font-size: $font-size-bigger;
|
|
|
|
font-weight: normal;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
p {
|
|
|
|
font-size: $font-size-small;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
.head {
|
|
|
|
position: relative;
|
|
|
|
padding-right: 6.5em;
|
2013-09-18 17:15:22 -04:00
|
|
|
margin-bottom: 0.25em;
|
2013-09-16 13:46:04 -04:00
|
|
|
|
|
|
|
.subject {
|
|
|
|
@include text-overflow;
|
|
|
|
|
|
|
|
color: $color-grey-dark;
|
|
|
|
font-weight: bold;
|
2013-09-18 17:15:22 -04:00
|
|
|
line-height: 1.5em;
|
2013-09-16 13:46:04 -04:00
|
|
|
}
|
|
|
|
time {
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
right: 0;
|
|
|
|
width: 6em * ($font-size-small / $font-size-smaller);
|
|
|
|
color: $color-grey-light;
|
|
|
|
font-size: $font-size-smaller;
|
|
|
|
text-align: right;
|
2013-09-18 17:15:22 -04:00
|
|
|
line-height: 1.5em * ($font-size-small / $font-size-smaller);
|
2013-09-16 13:46:04 -04:00
|
|
|
}
|
|
|
|
&:before {
|
|
|
|
content: "";
|
2013-09-18 17:15:22 -04:00
|
|
|
width: 1em;
|
|
|
|
height: 1em;
|
2013-09-16 13:46:04 -04:00
|
|
|
border-radius: 50%;
|
2013-09-18 17:15:22 -04:00
|
|
|
box-shadow: inset 1px 1px 1px $color-grey-light;
|
2013-09-16 13:46:04 -04:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
margin-top: 0.2em;
|
|
|
|
margin-left: -1.3em;
|
2013-09-19 06:36:57 -04:00
|
|
|
transition: background-color $time-li-fade, box-shadow $time-li-fade;
|
2013-09-16 13:46:04 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
.body {
|
|
|
|
color: $color-grey;
|
2013-09-18 17:15:22 -04:00
|
|
|
height: 2.5em;
|
|
|
|
overflow: hidden;
|
2013-09-16 13:46:04 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: mix($color-white, $color-blue, 90%);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.mail-list-attachment {
|
|
|
|
.head:after {
|
|
|
|
content: "\e003";
|
2013-09-18 17:15:22 -04:00
|
|
|
color: $color-grey-medium;
|
2013-09-16 13:46:04 -04:00
|
|
|
font-family: $font-family-icons;
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
2013-09-18 17:15:22 -04:00
|
|
|
margin-top: -0.3em;
|
2013-09-16 13:46:04 -04:00
|
|
|
margin-right: -1 * $padding-horizontal;
|
|
|
|
text-align: center;
|
|
|
|
line-height: 1.8em;
|
|
|
|
width: $padding-horizontal;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.mail-list-unread {
|
|
|
|
.head:before {
|
|
|
|
background-color: $color-blue;
|
2013-09-18 17:15:22 -04:00
|
|
|
box-shadow: inset 0.5px 1px 1px $color-grey-medium;
|
2013-09-16 13:46:04 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.mail-list-replied {
|
|
|
|
.head:before {
|
|
|
|
content: "\e002";
|
2013-09-18 17:15:22 -04:00
|
|
|
color: $color-grey-medium;
|
2013-09-16 13:46:04 -04:00
|
|
|
font-family: $font-family-icons;
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
margin-left: -1 * $padding-horizontal;
|
|
|
|
text-align: center;
|
|
|
|
line-height: 1.8em / 0.8em;
|
|
|
|
box-shadow: none;
|
|
|
|
width: $padding-horizontal;
|
|
|
|
height: auto;
|
|
|
|
font-size: 0.8em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.mail-list-active,
|
|
|
|
&.mail-list-active:hover {
|
|
|
|
background-color: $color-blue;
|
|
|
|
color: $color-white;
|
|
|
|
|
|
|
|
h3 {
|
|
|
|
color: $color-white;
|
|
|
|
}
|
|
|
|
.head {
|
|
|
|
.subject {
|
|
|
|
color: $color-white;
|
|
|
|
}
|
|
|
|
time {
|
|
|
|
color: $color-white;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.body {
|
|
|
|
color: $color-white;
|
|
|
|
}
|
|
|
|
.head:before {
|
2013-09-18 17:15:22 -04:00
|
|
|
box-shadow: inset 1px 1px 1px $color-grey-light;
|
2013-09-16 13:46:04 -04:00
|
|
|
background-color: $color-white;
|
|
|
|
}
|
|
|
|
&.mail-list-attachment {
|
|
|
|
.head:after {
|
|
|
|
color: $color-white;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.mail-list-unread {
|
|
|
|
.head:before {
|
2013-09-18 17:15:22 -04:00
|
|
|
box-shadow: inset 1px 1px 1px $color-grey-light;
|
2013-09-16 13:46:04 -04:00
|
|
|
background-color: $color-white;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.mail-list-replied {
|
|
|
|
.head:before {
|
|
|
|
color: $color-white;
|
|
|
|
background: transparent;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|