compass-columnal-plugin 0.1.3 → 0.1.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.mkdn +84 -4
- data/compass-columnal-plugin.gemspec +1 -1
- data/stylesheets/columnal/_grid.sass +4 -3
- data/stylesheets/columnal/_text.sass +12 -12
- metadata +39 -52
data/README.mkdn
CHANGED
|
@@ -27,7 +27,7 @@ Add a `config/compass.rb` file to your project containing:
|
|
|
27
27
|
|
|
28
28
|
require 'columnal'
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
Finally, in your stylesheet:
|
|
31
31
|
|
|
32
32
|
@import columnal/grid
|
|
33
33
|
|
|
@@ -51,11 +51,11 @@ Let's say we have a 12 columns layout, and we want to use the `<section>` tag as
|
|
|
51
51
|
section
|
|
52
52
|
+grid-row
|
|
53
53
|
header
|
|
54
|
-
+grid
|
|
54
|
+
+grid(12)
|
|
55
55
|
article
|
|
56
|
-
+grid
|
|
56
|
+
+grid(9)
|
|
57
57
|
aside
|
|
58
|
-
+grid
|
|
58
|
+
+grid(3)
|
|
59
59
|
+last
|
|
60
60
|
|
|
61
61
|
So we could use the following HTML:
|
|
@@ -67,3 +67,83 @@ So we could use the following HTML:
|
|
|
67
67
|
<aside>And here 3</aside>
|
|
68
68
|
</section>
|
|
69
69
|
</body>
|
|
70
|
+
|
|
71
|
+
Handling horizontal margins and paddings
|
|
72
|
+
========================================
|
|
73
|
+
|
|
74
|
+
Every `+grid(n)` column comes with a margin-right as default gutter between columns. But we don't want this margin on the last column because it'll break our layout. For that, we use:
|
|
75
|
+
|
|
76
|
+
+grid(3)
|
|
77
|
+
+last
|
|
78
|
+
|
|
79
|
+
Or, for the one's too damn used to 960.gs:
|
|
80
|
+
|
|
81
|
+
+grid(3)
|
|
82
|
+
+omega
|
|
83
|
+
|
|
84
|
+
Adding some "blank" (padding-left, actually) columns before your grid column:
|
|
85
|
+
|
|
86
|
+
+grid(3)
|
|
87
|
+
+grid-prefix(9)
|
|
88
|
+
|
|
89
|
+
Adding some "blank" (padding-right, actually) columns after your grid column:
|
|
90
|
+
|
|
91
|
+
+grid(3)
|
|
92
|
+
+grid-suffix(9)
|
|
93
|
+
|
|
94
|
+
Using subcolumns
|
|
95
|
+
================
|
|
96
|
+
|
|
97
|
+
Columnal allows you to use subcolumns that will flatten to a single column on mobile devices, the same way as the normal columns. One thing to note is that sub-columns will only work up to one level deep. More at http://www.columnal.com/#markupcode
|
|
98
|
+
|
|
99
|
+
body
|
|
100
|
+
+grid-container
|
|
101
|
+
section
|
|
102
|
+
+grid-row
|
|
103
|
+
article
|
|
104
|
+
+grid(9)
|
|
105
|
+
.author
|
|
106
|
+
+grid-subcolumn(9, 6)
|
|
107
|
+
.date
|
|
108
|
+
+grid-subcolumn(9, 3)
|
|
109
|
+
+last
|
|
110
|
+
aside
|
|
111
|
+
+grid(3)
|
|
112
|
+
+last
|
|
113
|
+
|
|
114
|
+
This will divide your `article` into two subcolumns, one of them with 6 columns and the other with 3.
|
|
115
|
+
|
|
116
|
+
IMPORTANT: since Columnal is a responsive grid system based on percentage, we can't know beforehand how many columns the parent `article` has. Thus, the first parameter will be the number of columns of the parent.
|
|
117
|
+
|
|
118
|
+
Creating mobile-only or mobile-hidden content
|
|
119
|
+
=====================
|
|
120
|
+
|
|
121
|
+
If you want something to be shown only in mobile devices:
|
|
122
|
+
|
|
123
|
+
+mobile-only
|
|
124
|
+
|
|
125
|
+
If you want something to be hidden in mobile devices:
|
|
126
|
+
|
|
127
|
+
+mobile-hide
|
|
128
|
+
|
|
129
|
+
Configuring your grid
|
|
130
|
+
=====================
|
|
131
|
+
|
|
132
|
+
Defining the grid width:
|
|
133
|
+
|
|
134
|
+
$columnal-grid-width: 1140px !default
|
|
135
|
+
|
|
136
|
+
Defining the number of columns:
|
|
137
|
+
|
|
138
|
+
$columnal-columns: 12 !default
|
|
139
|
+
|
|
140
|
+
Defining the separator for classes on class-based grids:
|
|
141
|
+
|
|
142
|
+
$columnal-class-separator: "_" !default
|
|
143
|
+
|
|
144
|
+
Extras
|
|
145
|
+
======
|
|
146
|
+
|
|
147
|
+
Basic settings to make type look nice:
|
|
148
|
+
|
|
149
|
+
+text
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
///*/////////////////////////////////////////// */
|
|
3
3
|
|
|
4
4
|
/* Column code based on work from cssgrid.net:
|
|
5
|
-
*The 1140px Grid by Andy Taylor – http://cssgrid.net – http://www.twitter.com/andytlr – http://www.catchingzebra.com
|
|
5
|
+
*The 1140px Grid by Andy Taylor – http://cssgrid.net – http://www.twitter.com/andytlr – http://www.catchingzebra.com */
|
|
6
|
+
|
|
6
7
|
@import text
|
|
7
8
|
@import compass/css3
|
|
8
9
|
|
|
@@ -168,7 +169,7 @@ a img
|
|
|
168
169
|
|
|
169
170
|
/*
|
|
170
171
|
*_______________________________
|
|
171
|
-
*Columnal - extras
|
|
172
|
+
*Columnal - extras */
|
|
172
173
|
|
|
173
174
|
.clear, .clearboth
|
|
174
175
|
clear: both !important
|
|
@@ -188,7 +189,7 @@ a img
|
|
|
188
189
|
.textleft
|
|
189
190
|
text-align: left
|
|
190
191
|
|
|
191
|
-
/* this will insert a pseduo element clears floats for an element containing floated content
|
|
192
|
+
/* this will insert a pseduo element clears floats for an element containing floated content */
|
|
192
193
|
|
|
193
194
|
.selfclear:after
|
|
194
195
|
clear: both
|
|
@@ -2,24 +2,24 @@
|
|
|
2
2
|
///*/////////////////////////////////////////// */
|
|
3
3
|
/*
|
|
4
4
|
*_______________________________
|
|
5
|
-
*Columnal - TYPE (basic settings to make type look nice)
|
|
5
|
+
*Columnal - TYPE (basic settings to make type look nice) */
|
|
6
6
|
=text
|
|
7
7
|
body
|
|
8
8
|
font-family: Helvetica, Arial, sans-serif
|
|
9
9
|
font-size: 100%
|
|
10
10
|
color: #444
|
|
11
11
|
line-height: 1.6em
|
|
12
|
-
/* from cssgrid.net
|
|
12
|
+
/* from cssgrid.net */
|
|
13
13
|
-webkit-text-size-adjust: none
|
|
14
14
|
/* from cssgrid.net
|
|
15
|
-
/* Stops the iPhone scalling type up - from cssgrid.net
|
|
15
|
+
/* Stops the iPhone scalling type up - from cssgrid.net */
|
|
16
16
|
|
|
17
|
-
/* h1, h2, h3, h4, h5, h6 { letter-spacing: 1px; }
|
|
17
|
+
/* h1, h2, h3, h4, h5, h6 { letter-spacing: 1px; } */
|
|
18
18
|
|
|
19
19
|
h1, h2, h3, h4, h5, h6, p, dl, hr, ol, ul, pre, table, address, fieldset
|
|
20
20
|
margin-bottom: 1.6em
|
|
21
21
|
|
|
22
|
-
/* Add back in basic text markup (after removal by reset)
|
|
22
|
+
/* Add back in basic text markup (after removal by reset) */
|
|
23
23
|
|
|
24
24
|
strong
|
|
25
25
|
font-weight: bold
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
font-size: 13px
|
|
33
33
|
font-weight: bold
|
|
34
34
|
|
|
35
|
-
/* text colors, add custom colors here to match your site
|
|
35
|
+
/* text colors, add custom colors here to match your site */
|
|
36
36
|
|
|
37
37
|
.teal
|
|
38
38
|
color: #155f62
|
|
39
39
|
|
|
40
|
-
/* link colors
|
|
40
|
+
/* link colors */
|
|
41
41
|
|
|
42
42
|
a
|
|
43
43
|
color: #058
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
&:focus
|
|
52
52
|
outline: 1px dotted #79160d
|
|
53
53
|
|
|
54
|
-
/* .row hr, .row p, .row ul, .row ol, .row dl, .row pre, .row address, .row table, .row form {margin-bottom: 1.6em;}
|
|
54
|
+
/* .row hr, .row p, .row ul, .row ol, .row dl, .row pre, .row address, .row table, .row form {margin-bottom: 1.6em;} */
|
|
55
55
|
|
|
56
56
|
dt
|
|
57
57
|
font-weight: bold
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
h1 + p, h2 + p, h3 + p, h4 + p, h5 + p, h6 + p
|
|
78
78
|
margin-top: 0
|
|
79
79
|
|
|
80
|
-
/* fix for weird Chrome collapse bug
|
|
80
|
+
/* fix for weird Chrome collapse bug */
|
|
81
81
|
|
|
82
82
|
h2
|
|
83
83
|
font-size: 1.7em
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
|
|
133
133
|
/*
|
|
134
134
|
*_______________________________
|
|
135
|
-
*Columnal - reverse type presets (for text on dark backgrounds)
|
|
135
|
+
*Columnal - reverse type presets (for text on dark backgrounds) */
|
|
136
136
|
|
|
137
137
|
.reverse
|
|
138
138
|
h1, h2, h3, h4, h5, h6
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
|
|
143
143
|
/*
|
|
144
144
|
*_______________________________
|
|
145
|
-
*IMAGE basics
|
|
145
|
+
*IMAGE basics */
|
|
146
146
|
|
|
147
147
|
img, object, embed
|
|
148
148
|
margin-bottom: 20px
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
|
|
156
156
|
a img
|
|
157
157
|
display: block
|
|
158
|
-
/* Stops image links getting text link styles
|
|
158
|
+
/* Stops image links getting text link styles */
|
|
159
159
|
|
|
160
160
|
// END TYPE PRESETS
|
|
161
161
|
///*/////////////////////////////////////////// */
|
metadata
CHANGED
|
@@ -1,83 +1,70 @@
|
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: compass-columnal-plugin
|
|
3
|
-
version: !ruby/object:Gem::Version
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
- 0
|
|
7
|
-
- 1
|
|
8
|
-
- 3
|
|
9
|
-
version: 0.1.3
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.4
|
|
5
|
+
prerelease:
|
|
10
6
|
platform: ruby
|
|
11
|
-
authors:
|
|
7
|
+
authors:
|
|
12
8
|
- Diogo Biazus
|
|
13
9
|
autorequire:
|
|
14
10
|
bindir: bin
|
|
15
11
|
cert_chain: []
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
dependencies:
|
|
20
|
-
- !ruby/object:Gem::Dependency
|
|
12
|
+
date: 2012-01-12 00:00:00.000000000 Z
|
|
13
|
+
dependencies:
|
|
14
|
+
- !ruby/object:Gem::Dependency
|
|
21
15
|
name: compass
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
requirements:
|
|
25
|
-
- -
|
|
26
|
-
- !ruby/object:Gem::Version
|
|
27
|
-
segments:
|
|
28
|
-
- 0
|
|
29
|
-
- 10
|
|
30
|
-
- 0
|
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
|
17
|
+
none: false
|
|
18
|
+
requirements:
|
|
19
|
+
- - ! '>='
|
|
20
|
+
- !ruby/object:Gem::Version
|
|
31
21
|
version: 0.10.0
|
|
32
22
|
type: :runtime
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
23
|
+
prerelease: false
|
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
25
|
+
none: false
|
|
26
|
+
requirements:
|
|
27
|
+
- - ! '>='
|
|
28
|
+
- !ruby/object:Gem::Version
|
|
29
|
+
version: 0.10.0
|
|
30
|
+
description: ! 'The Columnal CSS grid system is a “remix” of a couple others with
|
|
31
|
+
some custom code thrown in. The elastic grid system is borrowed from cssgrid.net,
|
|
32
|
+
while some code inspiration (and the idea for subcolumns) are taken from 960.gs.
|
|
33
|
+
Checkout at: http://www.columnal.com/'
|
|
34
|
+
email:
|
|
36
35
|
- diogo@biazus.me
|
|
37
36
|
executables: []
|
|
38
|
-
|
|
39
37
|
extensions: []
|
|
40
|
-
|
|
41
38
|
extra_rdoc_files: []
|
|
42
|
-
|
|
43
|
-
files:
|
|
39
|
+
files:
|
|
44
40
|
- compass-columnal-plugin.gemspec
|
|
45
41
|
- README.mkdn
|
|
46
42
|
- lib/columnal.rb
|
|
47
43
|
- stylesheets/columnal/_grid.sass
|
|
48
44
|
- stylesheets/columnal/_text.sass
|
|
49
45
|
- templates/project/manifest.rb
|
|
50
|
-
has_rdoc: true
|
|
51
46
|
homepage: https://github.com/diogob/compass-columnal-plugin
|
|
52
47
|
licenses: []
|
|
53
|
-
|
|
54
48
|
post_install_message:
|
|
55
49
|
rdoc_options: []
|
|
56
|
-
|
|
57
|
-
require_paths:
|
|
50
|
+
require_paths:
|
|
58
51
|
- lib
|
|
59
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
requirements:
|
|
68
|
-
- -
|
|
69
|
-
- !ruby/object:Gem::Version
|
|
70
|
-
segments:
|
|
71
|
-
- 1
|
|
72
|
-
- 3
|
|
73
|
-
- 5
|
|
52
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
53
|
+
none: false
|
|
54
|
+
requirements:
|
|
55
|
+
- - ! '>='
|
|
56
|
+
- !ruby/object:Gem::Version
|
|
57
|
+
version: '0'
|
|
58
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
59
|
+
none: false
|
|
60
|
+
requirements:
|
|
61
|
+
- - ! '>='
|
|
62
|
+
- !ruby/object:Gem::Version
|
|
74
63
|
version: 1.3.5
|
|
75
64
|
requirements: []
|
|
76
|
-
|
|
77
65
|
rubyforge_project: compass-columnal-plugin
|
|
78
|
-
rubygems_version: 1.
|
|
66
|
+
rubygems_version: 1.8.24
|
|
79
67
|
signing_key:
|
|
80
68
|
specification_version: 3
|
|
81
69
|
summary: Compass compatible Sass port of columnal grid system.
|
|
82
70
|
test_files: []
|
|
83
|
-
|