diff --git a/Gemfile b/Gemfile index 42a2c67..c7bf2f1 100644 --- a/Gemfile +++ b/Gemfile @@ -5,6 +5,9 @@ gem 'rails', '3.2.3' gem 'sqlite3' gem 'high_voltage' gem 'dynamic_form' +gem 'compass-rails' +gem 'compass-960-plugin', require: 'ninesixty' +gem 'bourbon' group :development do gem 'guard-spork' @@ -15,6 +18,7 @@ group :test, :development do end group :test do + gem 'timecop' gem 'evergreen' gem 'factory_girl_rails' gem 'shoulda-matchers' diff --git a/Gemfile.lock b/Gemfile.lock index 9dcdd2c..ce298fa 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -30,6 +30,8 @@ GEM multi_json (~> 1.0) addressable (2.2.8) arel (3.0.2) + bourbon (1.2.0) + sass (>= 3.1) builder (3.0.0) capybara (1.1.2) mime-types (>= 1.16) @@ -40,6 +42,7 @@ GEM xpath (~> 0.1.4) childprocess (0.3.2) ffi (~> 1.0.6) + chunky_png (1.2.5) coffee-rails (3.2.2) coffee-script (>= 2.2.0) railties (~> 3.2.0) @@ -47,6 +50,14 @@ GEM coffee-script-source execjs coffee-script-source (1.3.3) + compass (0.12.1) + chunky_png (~> 1.2) + fssm (>= 0.2.7) + sass (~> 3.1) + compass-960-plugin (0.10.4) + compass (>= 0.10.0) + compass-rails (1.0.0.rc.3) + compass (~> 0.12.rc.0) cucumber (1.2.0) builder (>= 2.1.2) diff-lcs (>= 1.1.3) @@ -74,6 +85,7 @@ GEM factory_girl (~> 3.1.0) railties (>= 3.0.0) ffi (1.0.11) + fssm (0.2.9) gherkin (2.10.0) json (>= 1.4.6) guard (0.10.0) @@ -172,6 +184,7 @@ GEM sqlite3 (1.3.6) thor (0.14.6) tilt (1.3.3) + timecop (0.3.5) treetop (1.4.10) polyglot polyglot (>= 0.3.1) @@ -186,7 +199,10 @@ PLATFORMS ruby DEPENDENCIES + bourbon coffee-rails (~> 3.2.1) + compass-960-plugin + compass-rails cucumber-rails database_cleaner dynamic_form @@ -201,4 +217,5 @@ DEPENDENCIES shoulda-matchers spork-rails sqlite3 + timecop uglifier (>= 1.0.3) diff --git a/app/assets/stylesheets/_grid.scss b/app/assets/stylesheets/_grid.scss new file mode 100644 index 0000000..9b0fd0f --- /dev/null +++ b/app/assets/stylesheets/_grid.scss @@ -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; + } + } +} diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index 3b5cc66..2f5f691 100644 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -9,5 +9,5 @@ * compiled file, but it's generally better to create a new file per style scope. * *= require_self - *= require_tree . + *= require screen */ diff --git a/app/assets/stylesheets/screen.scss b/app/assets/stylesheets/screen.scss new file mode 100644 index 0000000..418c7ef --- /dev/null +++ b/app/assets/stylesheets/screen.scss @@ -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; +} diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 3913c1b..ccf6ac3 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -1,22 +1,25 @@ -
-<%= current_user.email %>
+<%= current_user.email %>
-<%= link_to 'Create a new todo', new_todo_path %>
-