sass-960gs 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,3 @@
1
+ *.css
2
+ pkg/
3
+ *.gem
data/LICENSE.md ADDED
@@ -0,0 +1,11 @@
1
+ Copyright (c) 2008-2011 Nathan Smith, Christopher M. Eppstein, Matt Sanders, Łukasz Niemier
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. No attribution is required by products that make use of this software.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
8
+
9
+ Except as contained in this notice, the name(s) of the above copyright holders shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization.
10
+
11
+ Contributors to this project agree to grant all rights to the copyright holder of the primary product. Attribution is maintained in the source control history of the product.
data/changelog.txt ADDED
@@ -0,0 +1,26 @@
1
+ 0.10.4 06/15/2011
2
+ =================
3
+
4
+ add grid-system-complete mixin which includes relevant .container_X class
5
+ add info about installing in existing compass project
6
+ remove unneeded max .push and .pull classes, thank ShPakvel
7
+
8
+ 0.10.3 04/25/2011
9
+ =================
10
+
11
+ add missing gutter-width when using =grids, thanks ShPakvel
12
+ don't create max-length .push and .pull classes, thanks ShPakvel
13
+ doc improvements
14
+
15
+ 0.10.2 04/08/2011
16
+ =================
17
+
18
+ add $ninesixty-class-separator variable, thanks mattyoung
19
+ add changelog
20
+
21
+ 0.10.1 03/14/2011
22
+ =================
23
+
24
+ documentation improvements, thanks Matthew Schulkind
25
+ fix positioning bug in grid-push and grid-pull, thanks Matthew Schulkind
26
+ grid-push and grid-pull default to specified column count correctly
data/sass-960gs.gemspec CHANGED
@@ -2,23 +2,15 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{sass-960gs}
5
- s.version = "0.0.2"
5
+ s.version = "0.0.3"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.3.5")
8
- s.authors = ["Chris Eppstein", "Matt Sanders", "Łukasz Niemier"]
8
+ s.authors = ["Łukasz Niemier"]
9
9
  s.date = %q{2012-03-19}
10
10
  s.description = %q{The 960 Grid System is an effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. http://960.gs/}
11
- s.email = %w{chris@eppsteins.net matt@modal.org lukasz@niemier.pl}
11
+ s.email = %w{lukasz@niemier.pl}
12
12
  s.has_rdoc = false
13
- s.files = %w{
14
- README.md
15
- sass-960gs.gemspec
16
- app/assets/stylesheets/_960.scss
17
- app/assets/stylesheets/960/_fixed_grid.scss
18
- app/assets/stylesheets/960/_fluid_grid.scss
19
- app/assets/stylesheets/960/_text.scss
20
- app/assets/stylesheets/960/_variables.scss
21
- }
13
+ s.files = `git ls-files`.split("\n")
22
14
  s.homepage = %q{https://github.com/Hauleth/sass-960gs}
23
15
  s.rubygems_version = %q{1.3.6}
24
16
  s.summary = %q{Standalone SCSS port of 960.gs.}
@@ -3,83 +3,115 @@
3
3
  @mixin grid-container {
4
4
  margin-left: auto;
5
5
  margin-right: auto;
6
- width: $ninesixty-grid-width; }
6
+ width: $ninesixty-grid-width;
7
+ }
7
8
 
8
9
  @mixin grid-width($n, $cols: $ninesixty-columns, $gutter-width: $ninesixty-gutter-width) {
9
- width: $ninesixty-grid-width / $cols * $n - $gutter-width; }
10
+ width: $ninesixty-grid-width / $cols * $n - $gutter-width;
11
+ }
10
12
 
11
13
  @mixin grid-unit-base($gutter-width: $ninesixty-gutter-width) {
12
14
  display: inline;
13
15
  float: left;
14
16
  margin: {
15
17
  left: $gutter-width / 2;
16
- right: $gutter-width / 2; }; }
18
+ right: $gutter-width / 2;
19
+ };
20
+ }
17
21
 
18
22
  @mixin grid($n, $cols: $ninesixty-columns, $gutter-width: $ninesixty-gutter-width) {
19
23
  @include grid-unit-base($gutter-width);
20
- @include grid-width($n, $cols, $gutter-width); }
24
+ @include grid-width($n, $cols, $gutter-width);
25
+ }
21
26
 
22
27
  @mixin alpha {
23
- margin-left: 0; }
28
+ margin-left: 0;
29
+ }
24
30
 
25
31
  @mixin omega {
26
- margin-right: 0; }
32
+ margin-right: 0;
33
+ }
27
34
 
28
35
  @mixin grids($cols: $ninesixty-columns, $gutter-width: $ninesixty-gutter-width) {
29
36
  #{enumerate(".grid", 1, $cols, $ninesixty-class-separator)} {
30
- @include grid-unit-base($gutter-width); }
37
+ @include grid-unit-base($gutter-width);
38
+ }
31
39
  @for $n from 1 through $cols {
32
40
  .grid#{$ninesixty-class-separator}#{$n} {
33
- @include grid-width($n, $cols, $gutter-width); } } }
41
+ @include grid-width($n, $cols, $gutter-width);
42
+ }
43
+ }
44
+ }
34
45
 
35
46
  @mixin grid-prefix($n, $cols: $ninesixty-columns) {
36
- padding-left: $ninesixty-grid-width / $cols * $n; }
47
+ padding-left: $ninesixty-grid-width / $cols * $n;
48
+ }
37
49
 
38
50
  @mixin grid-prefixes($cols: $ninesixty-columns) {
39
51
  @for $n from 1 through $cols - 1 {
40
52
  .prefix#{$ninesixty-class-separator}#{$n} {
41
- @include grid-prefix($n, $cols); } } }
53
+ @include grid-prefix($n, $cols);
54
+ }
55
+ }
56
+ }
42
57
 
43
58
  @mixin grid-suffix($n, $cols: $ninesixty-columns) {
44
- padding-right: $ninesixty-grid-width / $cols * $n; }
59
+ padding-right: $ninesixty-grid-width / $cols * $n;
60
+ }
45
61
 
46
62
  @mixin grid-suffixes($cols: $ninesixty-columns) {
47
63
  @for $n from 1 through $cols - 1 {
48
64
  .suffix#{$ninesixty-class-separator}#{$n} {
49
- @include grid-suffix($n, $cols); } } }
65
+ @include grid-suffix($n, $cols);
66
+ }
67
+ }
68
+ }
50
69
 
51
70
  @mixin grid-children {
52
71
  .alpha {
53
- @include alpha; }
72
+ @include alpha;
73
+ }
54
74
  .omega {
55
- @include omega; } }
75
+ @include omega;
76
+ }
77
+ }
56
78
 
57
79
  @mixin grid-move-base {
58
- position: relative; }
80
+ position: relative;
81
+ }
59
82
 
60
83
  @mixin grid-move-push($n, $cols) {
61
- left: $ninesixty-grid-width / $cols * $n; }
84
+ left: $ninesixty-grid-width / $cols * $n;
85
+ }
62
86
 
63
87
  @mixin grid-move-pull($n, $cols) {
64
- left: -($ninesixty-grid-width / $cols) * $n; }
88
+ left: -($ninesixty-grid-width / $cols) * $n;
89
+ }
65
90
 
66
91
  @mixin grid-push($n, $cols: $ninesixty-columns) {
67
92
  @include grid-move-base;
68
- @include grid-move-push($n, $cols); }
93
+ @include grid-move-push($n, $cols);
94
+ }
69
95
 
70
96
  @mixin grid-pull($n, $cols: $ninesixty-columns) {
71
97
  @include grid-move-base;
72
- @include grid-move-pull($n, $cols); }
98
+ @include grid-move-pull($n, $cols);
99
+ }
73
100
 
74
101
  @mixin grid-movements($cols: $ninesixty-columns) {
75
102
  #{enumerate(".push", 1, $cols - 1, $ninesixty-class-separator)},
76
103
  #{enumerate(".pull", 1, $cols - 1, $ninesixty-class-separator)} {
77
- @include grid-move-base; }
104
+ @include grid-move-base;
105
+ }
78
106
  @for $n from 1 through $cols - 1 {
79
107
  .push#{$ninesixty-class-separator}#{$n} {
80
- @include grid-move-push($n, $cols); }
108
+ @include grid-move-push($n, $cols);
109
+ }
81
110
  .pull#{$ninesixty-class-separator}#{$n} {
82
- @include grid-move-pull($n, $cols); } } }
111
+ @include grid-move-pull($n, $cols);
112
+ }
113
+ }
114
+ }
83
115
 
84
116
  @mixin grid-system($cols: $ninesixty-columns) {
85
117
  @include grid-container;
@@ -87,8 +119,11 @@
87
119
  @include grid-prefixes($cols);
88
120
  @include grid-suffixes($cols);
89
121
  @include grid-children;
90
- @include grid-movements($cols); }
122
+ @include grid-movements($cols);
123
+ }
91
124
 
92
125
  @mixin grid-system-complete($cols: $ninesixty-columns) {
93
126
  .container#{$ninesixty-class-separator}#{$cols} {
94
- @include grid-system($cols); } }
127
+ @include grid-system($cols);
128
+ }
129
+ }
@@ -4,83 +4,115 @@
4
4
  margin-left: $ninesixty-fluid-grid-margin;
5
5
  margin-right: $ninesixty-fluid-grid-margin;
6
6
  width: $ninesixty-fluid-grid-width;
7
- min-width: $ninesixty-fluid-grid-min-width; }
7
+ min-width: $ninesixty-fluid-grid-min-width;
8
+ }
8
9
 
9
10
  @mixin fluid-grid-width($n, $cols: $ninesixty-columns, $gutter-width: $ninesixty-fluid-gutter-width) {
10
- width: 100% / $cols * $n - $gutter-width; }
11
+ width: 100% / $cols * $n - $gutter-width;
12
+ }
11
13
 
12
14
  @mixin fluid-grid-unit-base($gutter-width: $ninesixty-fluid-gutter-width) {
13
15
  display: inline;
14
16
  float: left;
15
17
  margin: {
16
18
  left: $gutter-width / 2;
17
- right: $gutter-width / 2; }; }
19
+ right: $gutter-width / 2;
20
+ };
21
+ }
18
22
 
19
23
  @mixin fluid-grid($n, $cols: $ninesixty-columns, $gutter-width: $ninesixty-fluid-gutter-width) {
20
24
  @include fluid-grid-unit-base($gutter-width);
21
- @include fluid-grid-width($n, $cols, $gutter-width); }
25
+ @include fluid-grid-width($n, $cols, $gutter-width);
26
+ }
22
27
 
23
28
  @mixin alpha {
24
- margin-left: 0; }
29
+ margin-left: 0;
30
+ }
25
31
 
26
32
  @mixin omega {
27
- margin-right: 0; }
33
+ margin-right: 0;
34
+ }
28
35
 
29
36
  @mixin fluid-grids($cols: $ninesixty-columns, $gutter-width: $ninesixty-fluid-gutter-width) {
30
- #{enumerate(".fluid_grid", 1, $cols, $ninesixty-class-separator)} {
31
- @include fluid-grid-unit-base($gutter-width); }
37
+ #{enumerate(".fluid" + $ninesixty-class-separator + "grid", 1, $cols, $ninesixty-class-separator)} {
38
+ @include fluid-grid-unit-base($gutter-width);
39
+ }
32
40
  @for $n from 1 through $cols {
33
- .fluid-grid#{$ninesixty-class-separator}#{$n} {
34
- @include fluid-grid-width($n, $cols, $gutter-width); } } }
41
+ .fluid#{$ninesixty-class-separator}grid#{$ninesixty-class-separator}#{$n} {
42
+ @include fluid-grid-width($n, $cols, $gutter-width);
43
+ }
44
+ }
45
+ }
35
46
 
36
47
  @mixin fluid-grid-prefix($n, $cols: $ninesixty-columns) {
37
- padding-left: $ninesixty-fluid-grid-width / $cols * $n; }
48
+ padding-left: $ninesixty-fluid-grid-width / $cols * $n;
49
+ }
38
50
 
39
51
  @mixin fluid-grid-prefixes($cols: $ninesixty-columns) {
40
52
  @for $n from 1 through $cols - 1 {
41
53
  .prefix#{$ninesixty-class-separator}#{$n} {
42
- @include fluid-grid-prefix($n, $cols); } } }
54
+ @include fluid-grid-prefix($n, $cols);
55
+ }
56
+ }
57
+ }
43
58
 
44
59
  @mixin fluid-grid-suffix($n, $cols: $ninesixty-columns) {
45
- padding-right: $ninesixty-fluid-grid-width / $cols * $n; }
60
+ padding-right: $ninesixty-fluid-grid-width / $cols * $n;
61
+ }
46
62
 
47
63
  @mixin fluid-grid-suffixes($cols: $ninesixty-columns) {
48
64
  @for $n from 1 through $cols - 1 {
49
65
  .suffix#{$ninesixty-class-separator}#{$n} {
50
- @include fluid-grid-suffix($n, $cols); } } }
66
+ @include fluid-grid-suffix($n, $cols);
67
+ }
68
+ }
69
+ }
51
70
 
52
71
  @mixin fluid-grid-children {
53
72
  .alpha {
54
- @include alpha; }
73
+ @include alpha;
74
+ }
55
75
  .omega {
56
- @include omega; } }
76
+ @include omega;
77
+ }
78
+ }
57
79
 
58
80
  @mixin fluid-grid-move-base {
59
- position: relative; }
81
+ position: relative;
82
+ }
60
83
 
61
84
  @mixin fluid-grid-move-push($n, $cols) {
62
- left: $ninesixty-fluid-grid-width / $cols * $n; }
85
+ left: $ninesixty-fluid-grid-width / $cols * $n;
86
+ }
63
87
 
64
88
  @mixin fluid-grid-move-pull($n, $cols) {
65
- left: -($ninesixty-fluid-grid-width / $cols) * $n; }
89
+ left: -($ninesixty-fluid-grid-width / $cols) * $n;
90
+ }
66
91
 
67
92
  @mixin fluid-grid-push($n, $cols: $ninesixty-columns) {
68
93
  @include fluid-grid-move-base;
69
- @include fluid-grid-move-push($n, $cols); }
94
+ @include fluid-grid-move-push($n, $cols);
95
+ }
70
96
 
71
97
  @mixin fluid-grid-pull($n, $cols: $ninesixty-columns) {
72
98
  @include fluid-grid-move-base;
73
- @include fluid-grid-move-pull($n, $cols); }
99
+ @include fluid-grid-move-pull($n, $cols);
100
+ }
74
101
 
75
102
  @mixin fluid-grid-movements($cols: $ninesixty-columns) {
76
103
  #{enumerate(".push", 1, $cols - 1, $ninesixty-class-separator)},
77
104
  #{enumerate(".pull", 1, $cols - 1, $ninesixty-class-separator)} {
78
- @include fluid-grid-move-base; }
105
+ @include fluid-grid-move-base;
106
+ }
79
107
  @for $n from 1 through $cols - 1 {
80
108
  .push#{$ninesixty-class-separator}#{$n} {
81
- @include fluid-grid-move-push($n, $cols); }
109
+ @include fluid-grid-move-push($n, $cols);
110
+ }
82
111
  .pull#{$ninesixty-class-separator}#{$n} {
83
- @include fluid-grid-move-pull($n, $cols); } } }
112
+ @include fluid-grid-move-pull($n, $cols);
113
+ }
114
+ }
115
+ }
84
116
 
85
117
  @mixin fluid-grid-system($cols: $ninesixty-columns) {
86
118
  @include fluid-grid-container;
@@ -88,8 +120,11 @@
88
120
  @include fluid-grid-prefixes($cols);
89
121
  @include fluid-grid-suffixes($cols);
90
122
  @include fluid-grid-children;
91
- @include fluid-grid-movements($cols); }
123
+ @include fluid-grid-movements($cols);
124
+ }
92
125
 
93
126
  @mixin fluid-grid-system-complete($cols: $ninesixty-columns) {
94
- .fluid_container#{$ninesixty-class-separator}#{$cols} {
95
- @include fluid-grid-system($cols); } }
127
+ .fluid#{$ninesixty-class-separator}container#{$ninesixty-class-separator}#{$cols} {
128
+ @include fluid-grid-system($cols);
129
+ }
130
+ }
@@ -12,23 +12,32 @@
12
12
  clear: both;
13
13
  height: 0; }
14
14
  h1 {
15
- font-size: 1.667px; }
15
+ font-size: 1.667px;
16
+ }
16
17
  h2 {
17
- font-size: 1.533px; }
18
+ font-size: 1.533px;
19
+ }
18
20
  h3 {
19
- font-size: 1.4em; }
21
+ font-size: 1.4em;
22
+ }
20
23
  h4 {
21
- font-size: 1.267em; }
24
+ font-size: 1.267em;
25
+ }
22
26
  h5 {
23
- font-size: 1.133em; }
27
+ font-size: 1.133em;
28
+ }
24
29
  h6 {
25
- font-size: 1em; }
30
+ font-size: 1em;
31
+ }
26
32
  ol {
27
- list-style: decimal; }
33
+ list-style: decimal;
34
+ }
28
35
  ul {
29
- list-style: square; }
36
+ list-style: square;
37
+ }
30
38
  li {
31
- margin-left: 30px; }
39
+ margin-left: 30px;
40
+ }
32
41
  p,
33
42
  dl,
34
43
  hr,
@@ -44,4 +53,6 @@
44
53
  table,
45
54
  address,
46
55
  fieldset {
47
- margin-bottom: 20px; } }
56
+ margin-bottom: 20px;
57
+ }
58
+ }
@@ -1,7 +1,7 @@
1
1
  // Global use variables
2
2
  $ninesixty-class-separator: "_" !default;
3
3
  $ninesixty-columns: 12 !default;
4
- $ninesixty-font-family: Helvetica, Arial, 'Liberation Sans', FreeSans, sans-serif !default;
4
+ $ninesixty-font-family: Helvetica, Arial, 'Liberation Sans', 'FreeSans', sans-serif !default;
5
5
  $ninesixty-font-size: 10pt/1.5 !default;
6
6
 
7
7
  // Fixed grid variables
metadata CHANGED
@@ -1,12 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sass-960gs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
- - Chris Eppstein
9
- - Matt Sanders
10
8
  - Łukasz Niemier
11
9
  autorequire:
12
10
  bindir: bin
@@ -16,20 +14,21 @@ dependencies: []
16
14
  description: The 960 Grid System is an effort to streamline web development workflow
17
15
  by providing commonly used dimensions, based on a width of 960 pixels. http://960.gs/
18
16
  email:
19
- - chris@eppsteins.net
20
- - matt@modal.org
21
17
  - lukasz@niemier.pl
22
18
  executables: []
23
19
  extensions: []
24
20
  extra_rdoc_files: []
25
21
  files:
22
+ - .gitignore
23
+ - LICENSE.md
26
24
  - README.md
25
+ - changelog.txt
27
26
  - sass-960gs.gemspec
28
- - app/assets/stylesheets/_960.scss
29
- - app/assets/stylesheets/960/_fixed_grid.scss
30
- - app/assets/stylesheets/960/_fluid_grid.scss
31
- - app/assets/stylesheets/960/_text.scss
32
- - app/assets/stylesheets/960/_variables.scss
27
+ - vendor/assets/stylesheets/960/_fixed_grid.scss
28
+ - vendor/assets/stylesheets/960/_fluid_grid.scss
29
+ - vendor/assets/stylesheets/960/_text.scss
30
+ - vendor/assets/stylesheets/960/_variables.scss
31
+ - vendor/assets/stylesheets/_960.gs.scss
33
32
  homepage: https://github.com/Hauleth/sass-960gs
34
33
  licenses: []
35
34
  post_install_message: