creationix-milk 0.0.9
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/.document +5 -0
- data/.gitignore +7 -0
- data/LICENSE +27 -0
- data/README.rdoc +7 -0
- data/Rakefile +62 -0
- data/VERSION +1 -0
- data/bin/milk +22 -0
- data/lib/milk.rb +82 -0
- data/lib/milk/application.rb +227 -0
- data/lib/milk/component.rb +142 -0
- data/lib/milk/field.rb +60 -0
- data/lib/milk/fields/component.haml +8 -0
- data/lib/milk/fields/component_array.haml +3 -0
- data/lib/milk/fields/component_array.rb +4 -0
- data/lib/milk/fields/image_chooser.haml +7 -0
- data/lib/milk/fields/image_chooser.rb +26 -0
- data/lib/milk/fields/login.haml +90 -0
- data/lib/milk/fields/markdown_field.haml +1 -0
- data/lib/milk/fields/markdown_field.rb +4 -0
- data/lib/milk/fields/page_chooser.haml +3 -0
- data/lib/milk/fields/page_chooser.rb +17 -0
- data/lib/milk/fields/sprite_chooser.haml +6 -0
- data/lib/milk/fields/sprite_chooser.rb +19 -0
- data/lib/milk/fields/text_field.haml +1 -0
- data/lib/milk/fields/text_field.rb +4 -0
- data/lib/milk/fields/xhtml.haml +253 -0
- data/lib/milk/haxe.rb +139 -0
- data/lib/milk/page.rb +139 -0
- data/lib/milk/tasks.rb +51 -0
- data/milk.gemspec +137 -0
- data/site_template/Rakefile +3 -0
- data/site_template/config.ru +16 -0
- data/site_template/config/config.yaml +31 -0
- data/site_template/config/foot.yaml +3 -0
- data/site_template/config/head.yaml +18 -0
- data/site_template/config/users.yaml +18 -0
- data/site_template/design/0-reset.sass +170 -0
- data/site_template/design/1-text.sass +65 -0
- data/site_template/design/960.sass +305 -0
- data/site_template/design/body.haml +1 -0
- data/site_template/design/body.rb +4 -0
- data/site_template/design/button.haml +2 -0
- data/site_template/design/button.rb +16 -0
- data/site_template/design/foot.haml +1 -0
- data/site_template/design/foot.rb +4 -0
- data/site_template/design/foot.sass +3 -0
- data/site_template/design/head.haml +3 -0
- data/site_template/design/head.rb +4 -0
- data/site_template/design/head.sass +27 -0
- data/site_template/design/page.haml +2 -0
- data/site_template/design/page.sass +7 -0
- data/site_template/design/sprites.sass +0 -0
- data/site_template/design/xhtml.haml +15 -0
- data/site_template/pages/About.yaml +14 -0
- data/site_template/pages/Home.yaml +14 -0
- data/site_template/pages/News.yaml +14 -0
- data/site_template/pages/NotFound.yaml +14 -0
- data/site_template/pages/Products.yaml +14 -0
- data/site_template/public/cache/About/index.html +42 -0
- data/site_template/public/cache/Home/index.html +44 -0
- data/site_template/public/cache/News/index.html +42 -0
- data/site_template/public/cache/Products/index.html +42 -0
- data/site_template/public/favicon.ico +0 -0
- data/site_template/public/images/README.txt +2 -0
- data/site_template/public/js/jquery-1.3.2.min.js +19 -0
- data/site_template/public/js/jquery-ui-1.7.2.custom.min.js +34 -0
- data/site_template/public/js/jquery.json-1.3.min.js +37 -0
- data/site_template/public/robots.txt +0 -0
- data/site_template/public/skin/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
- data/site_template/public/skin/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
- data/site_template/public/skin/images/ui-bg_flat_10_000000_40x100.png +0 -0
- data/site_template/public/skin/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
- data/site_template/public/skin/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
- data/site_template/public/skin/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/site_template/public/skin/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
- data/site_template/public/skin/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
- data/site_template/public/skin/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
- data/site_template/public/skin/images/ui-icons_222222_256x240.png +0 -0
- data/site_template/public/skin/images/ui-icons_228ef1_256x240.png +0 -0
- data/site_template/public/skin/images/ui-icons_ef8c08_256x240.png +0 -0
- data/site_template/public/skin/images/ui-icons_ffd27a_256x240.png +0 -0
- data/site_template/public/skin/images/ui-icons_ffffff_256x240.png +0 -0
- data/site_template/public/skin/jquery-ui-1.7.2.custom.css +406 -0
- data/site_template/public/style/style.css +157 -0
- data/site_template/tmp/restart.txt +1 -0
- data/test/milk_test.rb +7 -0
- data/test/test_helper.rb +10 -0
- metadata +170 -0
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'milk'
|
2
|
+
|
3
|
+
# use Lock
|
4
|
+
if %w{rackup thin}.member?($0.rpartition('/').last)
|
5
|
+
puts "Running in development mode"
|
6
|
+
use ContentLength
|
7
|
+
use Reloader
|
8
|
+
run Cascade.new([
|
9
|
+
File.new('public'),
|
10
|
+
Milk::Application.new
|
11
|
+
])
|
12
|
+
else
|
13
|
+
# When using passenger, require secure cookies and don't bother with static files
|
14
|
+
run Milk::Application.new(true)
|
15
|
+
end
|
16
|
+
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# This file contains global settings for the milk site
|
2
|
+
---
|
3
|
+
|
4
|
+
# SECRET is the site specific key used to encrypt the cookies sent for authentication.
|
5
|
+
#
|
6
|
+
# It is very important that this key be both long and unique to each site you build.
|
7
|
+
#
|
8
|
+
# My method is to pick two secret passphrases and concatenating the md5 of them together
|
9
|
+
#
|
10
|
+
# >> require 'digest/md5'
|
11
|
+
# => true
|
12
|
+
# >> Digest::MD5.hexdigest("Milk") + Digest::MD5.hexdigest("Rocks")
|
13
|
+
# => "e89b2cbb7d11825a67459af2249064de5cdfbc0ea6e85d2cc3dd5ddec72ffe1a"
|
14
|
+
SECRET: "098f6bcd4621d373cade4e832627b4f6ad0234829205b9033196ba818f7a872b"
|
15
|
+
|
16
|
+
# USE_CACHE is an advanced option for sites that need super high performance. When
|
17
|
+
# this option is set to true, then every time a page is saved, a static html file is
|
18
|
+
# created and saved to [MILK_ROOT]/public/cache/[pagename]/index.html
|
19
|
+
#
|
20
|
+
# In order to use these cache files your apache or nginx server needs to have a rewrite
|
21
|
+
# rule that looks here first and uses the static files if they exist.
|
22
|
+
#
|
23
|
+
# As an example, here is the relevent part of my nginx config:
|
24
|
+
#
|
25
|
+
# # Enable loading page cache files directly
|
26
|
+
# rewrite ^/$ /cache/Home/index.html;
|
27
|
+
# rewrite ^((/[A-Z][A-Za-z]*)+)$ /cache/$1/index.html;
|
28
|
+
USE_CACHE: false
|
29
|
+
|
30
|
+
# You can create any other site wide globals for use in templates here
|
31
|
+
SITE_NAME: "Sample Site"
|
@@ -0,0 +1,18 @@
|
|
1
|
+
---
|
2
|
+
buttons:
|
3
|
+
- !ruby/object:Button
|
4
|
+
href: /Home
|
5
|
+
title: Home
|
6
|
+
description: Description of home page
|
7
|
+
- !ruby/object:Button
|
8
|
+
href: /News
|
9
|
+
title: News
|
10
|
+
description: Description of news page
|
11
|
+
- !ruby/object:Button
|
12
|
+
href: /Products
|
13
|
+
title: Products
|
14
|
+
description: Description of products page
|
15
|
+
- !ruby/object:Button
|
16
|
+
href: /About
|
17
|
+
title: About Us
|
18
|
+
description: Description of about page
|
@@ -0,0 +1,18 @@
|
|
1
|
+
---
|
2
|
+
# This file contains the emails, names and hashed passwords for
|
3
|
+
# all users of the site.
|
4
|
+
#
|
5
|
+
# Hash is a simple md5 of the password for now, future versions of
|
6
|
+
# Milk may use something more secure.
|
7
|
+
#
|
8
|
+
# To create the md5 hash in irb do the following:
|
9
|
+
#
|
10
|
+
# >> require 'digest/md5'
|
11
|
+
# => true
|
12
|
+
# >> Digest::MD5.hexdigest("test")
|
13
|
+
# => "098f6bcd4621d373cade4e832627b4f6"
|
14
|
+
#
|
15
|
+
# Note the default login is admin@example.com/test
|
16
|
+
admin@example.com:
|
17
|
+
name: Sample Admin
|
18
|
+
hash: 098f6bcd4621d373cade4e832627b4f6
|
@@ -0,0 +1,170 @@
|
|
1
|
+
// This file is generated using css2sass on reset.css from http://960.gs/
|
2
|
+
// This unifies the differences in the default styles of different browsers.
|
3
|
+
html
|
4
|
+
:margin 0
|
5
|
+
:padding 0
|
6
|
+
:border 0
|
7
|
+
:outline 0
|
8
|
+
:font-size 100%
|
9
|
+
:vertical-align baseline
|
10
|
+
:background transparent
|
11
|
+
|
12
|
+
|
13
|
+
body
|
14
|
+
:margin 0
|
15
|
+
:padding 0
|
16
|
+
:border 0
|
17
|
+
:outline 0
|
18
|
+
:font-size 100%
|
19
|
+
:vertical-align baseline
|
20
|
+
:background transparent
|
21
|
+
:line-height 1
|
22
|
+
|
23
|
+
|
24
|
+
div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p
|
25
|
+
:margin 0
|
26
|
+
:padding 0
|
27
|
+
:border 0
|
28
|
+
:outline 0
|
29
|
+
:font-size 100%
|
30
|
+
:vertical-align baseline
|
31
|
+
:background transparent
|
32
|
+
|
33
|
+
|
34
|
+
blockquote
|
35
|
+
:margin 0
|
36
|
+
:padding 0
|
37
|
+
:border 0
|
38
|
+
:outline 0
|
39
|
+
:font-size 100%
|
40
|
+
:vertical-align baseline
|
41
|
+
:background transparent
|
42
|
+
:quotes none
|
43
|
+
|
44
|
+
&:before, &:after
|
45
|
+
:content ''
|
46
|
+
:content none
|
47
|
+
|
48
|
+
|
49
|
+
pre, a, abbr, acronym, address, big, cite, code
|
50
|
+
:margin 0
|
51
|
+
:padding 0
|
52
|
+
:border 0
|
53
|
+
:outline 0
|
54
|
+
:font-size 100%
|
55
|
+
:vertical-align baseline
|
56
|
+
:background transparent
|
57
|
+
|
58
|
+
|
59
|
+
del
|
60
|
+
:margin 0
|
61
|
+
:padding 0
|
62
|
+
:border 0
|
63
|
+
:outline 0
|
64
|
+
:font-size 100%
|
65
|
+
:vertical-align baseline
|
66
|
+
:background transparent
|
67
|
+
:text-decoration line-through
|
68
|
+
|
69
|
+
|
70
|
+
dfn, em, font, img
|
71
|
+
:margin 0
|
72
|
+
:padding 0
|
73
|
+
:border 0
|
74
|
+
:outline 0
|
75
|
+
:font-size 100%
|
76
|
+
:vertical-align baseline
|
77
|
+
:background transparent
|
78
|
+
|
79
|
+
|
80
|
+
ins
|
81
|
+
:margin 0
|
82
|
+
:padding 0
|
83
|
+
:border 0
|
84
|
+
:outline 0
|
85
|
+
:font-size 100%
|
86
|
+
:vertical-align baseline
|
87
|
+
:background transparent
|
88
|
+
:text-decoration none
|
89
|
+
|
90
|
+
|
91
|
+
kbd
|
92
|
+
:margin 0
|
93
|
+
:padding 0
|
94
|
+
:border 0
|
95
|
+
:outline 0
|
96
|
+
:font-size 100%
|
97
|
+
:vertical-align baseline
|
98
|
+
:background transparent
|
99
|
+
|
100
|
+
|
101
|
+
q
|
102
|
+
:margin 0
|
103
|
+
:padding 0
|
104
|
+
:border 0
|
105
|
+
:outline 0
|
106
|
+
:font-size 100%
|
107
|
+
:vertical-align baseline
|
108
|
+
:background transparent
|
109
|
+
:quotes none
|
110
|
+
|
111
|
+
&:before, &:after
|
112
|
+
:content ''
|
113
|
+
:content none
|
114
|
+
|
115
|
+
|
116
|
+
s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd
|
117
|
+
:margin 0
|
118
|
+
:padding 0
|
119
|
+
:border 0
|
120
|
+
:outline 0
|
121
|
+
:font-size 100%
|
122
|
+
:vertical-align baseline
|
123
|
+
:background transparent
|
124
|
+
|
125
|
+
|
126
|
+
ol, ul
|
127
|
+
:margin 0
|
128
|
+
:padding 0
|
129
|
+
:border 0
|
130
|
+
:outline 0
|
131
|
+
:font-size 100%
|
132
|
+
:vertical-align baseline
|
133
|
+
:background transparent
|
134
|
+
:list-style none
|
135
|
+
|
136
|
+
|
137
|
+
li, fieldset, form, label, legend
|
138
|
+
:margin 0
|
139
|
+
:padding 0
|
140
|
+
:border 0
|
141
|
+
:outline 0
|
142
|
+
:font-size 100%
|
143
|
+
:vertical-align baseline
|
144
|
+
:background transparent
|
145
|
+
|
146
|
+
|
147
|
+
table
|
148
|
+
:margin 0
|
149
|
+
:padding 0
|
150
|
+
:border 0
|
151
|
+
:outline 0
|
152
|
+
:font-size 100%
|
153
|
+
:vertical-align baseline
|
154
|
+
:background transparent
|
155
|
+
:border-collapse collapse
|
156
|
+
:border-spacing 0
|
157
|
+
|
158
|
+
|
159
|
+
caption, tbody, tfoot, thead, tr, th, td
|
160
|
+
:margin 0
|
161
|
+
:padding 0
|
162
|
+
:border 0
|
163
|
+
:outline 0
|
164
|
+
:font-size 100%
|
165
|
+
:vertical-align baseline
|
166
|
+
:background transparent
|
167
|
+
|
168
|
+
|
169
|
+
html :focus
|
170
|
+
:outline 0
|
@@ -0,0 +1,65 @@
|
|
1
|
+
// This file is generated using css2sass on text.css from http://960.gs/
|
2
|
+
// This gives some good defaults to start with for fonts
|
3
|
+
// Feel free to edit as needed
|
4
|
+
body
|
5
|
+
:font 13px/1.5 Helvetica,Arial,'Liberation Sans',FreeSans,sans-serif
|
6
|
+
|
7
|
+
|
8
|
+
a:focus
|
9
|
+
:outline 1px dotted invert
|
10
|
+
|
11
|
+
|
12
|
+
hr
|
13
|
+
:border 0 #ccc solid
|
14
|
+
:border-top-width 1px
|
15
|
+
:clear both
|
16
|
+
:height 0
|
17
|
+
:margin-bottom 20px
|
18
|
+
|
19
|
+
|
20
|
+
h1
|
21
|
+
:font-size 25px
|
22
|
+
:margin-bottom 20px
|
23
|
+
|
24
|
+
|
25
|
+
h2
|
26
|
+
:font-size 23px
|
27
|
+
:margin-bottom 20px
|
28
|
+
|
29
|
+
|
30
|
+
h3
|
31
|
+
:font-size 21px
|
32
|
+
:margin-bottom 20px
|
33
|
+
|
34
|
+
|
35
|
+
h4
|
36
|
+
:font-size 19px
|
37
|
+
:margin-bottom 20px
|
38
|
+
|
39
|
+
|
40
|
+
h5
|
41
|
+
:font-size 17px
|
42
|
+
:margin-bottom 20px
|
43
|
+
|
44
|
+
|
45
|
+
h6
|
46
|
+
:font-size 15px
|
47
|
+
:margin-bottom 20px
|
48
|
+
|
49
|
+
|
50
|
+
ol
|
51
|
+
:list-style decimal
|
52
|
+
:margin-bottom 20px
|
53
|
+
|
54
|
+
|
55
|
+
ul
|
56
|
+
:list-style disc
|
57
|
+
:margin-bottom 20px
|
58
|
+
|
59
|
+
|
60
|
+
li
|
61
|
+
:margin-left 30px
|
62
|
+
|
63
|
+
|
64
|
+
p, dl, pre, table, address, fieldset
|
65
|
+
:margin-bottom 20px
|
@@ -0,0 +1,305 @@
|
|
1
|
+
// This file is generated using css2sass on 960.css from http://960.gs/
|
2
|
+
// Then I factored out the widths to make it easier to edit based on sass variables
|
3
|
+
// This defines the columns of the content.
|
4
|
+
|
5
|
+
// Configure parameters here
|
6
|
+
!full_width = 960
|
7
|
+
!gutter_width = 20
|
8
|
+
|
9
|
+
// Calculated variables
|
10
|
+
!full_column_width_12 = !full_width / 12
|
11
|
+
!full_column_width_16 = !full_width / 16
|
12
|
+
|
13
|
+
.container_12
|
14
|
+
:margin-left auto
|
15
|
+
:margin-right auto
|
16
|
+
:width = !full_width + "px"
|
17
|
+
|
18
|
+
.grid_3
|
19
|
+
:width = (!full_column_width_12 * 3 - !gutter_width) + "px"
|
20
|
+
|
21
|
+
.grid_6
|
22
|
+
:width = (!full_column_width_12 * 6 - !gutter_width) + "px"
|
23
|
+
|
24
|
+
.grid_9
|
25
|
+
:width = (!full_column_width_12 * 9 - !gutter_width) + "px"
|
26
|
+
|
27
|
+
.grid_12
|
28
|
+
:width = (!full_column_width_12 * 12 - !gutter_width) + "px"
|
29
|
+
|
30
|
+
.grid_1
|
31
|
+
:width = (!full_column_width_12 - !gutter_width) + "px"
|
32
|
+
|
33
|
+
.grid_2
|
34
|
+
:width = (!full_column_width_12 * 2 - !gutter_width) + "px"
|
35
|
+
|
36
|
+
.grid_4
|
37
|
+
:width = (!full_column_width_12 * 4 - !gutter_width) + "px"
|
38
|
+
|
39
|
+
.grid_5
|
40
|
+
:width = (!full_column_width_12 * 5 - !gutter_width) + "px"
|
41
|
+
|
42
|
+
.grid_7
|
43
|
+
:width = (!full_column_width_12 * 7 - !gutter_width) + "px"
|
44
|
+
|
45
|
+
.grid_8
|
46
|
+
:width = (!full_column_width_12 * 8 - !gutter_width) + "px"
|
47
|
+
|
48
|
+
.grid_10
|
49
|
+
:width = (!full_column_width_12 * 10 - !gutter_width) + "px"
|
50
|
+
|
51
|
+
.grid_11
|
52
|
+
:width = (!full_column_width_12 * 11 - !gutter_width) + "px"
|
53
|
+
|
54
|
+
.prefix_3
|
55
|
+
:padding-left = (!full_column_width_12 * 3) + "px"
|
56
|
+
|
57
|
+
.prefix_6
|
58
|
+
:padding-left = (!full_column_width_12 * 6) + "px"
|
59
|
+
|
60
|
+
.prefix_9
|
61
|
+
:padding-left = (!full_column_width_12 * 9) + "px"
|
62
|
+
|
63
|
+
.prefix_1
|
64
|
+
:padding-left = !full_column_width_12 + "px"
|
65
|
+
|
66
|
+
.prefix_2
|
67
|
+
:padding-left = (!full_column_width_12 * 2) + "px"
|
68
|
+
|
69
|
+
.prefix_4
|
70
|
+
:padding-left = (!full_column_width_12 * 4) + "px"
|
71
|
+
|
72
|
+
.prefix_5
|
73
|
+
:padding-left = (!full_column_width_12 * 5) + "px"
|
74
|
+
|
75
|
+
.prefix_7
|
76
|
+
:padding-left = (!full_column_width_12 * 7) + "px"
|
77
|
+
|
78
|
+
.prefix_8
|
79
|
+
:padding-left = (!full_column_width_12 * 8) + "px"
|
80
|
+
|
81
|
+
.prefix_10
|
82
|
+
:padding-left = (!full_column_width_12 * 10) + "px"
|
83
|
+
|
84
|
+
.prefix_11
|
85
|
+
:padding-left = (!full_column_width_12 * 11) + "px"
|
86
|
+
|
87
|
+
.suffix_3
|
88
|
+
:padding-right = (!full_column_width_12 * 3) + "px"
|
89
|
+
|
90
|
+
.suffix_6
|
91
|
+
:padding-right = (!full_column_width_12 * 6) + "px"
|
92
|
+
|
93
|
+
.suffix_9
|
94
|
+
:padding-right = (!full_column_width_12 * 9) + "px"
|
95
|
+
|
96
|
+
.suffix_1
|
97
|
+
:padding-right = !full_column_width_12 + "px"
|
98
|
+
|
99
|
+
.suffix_2
|
100
|
+
:padding-right = (!full_column_width_12 * 2) + "px"
|
101
|
+
|
102
|
+
.suffix_4
|
103
|
+
:padding-right = (!full_column_width_12 * 4) + "px"
|
104
|
+
|
105
|
+
.suffix_5
|
106
|
+
:padding-right = (!full_column_width_12 * 5) + "px"
|
107
|
+
|
108
|
+
.suffix_7
|
109
|
+
:padding-right = (!full_column_width_12 * 7) + "px"
|
110
|
+
|
111
|
+
.suffix_8
|
112
|
+
:padding-right = (!full_column_width_12 * 8) + "px"
|
113
|
+
|
114
|
+
.suffix_10
|
115
|
+
:padding-right = (!full_column_width_12 * 10) + "px"
|
116
|
+
|
117
|
+
.suffix_11
|
118
|
+
:padding-right = (!full_column_width_12 * 11) + "px"
|
119
|
+
|
120
|
+
|
121
|
+
.container_16
|
122
|
+
:margin-left auto
|
123
|
+
:margin-right auto
|
124
|
+
:width = !full_width + "px"
|
125
|
+
|
126
|
+
.grid_4
|
127
|
+
:width = (!full_column_width_16 * 4 - !gutter_width) + "px"
|
128
|
+
|
129
|
+
.grid_8
|
130
|
+
:width = (!full_column_width_16 * 8 - !gutter_width) + "px"
|
131
|
+
|
132
|
+
.grid_12
|
133
|
+
:width = (!full_column_width_16 * 12 - !gutter_width) + "px"
|
134
|
+
|
135
|
+
.grid_16
|
136
|
+
:width = (!full_column_width_16 * 16 - !gutter_width) + "px"
|
137
|
+
|
138
|
+
.grid_1
|
139
|
+
:width = (!full_column_width_16 - !gutter_width) + "px"
|
140
|
+
|
141
|
+
.grid_2
|
142
|
+
:width = (!full_column_width_16 * 2 - !gutter_width) + "px"
|
143
|
+
|
144
|
+
.grid_3
|
145
|
+
:width = (!full_column_width_16 * 3 - !gutter_width) + "px"
|
146
|
+
|
147
|
+
.grid_5
|
148
|
+
:width = (!full_column_width_16 * 5 - !gutter_width) + "px"
|
149
|
+
|
150
|
+
.grid_6
|
151
|
+
:width = (!full_column_width_16 * 6 - !gutter_width) + "px"
|
152
|
+
|
153
|
+
.grid_7
|
154
|
+
:width = (!full_column_width_16 * 7 - !gutter_width) + "px"
|
155
|
+
|
156
|
+
.grid_9
|
157
|
+
:width = (!full_column_width_16 * 9 - !gutter_width) + "px"
|
158
|
+
|
159
|
+
.grid_10
|
160
|
+
:width = (!full_column_width_16 * 10 - !gutter_width) + "px"
|
161
|
+
|
162
|
+
.grid_11
|
163
|
+
:width = (!full_column_width_16 * 11 - !gutter_width) + "px"
|
164
|
+
|
165
|
+
.grid_13
|
166
|
+
:width = (!full_column_width_16 * 13 - !gutter_width) + "px"
|
167
|
+
|
168
|
+
.grid_14
|
169
|
+
:width = (!full_column_width_16 * 14 - !gutter_width) + "px"
|
170
|
+
|
171
|
+
.grid_15
|
172
|
+
:width = (!full_column_width_16 * 15 - !gutter_width) + "px"
|
173
|
+
|
174
|
+
.prefix_4
|
175
|
+
:padding-left = (!full_column_width_16 * 4) + "px"
|
176
|
+
|
177
|
+
.prefix_8
|
178
|
+
:padding-left = (!full_column_width_16 * 8) + "px"
|
179
|
+
|
180
|
+
.prefix_12
|
181
|
+
:padding-left = (!full_column_width_16 * 12) + "px"
|
182
|
+
|
183
|
+
.prefix_1
|
184
|
+
:padding-left = !full_column_width_16 + "px"
|
185
|
+
|
186
|
+
.prefix_2
|
187
|
+
:padding-left = (!full_column_width_16 * 2) + "px"
|
188
|
+
|
189
|
+
.prefix_3
|
190
|
+
:padding-left = (!full_column_width_16 * 3) + "px"
|
191
|
+
|
192
|
+
.prefix_5
|
193
|
+
:padding-left = (!full_column_width_16 * 5) + "px"
|
194
|
+
|
195
|
+
.prefix_6
|
196
|
+
:padding-left = (!full_column_width_16 * 6) + "px"
|
197
|
+
|
198
|
+
.prefix_7
|
199
|
+
:padding-left = (!full_column_width_16 * 7) + "px"
|
200
|
+
|
201
|
+
.prefix_9
|
202
|
+
:padding-left = (!full_column_width_16 * 9) + "px"
|
203
|
+
|
204
|
+
.prefix_10
|
205
|
+
:padding-left = (!full_column_width_16 * 10) + "px"
|
206
|
+
|
207
|
+
.prefix_11
|
208
|
+
:padding-left = (!full_column_width_16 * 11) + "px"
|
209
|
+
|
210
|
+
.prefix_13
|
211
|
+
:padding-left = (!full_column_width_16 * 13) + "px"
|
212
|
+
|
213
|
+
.prefix_14
|
214
|
+
:padding-left = (!full_column_width_16 * 14) + "px"
|
215
|
+
|
216
|
+
.prefix_15
|
217
|
+
:padding-left = (!full_column_width_16 * 15) + "px"
|
218
|
+
|
219
|
+
.suffix_4
|
220
|
+
:padding-right = (!full_column_width_16 * 4) + "px"
|
221
|
+
|
222
|
+
.suffix_8
|
223
|
+
:padding-right = (!full_column_width_16 * 8) + "px"
|
224
|
+
|
225
|
+
.suffix_12
|
226
|
+
:padding-right = (!full_column_width_16 * 12) + "px"
|
227
|
+
|
228
|
+
.suffix_1
|
229
|
+
:padding-right = !full_column_width_16 + "px"
|
230
|
+
|
231
|
+
.suffix_2
|
232
|
+
:padding-right = (!full_column_width_16 * 2) + "px"
|
233
|
+
|
234
|
+
.suffix_3
|
235
|
+
:padding-right = (!full_column_width_16 * 3) + "px"
|
236
|
+
|
237
|
+
.suffix_5
|
238
|
+
:padding-right = (!full_column_width_16 * 5) + "px"
|
239
|
+
|
240
|
+
.suffix_6
|
241
|
+
:padding-right = (!full_column_width_16 * 6) + "px"
|
242
|
+
|
243
|
+
.suffix_7
|
244
|
+
:padding-right = (!full_column_width_16 * 7) + "px"
|
245
|
+
|
246
|
+
.suffix_9
|
247
|
+
:padding-right = (!full_column_width_16 * 9) + "px"
|
248
|
+
|
249
|
+
.suffix_10
|
250
|
+
:padding-right = (!full_column_width_16 * 10) + "px"
|
251
|
+
|
252
|
+
.suffix_11
|
253
|
+
:padding-right = (!full_column_width_16 * 11) + "px"
|
254
|
+
|
255
|
+
.suffix_13
|
256
|
+
:padding-right = (!full_column_width_16 * 13) + "px"
|
257
|
+
|
258
|
+
.suffix_14
|
259
|
+
:padding-right = (!full_column_width_16 * 14) + "px"
|
260
|
+
|
261
|
+
.suffix_15
|
262
|
+
:padding-right = (!full_column_width_16 * 15) + "px"
|
263
|
+
|
264
|
+
|
265
|
+
.grid_1, .grid_2, .grid_3, .grid_4, .grid_5, .grid_6, .grid_7, .grid_8, .grid_9, .grid_10, .grid_11, .grid_12, .grid_13, .grid_14, .grid_15, .grid_16
|
266
|
+
:display inline
|
267
|
+
:float left
|
268
|
+
:margin-left = (!gutter_width / 2) + "px"
|
269
|
+
:margin-right = (!gutter_width / 2) + "px"
|
270
|
+
|
271
|
+
|
272
|
+
.alpha
|
273
|
+
:margin-left 0
|
274
|
+
|
275
|
+
|
276
|
+
.omega
|
277
|
+
:margin-right 0
|
278
|
+
|
279
|
+
|
280
|
+
.clear
|
281
|
+
:clear both
|
282
|
+
:display block
|
283
|
+
:overflow hidden
|
284
|
+
:visibility hidden
|
285
|
+
:width 0
|
286
|
+
:height 0
|
287
|
+
|
288
|
+
|
289
|
+
.clearfix
|
290
|
+
:display inline-block
|
291
|
+
:display block
|
292
|
+
|
293
|
+
&:after
|
294
|
+
:clear both
|
295
|
+
:content ' '
|
296
|
+
:display block
|
297
|
+
:font-size 0
|
298
|
+
:line-height 0
|
299
|
+
:visibility hidden
|
300
|
+
:width 0
|
301
|
+
:height 0
|
302
|
+
|
303
|
+
|
304
|
+
* html .clearfix
|
305
|
+
:height 1%
|