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.
- data/.gitignore +10 -0
- data/.gitmodules +3 -0
- data/Gemfile +3 -0
- data/README.markdown +104 -0
- data/Rakefile +92 -0
- data/bin/olelo +5 -0
- data/config.ru +86 -0
- data/config/aspects.rb +256 -0
- data/config/config.yml.default +154 -0
- data/config/initializers/00-mime_types.rb +29 -0
- data/config/initializers/01-slim.rb +2 -0
- data/config/interwiki.yml +11 -0
- data/doc/AUTHORS +7 -0
- data/doc/LICENSE +22 -0
- data/lib/olelo.rb +39 -0
- data/lib/olelo/application.rb +294 -0
- data/lib/olelo/attributes.rb +285 -0
- data/lib/olelo/config.rb +88 -0
- data/lib/olelo/extensions.rb +252 -0
- data/lib/olelo/helper.rb +290 -0
- data/lib/olelo/hooks.rb +142 -0
- data/lib/olelo/html_safe.rb +29 -0
- data/lib/olelo/initializer.rb +76 -0
- data/lib/olelo/locale.rb +63 -0
- data/lib/olelo/locale.yml +284 -0
- data/lib/olelo/menu.rb +101 -0
- data/lib/olelo/middleware/blacklist.rb +25 -0
- data/lib/olelo/middleware/degrade_mime_type.rb +19 -0
- data/lib/olelo/middleware/flash.rb +97 -0
- data/lib/olelo/middleware/force_encoding.rb +41 -0
- data/lib/olelo/page.rb +266 -0
- data/lib/olelo/patch.rb +311 -0
- data/lib/olelo/plugin.rb +188 -0
- data/lib/olelo/repository.rb +225 -0
- data/lib/olelo/routing.rb +223 -0
- data/lib/olelo/templates.rb +30 -0
- data/lib/olelo/user.rb +132 -0
- data/lib/olelo/util.rb +233 -0
- data/lib/olelo/version.rb +3 -0
- data/lib/olelo/virtualfs.rb +161 -0
- data/lib/rack/olelo_patches.rb +33 -0
- data/lib/rack/relative_redirect.rb +44 -0
- data/lib/rack/static_cache.rb +93 -0
- data/lib/yard/addons.rb +1 -0
- data/lib/yard/addons/hook_handler.rb +25 -0
- data/lib/yard/addons/override_tag.rb +14 -0
- data/lib/yard/addons/route_handler.rb +33 -0
- data/lib/yard/addons/sanitize_anchor.rb +16 -0
- data/olelo.gemspec +31 -0
- data/plugins/aspects/changelog.rb +45 -0
- data/plugins/aspects/documentbrowser.rb +57 -0
- data/plugins/aspects/download.rb +11 -0
- data/plugins/aspects/highlight.rb +8 -0
- data/plugins/aspects/image.rb +41 -0
- data/plugins/aspects/imageinfo.rb +64 -0
- data/plugins/aspects/locale.yml +60 -0
- data/plugins/aspects/main.rb +199 -0
- data/plugins/aspects/pageinfo.rb +37 -0
- data/plugins/aspects/source.rb +6 -0
- data/plugins/aspects/subpages.rb +44 -0
- data/plugins/aspects/text.rb +9 -0
- data/plugins/blog/blog.css +1 -0
- data/plugins/blog/blog.scss +37 -0
- data/plugins/blog/locale.yml +12 -0
- data/plugins/blog/main.rb +85 -0
- data/plugins/editor/locale.yml +18 -0
- data/plugins/editor/markup/main.rb +3 -0
- data/plugins/editor/markup/script.js +10 -0
- data/plugins/editor/markup/script/00-jquery.textselection.js +267 -0
- data/plugins/editor/markup/script/01-olelo.markupeditor.js +116 -0
- data/plugins/editor/markup/script/init.js +10 -0
- data/plugins/editor/preview.rb +52 -0
- data/plugins/editor/recaptcha.rb +56 -0
- data/plugins/filters/creole.rb +37 -0
- data/plugins/filters/disposition.rb +9 -0
- data/plugins/filters/editsection.rb +67 -0
- data/plugins/filters/fix_img_tag.rb +16 -0
- data/plugins/filters/html_wrapper.rb +12 -0
- data/plugins/filters/interwiki.rb +19 -0
- data/plugins/filters/link_classifier.rb +26 -0
- data/plugins/filters/locale.yml +15 -0
- data/plugins/filters/main.rb +202 -0
- data/plugins/filters/markdown_nowiki.rb +15 -0
- data/plugins/filters/numbering.xsl +93 -0
- data/plugins/filters/orgmode.rb +6 -0
- data/plugins/filters/rubypants.rb +6 -0
- data/plugins/filters/s5/main.rb +32 -0
- data/plugins/filters/s5/s5.xsl +118 -0
- data/plugins/filters/tilt.rb +17 -0
- data/plugins/filters/toc.rb +50 -0
- data/plugins/filters/xhtml2latex.xsl +232 -0
- data/plugins/filters/xslt.rb +22 -0
- data/plugins/gallery/gallery.css +1 -0
- data/plugins/gallery/gallery.scss +28 -0
- data/plugins/gallery/main.rb +34 -0
- data/plugins/misc/fancybox/images/blank.gif +0 -0
- data/plugins/misc/fancybox/images/fancy_close.png +0 -0
- data/plugins/misc/fancybox/images/fancy_loading.png +0 -0
- data/plugins/misc/fancybox/images/fancy_nav_left.png +0 -0
- data/plugins/misc/fancybox/images/fancy_nav_right.png +0 -0
- data/plugins/misc/fancybox/images/fancy_shadow_e.png +0 -0
- data/plugins/misc/fancybox/images/fancy_shadow_n.png +0 -0
- data/plugins/misc/fancybox/images/fancy_shadow_ne.png +0 -0
- data/plugins/misc/fancybox/images/fancy_shadow_nw.png +0 -0
- data/plugins/misc/fancybox/images/fancy_shadow_s.png +0 -0
- data/plugins/misc/fancybox/images/fancy_shadow_se.png +0 -0
- data/plugins/misc/fancybox/images/fancy_shadow_sw.png +0 -0
- data/plugins/misc/fancybox/images/fancy_shadow_w.png +0 -0
- data/plugins/misc/fancybox/images/fancy_title_left.png +0 -0
- data/plugins/misc/fancybox/images/fancy_title_main.png +0 -0
- data/plugins/misc/fancybox/images/fancy_title_over.png +0 -0
- data/plugins/misc/fancybox/images/fancy_title_right.png +0 -0
- data/plugins/misc/fancybox/images/fancybox-x.png +0 -0
- data/plugins/misc/fancybox/images/fancybox-y.png +0 -0
- data/plugins/misc/fancybox/images/fancybox.png +0 -0
- data/plugins/misc/fancybox/jquery.fancybox.css +1 -0
- data/plugins/misc/fancybox/jquery.fancybox.scss +323 -0
- data/plugins/misc/fancybox/main.rb +4 -0
- data/plugins/misc/fancybox/script.js +37 -0
- data/plugins/misc/fancybox/script/00-jquery.mousewheel.js +84 -0
- data/plugins/misc/fancybox/script/01-jquery.easing.js +205 -0
- data/plugins/misc/fancybox/script/02-jquery.fancybox.js +1156 -0
- data/plugins/misc/fancybox/script/init.js +18 -0
- data/plugins/misc/system.rb +192 -0
- data/plugins/misc/variables.rb +29 -0
- data/plugins/misc/webdav.rb +45 -0
- data/plugins/repositories/git_grep.rb +69 -0
- data/plugins/repositories/gitrb_repository.rb +204 -0
- data/plugins/repositories/locale.yml +12 -0
- data/plugins/repositories/rugged_repository.rb +454 -0
- data/plugins/security/acl.rb +57 -0
- data/plugins/security/basic_auth.rb +21 -0
- data/plugins/security/locale.yml +21 -0
- data/plugins/security/persistent_login.rb +32 -0
- data/plugins/security/portal.rb +28 -0
- data/plugins/security/private_wiki.rb +24 -0
- data/plugins/security/readonly_wiki.rb +25 -0
- data/plugins/security/stack.rb +20 -0
- data/plugins/security/yamlfile.rb +66 -0
- data/plugins/tags/code.rb +6 -0
- data/plugins/tags/footnotes.rb +35 -0
- data/plugins/tags/gist-embed.css +123 -0
- data/plugins/tags/gist.rb +13 -0
- data/plugins/tags/html.rb +57 -0
- data/plugins/tags/include.rb +20 -0
- data/plugins/tags/main.rb +353 -0
- data/plugins/tags/math.rb +117 -0
- data/plugins/tags/scripting.rb +64 -0
- data/plugins/tags/sort.rb +7 -0
- data/plugins/tags/tabs.rb +20 -0
- data/plugins/treeview/images/collapsed.png +0 -0
- data/plugins/treeview/images/expanded.png +0 -0
- data/plugins/treeview/images/menu.png +0 -0
- data/plugins/treeview/images/tree.png +0 -0
- data/plugins/treeview/images/wait.gif +0 -0
- data/plugins/treeview/main.rb +16 -0
- data/plugins/treeview/script.js +5 -0
- data/plugins/treeview/script/00-jquery.treeview.js +164 -0
- data/plugins/treeview/script/init.js +25 -0
- data/plugins/treeview/treeview.css +1 -0
- data/plugins/treeview/treeview.scss +113 -0
- data/plugins/utils/assets.rb +74 -0
- data/plugins/utils/cache.rb +53 -0
- data/plugins/utils/image_magick.rb +34 -0
- data/plugins/utils/pygments.css +1 -0
- data/plugins/utils/pygments.rb +50 -0
- data/plugins/utils/pygments.scss +83 -0
- data/plugins/utils/semaphore.rb +50 -0
- data/plugins/utils/shell.rb +45 -0
- data/plugins/utils/store.rb +315 -0
- data/plugins/utils/worker.rb +36 -0
- data/plugins/utils/xml.rb +29 -0
- data/static/images/favicon.png +0 -0
- data/static/script.js +267 -0
- data/static/script/00-json2.js +486 -0
- data/static/script/01-jstorage.js +217 -0
- data/static/script/02-jquery.js +9440 -0
- data/static/script/03-jquery.ui.core.js +337 -0
- data/static/script/04-jquery.ui.widget.js +502 -0
- data/static/script/05-jquery.ui.position.js +517 -0
- data/static/script/06-jquery.ui.menu.js +609 -0
- data/static/script/07-jquery.ui.autocomplete.js +601 -0
- data/static/script/08-olelo.i18n.js +37 -0
- data/static/script/09-olelo.unsaved.js +68 -0
- data/static/script/10-olelo.historytable.js +40 -0
- data/static/script/11-olelo.pagination.js +18 -0
- data/static/script/13-olelo.tabwidget.js +57 -0
- data/static/script/14-olelo.timeago.js +70 -0
- data/static/script/15-olelo.underliner.js +31 -0
- data/static/script/16-olelo.ui.combobox.js +32 -0
- data/static/script/init.js +48 -0
- data/static/themes/atlantis/constants.scss +15 -0
- data/static/themes/atlantis/iehacks.scss +38 -0
- data/static/themes/atlantis/images/actions/delete.png +0 -0
- data/static/themes/atlantis/images/actions/edit.png +0 -0
- data/static/themes/atlantis/images/actions/history.png +0 -0
- data/static/themes/atlantis/images/actions/home.png +0 -0
- data/static/themes/atlantis/images/actions/move.png +0 -0
- data/static/themes/atlantis/images/actions/new.png +0 -0
- data/static/themes/atlantis/images/actions/page.png +0 -0
- data/static/themes/atlantis/images/bg/button.png +0 -0
- data/static/themes/atlantis/images/bg/container.png +0 -0
- data/static/themes/atlantis/images/bg/content.png +0 -0
- data/static/themes/atlantis/images/bg/footer.png +0 -0
- data/static/themes/atlantis/images/bg/header.jpg +0 -0
- data/static/themes/atlantis/images/bg/header.orig.jpg +0 -0
- data/static/themes/atlantis/images/bg/header_gray.jpg +0 -0
- data/static/themes/atlantis/images/bug.png +0 -0
- data/static/themes/atlantis/images/filetypes/7z.png +0 -0
- data/static/themes/atlantis/images/filetypes/_archive.png +0 -0
- data/static/themes/atlantis/images/filetypes/_audio.png +0 -0
- data/static/themes/atlantis/images/filetypes/_code.png +0 -0
- data/static/themes/atlantis/images/filetypes/_linux.png +0 -0
- data/static/themes/atlantis/images/filetypes/_picture.png +0 -0
- data/static/themes/atlantis/images/filetypes/_video.png +0 -0
- data/static/themes/atlantis/images/filetypes/bz2.png +0 -0
- data/static/themes/atlantis/images/filetypes/doc.png +0 -0
- data/static/themes/atlantis/images/filetypes/flac.png +0 -0
- data/static/themes/atlantis/images/filetypes/gz.png +0 -0
- data/static/themes/atlantis/images/filetypes/html.png +0 -0
- data/static/themes/atlantis/images/filetypes/java.png +0 -0
- data/static/themes/atlantis/images/filetypes/jpg.png +0 -0
- data/static/themes/atlantis/images/filetypes/midi.png +0 -0
- data/static/themes/atlantis/images/filetypes/mp3.png +0 -0
- data/static/themes/atlantis/images/filetypes/ogg.png +0 -0
- data/static/themes/atlantis/images/filetypes/pdf.png +0 -0
- data/static/themes/atlantis/images/filetypes/php.png +0 -0
- data/static/themes/atlantis/images/filetypes/png.png +0 -0
- data/static/themes/atlantis/images/filetypes/ppt.png +0 -0
- data/static/themes/atlantis/images/filetypes/psd.png +0 -0
- data/static/themes/atlantis/images/filetypes/rar.png +0 -0
- data/static/themes/atlantis/images/filetypes/rb.png +0 -0
- data/static/themes/atlantis/images/filetypes/sh.png +0 -0
- data/static/themes/atlantis/images/filetypes/tar.png +0 -0
- data/static/themes/atlantis/images/filetypes/txt.png +0 -0
- data/static/themes/atlantis/images/filetypes/wma.png +0 -0
- data/static/themes/atlantis/images/filetypes/xls.png +0 -0
- data/static/themes/atlantis/images/filetypes/zip.png +0 -0
- data/static/themes/atlantis/images/folder.png +0 -0
- data/static/themes/atlantis/images/folder_open.png +0 -0
- data/static/themes/atlantis/images/loading.gif +0 -0
- data/static/themes/atlantis/images/loading.xcf +0 -0
- data/static/themes/atlantis/images/not_found.png +0 -0
- data/static/themes/atlantis/images/page.png +0 -0
- data/static/themes/atlantis/images/search.png +0 -0
- data/static/themes/atlantis/layout.scss +115 -0
- data/static/themes/atlantis/menu.scss +99 -0
- data/static/themes/atlantis/print.scss +129 -0
- data/static/themes/atlantis/screen.scss +495 -0
- data/static/themes/atlantis/style.css +3 -0
- data/static/themes/lib/autocomplete.scss +39 -0
- data/static/themes/lib/headlines.scss +10 -0
- data/static/themes/lib/horizontal-list.scss +31 -0
- data/static/themes/lib/patch.scss +88 -0
- data/static/themes/lib/reset.scss +114 -0
- data/static/themes/lib/rounded.scss +46 -0
- data/static/themes/lib/shadow.scss +14 -0
- data/test/config_test.rb +28 -0
- data/test/factory_test.rb +29 -0
- data/test/hash_extensions_test.rb +16 -0
- data/test/helper.rb +38 -0
- data/test/hooks_test.rb +85 -0
- data/test/object_extensions_test.rb +20 -0
- data/test/page_test.rb +168 -0
- data/test/request_test.rb +166 -0
- data/test/string_extensions_test.rb +32 -0
- data/test/templates_test.rb +39 -0
- data/test/util_test.rb +71 -0
- data/views/changes.slim +22 -0
- data/views/compare.slim +8 -0
- data/views/delete.slim +9 -0
- data/views/deleted.slim +2 -0
- data/views/edit.slim +65 -0
- data/views/error.slim +6 -0
- data/views/history.slim +20 -0
- data/views/layout.slim +38 -0
- data/views/login.slim +37 -0
- data/views/move.slim +10 -0
- data/views/not_found.slim +6 -0
- data/views/profile.slim +26 -0
- data/views/show.slim +9 -0
- metadata +488 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
description 'XSLT filter which transforms XML'
|
|
2
|
+
require 'nokogiri'
|
|
3
|
+
|
|
4
|
+
class XSLT < Filter
|
|
5
|
+
def configure(options)
|
|
6
|
+
super
|
|
7
|
+
content = File.read(File.join(File.dirname(__FILE__), options[:stylesheet]))
|
|
8
|
+
@xslt = Nokogiri::XSLT(content)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
def params(context)
|
|
12
|
+
context.page.attributes.merge('title' => context.page.title, 'path' => context.page.path)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
def filter(context, content)
|
|
16
|
+
@xslt.apply_to(Nokogiri::XML(content, nil, 'UTF-8'),
|
|
17
|
+
Nokogiri::XSLT.quote_params(params(context)))
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
Olelo::XSLT = XSLT
|
|
22
|
+
Filter.register :xslt, XSLT
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.gallery{border-collapse:separate;border-spacing:0;vertical-align:middle;margin:0;padding:0;border:0;outline:0;width:100%;background:transparent}.gallery td{border:0px none;vertical-align:top;text-align:center}.gallery img{box-shadow:2px 2px 8px #bbb;-webkit-box-shadow:2px 2px 8px #bbb;margin:5px}.gallery img:hover{box-shadow:0px 0px 0px transparent;-webkit-box-shadow:0px 0px 0px transparent;margin:7px 3px 3px 7px}.gallery a.title{display:block;font-size:80%;color:#555}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
@import 'lib/reset.scss';
|
|
2
|
+
@import 'lib/rounded.scss';
|
|
3
|
+
@import 'lib/shadow.scss';
|
|
4
|
+
|
|
5
|
+
.gallery {
|
|
6
|
+
@include reset-table;
|
|
7
|
+
@include reset-box-model;
|
|
8
|
+
width: 100%;
|
|
9
|
+
background: transparent;
|
|
10
|
+
td {
|
|
11
|
+
border: 0px none;
|
|
12
|
+
vertical-align: top;
|
|
13
|
+
text-align: center;
|
|
14
|
+
}
|
|
15
|
+
img {
|
|
16
|
+
@include box-shadow(2px, 2px, 8px, #BBB);
|
|
17
|
+
margin: 5px;
|
|
18
|
+
&:hover {
|
|
19
|
+
@include no-box-shadow;
|
|
20
|
+
margin: 7px 3px 3px 7px;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
a.title {
|
|
24
|
+
display: block;
|
|
25
|
+
font-size: 80%;
|
|
26
|
+
color: #555;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
description 'Gallery aspect'
|
|
2
|
+
dependencies 'utils/assets', 'aspects'
|
|
3
|
+
export_scripts '*.css'
|
|
4
|
+
|
|
5
|
+
Aspects::Aspect.create(:gallery, :priority => 3, :layout => true, :hidden => true, :cacheable => true) do
|
|
6
|
+
def accepts?(page); !page.children.empty?; end
|
|
7
|
+
def call(context, page)
|
|
8
|
+
@per_row = 4
|
|
9
|
+
per_page = @per_row * 4
|
|
10
|
+
@page_nr = [context.params[:page].to_i, 1].max
|
|
11
|
+
@page = page
|
|
12
|
+
@images = @page.children.select {|page| page.mime.image? }
|
|
13
|
+
@page_count = @images.size / per_page + 1
|
|
14
|
+
@images = @images[((@page_nr - 1) * per_page) ... (@page_nr * per_page)].to_a
|
|
15
|
+
render :gallery
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
__END__
|
|
20
|
+
@@ gallery.slim
|
|
21
|
+
= pagination(@page, @page_count, @page_nr, :aspect => 'gallery')
|
|
22
|
+
table.gallery
|
|
23
|
+
- @images.each_slice(@per_row) do |row|
|
|
24
|
+
tr
|
|
25
|
+
- row.each do |image|
|
|
26
|
+
ruby:
|
|
27
|
+
thumb_path = build_path(image, :aspect => 'image', :geometry => '150x150>')
|
|
28
|
+
info_path = build_path(image)
|
|
29
|
+
description = image.attributes['description'] || image.attributes['title'] || \
|
|
30
|
+
image.name.gsub(/([^\s])[_\-]/, '\1 ')
|
|
31
|
+
td
|
|
32
|
+
a.fancybox href=info_path rel="gallery" title=description
|
|
33
|
+
img src=thumb_path alt=''
|
|
34
|
+
a.title href=info_path = description
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#fancybox-loading{position:fixed;top:50%;left:50%;width:40px;height:40px;margin-top:-20px;margin-left:-20px;cursor:pointer;overflow:hidden;z-index:1104;display:none}#fancybox-loading div{position:absolute;top:0;left:0;width:40px;height:480px;background-image:url("misc/fancybox/images/fancybox.png")}#fancybox-overlay{position:absolute;top:0;left:0;width:100%;z-index:1100;display:none}#fancybox-tmp{padding:0;margin:0;border:0;overflow:auto;display:none}#fancybox-wrap{position:absolute;top:0;left:0;padding:20px;z-index:1101;outline:none;display:none}#fancybox-outer{position:relative;width:100%;height:100%;background:#fff}#fancybox-content{width:0;height:0;padding:0;outline:none;position:relative;overflow:hidden;z-index:1102;border:0px solid #fff}#fancybox-hide-sel-frame{position:absolute;top:0;left:0;width:100%;height:100%;background:transparent;z-index:1101}#fancybox-close{position:absolute;top:-15px;right:-15px;width:30px;height:30px;background:transparent url("misc/fancybox/images/fancybox.png") -40px 0px;cursor:pointer;z-index:1103;display:none}#fancybox-error{color:#444;font:normal 12px/20px Arial;padding:14px;margin:0}#fancybox-img{width:100%;height:100%;padding:0;margin:0;border:none;outline:none;line-height:0;vertical-align:top}#fancybox-frame{width:100%;height:100%;border:none;display:block}#fancybox-left,#fancybox-right{position:absolute;bottom:0px;height:100%;width:35%;cursor:pointer;outline:none;background:transparent url("misc/fancybox/images/blank.gif");z-index:1102;display:none}#fancybox-left{left:0px}#fancybox-right{right:0px}#fancybox-left-ico,#fancybox-right-ico{position:absolute;top:50%;left:-9999px;width:30px;height:30px;margin-top:-15px;cursor:pointer;z-index:1102;display:block}#fancybox-left-ico{background-image:url("misc/fancybox/images/fancybox.png");background-position:-40px -30px}#fancybox-right-ico{background-image:url("misc/fancybox/images/fancybox.png");background-position:-40px -60px}#fancybox-left:hover,#fancybox-right:hover{visibility:visible}#fancybox-left:hover span{left:20px}#fancybox-right:hover span{left:auto;right:20px}.fancybox-bg{position:absolute;padding:0;margin:0;border:0;width:20px;height:20px;z-index:1001}#fancybox-bg-n{top:-20px;left:0;width:100%;background-image:url("misc/fancybox/images/fancybox-x.png")}#fancybox-bg-ne{top:-20px;right:-20px;background-image:url("misc/fancybox/images/fancybox.png");background-position:-40px -162px}#fancybox-bg-e{top:0;right:-20px;height:100%;background-image:url("misc/fancybox/images/fancybox-y.png");background-position:-20px 0px}#fancybox-bg-se{bottom:-20px;right:-20px;background-image:url("misc/fancybox/images/fancybox.png");background-position:-40px -182px}#fancybox-bg-s{bottom:-20px;left:0;width:100%;background-image:url("misc/fancybox/images/fancybox-x.png");background-position:0px -20px}#fancybox-bg-sw{bottom:-20px;left:-20px;background-image:url("misc/fancybox/images/fancybox.png");background-position:-40px -142px}#fancybox-bg-w{top:0;left:-20px;height:100%;background-image:url("misc/fancybox/images/fancybox-y.png")}#fancybox-bg-nw{top:-20px;left:-20px;background-image:url("misc/fancybox/images/fancybox.png");background-position:-40px -122px}#fancybox-title{font-family:Helvetica;font-size:12px;z-index:1102}.fancybox-title-inside{padding-bottom:10px;text-align:center;color:#333;background:#fff;position:relative}.fancybox-title-outside{padding-top:10px;color:#fff}.fancybox-title-over{position:absolute;bottom:0;left:0;color:#FFF;text-align:left}#fancybox-title-over{padding:10px;background-image:url("misc/fancybox/images/fancy_title_over.png");display:block}.fancybox-title-float{position:absolute;left:0;bottom:-20px;height:32px}#fancybox-title-float-wrap{border:none;border-collapse:collapse;width:auto}#fancybox-title-float-wrap td{border:none;white-space:nowrap}#fancybox-title-float-left{padding:0 0 0 15px;background:url("misc/fancybox/images/fancybox.png") -40px -90px no-repeat}#fancybox-title-float-main{color:#FFF;line-height:29px;font-weight:bold;padding:0 0 3px 0;background:url("misc/fancybox/images/fancybox-x.png") 0px -40px}#fancybox-title-float-right{padding:0 0 0 15px;background:url("misc/fancybox/images/fancybox.png") -55px -90px no-repeat}
|
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* FancyBox - jQuery Plugin
|
|
3
|
+
* Simple and fancy lightbox alternative
|
|
4
|
+
*
|
|
5
|
+
* Examples and documentation at: http://fancybox.net
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) 2008 - 2010 Janis Skarnelis
|
|
8
|
+
* That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is greatly appreciated.
|
|
9
|
+
*
|
|
10
|
+
* Version: 1.3.4 (11/11/2010)
|
|
11
|
+
* Requires: jQuery v1.3+
|
|
12
|
+
*
|
|
13
|
+
* Dual licensed under the MIT and GPL licenses:
|
|
14
|
+
* http://www.opensource.org/licenses/mit-license.php
|
|
15
|
+
* http://www.gnu.org/licenses/gpl.html
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
#fancybox-loading {
|
|
19
|
+
position: fixed;
|
|
20
|
+
top: 50%;
|
|
21
|
+
left: 50%;
|
|
22
|
+
width: 40px;
|
|
23
|
+
height: 40px;
|
|
24
|
+
margin-top: -20px;
|
|
25
|
+
margin-left: -20px;
|
|
26
|
+
cursor: pointer;
|
|
27
|
+
overflow: hidden;
|
|
28
|
+
z-index: 1104;
|
|
29
|
+
display: none;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
#fancybox-loading div {
|
|
33
|
+
position: absolute;
|
|
34
|
+
top: 0;
|
|
35
|
+
left: 0;
|
|
36
|
+
width: 40px;
|
|
37
|
+
height: 480px;
|
|
38
|
+
background-image: url('misc/fancybox/images/fancybox.png');
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
#fancybox-overlay {
|
|
42
|
+
position: absolute;
|
|
43
|
+
top: 0;
|
|
44
|
+
left: 0;
|
|
45
|
+
width: 100%;
|
|
46
|
+
z-index: 1100;
|
|
47
|
+
display: none;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
#fancybox-tmp {
|
|
51
|
+
padding: 0;
|
|
52
|
+
margin: 0;
|
|
53
|
+
border: 0;
|
|
54
|
+
overflow: auto;
|
|
55
|
+
display: none;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
#fancybox-wrap {
|
|
59
|
+
position: absolute;
|
|
60
|
+
top: 0;
|
|
61
|
+
left: 0;
|
|
62
|
+
padding: 20px;
|
|
63
|
+
z-index: 1101;
|
|
64
|
+
outline: none;
|
|
65
|
+
display: none;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
#fancybox-outer {
|
|
69
|
+
position: relative;
|
|
70
|
+
width: 100%;
|
|
71
|
+
height: 100%;
|
|
72
|
+
background: #fff;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
#fancybox-content {
|
|
76
|
+
width: 0;
|
|
77
|
+
height: 0;
|
|
78
|
+
padding: 0;
|
|
79
|
+
outline: none;
|
|
80
|
+
position: relative;
|
|
81
|
+
overflow: hidden;
|
|
82
|
+
z-index: 1102;
|
|
83
|
+
border: 0px solid #fff;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
#fancybox-hide-sel-frame {
|
|
87
|
+
position: absolute;
|
|
88
|
+
top: 0;
|
|
89
|
+
left: 0;
|
|
90
|
+
width: 100%;
|
|
91
|
+
height: 100%;
|
|
92
|
+
background: transparent;
|
|
93
|
+
z-index: 1101;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
#fancybox-close {
|
|
97
|
+
position: absolute;
|
|
98
|
+
top: -15px;
|
|
99
|
+
right: -15px;
|
|
100
|
+
width: 30px;
|
|
101
|
+
height: 30px;
|
|
102
|
+
background: transparent url('misc/fancybox/images/fancybox.png') -40px 0px;
|
|
103
|
+
cursor: pointer;
|
|
104
|
+
z-index: 1103;
|
|
105
|
+
display: none;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
#fancybox-error {
|
|
109
|
+
color: #444;
|
|
110
|
+
font: normal 12px/20px Arial;
|
|
111
|
+
padding: 14px;
|
|
112
|
+
margin: 0;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
#fancybox-img {
|
|
116
|
+
width: 100%;
|
|
117
|
+
height: 100%;
|
|
118
|
+
padding: 0;
|
|
119
|
+
margin: 0;
|
|
120
|
+
border: none;
|
|
121
|
+
outline: none;
|
|
122
|
+
line-height: 0;
|
|
123
|
+
vertical-align: top;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
#fancybox-frame {
|
|
127
|
+
width: 100%;
|
|
128
|
+
height: 100%;
|
|
129
|
+
border: none;
|
|
130
|
+
display: block;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
#fancybox-left, #fancybox-right {
|
|
134
|
+
position: absolute;
|
|
135
|
+
bottom: 0px;
|
|
136
|
+
height: 100%;
|
|
137
|
+
width: 35%;
|
|
138
|
+
cursor: pointer;
|
|
139
|
+
outline: none;
|
|
140
|
+
background: transparent url('misc/fancybox/images/blank.gif');
|
|
141
|
+
z-index: 1102;
|
|
142
|
+
display: none;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
#fancybox-left {
|
|
146
|
+
left: 0px;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
#fancybox-right {
|
|
150
|
+
right: 0px;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
#fancybox-left-ico, #fancybox-right-ico {
|
|
154
|
+
position: absolute;
|
|
155
|
+
top: 50%;
|
|
156
|
+
left: -9999px;
|
|
157
|
+
width: 30px;
|
|
158
|
+
height: 30px;
|
|
159
|
+
margin-top: -15px;
|
|
160
|
+
cursor: pointer;
|
|
161
|
+
z-index: 1102;
|
|
162
|
+
display: block;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
#fancybox-left-ico {
|
|
166
|
+
background-image: url('misc/fancybox/images/fancybox.png');
|
|
167
|
+
background-position: -40px -30px;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
#fancybox-right-ico {
|
|
171
|
+
background-image: url('misc/fancybox/images/fancybox.png');
|
|
172
|
+
background-position: -40px -60px;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
#fancybox-left:hover, #fancybox-right:hover {
|
|
176
|
+
visibility: visible; /* IE6 */
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
#fancybox-left:hover span {
|
|
180
|
+
left: 20px;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
#fancybox-right:hover span {
|
|
184
|
+
left: auto;
|
|
185
|
+
right: 20px;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.fancybox-bg {
|
|
189
|
+
position: absolute;
|
|
190
|
+
padding: 0;
|
|
191
|
+
margin: 0;
|
|
192
|
+
border: 0;
|
|
193
|
+
width: 20px;
|
|
194
|
+
height: 20px;
|
|
195
|
+
z-index: 1001;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
#fancybox-bg-n {
|
|
199
|
+
top: -20px;
|
|
200
|
+
left: 0;
|
|
201
|
+
width: 100%;
|
|
202
|
+
background-image: url('misc/fancybox/images/fancybox-x.png');
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
#fancybox-bg-ne {
|
|
206
|
+
top: -20px;
|
|
207
|
+
right: -20px;
|
|
208
|
+
background-image: url('misc/fancybox/images/fancybox.png');
|
|
209
|
+
background-position: -40px -162px;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
#fancybox-bg-e {
|
|
213
|
+
top: 0;
|
|
214
|
+
right: -20px;
|
|
215
|
+
height: 100%;
|
|
216
|
+
background-image: url('misc/fancybox/images/fancybox-y.png');
|
|
217
|
+
background-position: -20px 0px;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
#fancybox-bg-se {
|
|
221
|
+
bottom: -20px;
|
|
222
|
+
right: -20px;
|
|
223
|
+
background-image: url('misc/fancybox/images/fancybox.png');
|
|
224
|
+
background-position: -40px -182px;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
#fancybox-bg-s {
|
|
228
|
+
bottom: -20px;
|
|
229
|
+
left: 0;
|
|
230
|
+
width: 100%;
|
|
231
|
+
background-image: url('misc/fancybox/images/fancybox-x.png');
|
|
232
|
+
background-position: 0px -20px;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
#fancybox-bg-sw {
|
|
236
|
+
bottom: -20px;
|
|
237
|
+
left: -20px;
|
|
238
|
+
background-image: url('misc/fancybox/images/fancybox.png');
|
|
239
|
+
background-position: -40px -142px;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
#fancybox-bg-w {
|
|
243
|
+
top: 0;
|
|
244
|
+
left: -20px;
|
|
245
|
+
height: 100%;
|
|
246
|
+
background-image: url('misc/fancybox/images/fancybox-y.png');
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
#fancybox-bg-nw {
|
|
250
|
+
top: -20px;
|
|
251
|
+
left: -20px;
|
|
252
|
+
background-image: url('misc/fancybox/images/fancybox.png');
|
|
253
|
+
background-position: -40px -122px;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
#fancybox-title {
|
|
257
|
+
font-family: Helvetica;
|
|
258
|
+
font-size: 12px;
|
|
259
|
+
z-index: 1102;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.fancybox-title-inside {
|
|
263
|
+
padding-bottom: 10px;
|
|
264
|
+
text-align: center;
|
|
265
|
+
color: #333;
|
|
266
|
+
background: #fff;
|
|
267
|
+
position: relative;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.fancybox-title-outside {
|
|
271
|
+
padding-top: 10px;
|
|
272
|
+
color: #fff;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.fancybox-title-over {
|
|
276
|
+
position: absolute;
|
|
277
|
+
bottom: 0;
|
|
278
|
+
left: 0;
|
|
279
|
+
color: #FFF;
|
|
280
|
+
text-align: left;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
#fancybox-title-over {
|
|
284
|
+
padding: 10px;
|
|
285
|
+
background-image: url('misc/fancybox/images/fancy_title_over.png');
|
|
286
|
+
display: block;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.fancybox-title-float {
|
|
290
|
+
position: absolute;
|
|
291
|
+
left: 0;
|
|
292
|
+
bottom: -20px;
|
|
293
|
+
height: 32px;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
#fancybox-title-float-wrap {
|
|
297
|
+
border: none;
|
|
298
|
+
border-collapse: collapse;
|
|
299
|
+
width: auto;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
#fancybox-title-float-wrap td {
|
|
303
|
+
border: none;
|
|
304
|
+
white-space: nowrap;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
#fancybox-title-float-left {
|
|
308
|
+
padding: 0 0 0 15px;
|
|
309
|
+
background: url('misc/fancybox/images/fancybox.png') -40px -90px no-repeat;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
#fancybox-title-float-main {
|
|
313
|
+
color: #FFF;
|
|
314
|
+
line-height: 29px;
|
|
315
|
+
font-weight: bold;
|
|
316
|
+
padding: 0 0 3px 0;
|
|
317
|
+
background: url('misc/fancybox/images/fancybox-x.png') 0px -40px;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
#fancybox-title-float-right {
|
|
321
|
+
padding: 0 0 0 15px;
|
|
322
|
+
background: url('misc/fancybox/images/fancybox.png') -55px -90px no-repeat;
|
|
323
|
+
}
|