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,69 @@
1
+ /* IE7-specific styles */
2
+
3
+ .ie #head #searchbar #searchbar-fauxtext input#search-query {
4
+ border: 0;
5
+ float: left;
6
+ padding: 0.4em 0 0 0.5em;
7
+ }
8
+
9
+ .ie #head #searchbar #searchbar-fauxtext #search-submit span {
10
+ height: 2.25em;
11
+ }
12
+
13
+ #head #searchbar,
14
+ #head ul.actions {
15
+ margin: 1em 0 0 0;
16
+ }
17
+
18
+ ul.actions {
19
+ margin-left: 0;
20
+ }
21
+
22
+ .compare #footer ul.actions {
23
+ margin-top: 1em;
24
+ }
25
+
26
+ .compare div.data {
27
+ overflow: auto;
28
+ }
29
+
30
+ .history #version-form {
31
+ margin: -0.5em 0 -0.5em !important;
32
+ }
33
+
34
+ #gollum-editor {
35
+ padding-bottom: 0;
36
+ }
37
+
38
+ #gollum-editor-help-parent li a,
39
+ #gollum-editor-help-list li a {
40
+ height: auto;
41
+ }
42
+
43
+ #gollum-editor #gollum-editor-format-selector {
44
+ margin-top: 6px;
45
+ }
46
+
47
+ #gollum-editor .singleline input {
48
+ padding-top: 0.25em;
49
+ }
50
+
51
+ #gollum-editor .collapsed {
52
+ padding-bottom: 1.1em;
53
+ }
54
+
55
+ #gollum-editor #gollum-editor-submit {
56
+ padding: 0.5em 1em 0.3em !important;
57
+ }
58
+
59
+ #gollum-editor #gollum-editor-preview {
60
+ line-height: 1.3em;
61
+ }
62
+
63
+ #gollum-editor form {
64
+ margin: 0;
65
+ }
66
+
67
+ #gollum-editor #gollum-editor-format-selector label {
68
+ padding-top: 0.1em !important;
69
+ }
@@ -0,0 +1,381 @@
1
+ /*
2
+ Gollum v3 Template
3
+ */
4
+
5
+ /* margin & padding reset*/
6
+ * {
7
+ margin: 0;
8
+ padding: 0;
9
+ }
10
+
11
+
12
+ html, body {
13
+ color: black;
14
+ }
15
+
16
+ body {
17
+ font: 13.34px helvetica,arial,freesans,clean,sans-serif;
18
+ line-height: 1.4;
19
+ }
20
+
21
+ img {
22
+ border: 0;
23
+ }
24
+
25
+ #template {
26
+ font-size: 14px;
27
+ line-height: 1.4;
28
+ margin-bottom: 40px;
29
+ }
30
+
31
+ /* Link Colors */
32
+ a.absent {
33
+ color: #c00;
34
+ }
35
+
36
+ /* Primary Body Copy */
37
+ #template p {
38
+ margin: 1em 0;
39
+ padding: 0;
40
+ }
41
+
42
+ /* ReST first graf in nested list */
43
+ #template * li p.first {
44
+ display: inline-block;
45
+ }
46
+
47
+ /* Headings */
48
+ #template h1, #template h2, #template h3,
49
+ #template h4, #template h5, #template h6 {
50
+ margin: 0;
51
+ padding: 0;
52
+ }
53
+
54
+ #template h1 {
55
+ border-bottom: 1px solid #ccc;
56
+ font-size: 33px; /* was 32, GH is 33px */
57
+ line-height: normal;
58
+ padding: .08em 0 0 0;
59
+ margin: 0;
60
+ }
61
+
62
+ #template h2 {
63
+ font-size: 22px;
64
+ line-height: normal;
65
+ margin: 22px 0 0;
66
+ padding: 7px 0 0;
67
+ }
68
+
69
+ #template h3 {
70
+ font-size: 16px;
71
+ line-height: 26px;
72
+ padding: 26px 0 0;
73
+ }
74
+
75
+ #template h4 {
76
+ font-size: 14px;
77
+ line-height: 26px;
78
+ padding: 18px 0 4px;
79
+ font-weight: bold;
80
+ text-transform: uppercase;
81
+ }
82
+
83
+ #template h5 {
84
+ font-size: 13px;
85
+ line-height: 26px;
86
+ margin-bottom: -19px;
87
+ padding: 14px 0 0;
88
+ font-weight: bold;
89
+ text-transform: uppercase;
90
+ }
91
+
92
+ #template h6 {
93
+ color: #666;
94
+ font-size: 14px;
95
+ line-height: 26px;
96
+ margin-bottom: -19px;
97
+ padding: 18px 0 0;
98
+ font-weight: normal;
99
+ font-variant: italic;
100
+ }
101
+
102
+ #template hr {
103
+ background-color: #ccc;
104
+ color: #ccc;
105
+ border: 2px solid #ccc;
106
+ margin: 20px 0;
107
+ padding: 0;
108
+ }
109
+
110
+ /* Border Reset for headers with horizontal rules */
111
+ #template > h2:first-child,
112
+ #template > h1:first-child {
113
+ margin: 12px 0 0;
114
+ padding: 10px 0 0;
115
+ }
116
+
117
+
118
+ /* Lists, Blockquotes & Such */
119
+ #template ul,
120
+ #template ol {
121
+ margin-top: 1.5em;
122
+ margin-left: 2.6em;
123
+ }
124
+
125
+ /* Nested Lists */
126
+ #template ul li,
127
+ #template ol li,
128
+ #template ul li ul,
129
+ #template ol li ol,
130
+ #template ul li ol,
131
+ #template ol li ul,
132
+ #template ul ul,
133
+ #template ol ol {
134
+ padding: 0;
135
+ margin: .5em 0;
136
+ }
137
+
138
+ #template dl {
139
+ margin: 0;
140
+ padding: 20px 0 0;
141
+ }
142
+
143
+ #template dl dt {
144
+ font-size: 14px;
145
+ font-weight: bold;
146
+ line-height: normal;
147
+ margin: 0;
148
+ padding: 20px 0 0;
149
+ }
150
+
151
+ #template dl dt:first-child {
152
+ padding: 0;
153
+ }
154
+
155
+ #template dl dd {
156
+ font-size: 13px;
157
+ margin: 0;
158
+ padding: 3px 0 0;
159
+ }
160
+
161
+ /* Tables */
162
+ #template table {
163
+ border-collapse: collapse;
164
+ margin: 20px 0 0;
165
+ padding: 0;
166
+ }
167
+
168
+ #template table * tr {
169
+ border-top: 1px solid #ccc;
170
+ background-color: #fff;
171
+ margin: 0;
172
+ padding: 0;
173
+ }
174
+
175
+ #template table * tr:nth-child(2n) {
176
+ background-color: #f8f8f8;
177
+ }
178
+
179
+ #template table * tr th,
180
+ #template table * tr td {
181
+ border: 1px solid #ccc;
182
+ text-align: left;
183
+ margin: 0;
184
+ padding: 6px 13px;
185
+ }
186
+
187
+ /* Images & Stuff */
188
+ #template img {
189
+ max-width: 100%;
190
+ }
191
+
192
+ /* Gollum Image Tags */
193
+
194
+ /* Framed */
195
+ #template span.frame {
196
+ display: block;
197
+ overflow: hidden;
198
+ }
199
+
200
+ #template span.frame > span {
201
+ border: 1px solid #ddd;
202
+ display: block;
203
+ float: left;
204
+ overflow: hidden;
205
+ margin: 13px 0 0;
206
+ padding: 7px;
207
+ width: auto;
208
+ }
209
+
210
+ #template span.frame span img {
211
+ display: block;
212
+ float: left;
213
+ }
214
+
215
+ #template span.frame span span {
216
+ clear: both;
217
+ color: #333;
218
+ display: block;
219
+ padding: 5px 0 0;
220
+ }
221
+
222
+ #template span.align-center {
223
+ display: block;
224
+ overflow: hidden;
225
+ clear: both;
226
+ }
227
+
228
+ #template span.align-center > span {
229
+ display: block;
230
+ overflow: hidden;
231
+ margin: 13px auto 0;
232
+ text-align: center;
233
+ }
234
+
235
+ #template span.align-center span img {
236
+ margin: 0 auto;
237
+ text-align: center;
238
+ }
239
+
240
+ #template span.align-right {
241
+ display: block;
242
+ overflow: hidden;
243
+ clear: both;
244
+ }
245
+
246
+ #template span.align-right > span {
247
+ display: block;
248
+ overflow: hidden;
249
+ margin: 13px 0 0;
250
+ text-align: right;
251
+ }
252
+
253
+ #template span.align-right span img {
254
+ margin: 0;
255
+ text-align: right;
256
+ }
257
+
258
+ #template span.float-left {
259
+ display: block;
260
+ margin-right: 13px;
261
+ overflow: hidden;
262
+ float: left;
263
+ }
264
+
265
+ #template span.float-left span {
266
+ margin: 13px 0 0;
267
+ }
268
+
269
+ #template span.float-right {
270
+ display: block;
271
+ margin-left: 13px;
272
+ overflow: hidden;
273
+ float: right;
274
+ }
275
+
276
+ #template span.float-right > span {
277
+ display: block;
278
+ overflow: hidden;
279
+ margin: 13px auto 0;
280
+ text-align: right;
281
+ }
282
+
283
+
284
+ /* Code */
285
+ #template code, #template tt {
286
+ background-color: #f8f8f8;
287
+ border: 1px solid #dedede;
288
+ font-size: 13px;
289
+ padding: 0;
290
+
291
+ -moz-border-radius: 3px;
292
+ -webkit-border-radius: 3px;
293
+ border-radius: 3px;
294
+ }
295
+
296
+ #template .highlight pre, #template pre {
297
+ background-color: #f8f8f8;
298
+ border: 1px solid #ccc;
299
+ font-size: 13px;
300
+ line-height: 19px;
301
+ overflow: auto;
302
+ padding: 6px 10px;
303
+
304
+ -moz-border-radius: 3px;
305
+ -webkit-border-radius: 3px;
306
+ border-radius: 3px;
307
+ }
308
+
309
+ pre, code {
310
+ font: 12px 'Bitstream Vera Sans Mono','Courier',monospace
311
+ }
312
+
313
+ #template pre code, #template pre tt {
314
+ background-color: transparent;
315
+ border: none;
316
+ }
317
+
318
+ /*
319
+ Highlight rules from pull req 191
320
+ https://github.com/eboto/gollum/commit/5df09477abf4a04c82c7fcaa2bd7ee2a85e7ec82
321
+ */
322
+ #template .highlight { background:#fff; }
323
+ #template .highlight .c { color:#998;font-style:italic; }
324
+ #template .highlight .err { color:#a61717;background-color:#e3d2d2; }
325
+ #template .highlight .k { font-weight:bold; }
326
+ #template .highlight .o { font-weight:bold; }
327
+ #template .highlight .cm { color:#998;font-style:italic; }
328
+ #template .highlight .cp { color:#999;font-weight:bold; }
329
+ #template .highlight .c1 { color:#998;font-style:italic; }
330
+ #template .highlight .cs { color:#999;font-weight:bold;font-style:italic; }
331
+ #template .highlight .gd { color:#000;background-color:#fdd; }
332
+ #template .highlight .gd .x { color:#000;background-color:#faa; }
333
+ #template .highlight .ge { font-style:italic; }
334
+ #template .highlight .gr { color:#a00; }
335
+ #template .highlight .gh { color:#999; }
336
+ #template .highlight .gi { color:#000;background-color:#dfd; }
337
+ #template .highlight .gi .x { color:#000;background-color:#afa; }
338
+ #template .highlight .go { color:#888; }
339
+ #template .highlight .gp { color:#555; }
340
+ #template .highlight .gs { font-weight:bold; }
341
+ #template .highlight .gu { color:#800080;font-weight:bold; }
342
+ #template .highlight .gt { color:#a00; }
343
+ #template .highlight .kc { font-weight:bold; }
344
+ #template .highlight .kd { font-weight:bold; }
345
+ #template .highlight .kp { font-weight:bold; }
346
+ #template .highlight .kr { font-weight:bold; }
347
+ #template .highlight .kt { color:#458;font-weight:bold; }
348
+ #template .highlight .m { color:#099; }
349
+ #template .highlight .s { color:#d14; }
350
+ #template .highlight .na { color:#008080; }
351
+ #template .highlight .nb { color:#0086B3; }
352
+ #template .highlight .nc { color:#458;font-weight:bold; }
353
+ #template .highlight .no { color:#008080; }
354
+ #template .highlight .ni { color:#800080; }
355
+ #template .highlight .ne { color:#900;font-weight:bold; }
356
+ #template .highlight .nf { color:#900;font-weight:bold; }
357
+ #template .highlight .nn { color:#555; }
358
+ #template .highlight .nt { color:#000080; }
359
+ #template .highlight .nv { color:#008080; }
360
+ #template .highlight .ow { font-weight:bold; }
361
+ #template .highlight .w { color:#bbb; }
362
+ #template .highlight .mf { color:#099; }
363
+ #template .highlight .mh { color:#099; }
364
+ #template .highlight .mi { color:#099; }
365
+ #template .highlight .mo { color:#099; }
366
+ #template .highlight .sb { color:#d14; }
367
+ #template .highlight .sc { color:#d14; }
368
+ #template .highlight .sd { color:#d14; }
369
+ #template .highlight .s2 { color:#d14; }
370
+ #template .highlight .se { color:#d14; }
371
+ #template .highlight .sh { color:#d14; }
372
+ #template .highlight .si { color:#d14; }
373
+ #template .highlight .sx { color:#d14; }
374
+ #template .highlight .sr { color:#009926; }
375
+ #template .highlight .s1 { color:#d14; }
376
+ #template .highlight .ss { color:#990073; }
377
+ #template .highlight .bp { color:#999; }
378
+ #template .highlight .vc { color:#008080; }
379
+ #template .highlight .vg { color:#008080; }
380
+ #template .highlight .vi { color:#008080; }
381
+ #template .highlight .il { color:#099; }