olelo 0.9.0

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.
Files changed (282) hide show
  1. data/.gitignore +10 -0
  2. data/.gitmodules +3 -0
  3. data/Gemfile +3 -0
  4. data/README.markdown +104 -0
  5. data/Rakefile +92 -0
  6. data/bin/olelo +5 -0
  7. data/config.ru +86 -0
  8. data/config/aspects.rb +256 -0
  9. data/config/config.yml.default +154 -0
  10. data/config/initializers/00-mime_types.rb +29 -0
  11. data/config/initializers/01-slim.rb +2 -0
  12. data/config/interwiki.yml +11 -0
  13. data/doc/AUTHORS +7 -0
  14. data/doc/LICENSE +22 -0
  15. data/lib/olelo.rb +39 -0
  16. data/lib/olelo/application.rb +294 -0
  17. data/lib/olelo/attributes.rb +285 -0
  18. data/lib/olelo/config.rb +88 -0
  19. data/lib/olelo/extensions.rb +252 -0
  20. data/lib/olelo/helper.rb +290 -0
  21. data/lib/olelo/hooks.rb +142 -0
  22. data/lib/olelo/html_safe.rb +29 -0
  23. data/lib/olelo/initializer.rb +76 -0
  24. data/lib/olelo/locale.rb +63 -0
  25. data/lib/olelo/locale.yml +284 -0
  26. data/lib/olelo/menu.rb +101 -0
  27. data/lib/olelo/middleware/blacklist.rb +25 -0
  28. data/lib/olelo/middleware/degrade_mime_type.rb +19 -0
  29. data/lib/olelo/middleware/flash.rb +97 -0
  30. data/lib/olelo/middleware/force_encoding.rb +41 -0
  31. data/lib/olelo/page.rb +266 -0
  32. data/lib/olelo/patch.rb +311 -0
  33. data/lib/olelo/plugin.rb +188 -0
  34. data/lib/olelo/repository.rb +225 -0
  35. data/lib/olelo/routing.rb +223 -0
  36. data/lib/olelo/templates.rb +30 -0
  37. data/lib/olelo/user.rb +132 -0
  38. data/lib/olelo/util.rb +233 -0
  39. data/lib/olelo/version.rb +3 -0
  40. data/lib/olelo/virtualfs.rb +161 -0
  41. data/lib/rack/olelo_patches.rb +33 -0
  42. data/lib/rack/relative_redirect.rb +44 -0
  43. data/lib/rack/static_cache.rb +93 -0
  44. data/lib/yard/addons.rb +1 -0
  45. data/lib/yard/addons/hook_handler.rb +25 -0
  46. data/lib/yard/addons/override_tag.rb +14 -0
  47. data/lib/yard/addons/route_handler.rb +33 -0
  48. data/lib/yard/addons/sanitize_anchor.rb +16 -0
  49. data/olelo.gemspec +31 -0
  50. data/plugins/aspects/changelog.rb +45 -0
  51. data/plugins/aspects/documentbrowser.rb +57 -0
  52. data/plugins/aspects/download.rb +11 -0
  53. data/plugins/aspects/highlight.rb +8 -0
  54. data/plugins/aspects/image.rb +41 -0
  55. data/plugins/aspects/imageinfo.rb +64 -0
  56. data/plugins/aspects/locale.yml +60 -0
  57. data/plugins/aspects/main.rb +199 -0
  58. data/plugins/aspects/pageinfo.rb +37 -0
  59. data/plugins/aspects/source.rb +6 -0
  60. data/plugins/aspects/subpages.rb +44 -0
  61. data/plugins/aspects/text.rb +9 -0
  62. data/plugins/blog/blog.css +1 -0
  63. data/plugins/blog/blog.scss +37 -0
  64. data/plugins/blog/locale.yml +12 -0
  65. data/plugins/blog/main.rb +85 -0
  66. data/plugins/editor/locale.yml +18 -0
  67. data/plugins/editor/markup/main.rb +3 -0
  68. data/plugins/editor/markup/script.js +10 -0
  69. data/plugins/editor/markup/script/00-jquery.textselection.js +267 -0
  70. data/plugins/editor/markup/script/01-olelo.markupeditor.js +116 -0
  71. data/plugins/editor/markup/script/init.js +10 -0
  72. data/plugins/editor/preview.rb +52 -0
  73. data/plugins/editor/recaptcha.rb +56 -0
  74. data/plugins/filters/creole.rb +37 -0
  75. data/plugins/filters/disposition.rb +9 -0
  76. data/plugins/filters/editsection.rb +67 -0
  77. data/plugins/filters/fix_img_tag.rb +16 -0
  78. data/plugins/filters/html_wrapper.rb +12 -0
  79. data/plugins/filters/interwiki.rb +19 -0
  80. data/plugins/filters/link_classifier.rb +26 -0
  81. data/plugins/filters/locale.yml +15 -0
  82. data/plugins/filters/main.rb +202 -0
  83. data/plugins/filters/markdown_nowiki.rb +15 -0
  84. data/plugins/filters/numbering.xsl +93 -0
  85. data/plugins/filters/orgmode.rb +6 -0
  86. data/plugins/filters/rubypants.rb +6 -0
  87. data/plugins/filters/s5/main.rb +32 -0
  88. data/plugins/filters/s5/s5.xsl +118 -0
  89. data/plugins/filters/tilt.rb +17 -0
  90. data/plugins/filters/toc.rb +50 -0
  91. data/plugins/filters/xhtml2latex.xsl +232 -0
  92. data/plugins/filters/xslt.rb +22 -0
  93. data/plugins/gallery/gallery.css +1 -0
  94. data/plugins/gallery/gallery.scss +28 -0
  95. data/plugins/gallery/main.rb +34 -0
  96. data/plugins/misc/fancybox/images/blank.gif +0 -0
  97. data/plugins/misc/fancybox/images/fancy_close.png +0 -0
  98. data/plugins/misc/fancybox/images/fancy_loading.png +0 -0
  99. data/plugins/misc/fancybox/images/fancy_nav_left.png +0 -0
  100. data/plugins/misc/fancybox/images/fancy_nav_right.png +0 -0
  101. data/plugins/misc/fancybox/images/fancy_shadow_e.png +0 -0
  102. data/plugins/misc/fancybox/images/fancy_shadow_n.png +0 -0
  103. data/plugins/misc/fancybox/images/fancy_shadow_ne.png +0 -0
  104. data/plugins/misc/fancybox/images/fancy_shadow_nw.png +0 -0
  105. data/plugins/misc/fancybox/images/fancy_shadow_s.png +0 -0
  106. data/plugins/misc/fancybox/images/fancy_shadow_se.png +0 -0
  107. data/plugins/misc/fancybox/images/fancy_shadow_sw.png +0 -0
  108. data/plugins/misc/fancybox/images/fancy_shadow_w.png +0 -0
  109. data/plugins/misc/fancybox/images/fancy_title_left.png +0 -0
  110. data/plugins/misc/fancybox/images/fancy_title_main.png +0 -0
  111. data/plugins/misc/fancybox/images/fancy_title_over.png +0 -0
  112. data/plugins/misc/fancybox/images/fancy_title_right.png +0 -0
  113. data/plugins/misc/fancybox/images/fancybox-x.png +0 -0
  114. data/plugins/misc/fancybox/images/fancybox-y.png +0 -0
  115. data/plugins/misc/fancybox/images/fancybox.png +0 -0
  116. data/plugins/misc/fancybox/jquery.fancybox.css +1 -0
  117. data/plugins/misc/fancybox/jquery.fancybox.scss +323 -0
  118. data/plugins/misc/fancybox/main.rb +4 -0
  119. data/plugins/misc/fancybox/script.js +37 -0
  120. data/plugins/misc/fancybox/script/00-jquery.mousewheel.js +84 -0
  121. data/plugins/misc/fancybox/script/01-jquery.easing.js +205 -0
  122. data/plugins/misc/fancybox/script/02-jquery.fancybox.js +1156 -0
  123. data/plugins/misc/fancybox/script/init.js +18 -0
  124. data/plugins/misc/system.rb +192 -0
  125. data/plugins/misc/variables.rb +29 -0
  126. data/plugins/misc/webdav.rb +45 -0
  127. data/plugins/repositories/git_grep.rb +69 -0
  128. data/plugins/repositories/gitrb_repository.rb +204 -0
  129. data/plugins/repositories/locale.yml +12 -0
  130. data/plugins/repositories/rugged_repository.rb +454 -0
  131. data/plugins/security/acl.rb +57 -0
  132. data/plugins/security/basic_auth.rb +21 -0
  133. data/plugins/security/locale.yml +21 -0
  134. data/plugins/security/persistent_login.rb +32 -0
  135. data/plugins/security/portal.rb +28 -0
  136. data/plugins/security/private_wiki.rb +24 -0
  137. data/plugins/security/readonly_wiki.rb +25 -0
  138. data/plugins/security/stack.rb +20 -0
  139. data/plugins/security/yamlfile.rb +66 -0
  140. data/plugins/tags/code.rb +6 -0
  141. data/plugins/tags/footnotes.rb +35 -0
  142. data/plugins/tags/gist-embed.css +123 -0
  143. data/plugins/tags/gist.rb +13 -0
  144. data/plugins/tags/html.rb +57 -0
  145. data/plugins/tags/include.rb +20 -0
  146. data/plugins/tags/main.rb +353 -0
  147. data/plugins/tags/math.rb +117 -0
  148. data/plugins/tags/scripting.rb +64 -0
  149. data/plugins/tags/sort.rb +7 -0
  150. data/plugins/tags/tabs.rb +20 -0
  151. data/plugins/treeview/images/collapsed.png +0 -0
  152. data/plugins/treeview/images/expanded.png +0 -0
  153. data/plugins/treeview/images/menu.png +0 -0
  154. data/plugins/treeview/images/tree.png +0 -0
  155. data/plugins/treeview/images/wait.gif +0 -0
  156. data/plugins/treeview/main.rb +16 -0
  157. data/plugins/treeview/script.js +5 -0
  158. data/plugins/treeview/script/00-jquery.treeview.js +164 -0
  159. data/plugins/treeview/script/init.js +25 -0
  160. data/plugins/treeview/treeview.css +1 -0
  161. data/plugins/treeview/treeview.scss +113 -0
  162. data/plugins/utils/assets.rb +74 -0
  163. data/plugins/utils/cache.rb +53 -0
  164. data/plugins/utils/image_magick.rb +34 -0
  165. data/plugins/utils/pygments.css +1 -0
  166. data/plugins/utils/pygments.rb +50 -0
  167. data/plugins/utils/pygments.scss +83 -0
  168. data/plugins/utils/semaphore.rb +50 -0
  169. data/plugins/utils/shell.rb +45 -0
  170. data/plugins/utils/store.rb +315 -0
  171. data/plugins/utils/worker.rb +36 -0
  172. data/plugins/utils/xml.rb +29 -0
  173. data/static/images/favicon.png +0 -0
  174. data/static/script.js +267 -0
  175. data/static/script/00-json2.js +486 -0
  176. data/static/script/01-jstorage.js +217 -0
  177. data/static/script/02-jquery.js +9440 -0
  178. data/static/script/03-jquery.ui.core.js +337 -0
  179. data/static/script/04-jquery.ui.widget.js +502 -0
  180. data/static/script/05-jquery.ui.position.js +517 -0
  181. data/static/script/06-jquery.ui.menu.js +609 -0
  182. data/static/script/07-jquery.ui.autocomplete.js +601 -0
  183. data/static/script/08-olelo.i18n.js +37 -0
  184. data/static/script/09-olelo.unsaved.js +68 -0
  185. data/static/script/10-olelo.historytable.js +40 -0
  186. data/static/script/11-olelo.pagination.js +18 -0
  187. data/static/script/13-olelo.tabwidget.js +57 -0
  188. data/static/script/14-olelo.timeago.js +70 -0
  189. data/static/script/15-olelo.underliner.js +31 -0
  190. data/static/script/16-olelo.ui.combobox.js +32 -0
  191. data/static/script/init.js +48 -0
  192. data/static/themes/atlantis/constants.scss +15 -0
  193. data/static/themes/atlantis/iehacks.scss +38 -0
  194. data/static/themes/atlantis/images/actions/delete.png +0 -0
  195. data/static/themes/atlantis/images/actions/edit.png +0 -0
  196. data/static/themes/atlantis/images/actions/history.png +0 -0
  197. data/static/themes/atlantis/images/actions/home.png +0 -0
  198. data/static/themes/atlantis/images/actions/move.png +0 -0
  199. data/static/themes/atlantis/images/actions/new.png +0 -0
  200. data/static/themes/atlantis/images/actions/page.png +0 -0
  201. data/static/themes/atlantis/images/bg/button.png +0 -0
  202. data/static/themes/atlantis/images/bg/container.png +0 -0
  203. data/static/themes/atlantis/images/bg/content.png +0 -0
  204. data/static/themes/atlantis/images/bg/footer.png +0 -0
  205. data/static/themes/atlantis/images/bg/header.jpg +0 -0
  206. data/static/themes/atlantis/images/bg/header.orig.jpg +0 -0
  207. data/static/themes/atlantis/images/bg/header_gray.jpg +0 -0
  208. data/static/themes/atlantis/images/bug.png +0 -0
  209. data/static/themes/atlantis/images/filetypes/7z.png +0 -0
  210. data/static/themes/atlantis/images/filetypes/_archive.png +0 -0
  211. data/static/themes/atlantis/images/filetypes/_audio.png +0 -0
  212. data/static/themes/atlantis/images/filetypes/_code.png +0 -0
  213. data/static/themes/atlantis/images/filetypes/_linux.png +0 -0
  214. data/static/themes/atlantis/images/filetypes/_picture.png +0 -0
  215. data/static/themes/atlantis/images/filetypes/_video.png +0 -0
  216. data/static/themes/atlantis/images/filetypes/bz2.png +0 -0
  217. data/static/themes/atlantis/images/filetypes/doc.png +0 -0
  218. data/static/themes/atlantis/images/filetypes/flac.png +0 -0
  219. data/static/themes/atlantis/images/filetypes/gz.png +0 -0
  220. data/static/themes/atlantis/images/filetypes/html.png +0 -0
  221. data/static/themes/atlantis/images/filetypes/java.png +0 -0
  222. data/static/themes/atlantis/images/filetypes/jpg.png +0 -0
  223. data/static/themes/atlantis/images/filetypes/midi.png +0 -0
  224. data/static/themes/atlantis/images/filetypes/mp3.png +0 -0
  225. data/static/themes/atlantis/images/filetypes/ogg.png +0 -0
  226. data/static/themes/atlantis/images/filetypes/pdf.png +0 -0
  227. data/static/themes/atlantis/images/filetypes/php.png +0 -0
  228. data/static/themes/atlantis/images/filetypes/png.png +0 -0
  229. data/static/themes/atlantis/images/filetypes/ppt.png +0 -0
  230. data/static/themes/atlantis/images/filetypes/psd.png +0 -0
  231. data/static/themes/atlantis/images/filetypes/rar.png +0 -0
  232. data/static/themes/atlantis/images/filetypes/rb.png +0 -0
  233. data/static/themes/atlantis/images/filetypes/sh.png +0 -0
  234. data/static/themes/atlantis/images/filetypes/tar.png +0 -0
  235. data/static/themes/atlantis/images/filetypes/txt.png +0 -0
  236. data/static/themes/atlantis/images/filetypes/wma.png +0 -0
  237. data/static/themes/atlantis/images/filetypes/xls.png +0 -0
  238. data/static/themes/atlantis/images/filetypes/zip.png +0 -0
  239. data/static/themes/atlantis/images/folder.png +0 -0
  240. data/static/themes/atlantis/images/folder_open.png +0 -0
  241. data/static/themes/atlantis/images/loading.gif +0 -0
  242. data/static/themes/atlantis/images/loading.xcf +0 -0
  243. data/static/themes/atlantis/images/not_found.png +0 -0
  244. data/static/themes/atlantis/images/page.png +0 -0
  245. data/static/themes/atlantis/images/search.png +0 -0
  246. data/static/themes/atlantis/layout.scss +115 -0
  247. data/static/themes/atlantis/menu.scss +99 -0
  248. data/static/themes/atlantis/print.scss +129 -0
  249. data/static/themes/atlantis/screen.scss +495 -0
  250. data/static/themes/atlantis/style.css +3 -0
  251. data/static/themes/lib/autocomplete.scss +39 -0
  252. data/static/themes/lib/headlines.scss +10 -0
  253. data/static/themes/lib/horizontal-list.scss +31 -0
  254. data/static/themes/lib/patch.scss +88 -0
  255. data/static/themes/lib/reset.scss +114 -0
  256. data/static/themes/lib/rounded.scss +46 -0
  257. data/static/themes/lib/shadow.scss +14 -0
  258. data/test/config_test.rb +28 -0
  259. data/test/factory_test.rb +29 -0
  260. data/test/hash_extensions_test.rb +16 -0
  261. data/test/helper.rb +38 -0
  262. data/test/hooks_test.rb +85 -0
  263. data/test/object_extensions_test.rb +20 -0
  264. data/test/page_test.rb +168 -0
  265. data/test/request_test.rb +166 -0
  266. data/test/string_extensions_test.rb +32 -0
  267. data/test/templates_test.rb +39 -0
  268. data/test/util_test.rb +71 -0
  269. data/views/changes.slim +22 -0
  270. data/views/compare.slim +8 -0
  271. data/views/delete.slim +9 -0
  272. data/views/deleted.slim +2 -0
  273. data/views/edit.slim +65 -0
  274. data/views/error.slim +6 -0
  275. data/views/history.slim +20 -0
  276. data/views/layout.slim +38 -0
  277. data/views/login.slim +37 -0
  278. data/views/move.slim +10 -0
  279. data/views/not_found.slim +6 -0
  280. data/views/profile.slim +26 -0
  281. data/views/show.slim +9 -0
  282. metadata +488 -0
@@ -0,0 +1,495 @@
1
+ @import "lib/reset.scss";
2
+ @import "lib/rounded.scss";
3
+ @import "lib/shadow.scss";
4
+ @import "lib/headlines.scss";
5
+ @import "lib/patch.scss";
6
+ @import "lib/autocomplete.scss";
7
+ @import "constants.scss";
8
+ @import "layout.scss";
9
+ @import "menu.scss";
10
+
11
+ @include global-reset;
12
+
13
+ body {
14
+ color: #111111;
15
+ background: white;
16
+ font-family: $normal_font;
17
+ font-size: 10pt;
18
+ line-height: 1.2em;
19
+ }
20
+
21
+ @mixin headline {
22
+ font-family: $headline_font;
23
+ color: $color1;
24
+ margin: 1em 0 0.5em 0;
25
+ line-height: 1.2em;
26
+ }
27
+
28
+ @include headlines;
29
+
30
+ h1 {
31
+ margin-top: 0;
32
+ }
33
+
34
+ strong {
35
+ font-weight: bold;
36
+ }
37
+
38
+ em {
39
+ font-style: italic;
40
+ }
41
+
42
+ ul,ol,p {
43
+ margin: 0.8em 0 0.8em 0;
44
+ }
45
+
46
+ ul,ol ul,ol {
47
+ margin: 0;
48
+ }
49
+
50
+ ul {
51
+ list-style-type: disc;
52
+ }
53
+
54
+ ol {
55
+ list-style-type: decimal;
56
+ }
57
+
58
+ ul, ol {
59
+ list-style-position: outside;
60
+ padding-left: 1.5em;
61
+ }
62
+
63
+ ul.pagination {
64
+ height: 3em;
65
+ }
66
+
67
+ ul.button-bar, ul.pagination {
68
+ list-style-type: none;
69
+ margin: 0;
70
+ display: block;
71
+ padding: 0;
72
+ width: 100%;
73
+ li {
74
+ float: left;
75
+ padding: 0;
76
+ margin: 0;
77
+ a, span {
78
+ display: block;
79
+ background: url(images/bg/button.png) repeat-x left bottom transparent;
80
+ border: 1px solid $border_color;
81
+ border-left: 0px none;
82
+ color: $dark_color;
83
+ padding: 0em 0.5em;
84
+ line-height: 1.5em;
85
+ &:active, &.current, &.loading {
86
+ background: url(images/bg/button.png) repeat-x left bottom $light_bg1;
87
+ }
88
+ &.loading {
89
+ background: $light_bg1 url(images/loading.gif) repeat;
90
+ }
91
+ &.ellipsis:before {
92
+ content: '\22EF';
93
+ }
94
+ &.disabled {
95
+ color: $border_color;
96
+ }
97
+ }
98
+ &:first-child a, &:first-child span {
99
+ border-left: 1px solid $border_color;
100
+ @include rounded-left;
101
+ }
102
+ &:last-child a, &:last-child span {
103
+ @include rounded-right;
104
+ }
105
+ }
106
+ }
107
+
108
+ table {
109
+ border-collapse: separate;
110
+ border-spacing: 0px;
111
+ background: $border_color;
112
+ padding: 1px;
113
+ margin: 0 0 2em 0;
114
+ td, th {
115
+ border-top: 1px solid #E5E5E5;
116
+ padding: 0.2em 0.5em;
117
+ &.link {
118
+ padding: 0;
119
+ a {
120
+ margin: 0;
121
+ padding: 0.2em 0.5em;
122
+ display: block;
123
+ }
124
+ }
125
+ }
126
+ tr {
127
+ background: $main_bg;
128
+ &:first-child td {
129
+ border-top: 0px none;
130
+ }
131
+ }
132
+ thead tr {
133
+ background: url(images/bg/button.png) repeat-x left bottom $light_bg1;
134
+ th {
135
+ border-bottom: $border;
136
+ border-top: 0px none;
137
+ }
138
+ }
139
+ }
140
+
141
+ a {
142
+ &, &:visited {
143
+ color: $color1;
144
+ text-decoration: none;
145
+ }
146
+ &.img {
147
+ background: transparent;
148
+ }
149
+ span.img & {
150
+ border: $border;
151
+ float: right;
152
+ text-align: center;
153
+ color: black;
154
+ background: $main_bg;
155
+ padding: 0.2em;
156
+ img {
157
+ display: block;
158
+ }
159
+ }
160
+ }
161
+
162
+ .editsection {
163
+ @include rounded;
164
+ border: $border;
165
+ display: block;
166
+ background: url(images/bg/button.png) repeat-x left bottom #FFF;
167
+ font-family: $normal_font;
168
+ font-size: 9pt;
169
+ line-height: 9pt;
170
+ margin-top: 2px;
171
+ padding: 2px;
172
+ color: $dark_color;
173
+ float: right;
174
+ font-variant: normal;
175
+ &:visited {
176
+ color: $dark_color;
177
+ }
178
+ }
179
+
180
+ sub {
181
+ vertical-align: text-bottom;
182
+ font-size: 75%;
183
+ }
184
+
185
+ sup {
186
+ vertical-align: text-top;
187
+ font-size: 75%;
188
+ }
189
+
190
+ img {
191
+ vertical-align: middle;
192
+ }
193
+
194
+ hr {
195
+ background: $border_color;
196
+ border: none;
197
+ height: 1px;
198
+ }
199
+
200
+ .version, tt, pre, code, kbd {
201
+ font-family: $monospace_font;
202
+ }
203
+
204
+ pre {
205
+ border: $border;
206
+ padding: 0.2em;
207
+ min-width: 60%;
208
+ white-space: pre-wrap;
209
+ display: block;
210
+ }
211
+
212
+ #history-table .compare {
213
+ padding: 0;
214
+ width: 1em;
215
+ button {
216
+ margin: 1px;
217
+ display: inline;
218
+ font-size: small;
219
+ }
220
+ input {
221
+ display: inline;
222
+ margin: 0 3px;
223
+ }
224
+ }
225
+
226
+ table.full, #history-table, #subpages-table {
227
+ width: 100%;
228
+ td, th {
229
+ white-space: nowrap;
230
+ }
231
+ }
232
+
233
+ @mixin action-icon($name) {
234
+ .action-#{$name} {
235
+ text-indent: -999px;
236
+ background: url(images/actions/#{$name}.png) no-repeat top left;
237
+ float: left;
238
+ width: 16px;
239
+ height: 16px;
240
+ overflow: hidden;
241
+ }
242
+ }
243
+
244
+ @mixin file-type($type) {
245
+ .file-type-#{$type}:before {
246
+ content: url(images/filetypes/#{$type}.png) "\00a0";
247
+ }
248
+ }
249
+
250
+ #subpages-table {
251
+ .actions {
252
+ width: 80px;
253
+ padding: 0px;
254
+ }
255
+ @include action-icon("edit");
256
+ @include action-icon("history");
257
+ @include action-icon("delete");
258
+ @include action-icon("move");
259
+ .page:before {
260
+ content: url(images/page.png) "\00a0";
261
+ }
262
+ .folder:before {
263
+ content: url(images/folder.png) "\00a0";
264
+ }
265
+ @include file-type("7z");
266
+ @include file-type("bz2");
267
+ @include file-type("doc");
268
+ @include file-type("flac");
269
+ @include file-type("gz");
270
+ @include file-type("html");
271
+ @include file-type("java");
272
+ @include file-type("jpg");
273
+ @include file-type("midi");
274
+ @include file-type("mp3");
275
+ @include file-type("ogg");
276
+ @include file-type("pdf");
277
+ @include file-type("php");
278
+ @include file-type("png");
279
+ @include file-type("ppt");
280
+ @include file-type("psd");
281
+ @include file-type("rar");
282
+ @include file-type("rb");
283
+ @include file-type("sh");
284
+ @include file-type("tar");
285
+ @include file-type("txt");
286
+ @include file-type("wma");
287
+ @include file-type("xls");
288
+ @include file-type("zip");
289
+ }
290
+
291
+ .info {
292
+ color: #333;
293
+ }
294
+
295
+ .warn {
296
+ color: #a50;
297
+ }
298
+
299
+ .error {
300
+ color: #a00;
301
+ }
302
+
303
+ .ref {
304
+ vertical-align: super;
305
+ font-size: 80%;
306
+ }
307
+
308
+ button {
309
+ @include rounded;
310
+ background: url(images/bg/button.png) repeat-x left bottom #FFF;
311
+ float: left;
312
+ margin: 0.3em 0.5em 0.3em 0;
313
+ padding: 2px;
314
+ border: 1px solid $border_color;
315
+ color: $dark_color;
316
+ white-space: nowrap;
317
+ &:active:not([disabled]), &.loading {
318
+ background: url(images/bg/button.png) repeat-x left bottom $light_bg1;
319
+ }
320
+ &.loading {
321
+ background: url(images/loading.gif) repeat $light_bg1;
322
+ }
323
+ &[disabled] {
324
+ color: #999;
325
+ }
326
+ }
327
+
328
+ form {
329
+ display: inline;
330
+ select, textarea, input {
331
+ float: left;
332
+ margin: 0.3em 0.5em 0.3em 0;
333
+ padding: 2px;
334
+ border: $border;
335
+ background: $main_bg;
336
+ color: $dark_color;
337
+ &:focus {
338
+ border-style: dotted;
339
+ }
340
+ }
341
+ label {
342
+ float: left;
343
+ margin: 0;
344
+ padding: 0.4em 0.5em 0.4em 0;
345
+ border: none;
346
+ background: none;
347
+ color: $dark_color;
348
+ &.unsaved {
349
+ font-style: italic;
350
+ }
351
+ }
352
+ .fieldset label {
353
+ width: 12em;
354
+ text-align: right;
355
+ }
356
+ .indent {
357
+ margin-left: 12.5em;
358
+ label {
359
+ width: auto;
360
+ }
361
+ }
362
+ input[type=text], input[type=password] {
363
+ font-family: $monospace_font;
364
+ width: 20em;
365
+ }
366
+ select {
367
+ width: 20em;
368
+ }
369
+ textarea {
370
+ width: 100%;
371
+ font-family: $monospace_font;
372
+ font-size: 100%;
373
+ }
374
+ input {
375
+ &[type=image], &[type=image]:focus, &[type=checkbox] {
376
+ border: none;
377
+ background: none;
378
+ }
379
+ &[type=hidden] {
380
+ display: none;
381
+ }
382
+ }
383
+ br {
384
+ clear: left;
385
+ }
386
+ }
387
+
388
+ .flash {
389
+ margin: 0.5em 0;
390
+ border: 1px solid #d33;
391
+ list-style-type: none;
392
+ padding: 0.5em;
393
+ background: #fdd;
394
+ }
395
+
396
+ table input {
397
+ margin: 0;
398
+ }
399
+
400
+ .box, .fieldset, .tab {
401
+ @include rounded;
402
+ @include box-shadow;
403
+ clear: both;
404
+ display: block;
405
+ border: $border;
406
+ padding: 0.5em 1em;
407
+ margin: 1em 0;
408
+ overflow: auto;
409
+ h1, h2, h3, h4, h5, h6 {
410
+ margin: 0.2em 0;
411
+ }
412
+ }
413
+
414
+ .js {
415
+ .tabs {
416
+ @include list-bar;
417
+ margin: 0 0 1px 0;
418
+ height: 1.5em;
419
+ width: 100%;
420
+ z-index: 100;
421
+ position: relative;
422
+ > li {
423
+ @include rounded-tl;
424
+ @include rounded-tr;
425
+ background: url(images/bg/button.png) repeat-x left bottom $light_bg1;
426
+ float: left;
427
+ padding: 0;
428
+ margin: 0 4px 0 0;
429
+ height: 1.5em;
430
+ line-height: 1.5em;
431
+ border: $border;
432
+ &.selected > a {
433
+ @include rounded-tl;
434
+ @include rounded-tr;
435
+ background: $main_bg;
436
+ border-bottom: 1px solid white;
437
+ }
438
+ > a {
439
+ display: block;
440
+ text-decoration: none;
441
+ white-space: nowrap;
442
+ padding: 0 0.8em;
443
+ color: $dark_color;
444
+ &:hover, &:active, &:focus {
445
+ text-shadow: #333333 1px 1px 2px;
446
+ }
447
+ }
448
+ }
449
+ }
450
+ .tab {
451
+ @include rounded-tl(0px);
452
+ }
453
+ }
454
+
455
+ .no-js .tabs {
456
+ display: none;
457
+ }
458
+
459
+ .hidden {
460
+ display: none !important;
461
+ }
462
+
463
+ .toc {
464
+ .toc1 {
465
+ font-weight: bold;
466
+ > ol {
467
+ margin-bottom: 1em;
468
+ }
469
+ .toc2 {
470
+ font-weight: normal;
471
+ }
472
+ }
473
+ }
474
+
475
+ a.absent {
476
+ color: #A55;
477
+ }
478
+
479
+ .archive #header {
480
+ background: $header_bg2;
481
+ }
482
+
483
+ .error_page {
484
+ padding-left: 120px;
485
+ min-height: 400px;
486
+ background: url(images/bug.png) top left no-repeat;
487
+ }
488
+
489
+ .not_found_page {
490
+ padding-left: 120px;
491
+ min-height: 400px;
492
+ background: url(images/not_found.png) top left no-repeat;
493
+ }
494
+
495
+ @import "iehacks.scss";