compass-grid-plugin 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,19 +1,24 @@
1
- - [Blog post](http://heygrady.com/blog/2011/02/17/using-sass-with-the-1kb-grid-system/)
2
- - [Gist](https://gist.github.com/702760)
1
+ - [Using SASS With the 1KB Grid System](http://heygrady.com/blog/2011/02/17/using-sass-with-the-1kb-grid-system/)
2
+ - [Compass Grid Plugin and a New Fluid Grid Option](http://heygrady.com/blog/2012/04/20/compass-grid-gem-and-new-fluid-grid/)
3
+ - [Original Gist](https://gist.github.com/702760)
3
4
  - [The 1KB CSS Grid](http://1kbgrid.com/)
4
5
 
5
6
  ## About
6
7
  Simple grid system inspired by the [the 1KB CSS Grid](http://1kbgrid.com/) designed to utilize [Sass](http://sass-lang.com/) to remove unnecessary classes from the HTML markup and make customization easier. The best part is that it's not exactly 1KB now! Even better than the best part is that it's been extended to support fluid grids as well.
7
8
 
8
- The next better best thing would be fully responsive media query support, but there's [some limitations in Sass as a language](https://github.com/nex3/sass/issues/116#issuecomment-5166163) that make that difficult to do in a Compass plugin.
9
+ The next better best thing would be fully responsive media query support, but there's [some limitations in Sass as a language](https://github.com/nex3/sass/issues/116#issuecomment-5166163) that make that difficult to do in a Compass plugin. Although there are a few example on how best to support media queries with sass.
10
+
11
+ - [Responsive Web Design in Sass: Using Media Queries in Sass 3.2](http://thesassway.com/intermediate/responsive-web-design-in-sass-using-media-queries-in-sass-32)
12
+ - [Responsive Web Design in Sass Part 2: Media Queries in Sass](http://thesassway.com/intermediate/responsive-web-design-part-2)
13
+ - [Responsive Web Design in Sass Part 1: Fluid Layouts and Fluid Images](http://thesassway.com/intermediate/responsive-web-design-part-1)
9
14
 
10
15
  ## Installation
11
- ###Install the Ruby Gem.
16
+ #### Install the Ruby Gem.
12
17
  ```
13
18
  gem install compass-grid-plugin
14
19
  ```
15
20
 
16
- ### Existing Compass Projects
21
+ #### Existing Compass Projects
17
22
  You can include it in any existing Compass project by including the grid in your config.rb file.
18
23
 
19
24
  ```ruby
@@ -21,7 +26,7 @@ You can include it in any existing Compass project by including the grid in your
21
26
  require 'compass-grid'
22
27
  ```
23
28
 
24
- ### New Compass Projects
29
+ #### New Compass Projects
25
30
  You can install the grid plugin as part of a new Compass project.
26
31
 
27
32
  ```
@@ -43,17 +48,22 @@ The primary grid is a fixed, pixel grid. This grid is ideal for designs that do
43
48
  - **$grid-support-for-ie6**: *false* - Apply fixes for IE6
44
49
 
45
50
  ### Functions
46
- - **grid-column-width( $i, [$plus: 0] )** - Function for calculating column widths. Useful for integrating standard grid measurements into other elements, besides columns. Particularly useful for using columns widths as margin or padding.
51
+ - **grid-column-width(** *$i*, *[$plus: 0]* **)** - Function for calculating column widths. Useful for integrating standard grid measurements into other elements, besides columns. Particularly useful for using columns widths as margin or padding.
52
+ - **grid-row-width(** *$i*, *[$plus: 0]* **)** - Function for calculating the inner width of a row. Useful for calculating percentages in the fluid grid. This function should not be applied to a row directly, row widths are supposed to be set to `auto`.
53
+ - **grid-gutter-width(** *[$row: false]* **)** - Function for calculating the width of a gutter. Useful for applying margins to columns and rows. The `$row` argument controls if the returned length is negative or not. Rows require a negative margin.
47
54
 
48
55
  ### Mixins
49
- - **grid( $i, [$plus: 0] )** - Mixin for applying widths to a column. The *$plus* argument can be used to alter the width to account for borders or padding.
50
- - **grid-page( [$i: $grid-columns], [$plus: 0] )** - Mixin for declaring a page element. *$i* is *$grid-columns* by default but can be altered. The *$plus* argument can be used to alter the width to account for borders or padding.
51
- - **grid-row( [$page: false] )** - Mixing for declaring a column container. The *$page* argument is removing the negative margins when directly inside a page element.
52
- - **grid-column( [$i: false], [$plus: 0] )** - Mixin for declaring a column. Specifying *$i* will call the *grid* mixin. The *$plus* argument is passed to the *grid* mixin if *i* is also specified.
53
- - **grid-offset( [$i: 1], [$plus: 0], [$side] )** - Mixin for altering the left or right margin on a column. Useful for adding empty columns before or after a column. The *$i* argument specifies the width of the offset in columns. The *$plus* argument can be used to alter the width. *$side* can be right, left, top or bottom (although right and left are the most useful).
54
- - **grid-offset-left( [$i: 1], [$plus: 0] )** - Convenience mixin for setting the left margin on a column. The *$i* argument specifies the width of the offset in columns. The *$plus* argument can be used to alter the width.
55
- - **grid-offset-right( [$i: 1], [$plus: 0] )** - Convenience mixin for setting the right margin on a column. The *$i* argument specifies the width of the offset in columns. The *$plus* argument can be used to alter the width.
56
- - **grid-css( )** - outputs the default grid CSS in case those classes are required in the markup.
56
+ - **grid(** *$i*, *[$plus: 0]*, *[$with-gutters: false]* **)** - Mixin for applying widths to a column. The `$plus` argument can be used to alter the width to account for borders or padding. The `$with-gutters` argument will optionally output the gutter margins in addition to the width.
57
+ - **grid-page(** *[$i: $grid-columns]*, *[$plus: 0]* **)** - Mixin for declaring a page element. `$i` is `$grid-columns` by default but can be altered. The `$plus` argument can be used to alter the width to account for borders or padding.
58
+ - **grid-row(** *[$page: false]* **)** - Mixing for declaring a column container. The *$page* argument is removing the negative margins when directly inside a page element.
59
+ - **grid-column(** *[$i: false]*, *[$plus: 0]* **)** - Mixin for declaring a column. Specifying `$i` will call the `grid` mixin. The `$plus` argument is passed to the `grid` mixin if `$i` is also specified.
60
+ - **grid-gutters(** *[$row: false]* **)** - Mixin for adding gutter margins to a column or a row. The `$row` argument controls if the returned margins are negative. Rows require a negative margin.
61
+ - **grid-row-gutters( )** - Mixin for adding gutter margins to a row.
62
+ - **grid-column-gutters( )** - Mixin for adding gutter margins to a column.
63
+ - **grid-offset(** *[$i: 1]*, *[$plus: 0]*, *[$side]* **)** - Mixin for altering the left or right margin on a column. Useful for adding empty columns before or after a column. The `$i` argument specifies the width of the offset in columns. The `$plus` argument can be used to alter the width. *$side* can be right, left, top or bottom (although right and left are the most useful).
64
+ - **grid-offset-left(** *[$i: 1]*, *[$plus: 0]* **)** - Convenience mixin for setting the left margin on a column. The `$i` argument specifies the width of the offset in columns. The `$plus` argument can be used to alter the width.
65
+ - **grid-offset-right(** *[$i: 1]*, *[$plus: 0]* **)** - Convenience mixin for setting the right margin on a column. The `$i` argument specifies the width of the offset in columns. The `$plus` argument can be used to alter the width.
66
+ - **grid-css( )** - Outputs the default grid CSS in case those classes are required in the markup.
57
67
 
58
68
  ## Fluid Grid Usage
59
69
  This is a fluid version of the grid that uses percentages for widths. This grid is ideal for responsive designs that need to scale depending on the device. The fluid grid is more complex because percentage widths depend on their context for meaning. Every function and mixin is similar to the fixed grid but there are two additional variables to provide context.
@@ -63,26 +73,32 @@ This is a fluid version of the grid that uses percentages for widths. This grid
63
73
  ```
64
74
 
65
75
  ### Variables
66
- The fluid grid uses the variable from the fixed grid module
76
+ The fluid grid uses the variables from the fixed grid module.
77
+
78
+ - **$fluid-support-for-ie7**: *false* - Creates widths for IE6 and IE7 that have had a half-pixel subtracted to account for IE 7 and below always rounding up on partial pixels.
67
79
 
68
80
  ### Functions
69
- - **fluid-column-width( $i, [$plus: 0], [$parent: $grid-columns], [$parent-plus: 0] )** - Function for calculating column widths. Useful for integrating standard grid measurements into other elements, besides columns. Particularly useful for using columns widths as margin or padding.
70
- - **fluid-width( $i, [$plus: 0], [$parent: $grid-columns], [$parent-plus: 0] )** - Function for calculating arbitrary widths.
81
+ - **fluid-column-width(** *$i*, *[$plus: 0]*, *[$context: $grid-columns]*, *[$context-plus: 0]*, *[$nudge: false]* **)** - Function for calculating column widths. Useful for integrating standard grid measurements into other elements, besides columns. Particularly useful for using columns widths as margin or padding.
82
+ - **fluid-gutter-width(** *[$context: $grid-columns]*, *[$context-plus: 0]*, *[$row: false]*, *[$nudge: false]* **)** - Function for calculating the width of a gutter. Useful for applying margins to columns and rows. The `$row` argument controls if the returned length is negative or not. Rows require a negative margin.
83
+ - **fluid-width(** *$width*, *[$context-width: grid-column-width($grid-columns, $grid-gutter-width)]*, *[$nudge: false]* **)** - Function for calculating arbitrary widths in percentages. The `$width` is the width of the element you want to calculate and `$context` is the width of the parent element.
84
+ - **fluid-nudge(** *[$context-width: grid-column-width($grid-columns, $grid-gutter-width)]*, *[$nudge: false]* **)** - Function for calculating width of a half-pixel. Used for correcting for IE6 and IE7 because they always roundup.
71
85
 
72
86
  ### Mixins
73
- - **fluid( $i, [$plus: 0], [$parent: $grid-columns], [$parent-plus: 0] )** - Mixin for applying widths to a column. The *$plus* argument can be used to alter the width to account for borders or padding.
74
- - **fluid-page( [$i: $grid-columns], [$plus: 0], [$use-max-width: true] )** - Mixin for declaring a page element. *$i* is *$grid-columns* by default but can be altered. The *$plus* argument can be used to alter the width to account for borders or padding.
75
- - **fluid-row( [$page: false], [$parent: $grid-columns], [$parent-plus: 0] )** - Mixing for declaring a column container. The *$page* argument is removing the negative margins when directly inside a page element.
76
- - **fluid-column( [$i: false], [$plus: 0], [$parent: $grid-columns], [$parent-plus: 0] )** - Mixin for declaring a column. Specifying *$i* will call the *grid* mixin. The *$plus* argument is passed to the *grid* mixin if *i* is also specified.
77
- - **fluid-offset( [$i: 1], [$plus: 0], [$side], [$parent: $grid-columns], [$parent-plus: 0] )** - Mixin for altering the left or right margin on a column. Useful for adding empty columns before or after a column. The *$i* argument specifies the width of the offset in columns. The *$plus* argument can be used to alter the width. *$side* can be right, left, top or bottom (although right and left are the most useful).
78
- - **fluid-offset-left( [$i: 1], [$plus: 0], [$parent: $grid-columns], [$parent-plus: 0] )** - Convenience mixin for setting the left margin on a column. The *$i* argument specifies the width of the offset in columns. The *$plus* argument can be used to alter the width.
79
- - **fluid-offset-right( [$i: 1], [$plus: 0], [$parent: $grid-columns], [$parent-plus: 0] )** - Convenience mixin for setting the right margin on a column. The *$i* argument specifies the width of the offset in columns. The *$plus* argument can be used to alter the width.
80
- - **fluid-css( )** - outputs the default fluid grid CSS in case those classes are required in the markup.
87
+ - **fluid(** *$i*, *[$plus: 0]*, *[$context: $grid-columns]*, *[$context-plus: 0]*, *[$with-gutters: false]* **)** - Mixin for applying widths to a column. The `$plus` argument can be used to alter the width to account for borders or padding. The `$with-gutters` argument will optionally output the gutter margins in addition to the width.
88
+ - **fluid-page(** *[$i: $grid-columns]*, *[$plus: 0]*, *[$use-max-width: true]* **)** - Mixin for declaring a page element. `$i` is `$grid-columns` by default but can be altered. The `$plus` argument can be used to alter the width to account for borders or padding. The `$use-max-width` determines if a pixel max-width is applied as well.
89
+ - **fluid-row(** *[$page: false]*, *[$context: $grid-columns]*, *[$context-plus: 0]* **)** - Mixin for declaring a column container. The `$page` argument is for removing the negative margins when a row is directly inside a page element.
90
+ - **fluid-column(** *[$i: false]*, *[$plus: 0]*, *[$context: $grid-columns]*, *[$context-plus: 0]*, *[$with-gutters: true]* **)** - Mixin for declaring a column. Specifying `$i` will call the `grid` mixin. The `$plus` argument is passed to the *grid* mixin if `$i` is also specified. The `$with-gutters` argument can be used to omit the gutter margins.
91
+ - **fluid-offset(** *[$i: 1]*, *[$plus: 0]*, *[$side]*, *[$context: $grid-columns]*, *[$context-plus: 0]* **)** - Mixin for altering the left or right margin on a column. Useful for adding empty columns before or after a column. The `$i` argument specifies the width of the offset in columns. The `$plus` argument can be used to alter the width. `$side` can be right, left, top or bottom (although right and left are the most useful).
92
+ - **fluid-gutters(** *[$context: $grid-columns]*, *[$context-plus: 0]*, *[$row: false]* **)** - Mixin for adding gutter margins to a column or a row. The `$row` argument controls if the returned margins are negative. Rows require a negative margin.
93
+ - **fluid-row-gutters(** *[$context: $grid-columns]*, *[$context-plus: 0]* **)** - Mixin for adding gutter margins to a row.
94
+ - **fluid-column-gutters(** *[$context: $grid-columns]*, *[$context-plus: 0]* **)** - Mixin for adding gutter margins to a column.
95
+ - **fluid-offset-left(** *[$i: 1]*, *[$plus: 0]*, *[$context: $grid-columns]*, *[$context-plus: 0]* **)** - Convenience mixin for setting the left margin on a column. The `$i` argument specifies the width of the offset in columns. The `$plus` argument can be used to alter the width.
96
+ - **fluid-offset-right(** *[$i: 1]*, *[$plus: 0]*, *[$context: $grid-columns]*, *[$context-plus: 0]* **)** - Convenience mixin for setting the right margin on a column. The `$i` argument specifies the width of the offset in columns. The `$plus` argument can be used to alter the width.
97
+ - **fluid-css( )** - Outputs the default fluid grid CSS in case those classes are required in the markup.
81
98
 
82
99
  ## Notes
83
100
  - You must define a `.clearfix` class for the grid to work properly. The grid attempts to extend an existing `.clearfix` class. By default a clearfix class is output automatically. If you want to use your own, you can set `$grid-clearfix-class: false;`.
84
101
  - The only thing requiring an IE6 fix is the floats on columns.
85
- - In order to support accurate fluid grid percentages, the number precision in Sass is set to 8.
86
- - The fluid grid is not designed to work in older versions of IE, below version 8. The fluid grid is intended to be used on modern devices that support media queries.
87
- - The only thing in the fluid grid not supported in IE7 is the use of `box-sizing`. This will only matter if borders or padding are added to a column.
102
+ - In order to support accurate fluid grid percentages, the number precision in Sass is set to 7.
103
+ - The fluid grid uses of `box-sizing` which isn't supported in IE7 or below. This will only matter if borders or padding are added to a column.
88
104
  - The CSS generated by `@include fluid-css` for the fluid grid will not work in IE6 because of the use of the direct child selector.
@@ -6,9 +6,9 @@ Gem::Specification.new do |s|
6
6
  s.name = 'compass-grid-plugin'
7
7
  s.version = Compass::Grid::VERSION
8
8
  s.platform = Gem::Platform::RUBY
9
- s.summary = "Compass extension based on the 1KB CSS Grid"
10
- s.description = "Compass extension based on the 1KB CSS Grid designed to utilize Sass and Compass to remove unnecessary classes from the HTML markup and make customization easier."
11
- s.homepage = 'https://github.com/heygrady/1KB-SCSS-Grid'
9
+ s.summary = "Compass grid extension inspired by the 1KB CSS Grid"
10
+ s.description = "Compass grid extension inspired by the 1KB CSS Grid. Supports fixed and fluid grids. Designed to utilize Sass and Compass to remove unnecessary classes from the HTML markup and make customization easier."
11
+ s.homepage = 'https://github.com/heygrady/compass-grid-plugin'
12
12
  s.authors = ["Grady Kuhnline"]
13
13
  s.email = ["github@heygrady.net"]
14
14
 
@@ -1,27 +1,26 @@
1
- # Require any additional compass plugins here.
2
- require 'compass-grid'
3
- Sass::Script::Number.precision = 7
4
-
5
- # Set this to the root of your project when deployed:
6
- http_path = "/"
7
- css_dir = "css"
8
- sass_dir = "scss"
9
- images_dir = "i"
10
- javascripts_dir = "js"
11
-
12
- # You can select your preferred output style here (can be overridden via the command line):
13
- # output_style = :expanded or :nested or :compact or :compressed
14
- output_style = :compact
15
-
16
- # To enable relative paths to assets via compass helper functions. Uncomment:
17
- # relative_assets = true
18
-
19
- # To disable debugging comments that display the original location of your selectors. Uncomment:
20
- line_comments = false
21
-
22
-
23
- # If you prefer the indented syntax, you might want to regenerate this
24
- # project again passing --syntax sass, or you can uncomment this:
25
- # preferred_syntax = :sass
26
- # and then run:
27
- # sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass
1
+ # Require any additional compass plugins here.
2
+ require 'compass-grid'
3
+
4
+ # Set this to the root of your project when deployed:
5
+ http_path = "/"
6
+ css_dir = "css"
7
+ sass_dir = "scss"
8
+ images_dir = "i"
9
+ javascripts_dir = "js"
10
+
11
+ # You can select your preferred output style here (can be overridden via the command line):
12
+ # output_style = :expanded or :nested or :compact or :compressed
13
+ output_style = :compact
14
+
15
+ # To enable relative paths to assets via compass helper functions. Uncomment:
16
+ # relative_assets = true
17
+
18
+ # To disable debugging comments that display the original location of your selectors. Uncomment:
19
+ line_comments = false
20
+
21
+
22
+ # If you prefer the indented syntax, you might want to regenerate this
23
+ # project again passing --syntax sass, or you can uncomment this:
24
+ # preferred_syntax = :sass
25
+ # and then run:
26
+ # sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass
@@ -1,40 +1,40 @@
1
- <!doctype html>
2
- <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
3
- <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
4
- <!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
5
- <!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
6
- <head>
7
- <meta charset="utf-8">
8
-
9
- <title>1KB SCSS Grid Test Page</title>
10
- <meta name="description" content="">
11
- <meta name="author" content="">
12
- <meta name="viewport" content="width=device-width,initial-scale=1">
13
-
14
- <link rel="stylesheet" href="css/example.css">
15
- </head>
16
-
17
- <body>
18
- <div id="container">
19
- <header>
20
- <h1>Header</h1>
21
- <nav><a href="#">Nav Link</a></nav>
22
- </header>
23
- <div role="main">
24
- <div id="left-column">Left Column</div>
25
- <div id="main-column">
26
- <section class="hero">
27
- Hero Space, I take the full width
28
- </section>
29
- <section>
30
- <article id="content">Actual Content</article>
31
- <aside id="right-column">Right Column</aside>
32
- </section>
33
- </div>
34
- </div>
35
- <footer>
36
- <p>&copy; Copyright 2011</p>
37
- </footer>
38
- </div>
39
- </body>
1
+ <!doctype html>
2
+ <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
3
+ <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
4
+ <!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
5
+ <!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
6
+ <head>
7
+ <meta charset="utf-8">
8
+
9
+ <title>1KB SCSS Grid Test Page</title>
10
+ <meta name="description" content="">
11
+ <meta name="author" content="">
12
+ <meta name="viewport" content="width=device-width,initial-scale=1">
13
+
14
+ <link rel="stylesheet" href="css/example.css">
15
+ </head>
16
+
17
+ <body>
18
+ <div id="container">
19
+ <header>
20
+ <h1>Header</h1>
21
+ <nav><a href="#">Nav Link</a></nav>
22
+ </header>
23
+ <div role="main">
24
+ <div id="left-column">Left Column</div>
25
+ <div id="main-column">
26
+ <section class="hero">
27
+ Hero Space, I take the full width
28
+ </section>
29
+ <section>
30
+ <article id="content">Actual Content</article>
31
+ <aside id="right-column">Right Column</aside>
32
+ </section>
33
+ </div>
34
+ </div>
35
+ <footer>
36
+ <p>&copy; Copyright 2011</p>
37
+ </footer>
38
+ </div>
39
+ </body>
40
40
  </html>
@@ -1,216 +1,216 @@
1
- <!doctype html>
2
- <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
3
- <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
4
- <!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
5
- <!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
6
- <head>
7
- <meta charset="utf-8">
8
-
9
- <title>1KB SCSS Grid Fixed Grid</title>
10
- <meta name="description" content="">
11
- <meta name="author" content="">
12
- <meta name="viewport" content="width=device-width,initial-scale=1">
13
-
14
- <link rel="stylesheet" href="css/fixed.css">
15
- </head>
16
-
17
- <body>
18
- <!-- normal -->
19
- <div class="page">
20
- <h2>Fixed</h2>
21
- <div class="row">
22
- <div class="column grid-1">1</div>
23
- <div class="column grid-11">11</div>
24
- </div>
25
- <div class="row">
26
- <div class="column grid-2">2</div>
27
- <div class="column grid-10">10</div>
28
- </div>
29
- <div class="row">
30
- <div class="column grid-3">3</div>
31
- <div class="column grid-9">9</div>
32
- </div>
33
- <div class="row">
34
- <div class="column grid-4">4</div>
35
- <div class="column grid-8">8</div>
36
- </div>
37
- <div class="row">
38
- <div class="column grid-5">5</div>
39
- <div class="column grid-7">7</div>
40
- </div>
41
- <div class="row">
42
- <div class="column grid-6">6</div>
43
- <div class="column grid-6">6</div>
44
- </div>
45
- <div class="row">
46
- <div class="column grid-12">12</div>
47
- </div>
48
- </div>
49
-
50
- <!-- borders -->
51
- <div class="page borders">
52
- <h2>Borders</h2>
53
- <div class="row">
54
- <div class="column grid-1">1</div>
55
- <div class="column grid-11">11</div>
56
- </div>
57
- <div class="row">
58
- <div class="column grid-2">2</div>
59
- <div class="column grid-10">10</div>
60
- </div>
61
- <div class="row">
62
- <div class="column grid-3">3</div>
63
- <div class="column grid-9">9</div>
64
- </div>
65
- <div class="row">
66
- <div class="column grid-4">4</div>
67
- <div class="column grid-8">8</div>
68
- </div>
69
- <div class="row">
70
- <div class="column grid-5">5</div>
71
- <div class="column grid-7">7</div>
72
- </div>
73
- <div class="row">
74
- <div class="column grid-6">6</div>
75
- <div class="column grid-6">6</div>
76
- </div>
77
- <div class="row">
78
- <div class="column grid-12">12</div>
79
- </div>
80
- </div>
81
-
82
- <!-- padding -->
83
- <div class="page padding">
84
- <h2>Padding</h2>
85
- <div class="row">
86
- <div class="column grid-1">1</div>
87
- <div class="column grid-11">11</div>
88
- </div>
89
- <div class="row">
90
- <div class="column grid-2">2</div>
91
- <div class="column grid-10">10</div>
92
- </div>
93
- <div class="row">
94
- <div class="column grid-3">3</div>
95
- <div class="column grid-9">9</div>
96
- </div>
97
- <div class="row">
98
- <div class="column grid-4">4</div>
99
- <div class="column grid-8">8</div>
100
- </div>
101
- <div class="row">
102
- <div class="column grid-5">5</div>
103
- <div class="column grid-7">7</div>
104
- </div>
105
- <div class="row">
106
- <div class="column grid-6">6</div>
107
- <div class="column grid-6">6</div>
108
- </div>
109
- <div class="row">
110
- <div class="column grid-12">12</div>
111
- </div>
112
- </div>
113
-
114
- <!-- before -->
115
- <div class="page">
116
- <h2>Offset Before</h2>
117
- <div class="row">
118
- <div class="column grid-10">10</div>
119
- <div class="column grid-1 before-1">1 before</div>
120
- </div>
121
- <div class="row">
122
- <div class="column grid-9">9</div>
123
- <div class="column grid-1 before-2">2 before</div>
124
- </div>
125
- <div class="row">
126
- <div class="column grid-8">8</div>
127
- <div class="column grid-1 before-3">3 before</div>
128
- </div>
129
- <div class="row">
130
- <div class="column grid-7">7</div>
131
- <div class="column grid-1 before-4">4 before</div>
132
- </div>
133
- <div class="row">
134
- <div class="column grid-6">6</div>
135
- <div class="column grid-1 before-5">5 before</div>
136
- </div>
137
- <div class="row">
138
- <div class="column grid-5">5</div>
139
- <div class="column grid-1 before-6">6 before</div>
140
- </div>
141
- <div class="row">
142
- <div class="column grid-4">4</div>
143
- <div class="column grid-1 before-7">7 before</div>
144
- </div>
145
- <div class="row">
146
- <div class="column grid-3">3</div>
147
- <div class="column grid-1 before-8">8 before</div>
148
- </div>
149
- <div class="row">
150
- <div class="column grid-2">2</div>
151
- <div class="column grid-1 before-9">9 before</div>
152
- </div>
153
- <div class="row">
154
- <div class="column grid-1">1</div>
155
- <div class="column grid-1 before-10">10 before</div>
156
- </div>
157
- <div class="row">
158
- <div class="column grid-1 before-11">11 before</div>
159
- </div>
160
- <div class="row">
161
- <div class="column grid-12">12</div>
162
- </div>
163
- </div>
164
-
165
- <!-- after -->
166
- <div class="page">
167
- <h2>Offset After</h2>
168
- <div class="row">
169
- <div class="column grid-1 after-1">1 after</div>
170
- <div class="column grid-10">10</div>
171
- </div>
172
- <div class="row">
173
- <div class="column grid-1 after-2">2 after</div>
174
- <div class="column grid-9">9</div>
175
- </div>
176
- <div class="row">
177
- <div class="column grid-1 after-3">3 after</div>
178
- <div class="column grid-8">8</div>
179
- </div>
180
- <div class="row">
181
- <div class="column grid-1 after-4">4 after</div>
182
- <div class="column grid-7">7</div>
183
- </div>
184
- <div class="row">
185
- <div class="column grid-1 after-5">5 after</div>
186
- <div class="column grid-6">6</div>
187
- </div>
188
- <div class="row">
189
- <div class="column grid-1 after-6">6 after</div>
190
- <div class="column grid-5">5</div>
191
- </div>
192
- <div class="row">
193
- <div class="column grid-1 after-7">7 after</div>
194
- <div class="column grid-4">4</div>
195
- </div>
196
- <div class="row">
197
- <div class="column grid-1 after-8">8 after</div>
198
- <div class="column grid-3">3</div>
199
- </div>
200
- <div class="row">
201
- <div class="column grid-1 after-9">9 after</div>
202
- <div class="column grid-2">2</div>
203
- </div>
204
- <div class="row">
205
- <div class="column grid-1 after-10">10 after</div>
206
- <div class="column grid-1">1</div>
207
- </div>
208
- <div class="row">
209
- <div class="column grid-1 after-11">11 after</div>
210
- </div>
211
- <div class="row">
212
- <div class="column grid-12">12</div>
213
- </div>
214
- </div>
215
- </body>
1
+ <!doctype html>
2
+ <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
3
+ <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
4
+ <!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
5
+ <!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
6
+ <head>
7
+ <meta charset="utf-8">
8
+
9
+ <title>1KB SCSS Grid Fixed Grid</title>
10
+ <meta name="description" content="">
11
+ <meta name="author" content="">
12
+ <meta name="viewport" content="width=device-width,initial-scale=1">
13
+
14
+ <link rel="stylesheet" href="css/fixed.css">
15
+ </head>
16
+
17
+ <body>
18
+ <!-- normal -->
19
+ <div class="page">
20
+ <h2>Fixed</h2>
21
+ <div class="row">
22
+ <div class="column grid-1">1</div>
23
+ <div class="column grid-11">11</div>
24
+ </div>
25
+ <div class="row">
26
+ <div class="column grid-2">2</div>
27
+ <div class="column grid-10">10</div>
28
+ </div>
29
+ <div class="row">
30
+ <div class="column grid-3">3</div>
31
+ <div class="column grid-9">9</div>
32
+ </div>
33
+ <div class="row">
34
+ <div class="column grid-4">4</div>
35
+ <div class="column grid-8">8</div>
36
+ </div>
37
+ <div class="row">
38
+ <div class="column grid-5">5</div>
39
+ <div class="column grid-7">7</div>
40
+ </div>
41
+ <div class="row">
42
+ <div class="column grid-6">6</div>
43
+ <div class="column grid-6">6</div>
44
+ </div>
45
+ <div class="row">
46
+ <div class="column grid-12">12</div>
47
+ </div>
48
+ </div>
49
+
50
+ <!-- borders -->
51
+ <div class="page borders">
52
+ <h2>Borders</h2>
53
+ <div class="row">
54
+ <div class="column grid-1">1</div>
55
+ <div class="column grid-11">11</div>
56
+ </div>
57
+ <div class="row">
58
+ <div class="column grid-2">2</div>
59
+ <div class="column grid-10">10</div>
60
+ </div>
61
+ <div class="row">
62
+ <div class="column grid-3">3</div>
63
+ <div class="column grid-9">9</div>
64
+ </div>
65
+ <div class="row">
66
+ <div class="column grid-4">4</div>
67
+ <div class="column grid-8">8</div>
68
+ </div>
69
+ <div class="row">
70
+ <div class="column grid-5">5</div>
71
+ <div class="column grid-7">7</div>
72
+ </div>
73
+ <div class="row">
74
+ <div class="column grid-6">6</div>
75
+ <div class="column grid-6">6</div>
76
+ </div>
77
+ <div class="row">
78
+ <div class="column grid-12">12</div>
79
+ </div>
80
+ </div>
81
+
82
+ <!-- padding -->
83
+ <div class="page padding">
84
+ <h2>Padding</h2>
85
+ <div class="row">
86
+ <div class="column grid-1">1</div>
87
+ <div class="column grid-11">11</div>
88
+ </div>
89
+ <div class="row">
90
+ <div class="column grid-2">2</div>
91
+ <div class="column grid-10">10</div>
92
+ </div>
93
+ <div class="row">
94
+ <div class="column grid-3">3</div>
95
+ <div class="column grid-9">9</div>
96
+ </div>
97
+ <div class="row">
98
+ <div class="column grid-4">4</div>
99
+ <div class="column grid-8">8</div>
100
+ </div>
101
+ <div class="row">
102
+ <div class="column grid-5">5</div>
103
+ <div class="column grid-7">7</div>
104
+ </div>
105
+ <div class="row">
106
+ <div class="column grid-6">6</div>
107
+ <div class="column grid-6">6</div>
108
+ </div>
109
+ <div class="row">
110
+ <div class="column grid-12">12</div>
111
+ </div>
112
+ </div>
113
+
114
+ <!-- before -->
115
+ <div class="page">
116
+ <h2>Offset Before</h2>
117
+ <div class="row">
118
+ <div class="column grid-10">10</div>
119
+ <div class="column grid-1 before-1">1 before</div>
120
+ </div>
121
+ <div class="row">
122
+ <div class="column grid-9">9</div>
123
+ <div class="column grid-1 before-2">2 before</div>
124
+ </div>
125
+ <div class="row">
126
+ <div class="column grid-8">8</div>
127
+ <div class="column grid-1 before-3">3 before</div>
128
+ </div>
129
+ <div class="row">
130
+ <div class="column grid-7">7</div>
131
+ <div class="column grid-1 before-4">4 before</div>
132
+ </div>
133
+ <div class="row">
134
+ <div class="column grid-6">6</div>
135
+ <div class="column grid-1 before-5">5 before</div>
136
+ </div>
137
+ <div class="row">
138
+ <div class="column grid-5">5</div>
139
+ <div class="column grid-1 before-6">6 before</div>
140
+ </div>
141
+ <div class="row">
142
+ <div class="column grid-4">4</div>
143
+ <div class="column grid-1 before-7">7 before</div>
144
+ </div>
145
+ <div class="row">
146
+ <div class="column grid-3">3</div>
147
+ <div class="column grid-1 before-8">8 before</div>
148
+ </div>
149
+ <div class="row">
150
+ <div class="column grid-2">2</div>
151
+ <div class="column grid-1 before-9">9 before</div>
152
+ </div>
153
+ <div class="row">
154
+ <div class="column grid-1">1</div>
155
+ <div class="column grid-1 before-10">10 before</div>
156
+ </div>
157
+ <div class="row">
158
+ <div class="column grid-1 before-11">11 before</div>
159
+ </div>
160
+ <div class="row">
161
+ <div class="column grid-12">12</div>
162
+ </div>
163
+ </div>
164
+
165
+ <!-- after -->
166
+ <div class="page">
167
+ <h2>Offset After</h2>
168
+ <div class="row">
169
+ <div class="column grid-1 after-1">1 after</div>
170
+ <div class="column grid-10">10</div>
171
+ </div>
172
+ <div class="row">
173
+ <div class="column grid-1 after-2">2 after</div>
174
+ <div class="column grid-9">9</div>
175
+ </div>
176
+ <div class="row">
177
+ <div class="column grid-1 after-3">3 after</div>
178
+ <div class="column grid-8">8</div>
179
+ </div>
180
+ <div class="row">
181
+ <div class="column grid-1 after-4">4 after</div>
182
+ <div class="column grid-7">7</div>
183
+ </div>
184
+ <div class="row">
185
+ <div class="column grid-1 after-5">5 after</div>
186
+ <div class="column grid-6">6</div>
187
+ </div>
188
+ <div class="row">
189
+ <div class="column grid-1 after-6">6 after</div>
190
+ <div class="column grid-5">5</div>
191
+ </div>
192
+ <div class="row">
193
+ <div class="column grid-1 after-7">7 after</div>
194
+ <div class="column grid-4">4</div>
195
+ </div>
196
+ <div class="row">
197
+ <div class="column grid-1 after-8">8 after</div>
198
+ <div class="column grid-3">3</div>
199
+ </div>
200
+ <div class="row">
201
+ <div class="column grid-1 after-9">9 after</div>
202
+ <div class="column grid-2">2</div>
203
+ </div>
204
+ <div class="row">
205
+ <div class="column grid-1 after-10">10 after</div>
206
+ <div class="column grid-1">1</div>
207
+ </div>
208
+ <div class="row">
209
+ <div class="column grid-1 after-11">11 after</div>
210
+ </div>
211
+ <div class="row">
212
+ <div class="column grid-12">12</div>
213
+ </div>
214
+ </div>
215
+ </body>
216
216
  </html>