Skip to content

Commit

Permalink
opted in for in-document styles for portability
Browse files Browse the repository at this point in the history
  • Loading branch information
jdan committed Oct 7, 2012
1 parent d385b05 commit 8fc2ebf
Show file tree
Hide file tree
Showing 3 changed files with 116 additions and 114 deletions.
93 changes: 0 additions & 93 deletions main.css

This file was deleted.

19 changes: 0 additions & 19 deletions main.js

This file was deleted.

118 changes: 116 additions & 2 deletions templates/layout.mustache
Original file line number Diff line number Diff line change
@@ -1,7 +1,101 @@
<html>
<head>
<title>Test</title>
<link rel="stylesheet" href="main.css">
<style type="text/css">
body {
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
color: #444;
background-color: #aaa;
}
#wrapper {
width: 850px;
height: 600px;
overflow: hidden;
margin: 80px auto 0 auto;
box-shadow: 3px 3px 3px #666;
background-color: #eee;
}
section.slide {
width: auto;
height: 540px;
padding: 30px;
}
section.slide.main h1.title {
font-size: 100px;
text-align: center;
margin-top: 150px;
margin-bottom: 30px;
}
section.slide.main h2.subtitle {
font-size: 30px;
text-align: center;
font-weight: 200;
font-style: italic;
}
section.slide.text h1.title {
font-size: 45px;
border-bottom: 1px solid #aaa;
margin: 0;
padding-bottom: 15px;
}
section.slide.text article.content {
padding-top: 20px;
font-weight: 200;
font-size: 32px;
line-height: 44px;
}
section.slide.list h1.title {
font-size: 45px;
border-bottom: 1px solid #aaa;
margin: 0;
padding-bottom: 15px;
}
section.slide.list ul.items {
padding: 20px 0 0 60px;
font-weight: 200;
font-size: 32px;
line-height: 44px;
}
section.slide.author h1.name {
font-size: 55px;
font-weight: 200px;
text-align: center;
margin-top: 135px;
margin-bottom: 30px;
}
section.slide.author h3 {
font-weight: 100;
text-align: center;
font-size: 30px;
}
section.slide.author h3 a {
text-decoration: none;
color: #44a4dd;
}
section.slide.author h3 a:hover {
color: #66b5ff;
}
code {
background-color: #ccc;
}
.hidden {
display: none;
}
</style>
</head>
<body>
<div id="wrapper">
Expand All @@ -10,6 +104,26 @@
{{/slides}}
</div>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script type="text/javascript" src="main.js"></script>
<script type="text/javascript">
$(function() {
$('section').each(function(i, v) {
if (i)
$(v).hide();
else
$(v).addClass('active');
});
$(document).on('keydown', function(e) {
var curr = $('section.active');
if (!curr.next().length) {
$('section:first').show().addClass('active');
} else {
curr.next().show().addClass('active');
}
curr.hide().removeClass('active');
});
});
</script>
</body>
</html>

0 comments on commit 8fc2ebf

Please sign in to comment.