grat 0.0.1
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/Manifest +40 -0
- data/README +21 -0
- data/Rakefile +15 -0
- data/config.ru +11 -0
- data/grat.gemspec +45 -0
- data/lib/environment.rb +36 -0
- data/lib/grat.rb +58 -0
- data/lib/grat/content.rb +23 -0
- data/lib/grat/page.rb +13 -0
- data/lib/grat/system.rb +48 -0
- data/lib/grat/template.rb +49 -0
- data/public/gratfiles/application.js +66 -0
- data/public/gratfiles/custom.css +41 -0
- data/public/gratfiles/favicon.ico +0 -0
- data/public/gratfiles/jquery-combined.min.js +30 -0
- data/public/gratfiles/oocss.min.css +1 -0
- data/public/gratfiles/oocss/content.css +72 -0
- data/public/gratfiles/oocss/grids.css +16 -0
- data/public/gratfiles/oocss/grids_debug.css +12 -0
- data/public/gratfiles/oocss/libraries.css +10 -0
- data/public/gratfiles/oocss/mod.css +34 -0
- data/public/gratfiles/oocss/mod_debug.css +11 -0
- data/public/gratfiles/oocss/mod_skins.css +109 -0
- data/public/gratfiles/oocss/talk.css +20 -0
- data/public/gratfiles/oocss/talk_skins.css +18 -0
- data/public/gratfiles/oocss/template.css +18 -0
- data/public/gratfiles/oocss/template_debug.css +6 -0
- data/views/content_form.haml +52 -0
- data/views/css/_content.sass +266 -0
- data/views/css/_custom.sass +0 -0
- data/views/css/_grids.sass +65 -0
- data/views/css/_grids_debug.sass +42 -0
- data/views/css/_libraries.sass +88 -0
- data/views/css/_mod.sass +97 -0
- data/views/css/_mod_debug.sass +26 -0
- data/views/css/_mod_skins.sass +313 -0
- data/views/css/_template.sass +62 -0
- data/views/css/_template_debug.sass +18 -0
- data/views/layout.haml +17 -0
- data/views/list.haml +18 -0
- data/views/missing.haml +10 -0
- metadata +155 -0
File without changes
|
@@ -0,0 +1,65 @@
|
|
1
|
+
.line, .lastUnit
|
2
|
+
overflow: hidden
|
3
|
+
_overflow: visible
|
4
|
+
_zoom: 1
|
5
|
+
|
6
|
+
|
7
|
+
.unit
|
8
|
+
float: left
|
9
|
+
_zoom: 1
|
10
|
+
|
11
|
+
|
12
|
+
.unitExt
|
13
|
+
float: right
|
14
|
+
|
15
|
+
|
16
|
+
.size1of1
|
17
|
+
float: none
|
18
|
+
|
19
|
+
|
20
|
+
.size1of2
|
21
|
+
width: 50%
|
22
|
+
|
23
|
+
|
24
|
+
.size1of3
|
25
|
+
width: 33.33333%
|
26
|
+
|
27
|
+
|
28
|
+
.size2of3
|
29
|
+
width: 66.66666%
|
30
|
+
|
31
|
+
|
32
|
+
.size1of4
|
33
|
+
width: 25%
|
34
|
+
|
35
|
+
|
36
|
+
.size3of4
|
37
|
+
width: 75%
|
38
|
+
|
39
|
+
|
40
|
+
.size1of5
|
41
|
+
width: 20%
|
42
|
+
|
43
|
+
|
44
|
+
.size2of5
|
45
|
+
width: 40%
|
46
|
+
|
47
|
+
|
48
|
+
.size3of5
|
49
|
+
width: 60%
|
50
|
+
|
51
|
+
|
52
|
+
.size4of5
|
53
|
+
width: 80%
|
54
|
+
|
55
|
+
|
56
|
+
.lastUnit
|
57
|
+
float: none
|
58
|
+
_position: relative
|
59
|
+
_left: -3px
|
60
|
+
_margin-right: -3px
|
61
|
+
width: auto
|
62
|
+
|
63
|
+
|
64
|
+
.media
|
65
|
+
width: auto
|
@@ -0,0 +1,42 @@
|
|
1
|
+
.line
|
2
|
+
background-color: #e2e2e2
|
3
|
+
|
4
|
+
|
5
|
+
.size1of1
|
6
|
+
background-color: pink
|
7
|
+
|
8
|
+
|
9
|
+
.size1of2
|
10
|
+
background-color: red
|
11
|
+
|
12
|
+
|
13
|
+
.size1of3
|
14
|
+
background-color: orange
|
15
|
+
|
16
|
+
|
17
|
+
.size2of3
|
18
|
+
background-color: yellow
|
19
|
+
|
20
|
+
|
21
|
+
.size1of4
|
22
|
+
background-color: lime
|
23
|
+
|
24
|
+
|
25
|
+
.size3of4
|
26
|
+
background-color: green
|
27
|
+
|
28
|
+
|
29
|
+
.size1of5
|
30
|
+
background-color: aqua
|
31
|
+
|
32
|
+
|
33
|
+
.size2of5
|
34
|
+
background-color: blue
|
35
|
+
|
36
|
+
|
37
|
+
.size3of5
|
38
|
+
background-color: purple
|
39
|
+
|
40
|
+
|
41
|
+
.size4of5
|
42
|
+
background-color: magenta
|
@@ -0,0 +1,88 @@
|
|
1
|
+
html
|
2
|
+
color: #000
|
3
|
+
background: #FFF
|
4
|
+
|
5
|
+
|
6
|
+
body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend, input, textarea, p, blockquote, th, td
|
7
|
+
margin: 0
|
8
|
+
padding: 0
|
9
|
+
|
10
|
+
|
11
|
+
table
|
12
|
+
border-collapse: collapse
|
13
|
+
border-spacing: 0
|
14
|
+
|
15
|
+
|
16
|
+
fieldset, img
|
17
|
+
border: 0
|
18
|
+
|
19
|
+
|
20
|
+
address, caption, cite, code, dfn, em, strong, th, var
|
21
|
+
font-style: normal
|
22
|
+
font-weight: normal
|
23
|
+
|
24
|
+
|
25
|
+
li
|
26
|
+
list-style: none
|
27
|
+
|
28
|
+
|
29
|
+
caption, th
|
30
|
+
text-align: left
|
31
|
+
|
32
|
+
|
33
|
+
h1, h2, h3, h4, h5, h6
|
34
|
+
font-size: 100%
|
35
|
+
font-weight: normal
|
36
|
+
|
37
|
+
|
38
|
+
q
|
39
|
+
&:before, &:after
|
40
|
+
content: ''
|
41
|
+
|
42
|
+
|
43
|
+
abbr, acronym
|
44
|
+
border: 0
|
45
|
+
font-variant: normal
|
46
|
+
|
47
|
+
|
48
|
+
sup
|
49
|
+
vertical-align: text-top
|
50
|
+
|
51
|
+
|
52
|
+
sub
|
53
|
+
vertical-align: text-bottom
|
54
|
+
|
55
|
+
|
56
|
+
input, textarea, select
|
57
|
+
font-family: inherit
|
58
|
+
font-size: inherit
|
59
|
+
font-weight: inherit
|
60
|
+
|
61
|
+
|
62
|
+
input, textarea, select
|
63
|
+
*font-size: 100%
|
64
|
+
|
65
|
+
|
66
|
+
legend
|
67
|
+
color: #000
|
68
|
+
|
69
|
+
|
70
|
+
body
|
71
|
+
font: 13px/1.231 arial,helvetica,clean,sans-serif
|
72
|
+
*font-size: small
|
73
|
+
*font: x-small
|
74
|
+
|
75
|
+
|
76
|
+
select, input, button, textarea
|
77
|
+
font: 99% arial,helvetica,clean,sans-serif
|
78
|
+
|
79
|
+
|
80
|
+
table
|
81
|
+
font-size: inherit
|
82
|
+
font: 100%
|
83
|
+
|
84
|
+
|
85
|
+
pre, code, kbd, samp, tt
|
86
|
+
font-family: monospace
|
87
|
+
*font-size: 108%
|
88
|
+
line-height: 100%
|
data/views/css/_mod.sass
ADDED
@@ -0,0 +1,97 @@
|
|
1
|
+
.mod
|
2
|
+
margin: 10px
|
3
|
+
|
4
|
+
|
5
|
+
.hd, .bd, .ft
|
6
|
+
overflow: hidden
|
7
|
+
_overflow: visible
|
8
|
+
_zoom: 1
|
9
|
+
|
10
|
+
|
11
|
+
.inner
|
12
|
+
position: relative
|
13
|
+
|
14
|
+
|
15
|
+
b
|
16
|
+
display: block
|
17
|
+
background-repeat: no-repeat
|
18
|
+
font-size: 1%
|
19
|
+
position: relative
|
20
|
+
z-index: 10
|
21
|
+
|
22
|
+
|
23
|
+
.tl, .tr, .bl, .br
|
24
|
+
height: 10px
|
25
|
+
width: 10px
|
26
|
+
float: left
|
27
|
+
|
28
|
+
|
29
|
+
.tl
|
30
|
+
background-position: left top
|
31
|
+
|
32
|
+
|
33
|
+
.tr
|
34
|
+
background-position: right top
|
35
|
+
|
36
|
+
|
37
|
+
.bl
|
38
|
+
background-position: left bottom
|
39
|
+
|
40
|
+
|
41
|
+
.br
|
42
|
+
background-position: right bottom
|
43
|
+
float: right
|
44
|
+
|
45
|
+
|
46
|
+
.tr
|
47
|
+
float: right
|
48
|
+
|
49
|
+
|
50
|
+
.bl, .br
|
51
|
+
margin-top: -10px
|
52
|
+
|
53
|
+
|
54
|
+
.top
|
55
|
+
background-position: center top
|
56
|
+
|
57
|
+
|
58
|
+
.bottom
|
59
|
+
background-position: center bottom
|
60
|
+
_zoom: 1
|
61
|
+
|
62
|
+
|
63
|
+
.complex
|
64
|
+
overflow: hidden
|
65
|
+
*position: relative
|
66
|
+
*zoom: 1
|
67
|
+
|
68
|
+
.tl, .tr
|
69
|
+
height: 32000px
|
70
|
+
margin-bottom: -32000px
|
71
|
+
width: 10px
|
72
|
+
overflow: hidden
|
73
|
+
|
74
|
+
.bl, .br
|
75
|
+
.top, .bottom
|
76
|
+
height: 5px
|
77
|
+
|
78
|
+
|
79
|
+
.pop
|
80
|
+
overflow: visible
|
81
|
+
margin: 10px 20px 20px 10px
|
82
|
+
background-position: left top
|
83
|
+
|
84
|
+
.inner
|
85
|
+
right: -10px
|
86
|
+
bottom: -10px
|
87
|
+
background-position: right bottom
|
88
|
+
padding: 0 10px 10px 0
|
89
|
+
|
90
|
+
.tl, .br
|
91
|
+
display: none
|
92
|
+
|
93
|
+
.bl
|
94
|
+
bottom: -10px
|
95
|
+
|
96
|
+
.tr
|
97
|
+
right: -10px
|
@@ -0,0 +1,26 @@
|
|
1
|
+
.top, .bottom
|
2
|
+
background-color: #e2e2e2
|
3
|
+
|
4
|
+
|
5
|
+
.tl
|
6
|
+
background-color: red
|
7
|
+
|
8
|
+
|
9
|
+
.tr
|
10
|
+
background-color: orange
|
11
|
+
|
12
|
+
|
13
|
+
.bl
|
14
|
+
background-color: yellow
|
15
|
+
|
16
|
+
|
17
|
+
.br
|
18
|
+
background-color: lime
|
19
|
+
|
20
|
+
|
21
|
+
.mod
|
22
|
+
background-color: purple
|
23
|
+
|
24
|
+
|
25
|
+
.inner
|
26
|
+
background-color: magenta
|
@@ -0,0 +1,313 @@
|
|
1
|
+
.simple
|
2
|
+
.inner
|
3
|
+
border: 1px solid #D7D7D7
|
4
|
+
|
5
|
+
b
|
6
|
+
background-image: url(skin/mod/simple_corners.png)
|
7
|
+
|
8
|
+
|
9
|
+
.basic
|
10
|
+
.inner
|
11
|
+
b
|
12
|
+
background-image: url(skin/mod/round.png)
|
13
|
+
|
14
|
+
|
15
|
+
.simpleExt
|
16
|
+
border: 1px solid #c7c7c7
|
17
|
+
-moz-border-radius: 7px
|
18
|
+
-webkit-border-radius: 7px
|
19
|
+
border-radius: 7px
|
20
|
+
|
21
|
+
.inner
|
22
|
+
border: 1px solid #c7c7c7
|
23
|
+
-moz-border-radius: 7px
|
24
|
+
-webkit-border-radius: 7px
|
25
|
+
border-radius: 7px
|
26
|
+
border-color: #fff
|
27
|
+
border-width: 4px
|
28
|
+
background-color: #e2e2e2
|
29
|
+
|
30
|
+
b
|
31
|
+
*background-image: url(skin/mod/simple_extended.png)
|
32
|
+
|
33
|
+
.tl
|
34
|
+
left: -1px
|
35
|
+
top: -1px
|
36
|
+
height: 12px
|
37
|
+
width: 12px
|
38
|
+
|
39
|
+
.tr
|
40
|
+
right: -1px
|
41
|
+
top: -1px
|
42
|
+
height: 12px
|
43
|
+
width: 12px
|
44
|
+
|
45
|
+
.bl
|
46
|
+
left: -1px
|
47
|
+
bottom: -1px
|
48
|
+
height: 12px
|
49
|
+
width: 12px
|
50
|
+
margin-top: -12px
|
51
|
+
|
52
|
+
.br
|
53
|
+
right: -1px
|
54
|
+
bottom: -1px
|
55
|
+
height: 12px
|
56
|
+
width: 12px
|
57
|
+
margin-top: -12px
|
58
|
+
|
59
|
+
|
60
|
+
.me
|
61
|
+
border: 1px solid #909090
|
62
|
+
|
63
|
+
.inner
|
64
|
+
border: 1px solid #909090
|
65
|
+
border-color: #d76a84
|
66
|
+
|
67
|
+
b
|
68
|
+
background-image: url(skin/mod/me.png)
|
69
|
+
|
70
|
+
.tl
|
71
|
+
left: -1px
|
72
|
+
top: -1px
|
73
|
+
|
74
|
+
.tr
|
75
|
+
right: -1px
|
76
|
+
top: -1px
|
77
|
+
|
78
|
+
.bl
|
79
|
+
left: -1px
|
80
|
+
bottom: -1px
|
81
|
+
|
82
|
+
.br
|
83
|
+
right: -1px
|
84
|
+
bottom: -1px
|
85
|
+
|
86
|
+
|
87
|
+
.noted
|
88
|
+
border: 1px solid #c2c2c2
|
89
|
+
|
90
|
+
.inner
|
91
|
+
border: 1px solid #c2c2c2
|
92
|
+
border-color: #eded68
|
93
|
+
|
94
|
+
b
|
95
|
+
background-image: url(skin/mod/noted.png)
|
96
|
+
|
97
|
+
.tl
|
98
|
+
left: -1px
|
99
|
+
top: -1px
|
100
|
+
|
101
|
+
.tr
|
102
|
+
right: -1px
|
103
|
+
top: -1px
|
104
|
+
|
105
|
+
.bl
|
106
|
+
left: -1px
|
107
|
+
bottom: -1px
|
108
|
+
|
109
|
+
.br
|
110
|
+
right: -1px
|
111
|
+
bottom: -1px
|
112
|
+
|
113
|
+
|
114
|
+
.grab
|
115
|
+
.inner
|
116
|
+
border: 3px solid #00477a
|
117
|
+
border-bottom-width: 10px
|
118
|
+
|
119
|
+
b
|
120
|
+
background-image: url(skin/mod/grab.png)
|
121
|
+
|
122
|
+
.tl, .tr
|
123
|
+
height: 10px
|
124
|
+
width: 10px
|
125
|
+
|
126
|
+
.bl, .br
|
127
|
+
height: 16px
|
128
|
+
margin-top: -16px
|
129
|
+
|
130
|
+
|
131
|
+
.talk
|
132
|
+
border: 1px solid #c7c7c7
|
133
|
+
|
134
|
+
.inner
|
135
|
+
border: 1px solid #c7c7c7
|
136
|
+
border-color: #ededed
|
137
|
+
|
138
|
+
b
|
139
|
+
background-image: url(skin/mod/talk.png)
|
140
|
+
|
141
|
+
.tl
|
142
|
+
left: -1px
|
143
|
+
top: -1px
|
144
|
+
|
145
|
+
.tr
|
146
|
+
right: -1px
|
147
|
+
top: -1px
|
148
|
+
|
149
|
+
.bl
|
150
|
+
left: -1px
|
151
|
+
bottom: -1px
|
152
|
+
|
153
|
+
.br
|
154
|
+
right: -1px
|
155
|
+
bottom: -1px
|
156
|
+
|
157
|
+
|
158
|
+
.photo
|
159
|
+
.inner
|
160
|
+
border: solid 10px #fff
|
161
|
+
margin: 0 4px
|
162
|
+
|
163
|
+
b
|
164
|
+
background-image: url(skin/mod/photo.png)
|
165
|
+
|
166
|
+
.tr, .tl
|
167
|
+
width: 20px
|
168
|
+
|
169
|
+
.top, .bottom
|
170
|
+
height: 4px
|
171
|
+
margin-top: 0px
|
172
|
+
|
173
|
+
.bl, .br
|
174
|
+
height: 16px
|
175
|
+
margin-top: -12px
|
176
|
+
|
177
|
+
|
178
|
+
.flow
|
179
|
+
margin: 6px
|
180
|
+
|
181
|
+
b
|
182
|
+
background-image: url(skin/mod/even.png)
|
183
|
+
|
184
|
+
.inner
|
185
|
+
padding: 0 4px
|
186
|
+
|
187
|
+
.top
|
188
|
+
height: 4px
|
189
|
+
|
190
|
+
.bottom
|
191
|
+
height: 4px
|
192
|
+
margin-top: -4px
|
193
|
+
|
194
|
+
.br, .bl
|
195
|
+
height: 10px
|
196
|
+
margin-top: -6px
|
197
|
+
|
198
|
+
|
199
|
+
.boo
|
200
|
+
-webkit-box-shadow: 0px 0px 1px rgba(0,0,0,33)
|
201
|
+
-moz-box-shadow: black 2px 2px 2px 2px
|
202
|
+
-moz-border-radius: 5px
|
203
|
+
-webkit-border-radius: 5px
|
204
|
+
border-radius: 5px
|
205
|
+
border: solid 1px #949494
|
206
|
+
background: #fff
|
207
|
+
|
208
|
+
|
209
|
+
.excerpt
|
210
|
+
b
|
211
|
+
background-image: url(skin/mod/excerpt.png)
|
212
|
+
|
213
|
+
.top
|
214
|
+
height: 1px
|
215
|
+
|
216
|
+
.bottom
|
217
|
+
height: 6px
|
218
|
+
margin-top: -6px
|
219
|
+
|
220
|
+
.br, .bl
|
221
|
+
height: 12px
|
222
|
+
margin-top: -6px
|
223
|
+
|
224
|
+
|
225
|
+
.sommers
|
226
|
+
background-image: url(skin/mod/glow_7px.png)
|
227
|
+
_background-image: none
|
228
|
+
|
229
|
+
.inner
|
230
|
+
_border: 3px solid #D7D7D7
|
231
|
+
background-image: url(skin/mod/glow_7px.png)
|
232
|
+
_background-image: none
|
233
|
+
|
234
|
+
b
|
235
|
+
background-image: url(skin/mod/glow_7px.png)
|
236
|
+
_background-image: none
|
237
|
+
|
238
|
+
|
239
|
+
.sale .inner
|
240
|
+
background-color: red
|
241
|
+
|
242
|
+
|
243
|
+
.nicole
|
244
|
+
.inner
|
245
|
+
background-color: #c01c41
|
246
|
+
color: #fff
|
247
|
+
|
248
|
+
*
|
249
|
+
color: #fff
|
250
|
+
|
251
|
+
|
252
|
+
.login *
|
253
|
+
color: #fff
|
254
|
+
|
255
|
+
|
256
|
+
.highlight .inner
|
257
|
+
background-color: #e3e36f
|
258
|
+
|
259
|
+
|
260
|
+
.universe .inner
|
261
|
+
background: url(skin/mod/universe.png) repeat left top
|
262
|
+
|
263
|
+
|
264
|
+
.foo .inner
|
265
|
+
background: url(skin/mod/universe_gray.png) repeat left top
|
266
|
+
|
267
|
+
|
268
|
+
.login .inner
|
269
|
+
background: url(skin/mod/universe_login.png) repeat left top
|
270
|
+
|
271
|
+
|
272
|
+
.comment .inner
|
273
|
+
background-color: #e2e2e2
|
274
|
+
|
275
|
+
|
276
|
+
.section
|
277
|
+
background: #e9e9e9 url(skin/mod/header.png) repeat-x left bottom
|
278
|
+
color: #de2c72
|
279
|
+
font-size: 120%
|
280
|
+
padding: 5px 10px
|
281
|
+
|
282
|
+
h1, h2, h3, h4, h5, h6
|
283
|
+
font-size: 100%
|
284
|
+
color: #de2c72
|
285
|
+
padding: 0
|
286
|
+
|
287
|
+
|
288
|
+
.act
|
289
|
+
background-color: #e9e9e9
|
290
|
+
|
291
|
+
|
292
|
+
.topper
|
293
|
+
background: #fff url(skin/mod/header_gradient_light.png) repeat-x left bottom
|
294
|
+
color: #4D4D4D
|
295
|
+
font-size: 120%
|
296
|
+
padding: 5px 10px
|
297
|
+
|
298
|
+
h1, h2, h3, h4, h5, h6
|
299
|
+
font-size: 100%
|
300
|
+
color: #4D4D4D
|
301
|
+
padding: 0
|
302
|
+
|
303
|
+
|
304
|
+
.bam
|
305
|
+
background: #00477a url(skin/mod/header_glossy.png) repeat-x left top
|
306
|
+
color: #fff
|
307
|
+
font-size: 120%
|
308
|
+
padding: 5px 10px
|
309
|
+
|
310
|
+
h1, h2, h3, h4, h5, h6
|
311
|
+
font-size: 100%
|
312
|
+
color: #fff
|
313
|
+
padding: 0
|