Skip to content

Commit

Permalink
Merge pull request jdan#53 from jdan/mobile-hotness
Browse files Browse the repository at this point in the history
Mobile hotness
  • Loading branch information
jdan committed Sep 29, 2013
2 parents 2e8e767 + 6510b21 commit 114facc
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 12 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "cleaver",
"preferGlobal": true,
"version": "0.3.0",
"version": "0.3.1",
"author": "Jordan Scales <[email protected]>",
"description": "30-second slideshows for hackers",
"keywords":[
Expand Down
72 changes: 61 additions & 11 deletions resources/default.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ body {
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
color: #222;
background-color: #f7f7f7;
font-size: 100%;
}

#wrapper {
Expand All @@ -28,8 +29,8 @@ body {
height: 540px;
padding: 30px;
font-weight: 200;
font-size: 32px;
line-height: 44px;
font-size: 200%;
line-height: 1.375;
}

.controls {
Expand Down Expand Up @@ -81,22 +82,22 @@ body {
}

.slide h1 {
font-size: 100px;
font-size: 300%;
line-height: 1.2;
text-align: center;
margin: 140px 0 0;
margin: 170px 0 0;
}

.slide h2 {
font-size: 30px;
font-size: 100%;
line-height: 1.2;
margin: 5px 0;
text-align: center;
font-weight: 200;
}

.slide h3 {
font-size: 45px;
font-size: 140%;
line-height: 1.2;
border-bottom: 1px solid #aaa;
margin: 0;
Expand All @@ -106,22 +107,20 @@ body {
.slide ul {
padding: 20px 0 0 60px;
font-weight: 200;
font-size: 32px;
line-height: 44px;
line-height: 1.375;
}

.slide .author h1.name {
font-size: 55px;
font-size: 170%;
font-weight: 200;
text-align: center;
margin-top: 185px;
margin-bottom: 30px;
}

.slide .author h3 {
font-weight: 100;
text-align: center;
font-size: 30px;
font-size: 95%;
border: none;
}

Expand Down Expand Up @@ -163,3 +162,54 @@ pre > code {
-o-transition: width 0.1s ease-out;
transition: width 0.1s ease-out;
}

@media (max-width: 850px) {
#wrapper {
width: auto;
}

body {
font-size: 70%;
}

img {
width: 100%;
}

.slide h1 {
margin-top: 120px;
}

.controls .prev, .controls .prev:hover {
border-right-color: rgba(135, 135, 135, 0.5);
}

.controls .next, .controls .next:hover {
border-left-color: rgba(135, 135, 135, 0.5);
}
}

@media (max-width: 480px) {
body {
font-size: 50%;
overflow: hidden;
}

#wrapper {
margin-top: 10px;
height: 340px;
}

.slide {
padding: 10px;
height: 340px;
}

.slide h1 {
margin-top: 50px;
}

.slide ul {
padding-left: 25px;
}
}
1 change: 1 addition & 0 deletions templates/layout.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<html>
<head>
<meta charset="{{encoding}}">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<title>{{title}}</title>
<style type="text/css">
{{{style}}}
Expand Down

0 comments on commit 114facc

Please sign in to comment.