read-only-gollum 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (176) hide show
  1. data/Gemfile +4 -0
  2. data/HISTORY.md +102 -0
  3. data/Home.md +3 -0
  4. data/LICENSE +21 -0
  5. data/README.md +477 -0
  6. data/Rakefile +142 -0
  7. data/bin/read-only-gollum +126 -0
  8. data/docs/sanitization.md +32 -0
  9. data/lib/gollum.rb +41 -0
  10. data/lib/gollum/blob_entry.rb +78 -0
  11. data/lib/gollum/committer.rb +218 -0
  12. data/lib/gollum/file.rb +64 -0
  13. data/lib/gollum/frontend/app.rb +225 -0
  14. data/lib/gollum/frontend/public/css/dialog.css +141 -0
  15. data/lib/gollum/frontend/public/css/editor.css +537 -0
  16. data/lib/gollum/frontend/public/css/gollum.css +660 -0
  17. data/lib/gollum/frontend/public/css/ie7.css +69 -0
  18. data/lib/gollum/frontend/public/css/template.css +381 -0
  19. data/lib/gollum/frontend/public/images/icon-sprite.png +0 -0
  20. data/lib/gollum/frontend/public/javascript/editor/gollum.editor.js +1096 -0
  21. data/lib/gollum/frontend/public/javascript/editor/langs/asciidoc.js +167 -0
  22. data/lib/gollum/frontend/public/javascript/editor/langs/creole.js +104 -0
  23. data/lib/gollum/frontend/public/javascript/editor/langs/markdown.js +211 -0
  24. data/lib/gollum/frontend/public/javascript/editor/langs/org.js +173 -0
  25. data/lib/gollum/frontend/public/javascript/editor/langs/pod.js +111 -0
  26. data/lib/gollum/frontend/public/javascript/editor/langs/rdoc.js +74 -0
  27. data/lib/gollum/frontend/public/javascript/editor/langs/textile.js +175 -0
  28. data/lib/gollum/frontend/public/javascript/gollum.dialog.js +263 -0
  29. data/lib/gollum/frontend/public/javascript/gollum.js +161 -0
  30. data/lib/gollum/frontend/public/javascript/gollum.placeholder.js +54 -0
  31. data/lib/gollum/frontend/public/javascript/jquery.color.js +123 -0
  32. data/lib/gollum/frontend/public/javascript/jquery.js +7179 -0
  33. data/lib/gollum/frontend/templates/compare.mustache +38 -0
  34. data/lib/gollum/frontend/templates/create.mustache +17 -0
  35. data/lib/gollum/frontend/templates/edit.mustache +17 -0
  36. data/lib/gollum/frontend/templates/editor.mustache +116 -0
  37. data/lib/gollum/frontend/templates/error.mustache +8 -0
  38. data/lib/gollum/frontend/templates/history.mustache +58 -0
  39. data/lib/gollum/frontend/templates/layout.mustache +28 -0
  40. data/lib/gollum/frontend/templates/page.mustache +37 -0
  41. data/lib/gollum/frontend/templates/pages.mustache +35 -0
  42. data/lib/gollum/frontend/templates/search.mustache +36 -0
  43. data/lib/gollum/frontend/templates/searchbar.mustache +10 -0
  44. data/lib/gollum/frontend/views/compare.rb +94 -0
  45. data/lib/gollum/frontend/views/create.rb +48 -0
  46. data/lib/gollum/frontend/views/edit.rb +52 -0
  47. data/lib/gollum/frontend/views/editable.rb +13 -0
  48. data/lib/gollum/frontend/views/error.rb +7 -0
  49. data/lib/gollum/frontend/views/history.rb +44 -0
  50. data/lib/gollum/frontend/views/layout.rb +20 -0
  51. data/lib/gollum/frontend/views/page.rb +57 -0
  52. data/lib/gollum/frontend/views/pages.rb +19 -0
  53. data/lib/gollum/frontend/views/search.rb +20 -0
  54. data/lib/gollum/git_access.rb +248 -0
  55. data/lib/gollum/markup.rb +489 -0
  56. data/lib/gollum/page.rb +430 -0
  57. data/lib/gollum/pagination.rb +61 -0
  58. data/lib/gollum/sanitization.rb +174 -0
  59. data/lib/gollum/tex.rb +89 -0
  60. data/lib/gollum/web_sequence_diagram.rb +43 -0
  61. data/lib/gollum/wiki.rb +636 -0
  62. data/read-only-gollum.gemspec +224 -0
  63. data/templates/formatting.html +92 -0
  64. data/test/examples/empty.git/HEAD +1 -0
  65. data/test/examples/empty.git/config +5 -0
  66. data/test/examples/empty.git/description +1 -0
  67. data/test/examples/empty.git/hooks/applypatch-msg.sample +15 -0
  68. data/test/examples/empty.git/hooks/commit-msg.sample +24 -0
  69. data/test/examples/empty.git/hooks/post-commit.sample +8 -0
  70. data/test/examples/empty.git/hooks/post-receive.sample +15 -0
  71. data/test/examples/empty.git/hooks/post-update.sample +8 -0
  72. data/test/examples/empty.git/hooks/pre-applypatch.sample +14 -0
  73. data/test/examples/empty.git/hooks/pre-commit.sample +46 -0
  74. data/test/examples/empty.git/hooks/pre-rebase.sample +169 -0
  75. data/test/examples/empty.git/hooks/prepare-commit-msg.sample +36 -0
  76. data/test/examples/empty.git/hooks/update.sample +128 -0
  77. data/test/examples/empty.git/info/exclude +6 -0
  78. data/test/examples/empty.git/objects/info/.gitkeep +0 -0
  79. data/test/examples/empty.git/objects/pack/.gitkeep +0 -0
  80. data/test/examples/empty.git/refs/heads/.gitkeep +0 -0
  81. data/test/examples/lotr.git/COMMIT_EDITMSG +1 -0
  82. data/test/examples/lotr.git/HEAD +1 -0
  83. data/test/examples/lotr.git/ORIG_HEAD +1 -0
  84. data/test/examples/lotr.git/config +12 -0
  85. data/test/examples/lotr.git/description +1 -0
  86. data/test/examples/lotr.git/index +0 -0
  87. data/test/examples/lotr.git/info/exclude +6 -0
  88. data/test/examples/lotr.git/logs/HEAD +3 -0
  89. data/test/examples/lotr.git/logs/refs/heads/master +3 -0
  90. data/test/examples/lotr.git/objects/06/131480411710c92a82fe2d1e76932c70feb2e5 +0 -0
  91. data/test/examples/lotr.git/objects/0a/de1e2916346d4c1f2fb63b863fd3c16808fe44 +0 -0
  92. data/test/examples/lotr.git/objects/0e/d8cbe0a25235bd867e65193c7d837c66b328ef +3 -0
  93. data/test/examples/lotr.git/objects/12/629d666c5e3178f82f533f543d61b53dc78c0b +0 -0
  94. data/test/examples/lotr.git/objects/1d/b89ebba7e2c14d93b94ff98cfa3708a4f0d4e3 +2 -0
  95. data/test/examples/lotr.git/objects/24/49c2681badfd3c189e8ed658dacffe8ba48fe5 +0 -0
  96. data/test/examples/lotr.git/objects/25/4bdc1ba27d8b8a794538a8522d9a2b56ec2dd9 +0 -0
  97. data/test/examples/lotr.git/objects/2c/b9156ad383914561a8502fc70f5a1d887e48ad +4 -0
  98. data/test/examples/lotr.git/objects/5d/cac289a8603188d2c5caf481dcba2985126aaa +0 -0
  99. data/test/examples/lotr.git/objects/60/f12f4254f58801b9ee7db7bca5fa8aeefaa56b +0 -0
  100. data/test/examples/lotr.git/objects/71/4323c104239440a5c66ab12a67ed07a83c404f +0 -0
  101. data/test/examples/lotr.git/objects/84/0ec5b1ba1320e8ec443f28f99566f615d5af10 +0 -0
  102. data/test/examples/lotr.git/objects/93/6b83ee0dd8837adb82511e40d5e4ebe59bb675 +0 -0
  103. data/test/examples/lotr.git/objects/94/523d7ae48aeba575099dd12926420d8fd0425d +2 -0
  104. data/test/examples/lotr.git/objects/96/97dc65e095658bbd1b8e8678e08881e86d32f1 +0 -0
  105. data/test/examples/lotr.git/objects/a3/1ca2a7c352c92531a8b99815d15843b259e814 +0 -0
  106. data/test/examples/lotr.git/objects/a6/59b3763b822dd97544621fd0beef162ea37b14 +4 -0
  107. data/test/examples/lotr.git/objects/a8/ad3c09dd842a3517085bfadd37718856dee813 +0 -0
  108. data/test/examples/lotr.git/objects/aa/b61fe89d56f8614c0a8151da34f939dcedfa68 +0 -0
  109. data/test/examples/lotr.git/objects/bc/4b5fc0ce2c2ba3acef6647e4f67256ee45ab60 +0 -0
  110. data/test/examples/lotr.git/objects/c3/b43e9f08966b088e7a0192e436b7a884542e05 +0 -0
  111. data/test/examples/lotr.git/objects/dc/596d6b2dd89ab05c66f4abd7d5eb706bc17f19 +0 -0
  112. data/test/examples/lotr.git/objects/ec/da3205bee14520aab5a7bb307392064b938e83 +0 -0
  113. data/test/examples/lotr.git/objects/f4/84ebb1f40f8eb20d1bcd8d1d71934d2b8ae961 +0 -0
  114. data/test/examples/lotr.git/objects/fa/e7ef5344202bba4129abdc13060d9297d99465 +3 -0
  115. data/test/examples/lotr.git/objects/info/packs +2 -0
  116. data/test/examples/lotr.git/objects/pack/pack-dcbeaf3f6ff6c5eb08ea2b0a2d83626e8763546b.idx +0 -0
  117. data/test/examples/lotr.git/objects/pack/pack-dcbeaf3f6ff6c5eb08ea2b0a2d83626e8763546b.pack +0 -0
  118. data/test/examples/lotr.git/packed-refs +2 -0
  119. data/test/examples/lotr.git/refs/heads/master +1 -0
  120. data/test/examples/lotr.git/refs/remotes/origin/HEAD +1 -0
  121. data/test/examples/page_file_dir.git/COMMIT_EDITMSG +1 -0
  122. data/test/examples/page_file_dir.git/HEAD +1 -0
  123. data/test/examples/page_file_dir.git/config +6 -0
  124. data/test/examples/page_file_dir.git/description +1 -0
  125. data/test/examples/page_file_dir.git/index +0 -0
  126. data/test/examples/page_file_dir.git/info/exclude +6 -0
  127. data/test/examples/page_file_dir.git/logs/HEAD +1 -0
  128. data/test/examples/page_file_dir.git/logs/refs/heads/master +1 -0
  129. data/test/examples/page_file_dir.git/objects/0c/7d27db1f575263efdcab3dc650f4502a2dbcbf +0 -0
  130. data/test/examples/page_file_dir.git/objects/22/b404803c966dd92865614d86ff22ca12e50c1e +0 -0
  131. data/test/examples/page_file_dir.git/objects/25/7cc5642cb1a054f08cc83f2d943e56fd3ebe99 +0 -0
  132. data/test/examples/page_file_dir.git/objects/57/16ca5987cbf97d6bb54920bea6adde242d87e6 +0 -0
  133. data/test/examples/page_file_dir.git/objects/5b/43e14e0a15fb6f08feab1773d1c0991e9f71e2 +0 -0
  134. data/test/examples/page_file_dir.git/refs/heads/master +1 -0
  135. data/test/examples/revert.git/COMMIT_EDITMSG +1 -0
  136. data/test/examples/revert.git/HEAD +1 -0
  137. data/test/examples/revert.git/config +12 -0
  138. data/test/examples/revert.git/description +1 -0
  139. data/test/examples/revert.git/index +0 -0
  140. data/test/examples/revert.git/info/exclude +6 -0
  141. data/test/examples/revert.git/logs/HEAD +2 -0
  142. data/test/examples/revert.git/logs/refs/heads/master +2 -0
  143. data/test/examples/revert.git/objects/20/2ced67cea93c7b6bd2928aa1daef8d1d55a20d +0 -0
  144. data/test/examples/revert.git/objects/41/76394bfa11222363c66ce7e84b5f154095b6d9 +0 -0
  145. data/test/examples/revert.git/objects/6a/69f92020f5df77af6e8813ff1232493383b708 +0 -0
  146. data/test/examples/revert.git/objects/b4/785957bc986dc39c629de9fac9df46972c00fc +0 -0
  147. data/test/examples/revert.git/objects/f4/03b791119f8232b7cb0ba455c624ac6435f433 +0 -0
  148. data/test/examples/revert.git/objects/info/packs +2 -0
  149. data/test/examples/revert.git/objects/pack/pack-a561f8437234f74d0bacb9e0eebe52d207f5770d.idx +0 -0
  150. data/test/examples/revert.git/objects/pack/pack-a561f8437234f74d0bacb9e0eebe52d207f5770d.pack +0 -0
  151. data/test/examples/revert.git/packed-refs +2 -0
  152. data/test/examples/revert.git/refs/heads/master +1 -0
  153. data/test/examples/revert.git/refs/remotes/origin/HEAD +1 -0
  154. data/test/examples/yubiwa.git/HEAD +1 -0
  155. data/test/examples/yubiwa.git/config +5 -0
  156. data/test/examples/yubiwa.git/description +1 -0
  157. data/test/examples/yubiwa.git/info/exclude +6 -0
  158. data/test/examples/yubiwa.git/objects/10/fa2ddc4e3b4009d8a453aace10bd6148c1ad00 +0 -0
  159. data/test/examples/yubiwa.git/objects/52/4b82874327ea7cbf730389964ba7cb3de966de +0 -0
  160. data/test/examples/yubiwa.git/objects/58/3fc201cb457fb3f1480f3e1e5999b119633835 +0 -0
  161. data/test/examples/yubiwa.git/objects/87/bc1dd46ab3d3874d4e898d45dd512cc20a7cc8 +1 -0
  162. data/test/examples/yubiwa.git/objects/89/64ed1b4e21aa90e831763bbce9034bfda81b70 +0 -0
  163. data/test/examples/yubiwa.git/objects/9f/f6dd0660da5fba2d3374adb2b84fa653bb538b +0 -0
  164. data/test/examples/yubiwa.git/objects/ac/e97abf2b177815a1972d7db22f229f58c83309 +0 -0
  165. data/test/examples/yubiwa.git/objects/b1/f443863a4816628807fbf86141ebef055dda34 +0 -0
  166. data/test/examples/yubiwa.git/refs/heads/master +1 -0
  167. data/test/helper.rb +66 -0
  168. data/test/test_app.rb +169 -0
  169. data/test/test_committer.rb +64 -0
  170. data/test/test_file.rb +27 -0
  171. data/test/test_git_access.rb +52 -0
  172. data/test/test_markup.rb +628 -0
  173. data/test/test_page.rb +166 -0
  174. data/test/test_page_revert.rb +45 -0
  175. data/test/test_wiki.rb +462 -0
  176. metadata +470 -0
@@ -0,0 +1,660 @@
1
+ #wiki-wrapper #template blockquote {
2
+ margin: 1em 0;
3
+ border-left: 4px solid #ddd;
4
+ padding-left: .8em;
5
+ color: #555;
6
+ }
7
+
8
+ /*
9
+ gollum.css
10
+ A basic stylesheet for Gollum
11
+ */
12
+
13
+ /* @section core */
14
+ body, html {
15
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
16
+ font-size: 10px;
17
+ margin: 0;
18
+ padding: 0;
19
+ }
20
+
21
+ #wiki-wrapper {
22
+ margin: 0 auto;
23
+ overflow: visible;
24
+ width: 80%;
25
+ }
26
+
27
+ a:link {
28
+ color: #4183c4;
29
+ text-decoration: none;
30
+ }
31
+
32
+ a:hover, a:visited {
33
+ color: #4183c4;
34
+ text-decoration: underline;
35
+ }
36
+
37
+
38
+ /* @section head */
39
+ #head {
40
+ margin: 4.5em 0 0.5em;
41
+ padding: 0.5em 0;
42
+ overflow: hidden;
43
+ }
44
+
45
+ #head h1 {
46
+ display: none;
47
+ }
48
+
49
+ #head ul.actions {
50
+ float: right;
51
+ }
52
+
53
+ /* @section content */
54
+ #wiki-content {
55
+ height: 1%;
56
+ overflow: visible;
57
+ }
58
+
59
+ #wiki-content .wrap {
60
+ height: 1%;
61
+ overflow: auto;
62
+ }
63
+
64
+ /* @section comments */
65
+ #wiki-body #inline-comment {
66
+ display: none; /* todo */
67
+ }
68
+
69
+ /* @section body */
70
+ #wiki-body {
71
+ display: block;
72
+ float: left;
73
+ margin-right: 3%;
74
+ width: 100%;
75
+ }
76
+
77
+ .has-rightbar #wiki-body {
78
+ width: 68%;
79
+ }
80
+
81
+ /* @section rightbar */
82
+ #wiki-rightbar {
83
+ background-color: #f7f7f7;
84
+ border: 1px solid #ddd;
85
+ font-size: 13px;
86
+ float: right;
87
+ padding: 7px;
88
+ width: 25%;
89
+
90
+ border-radius: 0.5em;
91
+ -moz-border-radius: 0.5em;
92
+ -webkit-border-radius: 0.5em;
93
+ }
94
+
95
+ #wiki-rightbar p {
96
+ margin: 13px 0 0;
97
+ }
98
+
99
+ #wiki-rightbar > p:first-child {
100
+ margin-top: 0;
101
+ }
102
+
103
+ #wiki-rightbar p.parent {
104
+ border-bottom: 1px solid #bbb;
105
+ font-weight: bold;
106
+ margin: 0 0 0.5em 0;
107
+ padding: 0 0 0.5em 0;
108
+ text-shadow: 0 1px 0 #fff;
109
+ }
110
+
111
+ /* Back arrow */
112
+ #wiki-rightbar p.parent:before {
113
+ color: #666;
114
+ content: "← ";
115
+ }
116
+
117
+ #wiki-rightbar h3 {
118
+ font-size: 1.2em;
119
+ color: #333;
120
+ margin: 1.2em 0 0;
121
+ padding: 0;
122
+ text-shadow: 0 1px 0 #fff;
123
+ }
124
+
125
+ #wiki-rightbar ul {
126
+ margin: 0.5em 0 1em;
127
+ padding: 0;
128
+ }
129
+
130
+ #wiki-rightbar ul li {
131
+ color: #bbb;
132
+ margin: 0 0 0 1em;
133
+ padding: 0;
134
+ line-height: 1.75em;
135
+ list-style-position: inside;
136
+ list-style-type: round;
137
+ }
138
+
139
+ #wiki-rightbar #nav ul li a {
140
+ font-weight: bold;
141
+ text-shadow: 0 1px 0 #fff;
142
+ }
143
+
144
+ /* @section footer */
145
+ #wiki-footer {
146
+ clear: both;
147
+ margin: 2em 0 5em;
148
+ }
149
+
150
+ .has-rightbar #wiki-footer {
151
+ width: 70%;
152
+ }
153
+
154
+ #wiki-footer #footer-content {
155
+ background-color: #f7f7f7;
156
+ border: 1px solid #ddd;
157
+ font-size: 1.2em;
158
+ line-height: 1.5em;
159
+ margin-top: 1.5em;
160
+ padding: 1em;
161
+
162
+ border-radius: 0.5em;
163
+ -moz-border-radius: 0.5em;
164
+ -webkit-border-radius: 0.5em;
165
+ }
166
+
167
+ #wiki-footer #footer-content h3 {
168
+ font-size: 1.2em;
169
+ color: #333;
170
+ margin: 0;
171
+ padding: 0 0 0.2em;
172
+ text-shadow: 0 1px 0 #fff;
173
+ }
174
+
175
+ #wiki-footer #footer-content p {
176
+ margin: 0.5em 0 0;
177
+ padding: 0;
178
+ }
179
+
180
+ #wiki-footer #footer-content ul.links {
181
+ margin: 0.5em 0 0;
182
+ overflow: hidden;
183
+ padding: 0;
184
+ }
185
+
186
+ #wiki-footer #footer-content ul.links li {
187
+ color: #999;
188
+ float: left;
189
+ list-style-position: inside;
190
+ list-style-type: square;
191
+ padding: 0;
192
+ margin-left: 0.75em;
193
+ }
194
+
195
+ #wiki-footer #footer-content ul.links li a {
196
+ font-weight: bold;
197
+ text-shadow: 0 1px 0 #fff;
198
+ }
199
+
200
+ #wiki-footer #footer-content ul.links li:first-child {
201
+ list-style-type: none;
202
+ margin: 0;
203
+ }
204
+
205
+ .ff #wiki-footer #footer-content ul.links li:first-child {
206
+ margin: 0 -0.75em 0 0;
207
+ }
208
+
209
+ /* @section page-footer */
210
+ .page #footer {
211
+ margin: 1em 0 7em;
212
+ }
213
+
214
+ #footer p#last-edit {
215
+ font-size: .9em;
216
+ line-height: 1.6em;
217
+ color: #999;
218
+ margin: 0.9em 0;
219
+ }
220
+
221
+ #footer p#last-edit span.username {
222
+ font-weight: bold;
223
+ }
224
+
225
+
226
+ /* @section history */
227
+ .history h1 {
228
+ color: #999;
229
+ font-weight: normal;
230
+ }
231
+
232
+ .history h1 strong {
233
+ color: #000;
234
+ font-weight: bold;
235
+ }
236
+
237
+ #wiki-history {
238
+ margin-top: 3em;
239
+ }
240
+
241
+ #wiki-history fieldset {
242
+ border: 0;
243
+ margin: 2em 0;
244
+ padding: 0;
245
+ }
246
+
247
+ #wiki-history table, #wiki-history tbody {
248
+ border-collapse: collapse;
249
+ padding: 0;
250
+ margin: 0;
251
+ width: 100%;
252
+ }
253
+
254
+ #wiki-history table tr {
255
+ padding: 0;
256
+ margin: 0;
257
+ }
258
+
259
+ #wiki-history table tr {
260
+ background-color: #ebf2f6;
261
+ }
262
+
263
+ #wiki-history table tr td {
264
+ border: 1px solid #c0dce9;
265
+ font-size: 1.2em;
266
+ line-height: 1.6em;
267
+ margin: 0;
268
+ padding: 0.3em 0.7em;
269
+ }
270
+
271
+ #wiki-history table tr td.checkbox {
272
+ min-width: 2em;
273
+ padding: 0.3em;
274
+ }
275
+
276
+ #wiki-history table tr td.checkbox input {
277
+ cursor: pointer;
278
+ display: block;
279
+ padding-right: 0;
280
+ padding-top: 0.4em;
281
+ margin-right: -0.2em;
282
+ }
283
+
284
+ #wiki-history table tr:nth-child(2n),
285
+ #wiki-history table tr.alt-row {
286
+ background-color: #f3f7fa;
287
+ }
288
+
289
+ #wiki-history table tr.selected {
290
+ background-color: #ffffea !important;
291
+ z-index: 100;
292
+ }
293
+
294
+ #wiki-history table tr td.commit-name {
295
+ border-left: 0;
296
+ }
297
+
298
+ #wiki-history table tr td.commit-name span.time-elapsed {
299
+ color: #999;
300
+ }
301
+
302
+ #wiki-history table tr td.author {
303
+ width: 20%;
304
+ }
305
+
306
+ #wiki-history table tr td.author a {
307
+ color: #000;
308
+ font-weight: bold;
309
+ }
310
+
311
+ #wiki-history table tr td.author a span.username {
312
+ display: block;
313
+ padding-top: 3px;
314
+ }
315
+
316
+ #wiki-history table tr td img {
317
+ background-color: #fff;
318
+ border: 1px solid #999;
319
+ display: block;
320
+ float: left;
321
+ height: 18px;
322
+ overflow: hidden;
323
+ margin: 0 0.5em 0 0;
324
+ width: 18px;
325
+ padding: 2px;
326
+ }
327
+
328
+ #wiki-history table tr td.commit-name a {
329
+ font-size: 0.9em;
330
+ font-family: 'Monaco', 'Andale Mono', Consolas, 'Courier New', monospace;
331
+ padding: 0 0.2em;
332
+ }
333
+
334
+ .history #wiki-history ul.actions li,
335
+ .history #footer ul.actions li {
336
+ margin: 0 0.6em 0 0;
337
+ }
338
+
339
+
340
+ /* @section edit */
341
+ .edit h1 {
342
+ color: #999;
343
+ font-weight: normal;
344
+ }
345
+
346
+ .edit h1 strong {
347
+ color: #000;
348
+ font-weight: bold;
349
+ }
350
+
351
+
352
+ /* @section search */
353
+ .results h1 {
354
+ color: #999;
355
+ font-weight: normal;
356
+ }
357
+
358
+ .results h1 strong {
359
+ color: #000;
360
+ font-weight: bold;
361
+ }
362
+
363
+ .results #results {
364
+ border-bottom: 1px solid #ccc;
365
+ margin-bottom: 2em;
366
+ padding-bottom: 2em;
367
+ }
368
+
369
+ .results #results ul {
370
+ margin: 2em 0 0 0;
371
+ padding: 0;
372
+ }
373
+
374
+ .results #results ul li {
375
+ font-size: 1.2em;
376
+ line-height: 1.6em;
377
+ list-style-position: outside;
378
+ padding: 0.2em 0;
379
+ }
380
+
381
+ .results #results ul li span.count {
382
+ color: #999;
383
+ }
384
+
385
+ .results p#no-results {
386
+ font-size: 1.2em;
387
+ line-height: 1.6em;
388
+ margin-top: 2em;
389
+ }
390
+
391
+ .results #footer ul.actions li {
392
+ margin: 0 1em 0 0;
393
+ }
394
+
395
+
396
+ /* @section compare */
397
+ .compare h1 {
398
+ color: #999;
399
+ font-weight: normal;
400
+ }
401
+
402
+ .compare h1 strong {
403
+ color: #000;
404
+ font-weight: bold;
405
+ }
406
+
407
+ .compare #compare-content {
408
+ margin-top: 3em;
409
+ }
410
+
411
+ .compare .data {
412
+ border: 1px solid #ddd;
413
+ margin-top: 1em;
414
+ overflow: auto;
415
+ }
416
+
417
+ .compare .data pre {
418
+ margin: 0;
419
+ padding: 0;
420
+ }
421
+
422
+ .compare .data pre div {
423
+ padding: 0 0 0 1em;
424
+ }
425
+
426
+ .compare .data tr td {
427
+ font-family: "Consolas", "Monaco", "Andale Mono", "Courier New", monospace;
428
+ font-size: 1.2em;
429
+ line-height: 1.8em;
430
+ margin: 0;
431
+ padding: 0;
432
+ }
433
+
434
+ .compare .data td.line_numbers {
435
+ background: #f7f7f7;
436
+ border-right: 1px solid #999;
437
+ color: #999;
438
+ padding: 0 0 0 0.5em;
439
+ }
440
+
441
+ .compare #compare-content ul.actions li,
442
+ .compare #footer ul.actions li {
443
+ margin-left: 0;
444
+ margin-right: 0.6em;
445
+ }
446
+
447
+
448
+
449
+ /* @control syntax */
450
+ .highlight { background: #ffffff; }
451
+ .highlight .c { color: #999988; font-style: italic }
452
+ .highlight .err { color: #a61717; background-color: #e3d2d2 }
453
+ .highlight .k { font-weight: bold }
454
+ .highlight .o { font-weight: bold }
455
+ .highlight .cm { color: #999988; font-style: italic }
456
+ .highlight .cp { color: #999999; font-weight: bold }
457
+ .highlight .c1 { color: #999988; font-style: italic }
458
+ .highlight .cs { color: #999999; font-weight: bold; font-style: italic }
459
+ .highlight .gd { color: #000000; background-color: #ffdddd }
460
+ .highlight .gd .x { color: #000000; background-color: #ffaaaa }
461
+ .highlight .ge { font-style: italic }
462
+ .highlight .gr { color: #aa0000 }
463
+ .highlight .gh { color: #999999 }
464
+ .highlight .gi { color: #000000; background-color: #ddffdd }
465
+ .highlight .gi .x { color: #000000; background-color: #aaffaa }
466
+ .highlight .gc { color: #999; background-color: #EAF2F5 }
467
+ .highlight .go { color: #888888 }
468
+ .highlight .gp { color: #555555 }
469
+ .highlight .gs { font-weight: bold }
470
+ .highlight .gu { color: #aaaaaa }
471
+ .highlight .gt { color: #aa0000 }
472
+
473
+
474
+ /* @control minibutton */
475
+ ul.actions {
476
+ display: block;
477
+ list-style-type: none;
478
+ overflow: hidden;
479
+ padding: 0;
480
+ }
481
+
482
+ ul.actions li {
483
+ float: left;
484
+ font-size: 1.2em;
485
+ margin-left: 0.6em;
486
+ }
487
+
488
+ .minibutton a {
489
+ background-color: #f7f7f7;
490
+ border: 1px solid #d4d4d4;
491
+ color: #333;
492
+ display: block;
493
+ font-weight: bold;
494
+ margin: 0;
495
+ padding: 0.4em 1em;
496
+ height: 1.4em;
497
+
498
+ text-shadow: 0 1px 0 #fff;
499
+
500
+ filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#f4f4f4', endColorstr='#ececec');
501
+ background: -webkit-gradient(linear, left top, left bottom, from(#f4f4f4), to(#ececec));
502
+ background: -moz-linear-gradient(top, #f4f4f4, #ececec);
503
+
504
+ border-radius: 3px;
505
+ -moz-border-radius: 3px;
506
+ -webkit-border-radius: 3px;
507
+ }
508
+
509
+ #search-submit {
510
+ background-color: #f7f7f7;
511
+ border: 1px solid #d4d4d4;
512
+ color: #333;
513
+ display: block;
514
+ font-weight: bold;
515
+ margin: 0;
516
+ padding: 0.4em 1em;
517
+
518
+ text-shadow: 0 1px 0 #fff;
519
+
520
+ filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#f4f4f4', endColorstr='#ececec');
521
+ background: -webkit-gradient(linear, left top, left bottom, from(#f4f4f4), to(#ececec));
522
+ background: -moz-linear-gradient(top, #f4f4f4, #ececec);
523
+
524
+ border-radius: 3px;
525
+ -moz-border-radius: 3px;
526
+ -webkit-border-radius: 3px;
527
+ }
528
+
529
+ .minibutton a:hover,
530
+ #search-submit:hover {
531
+ background: #3072b3;
532
+ border-color: #518cc6 #518cc6 #2a65a0;
533
+ color: #fff;
534
+ text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3);
535
+ text-decoration: none;
536
+
537
+ filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#599bdc', endColorstr='#3072b3');
538
+ background: -webkit-gradient(linear, left top, left bottom, from(#599bdc), to(#3072b3));
539
+ background: -moz-linear-gradient(top, #599bdc, #3072b3);
540
+ }
541
+
542
+ .minibutton a:visited {
543
+ text-decoration: none;
544
+ }
545
+
546
+
547
+ /* @special error */
548
+ #wiki-wrapper.error {
549
+ height: 1px;
550
+ position: absolute;
551
+ overflow: visible;
552
+ top: 50%;
553
+ width: 100%;
554
+ }
555
+
556
+ #error {
557
+ background-color: #f9f9f9;
558
+ border: 1px solid #e4e4e4;
559
+ left: 50%;
560
+ overflow: hidden;
561
+ padding: 2%;
562
+ margin: -10% 0 0 -35%;
563
+ position: absolute;
564
+ width: 70%;
565
+
566
+ border-radius: 0.5em;
567
+ -moz-border-radius: 0.5em;
568
+ -webkit-border-radius: 0.5em;
569
+ }
570
+
571
+ #error h1 {
572
+ font-size: 3em;
573
+ line-height: normal;
574
+ margin: 0;
575
+ padding: 0;
576
+ }
577
+
578
+ #error p {
579
+ font-size: 1.2em;
580
+ line-height: 1.6em;
581
+ margin: 1em 0 0.5em;
582
+ padding: 0;
583
+ }
584
+
585
+
586
+ /* @control searchbar */
587
+ #head #searchbar {
588
+ float: right;
589
+ margin: 1em 0 0 0;
590
+ padding: 0;
591
+ overflow: hidden;
592
+ }
593
+
594
+ #head #searchbar #searchbar-fauxtext {
595
+ background: #fff;
596
+ border: 1px solid #d4d4d4;
597
+ overflow: hidden;
598
+
599
+ border-radius: 0.3em;
600
+ -moz-border-radius: 0.3em;
601
+ -webkit-border-radius: 0.3em;
602
+ }
603
+
604
+ #head #searchbar #searchbar-fauxtext input#search-query {
605
+ border: none;
606
+ color: #000;
607
+ float: left;
608
+ font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
609
+ font-size: 1.2em;
610
+ height: 1.8em;
611
+
612
+ -webkit-focus-ring: none;
613
+ }
614
+
615
+ .ff #head #searchbar #searchbar-fauxtext input#search-query {
616
+ padding: 0.2em 0 0.2em 0.5em;
617
+ }
618
+
619
+ .ie #head #searchbar #searchbar-fauxtext input#search-query {
620
+ padding: 0.4em 0 0 0.5em;
621
+ }
622
+
623
+ #head #searchbar #searchbar-fauxtext input#search-query.ph {
624
+ color: #999;
625
+ }
626
+
627
+ #head #searchbar #searchbar-fauxtext #search-submit {
628
+ border: 0;
629
+ border-left: 1px solid #d4d4d4;
630
+ cursor: pointer;
631
+ margin: 0 !important;
632
+ padding: 0;
633
+ float: right;
634
+ font-size: 1.2em;
635
+
636
+ border-radius: 0 3px 3px 0;
637
+ -moz-border-radius: 0 3px 3px 0;
638
+ -webkit-border-radius: 0 3px 3px 0;
639
+ }
640
+
641
+ #head #searchbar #searchbar-fauxtext #search-submit span {
642
+ background-image: url(/images/icon-sprite.png);
643
+ background-position: -431px -1px;
644
+ background-repeat: no-repeat;
645
+ display: block;
646
+ height: 2em;
647
+ overflow: hidden;
648
+ text-indent: -5000px;
649
+ width: 28px;
650
+ }
651
+
652
+ .ff #head #searchbar #searchbar-fauxtext #search-submit span,
653
+ .ie #head #searchbar #searchbar-fauxtext #search-submit span {
654
+ height: 2.2em;
655
+ }
656
+
657
+ #head #searchbar #searchbar-fauxtext #search-submit:hover span {
658
+ background-position: -431px -28px;
659
+ padding: 0;
660
+ }