compass-grid-plugin 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +45 -29
- data/compass-grid-plugin.gemspec +3 -3
- data/example/config.rb +26 -27
- data/example/example.html +39 -39
- data/example/fixed.html +215 -215
- data/example/fluid.html +453 -429
- data/example/media.html +66 -66
- data/example/scss/example-fluid.scss +2 -1
- data/example/scss/example.scss +54 -54
- data/example/scss/fluid.scss +23 -7
- data/example/scss/media.scss +329 -329
- data/lib/compass-grid.rb +14 -1
- data/lib/compass/grid.rb +6 -6
- data/lib/compass/grid/version.rb +1 -1
- data/stylesheets/_grid.scss +151 -126
- data/stylesheets/grid/_fluid.scss +49 -28
- data/stylesheets/grid/fluid/_helpers.scss +14 -0
- data/templates/project/manifest.rb +16 -16
- data/templates/project/partials/_base.scss +6 -6
- data/templates/project/screen.scss +9 -9
- metadata +8 -7
@@ -0,0 +1,14 @@
|
|
1
|
+
|
2
|
+
// Force Sass to return a decimal to the current precision
|
3
|
+
@function real-percentage($a, $b) {
|
4
|
+
$prec: pow(10, precision());
|
5
|
+
@return round($a / $b * $prec) / $prec;
|
6
|
+
}
|
7
|
+
|
8
|
+
// Return the nth item in a list or a default value
|
9
|
+
@function nth-else($list, $n, $else: false) {
|
10
|
+
@if type-of($list) != list {
|
11
|
+
@return if($n == 1, $list, $else);
|
12
|
+
}
|
13
|
+
@return if($n <= length($list), nth($list, $n), $else);
|
14
|
+
}
|
@@ -1,17 +1,17 @@
|
|
1
|
-
description "Sass Grid based on the 1KB CSS Grid"
|
2
|
-
|
3
|
-
stylesheet 'screen.scss', :media => "screen, projection"
|
4
|
-
stylesheet 'partials/_base.scss'
|
5
|
-
|
6
|
-
help %Q{
|
7
|
-
Please see the website for all documentation and tutorials:
|
8
|
-
|
9
|
-
https://github.com/heygrady/1KB-SCSS-Grid
|
10
|
-
}
|
11
|
-
|
12
|
-
welcome_message %Q{
|
13
|
-
Please see the website for all documentation and tutorials:
|
14
|
-
|
15
|
-
https://github.com/heygrady/1KB-SCSS-Grid
|
16
|
-
|
1
|
+
description "Sass Grid based on the 1KB CSS Grid"
|
2
|
+
|
3
|
+
stylesheet 'screen.scss', :media => "screen, projection"
|
4
|
+
stylesheet 'partials/_base.scss'
|
5
|
+
|
6
|
+
help %Q{
|
7
|
+
Please see the website for all documentation and tutorials:
|
8
|
+
|
9
|
+
https://github.com/heygrady/1KB-SCSS-Grid
|
10
|
+
}
|
11
|
+
|
12
|
+
welcome_message %Q{
|
13
|
+
Please see the website for all documentation and tutorials:
|
14
|
+
|
15
|
+
https://github.com/heygrady/1KB-SCSS-Grid
|
16
|
+
|
17
17
|
}
|
@@ -1,7 +1,7 @@
|
|
1
|
-
//-----------------------------------
|
2
|
-
// Grid Defaults
|
3
|
-
//-----------------------------------
|
4
|
-
$grid-column-width: 60px;
|
5
|
-
$grid-gutter-width: 20px;
|
6
|
-
$grid-columns: 12;
|
1
|
+
//-----------------------------------
|
2
|
+
// Grid Defaults
|
3
|
+
//-----------------------------------
|
4
|
+
$grid-column-width: 60px;
|
5
|
+
$grid-gutter-width: 20px;
|
6
|
+
$grid-columns: 12;
|
7
7
|
$grid-clearfix-class: true;
|
@@ -1,9 +1,9 @@
|
|
1
|
-
//-----------------------------------
|
2
|
-
// Base Settings
|
3
|
-
//-----------------------------------
|
4
|
-
@import "partials/base";
|
5
|
-
|
6
|
-
//-----------------------------------
|
7
|
-
// Plugins
|
8
|
-
//-----------------------------------
|
9
|
-
@import "grid";
|
1
|
+
//-----------------------------------
|
2
|
+
// Base Settings
|
3
|
+
//-----------------------------------
|
4
|
+
@import "partials/base";
|
5
|
+
|
6
|
+
//-----------------------------------
|
7
|
+
// Plugins
|
8
|
+
//-----------------------------------
|
9
|
+
@import "grid";
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: compass-grid-plugin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-05-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: compass
|
@@ -27,9 +27,9 @@ dependencies:
|
|
27
27
|
- - ! '>='
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: '0'
|
30
|
-
description: Compass extension
|
31
|
-
and Compass to remove unnecessary classes
|
32
|
-
easier.
|
30
|
+
description: Compass grid extension inspired by the 1KB CSS Grid. Supports fixed and
|
31
|
+
fluid grids. Designed to utilize Sass and Compass to remove unnecessary classes
|
32
|
+
from the HTML markup and make customization easier.
|
33
33
|
email:
|
34
34
|
- github@heygrady.net
|
35
35
|
executables: []
|
@@ -57,10 +57,11 @@ files:
|
|
57
57
|
- lib/compass/grid/version.rb
|
58
58
|
- stylesheets/_grid.scss
|
59
59
|
- stylesheets/grid/_fluid.scss
|
60
|
+
- stylesheets/grid/fluid/_helpers.scss
|
60
61
|
- templates/project/manifest.rb
|
61
62
|
- templates/project/partials/_base.scss
|
62
63
|
- templates/project/screen.scss
|
63
|
-
homepage: https://github.com/heygrady/
|
64
|
+
homepage: https://github.com/heygrady/compass-grid-plugin
|
64
65
|
licenses: []
|
65
66
|
post_install_message:
|
66
67
|
rdoc_options: []
|
@@ -83,5 +84,5 @@ rubyforge_project:
|
|
83
84
|
rubygems_version: 1.8.23
|
84
85
|
signing_key:
|
85
86
|
specification_version: 3
|
86
|
-
summary: Compass extension
|
87
|
+
summary: Compass grid extension inspired by the 1KB CSS Grid
|
87
88
|
test_files: []
|