Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c428182
commit aaaba8d
Showing
11 changed files
with
215 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
@import "960/grid"; | ||
|
||
$ninesixty-grid-width: 600px; | ||
|
||
@mixin clearfix { | ||
zoom:1; | ||
&:before, &:after { | ||
content: "\0020"; | ||
display: block; | ||
height: 0; | ||
overflow: hidden; | ||
} | ||
&:after { | ||
clear: both; | ||
} | ||
} | ||
|
||
body { | ||
.container { | ||
@include grid-container; | ||
@include clearfix; | ||
|
||
& > section { | ||
@include grid(12); | ||
} | ||
} | ||
|
||
header { | ||
@include clearfix; | ||
|
||
h1 { | ||
@include grid(4); | ||
@include alpha; | ||
} | ||
|
||
p { | ||
@include grid(8); | ||
@include omega; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
@import "compass"; | ||
@import "compass/reset"; | ||
@import "grid"; | ||
@import "bourbon"; | ||
|
||
$base-font-size: 24px; | ||
|
||
body { | ||
font-size: $base-font-size; | ||
line-height: $base-font-size * 1.25; | ||
|
||
font-weight: 300; | ||
font-family: 'Helvetica Neue', Helvetica, Verdana, sans-serif; | ||
} | ||
|
||
a { | ||
color: desaturate(#FF0000, 30%); | ||
text-decoration: none; | ||
} | ||
|
||
header { | ||
border-bottom: 1px solid #eee; | ||
|
||
h1 { | ||
color: desaturate(#FF0000, 30%); | ||
text-transform: uppercase; | ||
} | ||
|
||
p { | ||
color: #ddd; | ||
line-height: $base-font-size * 1.5 * 1.5; | ||
text-align: right; | ||
} | ||
} | ||
|
||
p.create { | ||
a:before { | ||
content: '+ '; | ||
} | ||
|
||
line-height: $base-font-size * 1.25 * 1.5; | ||
margin-bottom: $base-font-size * 0.75; | ||
text-align: right; | ||
} | ||
|
||
h1 { font-weight: 700; } | ||
h2 { font-weight: 400; } | ||
h3 { font-weight: 100; } | ||
|
||
h1 { | ||
font-size: $base-font-size * 1.5; | ||
line-height: $base-font-size * 1.5 * 1.5; | ||
} | ||
|
||
h2 { | ||
font-size: $base-font-size * 2; | ||
line-height: $base-font-size * 2 * 1.5; | ||
} | ||
|
||
h3 { | ||
font-size: $base-font-size * 1.75; | ||
line-height: $base-font-size * 1.75 * 1.5; | ||
} | ||
|
||
section { | ||
margin-bottom: $base-font-size * 1.25; | ||
|
||
h3 { | ||
border-bottom: 1px solid #eee; | ||
margin-bottom: $base-font-size * 0.5; | ||
} | ||
|
||
ul li { | ||
position: relative; | ||
} | ||
|
||
ul li .meta { | ||
position: absolute; | ||
right: 0; | ||
} | ||
} | ||
|
||
.complete-todos { | ||
color: #ddd; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,25 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Todos</title> | ||
<%= stylesheet_link_tag "application", :media => "all" %> | ||
<%= javascript_include_tag "application" %> | ||
<%= csrf_meta_tags %> | ||
</head> | ||
<body> | ||
<head> | ||
<title>Todos</title> | ||
<%= stylesheet_link_tag "application", :media => "all" %> | ||
<%= javascript_include_tag "application" %> | ||
<%= csrf_meta_tags %> | ||
</head> | ||
<body> | ||
<div class='container'> | ||
<section> | ||
<header> | ||
<h1>Todos</h1> | ||
<p data-current-user="<%= current_user.email %>"><%= current_user.email %></p> | ||
</header> | ||
|
||
<header> | ||
<p data-current-user="<%= current_user.email %>"><%= current_user.email %></p> | ||
</header> | ||
<% flash.keys.each do |key| %> | ||
<%= content_tag :div, flash[key], class: "#{key} flash" %> | ||
<% end %> | ||
<% flash.keys.each do |key| %> | ||
<%= content_tag :div, flash[key], class: "#{key} flash" %> | ||
<% end %> | ||
<%= yield %> | ||
|
||
</body> | ||
<%= yield %> | ||
</section> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,25 @@ | ||
<h1>My Todos</h1> | ||
<%= link_to 'Create a new todo', new_todo_path %> | ||
<p class='create'><%= link_to 'Create a new todo', new_todo_path %></p> | ||
|
||
<ul class='incomplete-todos'> | ||
<%= @incomplete_todos.each do |todo| %> | ||
<li id="<%= dom_id(todo) %>"> | ||
<%= todo.name %> | ||
<%= link_to 'complete', todo_completions_path(todo), method: 'post', class: 'complete' %> | ||
</li> | ||
<% end %> | ||
</ul> | ||
<section> | ||
<h3>Incomplete Todos</h3> | ||
<ul class='incomplete-todos'> | ||
<% @incomplete_todos.each do |todo| %> | ||
<li id="<%= dom_id(todo) %>"> | ||
<%= todo.name %> | ||
<%= link_to 'complete', todo_completions_path(todo), method: 'post', class: 'complete meta' %> | ||
</li> | ||
<% end %> | ||
</ul> | ||
</section> | ||
|
||
<ul class='complete-todos'> | ||
<%= @complete_todos.each do |todo| %> | ||
<li id="<%= dom_id(todo) %>"> | ||
<%= todo.name %> | ||
</li> | ||
<% end %> | ||
</ul> | ||
<section> | ||
<h3>Complete Todos</h3> | ||
<ul class='complete-todos'> | ||
<% @complete_todos.each do |todo| %> | ||
<li id="<%= dom_id(todo) %>"> | ||
<%= todo.name %> | ||
<span class='meta'><%= todo.completed_at.to_date.to_s(:short) %></span> | ||
</li> | ||
<% end %> | ||
</ul> | ||
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Given /^today is "(.*?)"$/ do |date| | ||
today = Date.parse(date) | ||
Timecop.freeze today | ||
end | ||
|
||
After do | ||
Timecop.return | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters