mail/src/css/style.scss

149 lines
2.9 KiB
SCSS
Raw Normal View History

2013-09-03 10:57:38 -04:00
/* colors */
$default-text-color: #333333;
$blue-color: #00c6ff;
$lightgrey-color: #f9f9f9;
2013-09-03 11:49:02 -04:00
$blue-box-shadow-color: #A4A4A4;
$lightgrey-box-shadow-color: #D8D8D8;
2013-09-03 10:57:38 -04:00
/* global */
2013-09-03 08:03:33 -04:00
@font-face {
font-family: 'PT Sans';
font-style: normal;
font-weight: 400;
2013-09-03 09:11:19 -04:00
src: local('PT Sans'), local('PTSans-Regular'), url(pt-sans.ttf) format('truetype');
2013-09-03 08:03:33 -04:00
}
body {
font-family: 'PT Sans', sans-serif;
2013-09-03 10:57:38 -04:00
color: $default-text-color;
2013-09-03 08:03:33 -04:00
}
2013-09-03 11:49:02 -04:00
/* folder name */
2013-09-03 08:03:33 -04:00
2013-09-03 11:49:02 -04:00
.folder-name {
position: absolute;
padding: 13px 15px;
p {
font-size: 1.5em;
}
}
.hamburger-btn {
float: left;
background-color: $lightgrey-color;
height: 1em;
width: 1.3em;
margin-right: 10px;
.blue-box {
float: inherit;
background-color: $blue-color;
height: 5px;
width: 100%;
box-shadow: 1px 1px 1px $lightgrey-box-shadow-color;
margin-bottom: 0.16em;
}
2013-09-03 08:03:33 -04:00
}
/* message list */
.message-list {
2013-09-03 10:57:38 -04:00
background-color: $lightgrey-color;
2013-09-03 08:03:33 -04:00
padding: 46px 15px;
width: 314px;
/* Landscape phone to portrait tablet */
@media (max-width: 767px) {
width: inherit;
}
2013-09-03 09:11:19 -04:00
@mixin marked {
2013-09-03 10:57:38 -04:00
background-color: $blue-color;
color: $lightgrey-color;
2013-09-03 13:04:54 -04:00
.sent-date, .from {
2013-09-03 10:57:38 -04:00
color: $lightgrey-color;
2013-09-03 09:11:19 -04:00
}
2013-09-03 08:03:33 -04:00
}
2013-09-03 12:02:26 -04:00
@mixin read-bubble {
2013-09-03 10:17:48 -04:00
position: absolute;
margin-top: 1.95em;
2013-09-03 10:17:48 -04:00
margin-left: 0.5em;
width: 0.9em;
height: 0.9em;
border-radius: 50%;
2013-09-03 12:02:26 -04:00
}
@mixin read-bubble-grey {
background: $lightgrey-color;
box-shadow: inset 1px 1px 1px $lightgrey-box-shadow-color;
}
@mixin read-bubble-blue {
2013-09-03 10:57:38 -04:00
background: $blue-color;
2013-09-03 11:49:02 -04:00
box-shadow: inset 0.5px 1px 1px $blue-box-shadow-color;
2013-09-03 10:17:48 -04:00
}
2013-09-03 12:02:26 -04:00
.unread {
@include read-bubble;
@include read-bubble-blue;
}
.read {
@include read-bubble;
@include read-bubble-grey;
}
2013-09-03 08:03:33 -04:00
li {
2013-09-03 10:57:38 -04:00
background-color: white;
2013-09-03 08:03:33 -04:00
margin: 8px 0;
2013-09-03 09:11:19 -04:00
padding: 10px 0;
height: 85px;
2013-09-03 10:57:38 -04:00
.from {
color: $blue-color;
}
2013-09-03 08:03:33 -04:00
&:hover {
2013-09-03 10:57:38 -04:00
background-color: $lightgrey-color;
2013-09-03 08:03:33 -04:00
}
&:hover.selected {
@include marked;
}
2013-09-03 09:11:19 -04:00
p {
margin-left: 32px;
margin-right: 32px;
2013-09-03 08:03:33 -04:00
}
2013-09-03 13:04:54 -04:00
.from {
2013-09-03 09:11:19 -04:00
font-size: 1.5em;
2013-09-03 08:03:33 -04:00
}
2013-09-03 13:04:54 -04:00
.subject-line {
2013-09-03 09:11:19 -04:00
font-size: 0.875em;
margin-top: 0.5em;
margin-bottom: 0.5em;
2013-09-03 08:03:33 -04:00
}
2013-09-03 13:04:54 -04:00
.subject {
font-weight: bold;
}
.sent-date {
float: right;
color: #D8D8D8;
}
.text-preview {
2013-09-03 09:11:19 -04:00
font-size: 0.875em;
2013-09-04 00:59:46 -04:00
line-height: 1.2em;
2013-09-04 01:02:54 -04:00
height: 2.35em;
2013-09-03 09:11:19 -04:00
overflow: hidden;
2013-09-03 08:03:33 -04:00
}
}
2013-09-03 10:57:38 -04:00
2013-09-03 09:11:19 -04:00
li.selected {
@include marked;
2013-09-03 10:17:48 -04:00
.unread {
2013-09-03 12:02:26 -04:00
@include read-bubble-grey;
2013-09-03 10:17:48 -04:00
}
2013-09-03 09:11:19 -04:00
}
2013-09-03 08:03:33 -04:00
}