This repository has been archived by the owner on Jun 15, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Eliminated more here docs. Merged grid and stylesheets partials.
- Loading branch information
1 parent
1eed978
commit 48542fc
Showing
12 changed files
with
127 additions
and
132 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
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 @@ | ||
puts "Adding helpers, shared views, and other miscellany ...".magenta | ||
|
||
copy_static_file 'app/helpers/application_helper.rb' | ||
copy_static_file 'app/views/shared/_error_messages.html.haml' | ||
# copy_static_file 'config/initializers/sass_config.rb' | ||
|
||
git :add => '.' | ||
git :commit => "-aqm 'Added helpers, shared views, and other miscellany.'" |
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
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,84 @@ | ||
/* From http://www.1kbgrid.com/ | ||
$columns: 12 | ||
$col_width: 60px | ||
$gutter: 20px | ||
$margin = $gutter / 2 | ||
$width = $columns * ($col_width + $gutter) | ||
|
||
=row | ||
width: $width | ||
margin: 0 auto | ||
overflow: hidden | ||
|
||
=inner_row | ||
margin: 0 ($margin * -1) | ||
width: auto | ||
display: inline-block | ||
|
||
=col($n: 1) | ||
margin: 0 $margin | ||
overflow: hidden | ||
float: left | ||
display: inline | ||
width: ($n - 1) * ($col_width + $gutter) + $col_width | ||
|
||
=prepend($n: 1) | ||
margin-left: $n * ($col_width + $gutter) + $margin | ||
|
||
=append($n: 1) | ||
margin-right: $n * ($col_width + $gutter) + $margin | ||
|
||
// Add the .row class to a div to start a new row. Can be nested | ||
.row | ||
+row | ||
|
||
.row .row | ||
+inner_row | ||
|
||
// Some sample classes to get started with columns. You should create | ||
// your own semantic classes (e.g. section.welcome, div.blog, div.post...) | ||
.non_semantic_12col | ||
+col(12) | ||
|
||
.non_semantic_8col | ||
+col(8) | ||
|
||
.non_semantic_4col | ||
+col(4) | ||
|
||
.non_semantic_4col_tall | ||
+col(4) | ||
p | ||
line-height: 170px | ||
|
||
// | ||
// Sample HAML to draw a grid | ||
// | ||
// .row | ||
// .non_semantic_12col | ||
// %p 12 | ||
// | ||
// .row | ||
// .non_semantic_8col | ||
// %p 8 | ||
// .row | ||
// .non_semantic_4col | ||
// %p 4 | ||
// .non_semantic_4col | ||
// %p 4 | ||
// .non_semantic_4col_tall | ||
// %p 4 | ||
// | ||
// --------------------------------------------------- | ||
// | 12 | | ||
// --------------------------------------------------- | ||
// ---------------------------------- ---------------- | ||
// | 8 | | | | ||
// ---------------------------------- | 4 | | ||
// ----------------- ---------------- | | | ||
// | 4 | | 4 | | | | ||
// ----------------- ---------------- ---------------- | ||
// |
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,22 @@ | ||
!!! 5 | ||
-# http://paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither | ||
-ie_html :lang => 'en', :class => 'no-js' do | ||
= render :partial => 'layouts/head' | ||
%body{ :class => "#{controller.controller_name}" } | ||
#container | ||
%header#header | ||
.row | ||
= render :partial => 'layouts/header' | ||
%nav#nav | ||
.row | ||
= render :partial => 'layouts/nav' | ||
#main | ||
.row | ||
= render :partial => 'layouts/flashes' | ||
-# You MUST enclose your yielded content in at least one .row | ||
= yield | ||
%footer#footer | ||
.row | ||
= render :partial => 'layouts/footer' | ||
-# Javascript at the bottom for fast page loading | ||
= render :partial => 'layouts/javascripts' |
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