1
0
mirror of https://github.com/moparisthebest/mail synced 2025-01-11 13:38:02 -05:00

start scss of message list

This commit is contained in:
Tankred Hase 2013-09-03 14:03:33 +02:00
parent c115f4d054
commit c3eb935a43
5 changed files with 191 additions and 0 deletions

2
ui/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
.sass-cache
css/style.css

48
ui/css/reset.css Normal file
View File

@ -0,0 +1,48 @@
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}

83
ui/css/style.scss Normal file
View File

@ -0,0 +1,83 @@
@font-face {
font-family: 'PT Sans';
font-style: normal;
font-weight: 400;
src: local('PT Sans'), local('PTSans-Regular'), url(../pt-sans.ttf) format('truetype');
}
body {
font-family: 'PT Sans', sans-serif;
}
/* Inbox */
.hamburger {
background-image:url('../img/Inbox.png');
background-repeat: no-repeat;
width: 55px;
height: 40px;
}
/* message list */
@mixin marked {
background-color: #00c6ff;
color: #ffffff;
.from {
color: #ffffff;
}
}
@mixin unmarked {
color: #000000;
.from {
color: #00c6ff;
}
}
.message-list {
background-color: #f9f9f9;
padding: 46px 15px;
width: 314px;
ul {
list-style-type: none;
.selected {
@include marked;
}
}
li {
background-color: #ffffff;
font-size: 14px;
margin: 8px 0;
padding-top: 15px;
height: 105px;
@include unmarked;
&:hover {
background-color: #f9f9f9;
@include unmarked;
}
&:hover.selected {
@include marked;
}
.from {
font-size: 24px;
}
.subject {
font-weight: bold;
}
.text-preview {
}
p {
margin-left: 30px;
margin-right: 30px;
}
}
}

42
ui/index.html Executable file
View File

@ -0,0 +1,42 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Whiteout Mail</title>
<link href="css/reset.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
</head>
<body>
<div class="message-list">
<ul>
<li class="selected">
<p class="from">welcome@whiteout.io</p>
<p class="subject">Welcome Nico</p>
<p class="text-preview">Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy.</p>
</li>
<li>
<p class="from">welcome@whiteout.io</p>
<p class="subject">Welcome Nico</p>
<p class="text-preview">Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy</p>
</li>
<li>
<p class="from">welcome@whiteout.io</p>
<p class="subject">Welcome Nico</p>
<p class="text-preview">Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy</p>
</li>
<li>
<p class="from">welcome@whiteout.io</p>
<p class="subject">Welcome Nico</p>
<p class="text-preview">Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy</p>
</li>
</ul>
</div><!--/.message-list-->
<!-- The Scripts -->
<script src="lib/jquery-2.0.3.min.js" type="text/javascript"></script>
<script src="js/message-list-view.js" type="text/javascript"></script>
</body>
</html>

View File

@ -0,0 +1,16 @@
'use strict';
$(document).ready(function() {
setListeners();
});
function setListeners() {
var li = $('li');
li.mousedown(function() {
li.toggleClass('selected', false);
$(this).toggleClass('selected');
});
li.mouseup(function() {});
}