compass-columnal-plugin 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{compass-columnal-plugin}
5
- s.version = "0.0.1"
5
+ s.version = "0.0.2"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.3.5")
8
8
  s.authors = ["Diogo Biazus"]
@@ -4,6 +4,7 @@
4
4
  /* Column code based on work from cssgrid.net:
5
5
  *The 1140px Grid by Andy Taylor – http://cssgrid.net – http://www.twitter.com/andytlr – http://www.catchingzebra.com
6
6
  @import text
7
+ @import compass/css3
7
8
 
8
9
  $columnal-grid-width: 1140px !default
9
10
 
@@ -11,11 +12,41 @@ $columnal-columns: 12 !default
11
12
 
12
13
  $columnal-class-separator: "_" !default
13
14
 
15
+ // Some basic presets
16
+ img, object, embed
17
+ margin-bottom: 20px
18
+ max-width: 100%
19
+
20
+ img
21
+ +border-radius(3px)
22
+ margin-bottom: 20px
23
+
24
+ a img
25
+ display: block
26
+
14
27
  =grid-container
15
28
  padding-left: 20px
16
29
  padding-right: 20px
17
30
  img, object, embed
18
31
  max-width: 100%
32
+ @media handheld, only screen and (max-width: 767px)
33
+ width: 100%
34
+ margin-left: 0
35
+ margin-right: 0
36
+ padding-left: 0
37
+ padding-right: 0
38
+ h1
39
+ margin: .5em 0 .5em
40
+ h2
41
+ margin: .5em 0 .535em
42
+ h3
43
+ margin: .5em 0 .57em
44
+ h4
45
+ margin: .5em 0 .615em
46
+ h5
47
+ margin: .5em 0 .67em
48
+ h6
49
+ margin: .5em 0 .8em
19
50
 
20
51
  =grid-row($grid-width: $columnal-grid-width)
21
52
  clear: both
@@ -23,11 +54,26 @@ $columnal-class-separator: "_" !default
23
54
  max-width: $grid-width
24
55
  margin: 0 auto
25
56
  overflow: hidden
57
+ @media handheld, only screen and (max-width: 767px)
58
+ width: 100%
59
+ margin-left: 0
60
+ margin-right: 0
61
+ padding-left: 0
62
+ padding-right: 0
26
63
 
27
64
  =grid-unit-base
28
65
  float: left
29
66
  margin-right: 3.8%
30
67
  position: relative
68
+ @media handheld, only screen and (max-width: 767px)
69
+ clear: both
70
+ float: none
71
+ margin-left: 0
72
+ margin-right: 0
73
+ padding-left: 20px
74
+ padding-right: 20px
75
+ width: auto
76
+ width: -moz-available
31
77
 
32
78
  =grid($n)
33
79
  +grid-unit-base
@@ -36,11 +82,22 @@ $columnal-class-separator: "_" !default
36
82
  clear: both
37
83
  float: left
38
84
 
85
+ =grid-subcolumn($n1, $n2)
86
+ @for $n from 1 through ($n1 - 1)
87
+ .pre#{$columnal-class-separator}#{$n}
88
+ padding-left: 35.69%
89
+ .suf#{$columnal-class-separator}#{$n}
90
+ padding-right: 35.69%
91
+
39
92
  =grid-prefix($n)
40
93
  padding-left: ($n*8.65%)
94
+ @media handheld, only screen and (max-width: 767px)
95
+ padding-left: 0
41
96
 
42
97
  =grid-suffix($n)
43
98
  padding-right: ($n*8.65%)
99
+ @media handheld, only screen and (max-width: 767px)
100
+ padding-right: 0
44
101
 
45
102
  =last
46
103
  +omega
@@ -517,4 +574,10 @@ $columnal-class-separator: "_" !default
517
574
 
518
575
  =mobile-only
519
576
  display: none
577
+ @media handheld, only screen and (max-width: 767px)
578
+ display: block
579
+
580
+ =mobile-hide
581
+ @media handheld, only screen and (max-width: 767px)
582
+ display: none
520
583
 
metadata CHANGED
@@ -1,65 +1,83 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: compass-columnal-plugin
3
- version: !ruby/object:Gem::Version
4
- version: 0.0.1
5
- prerelease:
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 0
8
+ - 2
9
+ version: 0.0.2
6
10
  platform: ruby
7
- authors:
11
+ authors:
8
12
  - Diogo Biazus
9
13
  autorequire:
10
14
  bindir: bin
11
15
  cert_chain: []
12
- date: 2012-01-12 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
16
+
17
+ date: 2012-01-12 00:00:00 -02:00
18
+ default_executable:
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
15
21
  name: compass
16
- requirement: &70233491890220 !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ segments:
28
+ - 0
29
+ - 10
30
+ - 0
21
31
  version: 0.10.0
22
32
  type: :runtime
23
- prerelease: false
24
- version_requirements: *70233491890220
25
- description: ! 'The Columnal CSS grid system is a “remix” of a couple others with
26
- some custom code thrown in. The elastic grid system is borrowed from cssgrid.net,
27
- while some code inspiration (and the idea for subcolumns) are taken from 960.gs.
28
- Checkout at: http://www.columnal.com/'
29
- email:
33
+ version_requirements: *id001
34
+ description: "The Columnal CSS grid system is a \xE2\x80\x9Cremix\xE2\x80\x9D of a couple others with some custom code thrown in. The elastic grid system is borrowed from cssgrid.net, while some code inspiration (and the idea for subcolumns) are taken from 960.gs. Checkout at: http://www.columnal.com/"
35
+ email:
30
36
  - diogo@biazus.me
31
37
  executables: []
38
+
32
39
  extensions: []
40
+
33
41
  extra_rdoc_files: []
34
- files:
42
+
43
+ files:
35
44
  - compass-columnal-plugin.gemspec
36
45
  - README.mkdn
37
46
  - lib/columnal.rb
38
47
  - stylesheets/columnal/_grid.sass
39
48
  - stylesheets/columnal/_text.sass
40
49
  - templates/project/manifest.rb
50
+ has_rdoc: true
41
51
  homepage: https://github.com/diogob/compass-columnal-plugin
42
52
  licenses: []
53
+
43
54
  post_install_message:
44
55
  rdoc_options: []
45
- require_paths:
56
+
57
+ require_paths:
46
58
  - lib
47
- required_ruby_version: !ruby/object:Gem::Requirement
48
- none: false
49
- requirements:
50
- - - ! '>='
51
- - !ruby/object:Gem::Version
52
- version: '0'
53
- required_rubygems_version: !ruby/object:Gem::Requirement
54
- none: false
55
- requirements:
56
- - - ! '>='
57
- - !ruby/object:Gem::Version
59
+ required_ruby_version: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ segments:
64
+ - 0
65
+ version: "0"
66
+ required_rubygems_version: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ segments:
71
+ - 1
72
+ - 3
73
+ - 5
58
74
  version: 1.3.5
59
75
  requirements: []
76
+
60
77
  rubyforge_project: compass-columnal-plugin
61
- rubygems_version: 1.8.10
78
+ rubygems_version: 1.3.6
62
79
  signing_key:
63
80
  specification_version: 3
64
81
  summary: Compass compatible Sass port of columnal grid system.
65
82
  test_files: []
83
+