survivalkit 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +2 -0
- data/lib/survivalkit.rb +4 -2
- data/stylesheets/survivalkit/mixins/_all.sass +0 -1
- data/templates/drupal/partials/05-grids/_grids-susy.sass +0 -1
- data/templates/drupal/style.sass +2 -0
- data/templates/project/partials/05-grids/_grids-susy.sass +0 -1
- data/templates/project/style.sass +2 -0
- metadata +44 -1166
- data/templates/drupal/sources/BigText/README.markdown +0 -128
- data/templates/drupal/sources/BigText/artifacts/output.html +0 -32
- data/templates/drupal/sources/BigText/bigtext.js +0 -242
- data/templates/drupal/sources/BigText/demo/bigtextWizard.css +0 -129
- data/templates/drupal/sources/BigText/demo/bigtextWizard.js +0 -373
- data/templates/drupal/sources/BigText/demo/css/flexbox.css +0 -105
- data/templates/drupal/sources/BigText/demo/css/images/button_bg.png +0 -0
- data/templates/drupal/sources/BigText/demo/css/images/datepicker.gif +0 -0
- data/templates/drupal/sources/BigText/demo/css/images/icon_sprite.png +0 -0
- data/templates/drupal/sources/BigText/demo/css/images/progress_bar.gif +0 -0
- data/templates/drupal/sources/BigText/demo/css/images/slider_h_bg.gif +0 -0
- data/templates/drupal/sources/BigText/demo/css/images/slider_handles.png +0 -0
- data/templates/drupal/sources/BigText/demo/css/images/slider_v_bg.gif +0 -0
- data/templates/drupal/sources/BigText/demo/css/images/the_gradient.gif +0 -0
- data/templates/drupal/sources/BigText/demo/css/images/ui-bg_flat_10_000000_40x100.png +0 -0
- data/templates/drupal/sources/BigText/demo/css/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
- data/templates/drupal/sources/BigText/demo/css/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
- data/templates/drupal/sources/BigText/demo/css/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/templates/drupal/sources/BigText/demo/css/images/ui-icons_222222_256x240.png +0 -0
- data/templates/drupal/sources/BigText/demo/css/images/ui-icons_228ef1_256x240.png +0 -0
- data/templates/drupal/sources/BigText/demo/css/images/ui-icons_ffffff_256x240.png +0 -0
- data/templates/drupal/sources/BigText/demo/css/jquery-ui-1.8rc3.custom.css +0 -519
- data/templates/drupal/sources/BigText/demo/css/league-gothic/League_Gothic-webfont.eot +0 -0
- data/templates/drupal/sources/BigText/demo/css/league-gothic/League_Gothic-webfont.svg +0 -223
- data/templates/drupal/sources/BigText/demo/css/league-gothic/League_Gothic-webfont.ttf +0 -0
- data/templates/drupal/sources/BigText/demo/css/league-gothic/League_Gothic-webfont.woff +0 -0
- data/templates/drupal/sources/BigText/demo/css/league-gothic/stylesheet.css +0 -12
- data/templates/drupal/sources/BigText/demo/index.html +0 -95
- data/templates/drupal/sources/BigText/demo/js/jquery.ba-throttle-debounce.js +0 -252
- data/templates/drupal/sources/BigText/demo/js/jquery.ba-throttle-debounce.min.js +0 -9
- data/templates/drupal/sources/BigText/demo/js/jquery.smartresize.js +0 -41
- data/templates/drupal/sources/BigText/demo/js/modernizr-1.6.js +0 -892
- data/templates/drupal/sources/BigText/demo/js/modernizr-1.6.min.js +0 -30
- data/templates/drupal/sources/BigText/demo/resizeDemoSmartResize.html +0 -37
- data/templates/drupal/sources/BigText/demo/resizeDemoThrottle.html +0 -38
- data/templates/drupal/sources/BigText/demo/simpleDemo.html +0 -42
- data/templates/drupal/sources/BigText/demo/simpleDemoDiv.html +0 -26
- data/templates/drupal/sources/BigText/test.bat +0 -4
- data/templates/drupal/sources/BigText/test.sh +0 -5
- data/templates/drupal/sources/BigText/test/bigtext.conf +0 -6
- data/templates/drupal/sources/BigText/test/bigtextTest.js +0 -192
- data/templates/drupal/sources/BigText/test/lib/JsTestDriver-1.2.2-custom.jar +0 -0
- data/templates/drupal/sources/BigText/test/lib/jquery-1.4.2.js +0 -6240
- data/templates/drupal/sources/BigText/test/lib/launch-safari.sh +0 -4
- data/templates/drupal/sources/Dynamic-Carousel/demo.html +0 -92
- data/templates/drupal/sources/Dynamic-Carousel/plugin.js +0 -191
- data/templates/drupal/sources/Dynamic-Carousel/readme.md +0 -10
- data/templates/drupal/sources/FitVids/README.md +0 -49
- data/templates/drupal/sources/FitVids/jquery.fitvids.js +0 -77
- data/templates/drupal/sources/FitVids/tests.html +0 -66
- data/templates/drupal/sources/Geared-Scrolling/README.md +0 -31
- data/templates/drupal/sources/Geared-Scrolling/css/specific.css +0 -88
- data/templates/drupal/sources/Geared-Scrolling/images/col1.png +0 -0
- data/templates/drupal/sources/Geared-Scrolling/images/col2.png +0 -0
- data/templates/drupal/sources/Geared-Scrolling/images/col3.png +0 -0
- data/templates/drupal/sources/Geared-Scrolling/images/header.png +0 -0
- data/templates/drupal/sources/Geared-Scrolling/index.html +0 -32
- data/templates/drupal/sources/Geared-Scrolling/js/init.js +0 -11
- data/templates/drupal/sources/Geared-Scrolling/js/jquery.heyday.gearedscrolling.js +0 -283
- data/templates/drupal/sources/Lettering.js/README.md +0 -58
- data/templates/drupal/sources/Lettering.js/examples/index.html +0 -135
- data/templates/drupal/sources/Lettering.js/examples/style.css +0 -171
- data/templates/drupal/sources/Lettering.js/jquery.lettering.js +0 -66
- data/templates/drupal/sources/PaintbrushJS/common.js +0 -245
- data/templates/drupal/sources/PaintbrushJS/demo/css/playground.css +0 -334
- data/templates/drupal/sources/PaintbrushJS/demo/images/500/165.jpg +0 -0
- data/templates/drupal/sources/PaintbrushJS/demo/images/500/bee.jpg +0 -0
- data/templates/drupal/sources/PaintbrushJS/demo/images/500/bird.jpg +0 -0
- data/templates/drupal/sources/PaintbrushJS/demo/images/500/helmets.jpg +0 -0
- data/templates/drupal/sources/PaintbrushJS/demo/images/500/jordan.jpg +0 -0
- data/templates/drupal/sources/PaintbrushJS/demo/images/500/leaves.jpg +0 -0
- data/templates/drupal/sources/PaintbrushJS/demo/images/500/lighthouse.jpg +0 -0
- data/templates/drupal/sources/PaintbrushJS/demo/images/500/louvre.jpg +0 -0
- data/templates/drupal/sources/PaintbrushJS/demo/images/500/pods.jpg +0 -0
- data/templates/drupal/sources/PaintbrushJS/demo/images/500/redbarn.jpg +0 -0
- data/templates/drupal/sources/PaintbrushJS/demo/images/500/road.jpg +0 -0
- data/templates/drupal/sources/PaintbrushJS/demo/images/500/sign.jpg +0 -0
- data/templates/drupal/sources/PaintbrushJS/demo/images/500/staples.jpg +0 -0
- data/templates/drupal/sources/PaintbrushJS/demo/images/500/stones.jpg +0 -0
- data/templates/drupal/sources/PaintbrushJS/demo/images/500/tear.jpg +0 -0
- data/templates/drupal/sources/PaintbrushJS/demo/images/500/window.jpg +0 -0
- data/templates/drupal/sources/PaintbrushJS/demo/images/bg.png +0 -0
- data/templates/drupal/sources/PaintbrushJS/demo/images/site/bg-highlight.png +0 -0
- data/templates/drupal/sources/PaintbrushJS/demo/images/site/bg.jpg +0 -0
- data/templates/drupal/sources/PaintbrushJS/demo/images/site/byline.png +0 -0
- data/templates/drupal/sources/PaintbrushJS/demo/images/site/current.png +0 -0
- data/templates/drupal/sources/PaintbrushJS/demo/images/site/divider.png +0 -0
- data/templates/drupal/sources/PaintbrushJS/demo/images/site/forkme.png +0 -0
- data/templates/drupal/sources/PaintbrushJS/demo/images/site/heading.png +0 -0
- data/templates/drupal/sources/PaintbrushJS/demo/index.html +0 -171
- data/templates/drupal/sources/PaintbrushJS/demo/script/common.js +0 -245
- data/templates/drupal/sources/PaintbrushJS/demo/script/paintbrush.js +0 -607
- data/templates/drupal/sources/PaintbrushJS/demo/script/playground.js +0 -357
- data/templates/drupal/sources/PaintbrushJS/demo/script/timing.js +0 -23
- data/templates/drupal/sources/PaintbrushJS/demo/usage.html +0 -183
- data/templates/drupal/sources/PaintbrushJS/paintbrush.js +0 -595
- data/templates/drupal/sources/Respond/README.md +0 -76
- data/templates/drupal/sources/Respond/respond.min.js +0 -2
- data/templates/drupal/sources/Respond/respond.src.js +0 -286
- data/templates/drupal/sources/Respond/test/test.css +0 -61
- data/templates/drupal/sources/Respond/test/test.html +0 -20
- data/templates/drupal/sources/Respond/test/test2.css +0 -8
- data/templates/drupal/sources/Respond/test/unit/index.html +0 -28
- data/templates/drupal/sources/Respond/test/unit/test.css +0 -56
- data/templates/drupal/sources/Respond/test/unit/test2.css +0 -5
- data/templates/drupal/sources/Respond/test/unit/tests.js +0 -97
- data/templates/drupal/sources/Sticky-Footer-jQuery-Plugin/README.md +0 -27
- data/templates/drupal/sources/Sticky-Footer-jQuery-Plugin/jquery.heyday.stickyfooter.js +0 -154
- data/templates/drupal/sources/deorphan/README.md +0 -49
- data/templates/drupal/sources/deorphan/jquery.deorphan.js +0 -51
- data/templates/drupal/sources/deorphan/jquery.deorphan.min.js +0 -1
- data/templates/drupal/sources/flexie/README.md +0 -142
- data/templates/drupal/sources/flexie/demo/css/box-flex.css +0 -30
- data/templates/drupal/sources/flexie/demo/index.html +0 -108
- data/templates/drupal/sources/flexie/dist/flexie.min.js +0 -33
- data/templates/drupal/sources/flexie/src/flexie.js +0 -1872
- data/templates/drupal/sources/flexie/test/css/demo.css +0 -34
- data/templates/drupal/sources/flexie/test/css/test.css +0 -141
- data/templates/drupal/sources/flexie/test/index.html +0 -54
- data/templates/drupal/sources/flexie/vendor/google-compiler/compiler.jar +0 -0
- data/templates/drupal/sources/flexie/vendor/yuicompressor/yuicompressor-2.4.2.jar +0 -0
- data/templates/drupal/sources/flickrbomb/css/app.css +0 -41
- data/templates/drupal/sources/flickrbomb/css/flickrbomb.css +0 -38
- data/templates/drupal/sources/flickrbomb/css/global.css +0 -0
- data/templates/drupal/sources/flickrbomb/demo.html +0 -169
- data/templates/drupal/sources/flickrbomb/images/bg-clouds.jpg +0 -0
- data/templates/drupal/sources/flickrbomb/images/bg-ground.jpg +0 -0
- data/templates/drupal/sources/flickrbomb/images/bomb.png +0 -0
- data/templates/drupal/sources/flickrbomb/images/bomber.jpg +0 -0
- data/templates/drupal/sources/flickrbomb/images/old.gif +0 -0
- data/templates/drupal/sources/flickrbomb/images/setupIcon.png +0 -0
- data/templates/drupal/sources/flickrbomb/js/app.js +0 -28
- data/templates/drupal/sources/flickrbomb/js/backbone-localstorage.js +0 -94
- data/templates/drupal/sources/flickrbomb/js/backbone.js +0 -1011
- data/templates/drupal/sources/flickrbomb/js/flickrbomb-demo.js +0 -310
- data/templates/drupal/sources/flickrbomb/js/flickrbomb.js +0 -307
- data/templates/drupal/sources/flickrbomb/js/underscore.js +0 -713
- data/templates/drupal/sources/formalize/README.txt +0 -23
- data/templates/drupal/sources/formalize/assets/css/_formalize.sass +0 -274
- data/templates/drupal/sources/formalize/assets/css/demo.css +0 -47
- data/templates/drupal/sources/formalize/assets/css/formalize.css +0 -311
- data/templates/drupal/sources/formalize/assets/css/reset.css +0 -171
- data/templates/drupal/sources/formalize/assets/css/text.css +0 -81
- data/templates/drupal/sources/formalize/assets/images/button.png +0 -0
- data/templates/drupal/sources/formalize/assets/images/select_arrow.gif +0 -0
- data/templates/drupal/sources/formalize/assets/js/dojo.formalize.js +0 -174
- data/templates/drupal/sources/formalize/assets/js/dojo.formalize.min.js +0 -1
- data/templates/drupal/sources/formalize/assets/js/extjs.formalize.js +0 -168
- data/templates/drupal/sources/formalize/assets/js/extjs.formalize.min.js +0 -1
- data/templates/drupal/sources/formalize/assets/js/jquery.formalize.js +0 -158
- data/templates/drupal/sources/formalize/assets/js/jquery.formalize.min.js +0 -1
- data/templates/drupal/sources/formalize/assets/js/mootools.formalize.js +0 -163
- data/templates/drupal/sources/formalize/assets/js/mootools.formalize.min.js +0 -1
- data/templates/drupal/sources/formalize/assets/js/prototype.formalize.js +0 -171
- data/templates/drupal/sources/formalize/assets/js/prototype.formalize.min.js +0 -1
- data/templates/drupal/sources/formalize/assets/js/yui.formalize.js +0 -168
- data/templates/drupal/sources/formalize/assets/js/yui.formalize.min.js +0 -1
- data/templates/drupal/sources/formalize/demo.html +0 -144
- data/templates/drupal/sources/formalize/dojo_demo.html +0 -213
- data/templates/drupal/sources/formalize/dojo_disabled.html +0 -213
- data/templates/drupal/sources/formalize/dojo_errors.html +0 -213
- data/templates/drupal/sources/formalize/extjs_demo.html +0 -213
- data/templates/drupal/sources/formalize/extjs_disabled.html +0 -213
- data/templates/drupal/sources/formalize/extjs_errors.html +0 -213
- data/templates/drupal/sources/formalize/jquery_demo.html +0 -213
- data/templates/drupal/sources/formalize/jquery_disabled.html +0 -213
- data/templates/drupal/sources/formalize/jquery_errors.html +0 -213
- data/templates/drupal/sources/formalize/mootools_demo.html +0 -213
- data/templates/drupal/sources/formalize/mootools_disabled.html +0 -213
- data/templates/drupal/sources/formalize/mootools_errors.html +0 -213
- data/templates/drupal/sources/formalize/prototype_demo.html +0 -213
- data/templates/drupal/sources/formalize/prototype_disabled.html +0 -213
- data/templates/drupal/sources/formalize/prototype_errors.html +0 -213
- data/templates/drupal/sources/formalize/unstyled.html +0 -210
- data/templates/drupal/sources/formalize/yui_demo.html +0 -213
- data/templates/drupal/sources/formalize/yui_disabled.html +0 -213
- data/templates/drupal/sources/formalize/yui_errors.html +0 -213
- data/templates/drupal/sources/html5-boilerplate/404.html +0 -38
- data/templates/drupal/sources/html5-boilerplate/README.md +0 -228
- data/templates/drupal/sources/html5-boilerplate/apple-touch-icon-114x114-precomposed.png +0 -0
- data/templates/drupal/sources/html5-boilerplate/apple-touch-icon-57x57-precomposed.png +0 -0
- data/templates/drupal/sources/html5-boilerplate/apple-touch-icon-72x72-precomposed.png +0 -0
- data/templates/drupal/sources/html5-boilerplate/apple-touch-icon-precomposed.png +0 -0
- data/templates/drupal/sources/html5-boilerplate/apple-touch-icon.png +0 -0
- data/templates/drupal/sources/html5-boilerplate/build/build.xml +0 -821
- data/templates/drupal/sources/html5-boilerplate/build/config/default.properties +0 -80
- data/templates/drupal/sources/html5-boilerplate/build/config/project.properties +0 -56
- data/templates/drupal/sources/html5-boilerplate/build/createproject.sh +0 -50
- data/templates/drupal/sources/html5-boilerplate/build/runbuildscript.bat +0 -5
- data/templates/drupal/sources/html5-boilerplate/build/tools/ant-contrib-1.0b3.jar +0 -0
- data/templates/drupal/sources/html5-boilerplate/build/tools/htmlcompressor-1.1.jar +0 -0
- data/templates/drupal/sources/html5-boilerplate/build/tools/jpegtran.exe +0 -0
- data/templates/drupal/sources/html5-boilerplate/build/tools/optipng-0.6.4-exe/LICENSE.txt +0 -21
- data/templates/drupal/sources/html5-boilerplate/build/tools/optipng-0.6.4-exe/optipng.exe +0 -0
- data/templates/drupal/sources/html5-boilerplate/build/tools/yuicompressor-2.4.5.jar +0 -0
- data/templates/drupal/sources/html5-boilerplate/crossdomain.xml +0 -25
- data/templates/drupal/sources/html5-boilerplate/css/handheld.css +0 -8
- data/templates/drupal/sources/html5-boilerplate/css/style.css +0 -263
- data/templates/drupal/sources/html5-boilerplate/demo/elements.html +0 -531
- data/templates/drupal/sources/html5-boilerplate/demo/hack.css +0 -85
- data/templates/drupal/sources/html5-boilerplate/demo/hack2.css +0 -41
- data/templates/drupal/sources/html5-boilerplate/demo/internet_explorer.png +0 -0
- data/templates/drupal/sources/html5-boilerplate/demo/test_tubes.png +0 -0
- data/templates/drupal/sources/html5-boilerplate/demo/tests.html +0 -313
- data/templates/drupal/sources/html5-boilerplate/favicon.ico +0 -0
- data/templates/drupal/sources/html5-boilerplate/humans.txt +0 -43
- data/templates/drupal/sources/html5-boilerplate/index.html +0 -80
- data/templates/drupal/sources/html5-boilerplate/js/libs/dd_belatedpng.js +0 -13
- data/templates/drupal/sources/html5-boilerplate/js/libs/jquery-1.5.2.js +0 -8374
- data/templates/drupal/sources/html5-boilerplate/js/libs/jquery-1.5.2.min.js +0 -16
- data/templates/drupal/sources/html5-boilerplate/js/libs/modernizr-1.7.min.js +0 -2
- data/templates/drupal/sources/html5-boilerplate/js/plugins.js +0 -16
- data/templates/drupal/sources/html5-boilerplate/js/script.js +0 -26
- data/templates/drupal/sources/html5-boilerplate/robots.txt +0 -5
- data/templates/drupal/sources/html5-boilerplate/test/index.html +0 -31
- data/templates/drupal/sources/html5-boilerplate/test/qunit/qunit.css +0 -148
- data/templates/drupal/sources/html5-boilerplate/test/qunit/qunit.js +0 -1265
- data/templates/drupal/sources/html5-boilerplate/test/tests.js +0 -27
- data/templates/drupal/sources/iOS-Orientationchange-Fix/README.md +0 -17
- data/templates/drupal/sources/iOS-Orientationchange-Fix/demo.html +0 -43
- data/templates/drupal/sources/iOS-Orientationchange-Fix/ios-orientationchange-fix.js +0 -55
- data/templates/drupal/sources/iSwipe-jQuery-Plugin/README.md +0 -26
- data/templates/drupal/sources/iSwipe-jQuery-Plugin/jquery.heyday.iswipe.js +0 -126
- data/templates/drupal/sources/infinite-scroll/ajax-loader.gif +0 -0
- data/templates/drupal/sources/infinite-scroll/jquery.infinitescroll.js +0 -425
- data/templates/drupal/sources/infinite-scroll/jquery.infinitescroll.min.js +0 -8
- data/templates/drupal/sources/infinite-scroll/site/assets/anivers_regular.otf +0 -0
- data/templates/drupal/sources/infinite-scroll/site/assets/buttons.psd +0 -0
- data/templates/drupal/sources/infinite-scroll/site/assets/logo.psd +0 -0
- data/templates/drupal/sources/infinite-scroll/site/assets/mobius-strip2.ai +3 -2278
- data/templates/drupal/sources/infinite-scroll/site/assets/pattern.psd +0 -0
- data/templates/drupal/sources/infinite-scroll/site/assets/selector spots.psd +0 -0
- data/templates/drupal/sources/infinite-scroll/site/assets/sites.psd +0 -0
- data/templates/drupal/sources/infinite-scroll/site/buttons.png +0 -0
- data/templates/drupal/sources/infinite-scroll/site/infinite-scroll-pattern.gif +0 -0
- data/templates/drupal/sources/infinite-scroll/site/logo.jpg +0 -0
- data/templates/drupal/sources/infinite-scroll/site/screens.jpg +0 -0
- data/templates/drupal/sources/infinite-scroll/site/selectors.jpg +0 -0
- data/templates/drupal/sources/infinite-scroll/test/test-loadingmsg.html +0 -121
- data/templates/drupal/sources/infinite-scroll/test/test.html +0 -120
- data/templates/drupal/sources/infinite-scroll/test/test2.html +0 -70
- data/templates/drupal/sources/infinite-scroll/test/test3.html +0 -68
- data/templates/drupal/sources/infinite-scroll/test/trigger.html +0 -140
- data/templates/drupal/sources/infinite-scroll/test/trigger2.html +0 -80
- data/templates/drupal/sources/infinite-scroll/test/trigger3.html +0 -80
- data/templates/drupal/sources/infinite-scroll/wp_infinite_scroll.php +0 -454
- data/templates/drupal/sources/jQuery-widowFix/index.html +0 -159
- data/templates/drupal/sources/jQuery-widowFix/js/jquery-1.4.3.min.js +0 -166
- data/templates/drupal/sources/jQuery-widowFix/js/jquery.widowFix-1.3.2.js +0 -135
- data/templates/drupal/sources/jQuery-widowFix/js/jquery.widowFix-1.3.2.min.js +0 -10
- data/templates/drupal/sources/jQuery-widowFix/sample.html +0 -84
- data/templates/drupal/sources/jquery-lightbox/LICENSE.txt +0 -30
- data/templates/drupal/sources/jquery-lightbox/README.markdown +0 -8
- data/templates/drupal/sources/jquery-lightbox/css/lightbox.css +0 -129
- data/templates/drupal/sources/jquery-lightbox/images/blank.gif +0 -0
- data/templates/drupal/sources/jquery-lightbox/images/close.gif +0 -0
- data/templates/drupal/sources/jquery-lightbox/images/closelabel.gif +0 -0
- data/templates/drupal/sources/jquery-lightbox/images/image-0.jpg +0 -0
- data/templates/drupal/sources/jquery-lightbox/images/image-1.jpg +0 -0
- data/templates/drupal/sources/jquery-lightbox/images/image-2.jpg +0 -0
- data/templates/drupal/sources/jquery-lightbox/images/image-3.jpg +0 -0
- data/templates/drupal/sources/jquery-lightbox/images/loading.gif +0 -0
- data/templates/drupal/sources/jquery-lightbox/images/next.gif +0 -0
- data/templates/drupal/sources/jquery-lightbox/images/nextlabel.gif +0 -0
- data/templates/drupal/sources/jquery-lightbox/images/prev.gif +0 -0
- data/templates/drupal/sources/jquery-lightbox/images/prevlabel.gif +0 -0
- data/templates/drupal/sources/jquery-lightbox/images/thumb-0.jpg +0 -0
- data/templates/drupal/sources/jquery-lightbox/images/thumb-1.jpg +0 -0
- data/templates/drupal/sources/jquery-lightbox/images/thumb-2.jpg +0 -0
- data/templates/drupal/sources/jquery-lightbox/images/thumb-3.jpg +0 -0
- data/templates/drupal/sources/jquery-lightbox/index.html +0 -102
- data/templates/drupal/sources/jquery-lightbox/jquery.lightbox.js +0 -515
- data/templates/drupal/sources/jquery-ui/AUTHORS.txt +0 -30
- data/templates/drupal/sources/jquery-ui/GPL-LICENSE.txt +0 -278
- data/templates/drupal/sources/jquery-ui/MIT-LICENSE.txt +0 -25
- data/templates/drupal/sources/jquery-ui/README.md +0 -9
- data/templates/drupal/sources/jquery-ui/build/build.xml +0 -392
- data/templates/drupal/sources/jquery-ui/build/build/ant-contrib-0.6.jar +0 -0
- data/templates/drupal/sources/jquery-ui/build/build/google-compiler-20110320.jar +0 -0
- data/templates/drupal/sources/jquery-ui/build/build/style.xsl +0 -211
- data/templates/drupal/sources/jquery-ui/build/build/yuicompressor-2.4.2.jar +0 -0
- data/templates/drupal/sources/jquery-ui/demos/accordion/collapsible.html +0 -57
- data/templates/drupal/sources/jquery-ui/demos/accordion/custom-icons.html +0 -69
- data/templates/drupal/sources/jquery-ui/demos/accordion/default.html +0 -85
- data/templates/drupal/sources/jquery-ui/demos/accordion/fillspace.html +0 -77
- data/templates/drupal/sources/jquery-ui/demos/accordion/hoverintent.html +0 -134
- data/templates/drupal/sources/jquery-ui/demos/accordion/index.html +0 -25
- data/templates/drupal/sources/jquery-ui/demos/accordion/mouseover.html +0 -57
- data/templates/drupal/sources/jquery-ui/demos/accordion/no-auto-height.html +0 -58
- data/templates/drupal/sources/jquery-ui/demos/accordion/sortable.html +0 -83
- data/templates/drupal/sources/jquery-ui/demos/addClass/default.html +0 -52
- data/templates/drupal/sources/jquery-ui/demos/addClass/index.html +0 -18
- data/templates/drupal/sources/jquery-ui/demos/animate/default.html +0 -61
- data/templates/drupal/sources/jquery-ui/demos/animate/index.html +0 -18
- data/templates/drupal/sources/jquery-ui/demos/autocomplete/categories.html +0 -72
- data/templates/drupal/sources/jquery-ui/demos/autocomplete/combobox.html +0 -195
- data/templates/drupal/sources/jquery-ui/demos/autocomplete/custom-data.html +0 -96
- data/templates/drupal/sources/jquery-ui/demos/autocomplete/default.html +0 -65
- data/templates/drupal/sources/jquery-ui/demos/autocomplete/folding.html +0 -63
- data/templates/drupal/sources/jquery-ui/demos/autocomplete/images/jquery_32x32.png +0 -0
- data/templates/drupal/sources/jquery-ui/demos/autocomplete/images/jqueryui_32x32.png +0 -0
- data/templates/drupal/sources/jquery-ui/demos/autocomplete/images/sizzlejs_32x32.png +0 -0
- data/templates/drupal/sources/jquery-ui/demos/autocomplete/images/transparent_1x1.png +0 -0
- data/templates/drupal/sources/jquery-ui/demos/autocomplete/images/ui-anim_basic_16x16.gif +0 -0
- data/templates/drupal/sources/jquery-ui/demos/autocomplete/index.html +0 -27
- data/templates/drupal/sources/jquery-ui/demos/autocomplete/london.xml +0 -114
- data/templates/drupal/sources/jquery-ui/demos/autocomplete/maxheight.html +0 -79
- data/templates/drupal/sources/jquery-ui/demos/autocomplete/multiple-remote.html +0 -85
- data/templates/drupal/sources/jquery-ui/demos/autocomplete/multiple.html +0 -100
- data/templates/drupal/sources/jquery-ui/demos/autocomplete/remote-jsonp.html +0 -87
- data/templates/drupal/sources/jquery-ui/demos/autocomplete/remote-with-cache.html +0 -60
- data/templates/drupal/sources/jquery-ui/demos/autocomplete/remote.html +0 -60
- data/templates/drupal/sources/jquery-ui/demos/autocomplete/search.php +0 -588
- data/templates/drupal/sources/jquery-ui/demos/autocomplete/xml.html +0 -73
- data/templates/drupal/sources/jquery-ui/demos/button/checkbox.html +0 -44
- data/templates/drupal/sources/jquery-ui/demos/button/default.html +0 -38
- data/templates/drupal/sources/jquery-ui/demos/button/icons.html +0 -56
- data/templates/drupal/sources/jquery-ui/demos/button/index.html +0 -23
- data/templates/drupal/sources/jquery-ui/demos/button/radio.html +0 -39
- data/templates/drupal/sources/jquery-ui/demos/button/splitbutton.html +0 -78
- data/templates/drupal/sources/jquery-ui/demos/button/toolbar.html +0 -120
- data/templates/drupal/sources/jquery-ui/demos/datepicker/alt-field.html +0 -36
- data/templates/drupal/sources/jquery-ui/demos/datepicker/animation.html +0 -58
- data/templates/drupal/sources/jquery-ui/demos/datepicker/buttonbar.html +0 -35
- data/templates/drupal/sources/jquery-ui/demos/datepicker/date-formats.html +0 -47
- data/templates/drupal/sources/jquery-ui/demos/datepicker/date-range.html +0 -49
- data/templates/drupal/sources/jquery-ui/demos/datepicker/default.html +0 -33
- data/templates/drupal/sources/jquery-ui/demos/datepicker/dropdown-month-year.html +0 -36
- data/templates/drupal/sources/jquery-ui/demos/datepicker/icon-trigger.html +0 -37
- data/templates/drupal/sources/jquery-ui/demos/datepicker/images/calendar.gif +0 -0
- data/templates/drupal/sources/jquery-ui/demos/datepicker/index.html +0 -31
- data/templates/drupal/sources/jquery-ui/demos/datepicker/inline.html +0 -33
- data/templates/drupal/sources/jquery-ui/demos/datepicker/localization.html +0 -162
- data/templates/drupal/sources/jquery-ui/demos/datepicker/min-max.html +0 -33
- data/templates/drupal/sources/jquery-ui/demos/datepicker/multiple-calendars.html +0 -36
- data/templates/drupal/sources/jquery-ui/demos/datepicker/other-months.html +0 -37
- data/templates/drupal/sources/jquery-ui/demos/datepicker/show-week.html +0 -39
- data/templates/drupal/sources/jquery-ui/demos/demos.css +0 -334
- data/templates/drupal/sources/jquery-ui/demos/dialog/animated.html +0 -56
- data/templates/drupal/sources/jquery-ui/demos/dialog/default.html +0 -54
- data/templates/drupal/sources/jquery-ui/demos/dialog/index.html +0 -23
- data/templates/drupal/sources/jquery-ui/demos/dialog/modal-confirmation.html +0 -69
- data/templates/drupal/sources/jquery-ui/demos/dialog/modal-form.html +0 -167
- data/templates/drupal/sources/jquery-ui/demos/dialog/modal-message.html +0 -71
- data/templates/drupal/sources/jquery-ui/demos/dialog/modal.html +0 -60
- data/templates/drupal/sources/jquery-ui/demos/draggable/constrain-movement.html +0 -69
- data/templates/drupal/sources/jquery-ui/demos/draggable/cursor-style.html +0 -49
- data/templates/drupal/sources/jquery-ui/demos/draggable/default.html +0 -39
- data/templates/drupal/sources/jquery-ui/demos/draggable/delay-start.html +0 -45
- data/templates/drupal/sources/jquery-ui/demos/draggable/events.html +0 -77
- data/templates/drupal/sources/jquery-ui/demos/draggable/handle.html +0 -50
- data/templates/drupal/sources/jquery-ui/demos/draggable/index.html +0 -28
- data/templates/drupal/sources/jquery-ui/demos/draggable/revert.html +0 -44
- data/templates/drupal/sources/jquery-ui/demos/draggable/scroll.html +0 -51
- data/templates/drupal/sources/jquery-ui/demos/draggable/snap-to.html +0 -68
- data/templates/drupal/sources/jquery-ui/demos/draggable/sortable.html +0 -57
- data/templates/drupal/sources/jquery-ui/demos/draggable/visual-feedback.html +0 -77
- data/templates/drupal/sources/jquery-ui/demos/droppable/accepted-elements.html +0 -60
- data/templates/drupal/sources/jquery-ui/demos/droppable/default.html +0 -53
- data/templates/drupal/sources/jquery-ui/demos/droppable/images/high_tatras.jpg +0 -0
- data/templates/drupal/sources/jquery-ui/demos/droppable/images/high_tatras2.jpg +0 -0
- data/templates/drupal/sources/jquery-ui/demos/droppable/images/high_tatras2_min.jpg +0 -0
- data/templates/drupal/sources/jquery-ui/demos/droppable/images/high_tatras3.jpg +0 -0
- data/templates/drupal/sources/jquery-ui/demos/droppable/images/high_tatras3_min.jpg +0 -0
- data/templates/drupal/sources/jquery-ui/demos/droppable/images/high_tatras4.jpg +0 -0
- data/templates/drupal/sources/jquery-ui/demos/droppable/images/high_tatras4_min.jpg +0 -0
- data/templates/drupal/sources/jquery-ui/demos/droppable/images/high_tatras_min.jpg +0 -0
- data/templates/drupal/sources/jquery-ui/demos/droppable/index.html +0 -24
- data/templates/drupal/sources/jquery-ui/demos/droppable/photo-manager.html +0 -184
- data/templates/drupal/sources/jquery-ui/demos/droppable/propagation.html +0 -80
- data/templates/drupal/sources/jquery-ui/demos/droppable/revert.html +0 -61
- data/templates/drupal/sources/jquery-ui/demos/droppable/shopping-cart.html +0 -101
- data/templates/drupal/sources/jquery-ui/demos/droppable/visual-feedback.html +0 -78
- data/templates/drupal/sources/jquery-ui/demos/effect/default.html +0 -109
- data/templates/drupal/sources/jquery-ui/demos/effect/easing.html +0 -108
- data/templates/drupal/sources/jquery-ui/demos/effect/index.html +0 -19
- data/templates/drupal/sources/jquery-ui/demos/hide/default.html +0 -102
- data/templates/drupal/sources/jquery-ui/demos/hide/index.html +0 -18
- data/templates/drupal/sources/jquery-ui/demos/images/calendar.gif +0 -0
- data/templates/drupal/sources/jquery-ui/demos/images/demo-config-on-tile.gif +0 -0
- data/templates/drupal/sources/jquery-ui/demos/images/demo-config-on.gif +0 -0
- data/templates/drupal/sources/jquery-ui/demos/images/demo-spindown-closed.gif +0 -0
- data/templates/drupal/sources/jquery-ui/demos/images/demo-spindown-open.gif +0 -0
- data/templates/drupal/sources/jquery-ui/demos/images/icon-docs-info.gif +0 -0
- data/templates/drupal/sources/jquery-ui/demos/images/pbar-ani.gif +0 -0
- data/templates/drupal/sources/jquery-ui/demos/index.html +0 -329
- data/templates/drupal/sources/jquery-ui/demos/menu/contextmenu.html +0 -81
- data/templates/drupal/sources/jquery-ui/demos/menu/default.html +0 -54
- data/templates/drupal/sources/jquery-ui/demos/menu/index.html +0 -17
- data/templates/drupal/sources/jquery-ui/demos/position/cycler.html +0 -120
- data/templates/drupal/sources/jquery-ui/demos/position/default.html +0 -153
- data/templates/drupal/sources/jquery-ui/demos/position/images/earth.jpg +0 -0
- data/templates/drupal/sources/jquery-ui/demos/position/images/flight.jpg +0 -0
- data/templates/drupal/sources/jquery-ui/demos/position/images/rocket.jpg +0 -0
- data/templates/drupal/sources/jquery-ui/demos/position/index.html +0 -19
- data/templates/drupal/sources/jquery-ui/demos/progressbar/animated.html +0 -44
- data/templates/drupal/sources/jquery-ui/demos/progressbar/default.html +0 -35
- data/templates/drupal/sources/jquery-ui/demos/progressbar/images/pbar-ani.gif +0 -0
- data/templates/drupal/sources/jquery-ui/demos/progressbar/index.html +0 -20
- data/templates/drupal/sources/jquery-ui/demos/progressbar/resize.html +0 -40
- data/templates/drupal/sources/jquery-ui/demos/removeClass/default.html +0 -52
- data/templates/drupal/sources/jquery-ui/demos/removeClass/index.html +0 -18
- data/templates/drupal/sources/jquery-ui/demos/resizable/animate.html +0 -43
- data/templates/drupal/sources/jquery-ui/demos/resizable/aspect-ratio.html +0 -42
- data/templates/drupal/sources/jquery-ui/demos/resizable/constrain-area.html +0 -47
- data/templates/drupal/sources/jquery-ui/demos/resizable/default.html +0 -40
- data/templates/drupal/sources/jquery-ui/demos/resizable/delay-start.html +0 -52
- data/templates/drupal/sources/jquery-ui/demos/resizable/helper.html +0 -43
- data/templates/drupal/sources/jquery-ui/demos/resizable/index.html +0 -28
- data/templates/drupal/sources/jquery-ui/demos/resizable/max-min.html +0 -45
- data/templates/drupal/sources/jquery-ui/demos/resizable/snap-to-grid.html +0 -42
- data/templates/drupal/sources/jquery-ui/demos/resizable/synchronous-resize.html +0 -49
- data/templates/drupal/sources/jquery-ui/demos/resizable/textarea.html +0 -41
- data/templates/drupal/sources/jquery-ui/demos/resizable/visual-feedback.html +0 -43
- data/templates/drupal/sources/jquery-ui/demos/selectable/default.html +0 -50
- data/templates/drupal/sources/jquery-ui/demos/selectable/display-grid.html +0 -55
- data/templates/drupal/sources/jquery-ui/demos/selectable/index.html +0 -20
- data/templates/drupal/sources/jquery-ui/demos/selectable/serialize.html +0 -61
- data/templates/drupal/sources/jquery-ui/demos/show/default.html +0 -104
- data/templates/drupal/sources/jquery-ui/demos/show/index.html +0 -18
- data/templates/drupal/sources/jquery-ui/demos/slider/colorpicker.html +0 -95
- data/templates/drupal/sources/jquery-ui/demos/slider/default.html +0 -37
- data/templates/drupal/sources/jquery-ui/demos/slider/hotelrooms.html +0 -59
- data/templates/drupal/sources/jquery-ui/demos/slider/index.html +0 -29
- data/templates/drupal/sources/jquery-ui/demos/slider/multiple-vertical.html +0 -77
- data/templates/drupal/sources/jquery-ui/demos/slider/range-vertical.html +0 -51
- data/templates/drupal/sources/jquery-ui/demos/slider/range.html +0 -52
- data/templates/drupal/sources/jquery-ui/demos/slider/rangemax.html +0 -50
- data/templates/drupal/sources/jquery-ui/demos/slider/rangemin.html +0 -51
- data/templates/drupal/sources/jquery-ui/demos/slider/side-scroll.html +0 -140
- data/templates/drupal/sources/jquery-ui/demos/slider/slider-vertical.html +0 -52
- data/templates/drupal/sources/jquery-ui/demos/slider/steps.html +0 -51
- data/templates/drupal/sources/jquery-ui/demos/slider/tabs.html +0 -67
- data/templates/drupal/sources/jquery-ui/demos/sortable/connect-lists-through-tabs.html +0 -78
- data/templates/drupal/sources/jquery-ui/demos/sortable/connect-lists.html +0 -58
- data/templates/drupal/sources/jquery-ui/demos/sortable/default.html +0 -51
- data/templates/drupal/sources/jquery-ui/demos/sortable/delay-start.html +0 -67
- data/templates/drupal/sources/jquery-ui/demos/sortable/display-grid.html +0 -54
- data/templates/drupal/sources/jquery-ui/demos/sortable/empty-lists.html +0 -69
- data/templates/drupal/sources/jquery-ui/demos/sortable/index.html +0 -26
- data/templates/drupal/sources/jquery-ui/demos/sortable/items.html +0 -70
- data/templates/drupal/sources/jquery-ui/demos/sortable/placeholder.html +0 -56
- data/templates/drupal/sources/jquery-ui/demos/sortable/portlets.html +0 -96
- data/templates/drupal/sources/jquery-ui/demos/spinner/currency.html +0 -61
- data/templates/drupal/sources/jquery-ui/demos/spinner/decimal.html +0 -59
- data/templates/drupal/sources/jquery-ui/demos/spinner/default.html +0 -65
- data/templates/drupal/sources/jquery-ui/demos/spinner/index.html +0 -20
- data/templates/drupal/sources/jquery-ui/demos/spinner/latlong.html +0 -60
- data/templates/drupal/sources/jquery-ui/demos/spinner/overflow.html +0 -47
- data/templates/drupal/sources/jquery-ui/demos/spinner/time.html +0 -71
- data/templates/drupal/sources/jquery-ui/demos/switchClass/default.html +0 -47
- data/templates/drupal/sources/jquery-ui/demos/switchClass/index.html +0 -18
- data/templates/drupal/sources/jquery-ui/demos/tabs/ajax.html +0 -53
- data/templates/drupal/sources/jquery-ui/demos/tabs/ajax/content1.html +0 -4
- data/templates/drupal/sources/jquery-ui/demos/tabs/ajax/content2.html +0 -4
- data/templates/drupal/sources/jquery-ui/demos/tabs/ajax/content3-slow.php +0 -7
- data/templates/drupal/sources/jquery-ui/demos/tabs/ajax/content4-broken.php +0 -3
- data/templates/drupal/sources/jquery-ui/demos/tabs/bottom.html +0 -59
- data/templates/drupal/sources/jquery-ui/demos/tabs/collapsible.html +0 -55
- data/templates/drupal/sources/jquery-ui/demos/tabs/cookie.html +0 -57
- data/templates/drupal/sources/jquery-ui/demos/tabs/default.html +0 -49
- data/templates/drupal/sources/jquery-ui/demos/tabs/index.html +0 -25
- data/templates/drupal/sources/jquery-ui/demos/tabs/manipulation.html +0 -124
- data/templates/drupal/sources/jquery-ui/demos/tabs/mouseover.html +0 -53
- data/templates/drupal/sources/jquery-ui/demos/tabs/sortable.html +0 -58
- data/templates/drupal/sources/jquery-ui/demos/tabs/vertical.html +0 -61
- data/templates/drupal/sources/jquery-ui/demos/toggle/default.html +0 -94
- data/templates/drupal/sources/jquery-ui/demos/toggle/index.html +0 -18
- data/templates/drupal/sources/jquery-ui/demos/toggleClass/default.html +0 -46
- data/templates/drupal/sources/jquery-ui/demos/toggleClass/index.html +0 -18
- data/templates/drupal/sources/jquery-ui/demos/tooltip/ajax/content1.html +0 -1
- data/templates/drupal/sources/jquery-ui/demos/tooltip/ajax/content2.html +0 -1
- data/templates/drupal/sources/jquery-ui/demos/tooltip/custom-animation.html +0 -58
- data/templates/drupal/sources/jquery-ui/demos/tooltip/default.html +0 -48
- data/templates/drupal/sources/jquery-ui/demos/tooltip/delegation-mixbag.html +0 -73
- data/templates/drupal/sources/jquery-ui/demos/tooltip/forms.html +0 -71
- data/templates/drupal/sources/jquery-ui/demos/tooltip/index.html +0 -22
- data/templates/drupal/sources/jquery-ui/demos/tooltip/tracking.html +0 -64
- data/templates/drupal/sources/jquery-ui/external/jquery.bgiframe-2.1.2.js +0 -39
- data/templates/drupal/sources/jquery-ui/external/jquery.cookie.js +0 -89
- data/templates/drupal/sources/jquery-ui/external/jquery.global.de-DE.js +0 -55
- data/templates/drupal/sources/jquery-ui/external/jquery.global.ja-JP.js +0 -74
- data/templates/drupal/sources/jquery-ui/external/jquery.global.js +0 -1341
- data/templates/drupal/sources/jquery-ui/external/jquery.metadata.js +0 -122
- data/templates/drupal/sources/jquery-ui/external/jquery.mousewheel-3.0.4.js +0 -78
- data/templates/drupal/sources/jquery-ui/external/qunit.css +0 -215
- data/templates/drupal/sources/jquery-ui/external/qunit.js +0 -1444
- data/templates/drupal/sources/jquery-ui/jquery-1.5.1.js +0 -8316
- data/templates/drupal/sources/jquery-ui/tests/index.html +0 -22
- data/templates/drupal/sources/jquery-ui/tests/jquery.simulate.js +0 -151
- data/templates/drupal/sources/jquery-ui/tests/static/button/default.html +0 -161
- data/templates/drupal/sources/jquery-ui/tests/static/datepicker/datepicker.html +0 -1367
- data/templates/drupal/sources/jquery-ui/tests/static/datepicker/default.html +0 -86
- data/templates/drupal/sources/jquery-ui/tests/static/icons.html +0 -246
- data/templates/drupal/sources/jquery-ui/tests/static/menu/all-menus-icons.html +0 -172
- data/templates/drupal/sources/jquery-ui/tests/static/menu/default.html +0 -39
- data/templates/drupal/sources/jquery-ui/tests/static/slider/default.html +0 -17
- data/templates/drupal/sources/jquery-ui/tests/static/slider/default_vertical.html +0 -17
- data/templates/drupal/sources/jquery-ui/tests/static/slider/slider_horizontal.html +0 -17
- data/templates/drupal/sources/jquery-ui/tests/static/slider/slider_horizontal_range.html +0 -17
- data/templates/drupal/sources/jquery-ui/tests/static/slider/slider_horizontal_range_max.html +0 -17
- data/templates/drupal/sources/jquery-ui/tests/static/slider/slider_horizontal_range_min.html +0 -17
- data/templates/drupal/sources/jquery-ui/tests/static/slider/slider_vertical.html +0 -17
- data/templates/drupal/sources/jquery-ui/tests/static/slider/slider_vertical_range.html +0 -17
- data/templates/drupal/sources/jquery-ui/tests/static/slider/slider_vertical_range_max.html +0 -17
- data/templates/drupal/sources/jquery-ui/tests/static/slider/slider_vertical_range_min.html +0 -17
- data/templates/drupal/sources/jquery-ui/tests/static/static.css +0 -1
- data/templates/drupal/sources/jquery-ui/tests/static/static.js +0 -9
- data/templates/drupal/sources/jquery-ui/tests/unit/accordion/accordion.html +0 -163
- data/templates/drupal/sources/jquery-ui/tests/unit/accordion/accordion_core.js +0 -53
- data/templates/drupal/sources/jquery-ui/tests/unit/accordion/accordion_defaults.js +0 -15
- data/templates/drupal/sources/jquery-ui/tests/unit/accordion/accordion_defaults_deprecated.js +0 -21
- data/templates/drupal/sources/jquery-ui/tests/unit/accordion/accordion_deprecated.html +0 -161
- data/templates/drupal/sources/jquery-ui/tests/unit/accordion/accordion_deprecated.js +0 -320
- data/templates/drupal/sources/jquery-ui/tests/unit/accordion/accordion_events.js +0 -122
- data/templates/drupal/sources/jquery-ui/tests/unit/accordion/accordion_methods.js +0 -37
- data/templates/drupal/sources/jquery-ui/tests/unit/accordion/accordion_options.js +0 -266
- data/templates/drupal/sources/jquery-ui/tests/unit/autocomplete/autocomplete.html +0 -46
- data/templates/drupal/sources/jquery-ui/tests/unit/autocomplete/autocomplete_core.js +0 -73
- data/templates/drupal/sources/jquery-ui/tests/unit/autocomplete/autocomplete_defaults.js +0 -19
- data/templates/drupal/sources/jquery-ui/tests/unit/autocomplete/autocomplete_events.js +0 -206
- data/templates/drupal/sources/jquery-ui/tests/unit/autocomplete/autocomplete_methods.js +0 -39
- data/templates/drupal/sources/jquery-ui/tests/unit/autocomplete/autocomplete_options.js +0 -247
- data/templates/drupal/sources/jquery-ui/tests/unit/autocomplete/remote_object_array_labels.txt +0 -1
- data/templates/drupal/sources/jquery-ui/tests/unit/autocomplete/remote_object_array_values.txt +0 -1
- data/templates/drupal/sources/jquery-ui/tests/unit/autocomplete/remote_string_array.txt +0 -1
- data/templates/drupal/sources/jquery-ui/tests/unit/button/button.html +0 -68
- data/templates/drupal/sources/jquery-ui/tests/unit/button/button_core.js +0 -70
- data/templates/drupal/sources/jquery-ui/tests/unit/button/button_defaults.js +0 -15
- data/templates/drupal/sources/jquery-ui/tests/unit/button/button_events.js +0 -8
- data/templates/drupal/sources/jquery-ui/tests/unit/button/button_methods.js +0 -19
- data/templates/drupal/sources/jquery-ui/tests/unit/button/button_options.js +0 -93
- data/templates/drupal/sources/jquery-ui/tests/unit/button/button_tickets.js +0 -45
- data/templates/drupal/sources/jquery-ui/tests/unit/core/core.html +0 -134
- data/templates/drupal/sources/jquery-ui/tests/unit/core/core.js +0 -157
- data/templates/drupal/sources/jquery-ui/tests/unit/core/selector.js +0 -253
- data/templates/drupal/sources/jquery-ui/tests/unit/datepicker/datepicker.html +0 -54
- data/templates/drupal/sources/jquery-ui/tests/unit/datepicker/datepicker_core.js +0 -441
- data/templates/drupal/sources/jquery-ui/tests/unit/datepicker/datepicker_defaults.js +0 -9
- data/templates/drupal/sources/jquery-ui/tests/unit/datepicker/datepicker_events.js +0 -117
- data/templates/drupal/sources/jquery-ui/tests/unit/datepicker/datepicker_methods.js +0 -118
- data/templates/drupal/sources/jquery-ui/tests/unit/datepicker/datepicker_options.js +0 -924
- data/templates/drupal/sources/jquery-ui/tests/unit/datepicker/datepicker_tickets.js +0 -27
- data/templates/drupal/sources/jquery-ui/tests/unit/dialog/dialog.html +0 -57
- data/templates/drupal/sources/jquery-ui/tests/unit/dialog/dialog_core.js +0 -138
- data/templates/drupal/sources/jquery-ui/tests/unit/dialog/dialog_defaults.js +0 -35
- data/templates/drupal/sources/jquery-ui/tests/unit/dialog/dialog_events.js +0 -254
- data/templates/drupal/sources/jquery-ui/tests/unit/dialog/dialog_methods.js +0 -127
- data/templates/drupal/sources/jquery-ui/tests/unit/dialog/dialog_options.js +0 -444
- data/templates/drupal/sources/jquery-ui/tests/unit/dialog/dialog_tickets.js +0 -116
- data/templates/drupal/sources/jquery-ui/tests/unit/draggable/draggable.html +0 -53
- data/templates/drupal/sources/jquery-ui/tests/unit/draggable/draggable_core.js +0 -67
- data/templates/drupal/sources/jquery-ui/tests/unit/draggable/draggable_defaults.js +0 -36
- data/templates/drupal/sources/jquery-ui/tests/unit/draggable/draggable_events.js +0 -81
- data/templates/drupal/sources/jquery-ui/tests/unit/draggable/draggable_methods.js +0 -99
- data/templates/drupal/sources/jquery-ui/tests/unit/draggable/draggable_options.js +0 -753
- data/templates/drupal/sources/jquery-ui/tests/unit/droppable/droppable.html +0 -53
- data/templates/drupal/sources/jquery-ui/tests/unit/droppable/droppable_core.js +0 -36
- data/templates/drupal/sources/jquery-ui/tests/unit/droppable/droppable_defaults.js +0 -16
- data/templates/drupal/sources/jquery-ui/tests/unit/droppable/droppable_events.js +0 -28
- data/templates/drupal/sources/jquery-ui/tests/unit/droppable/droppable_methods.js +0 -86
- data/templates/drupal/sources/jquery-ui/tests/unit/droppable/droppable_options.js +0 -68
- data/templates/drupal/sources/jquery-ui/tests/unit/images/jqueryui_32x32.png +0 -0
- data/templates/drupal/sources/jquery-ui/tests/unit/index.html +0 -64
- data/templates/drupal/sources/jquery-ui/tests/unit/menu/menu.html +0 -74
- data/templates/drupal/sources/jquery-ui/tests/unit/menu/menu_core.js +0 -38
- data/templates/drupal/sources/jquery-ui/tests/unit/menu/menu_defaults.js +0 -13
- data/templates/drupal/sources/jquery-ui/tests/unit/menu/menu_events.js +0 -24
- data/templates/drupal/sources/jquery-ui/tests/unit/menu/menu_methods.js +0 -15
- data/templates/drupal/sources/jquery-ui/tests/unit/menu/menu_options.js +0 -10
- data/templates/drupal/sources/jquery-ui/tests/unit/position/position.html +0 -62
- data/templates/drupal/sources/jquery-ui/tests/unit/position/position_core.js +0 -438
- data/templates/drupal/sources/jquery-ui/tests/unit/position/position_deprecated.html +0 -60
- data/templates/drupal/sources/jquery-ui/tests/unit/position/position_deprecated.js +0 -32
- data/templates/drupal/sources/jquery-ui/tests/unit/progressbar/progressbar.html +0 -41
- data/templates/drupal/sources/jquery-ui/tests/unit/progressbar/progressbar_core.js +0 -28
- data/templates/drupal/sources/jquery-ui/tests/unit/progressbar/progressbar_defaults.js +0 -11
- data/templates/drupal/sources/jquery-ui/tests/unit/progressbar/progressbar_events.js +0 -51
- data/templates/drupal/sources/jquery-ui/tests/unit/progressbar/progressbar_methods.js +0 -36
- data/templates/drupal/sources/jquery-ui/tests/unit/progressbar/progressbar_options.js +0 -59
- data/templates/drupal/sources/jquery-ui/tests/unit/resizable/images/test.jpg +0 -0
- data/templates/drupal/sources/jquery-ui/tests/unit/resizable/resizable.html +0 -53
- data/templates/drupal/sources/jquery-ui/tests/unit/resizable/resizable_core.js +0 -148
- data/templates/drupal/sources/jquery-ui/tests/unit/resizable/resizable_defaults.js +0 -28
- data/templates/drupal/sources/jquery-ui/tests/unit/resizable/resizable_events.js +0 -20
- data/templates/drupal/sources/jquery-ui/tests/unit/resizable/resizable_methods.js +0 -64
- data/templates/drupal/sources/jquery-ui/tests/unit/resizable/resizable_options.js +0 -190
- data/templates/drupal/sources/jquery-ui/tests/unit/selectable/selectable.html +0 -56
- data/templates/drupal/sources/jquery-ui/tests/unit/selectable/selectable_core.js +0 -16
- data/templates/drupal/sources/jquery-ui/tests/unit/selectable/selectable_defaults.js +0 -16
- data/templates/drupal/sources/jquery-ui/tests/unit/selectable/selectable_events.js +0 -32
- data/templates/drupal/sources/jquery-ui/tests/unit/selectable/selectable_methods.js +0 -93
- data/templates/drupal/sources/jquery-ui/tests/unit/selectable/selectable_options.js +0 -46
- data/templates/drupal/sources/jquery-ui/tests/unit/slider/slider.html +0 -55
- data/templates/drupal/sources/jquery-ui/tests/unit/slider/slider_core.js +0 -292
- data/templates/drupal/sources/jquery-ui/tests/unit/slider/slider_defaults.js +0 -20
- data/templates/drupal/sources/jquery-ui/tests/unit/slider/slider_events.js +0 -109
- data/templates/drupal/sources/jquery-ui/tests/unit/slider/slider_methods.js +0 -102
- data/templates/drupal/sources/jquery-ui/tests/unit/slider/slider_options.js +0 -146
- data/templates/drupal/sources/jquery-ui/tests/unit/sortable/sortable.html +0 -57
- data/templates/drupal/sources/jquery-ui/tests/unit/sortable/sortable_core.js +0 -9
- data/templates/drupal/sources/jquery-ui/tests/unit/sortable/sortable_defaults.js +0 -34
- data/templates/drupal/sources/jquery-ui/tests/unit/sortable/sortable_events.js +0 -147
- data/templates/drupal/sources/jquery-ui/tests/unit/sortable/sortable_methods.js +0 -108
- data/templates/drupal/sources/jquery-ui/tests/unit/sortable/sortable_options.js +0 -256
- data/templates/drupal/sources/jquery-ui/tests/unit/sortable/sortable_tickets.js +0 -83
- data/templates/drupal/sources/jquery-ui/tests/unit/spinner/spinner.html +0 -46
- data/templates/drupal/sources/jquery-ui/tests/unit/spinner/spinner_core.js +0 -171
- data/templates/drupal/sources/jquery-ui/tests/unit/spinner/spinner_defaults.js +0 -16
- data/templates/drupal/sources/jquery-ui/tests/unit/spinner/spinner_events.js +0 -64
- data/templates/drupal/sources/jquery-ui/tests/unit/spinner/spinner_methods.js +0 -155
- data/templates/drupal/sources/jquery-ui/tests/unit/spinner/spinner_options.js +0 -154
- data/templates/drupal/sources/jquery-ui/tests/unit/swarminject.js +0 -9
- data/templates/drupal/sources/jquery-ui/tests/unit/tabs/data/test.html +0 -1
- data/templates/drupal/sources/jquery-ui/tests/unit/tabs/spinner.gif +0 -0
- data/templates/drupal/sources/jquery-ui/tests/unit/tabs/tabs.html +0 -139
- data/templates/drupal/sources/jquery-ui/tests/unit/tabs/tabs_core.js +0 -50
- data/templates/drupal/sources/jquery-ui/tests/unit/tabs/tabs_defaults.js +0 -13
- data/templates/drupal/sources/jquery-ui/tests/unit/tabs/tabs_defaults_deprecated.js +0 -26
- data/templates/drupal/sources/jquery-ui/tests/unit/tabs/tabs_deprecated.html +0 -138
- data/templates/drupal/sources/jquery-ui/tests/unit/tabs/tabs_deprecated.js +0 -350
- data/templates/drupal/sources/jquery-ui/tests/unit/tabs/tabs_events.js +0 -198
- data/templates/drupal/sources/jquery-ui/tests/unit/tabs/tabs_methods.js +0 -165
- data/templates/drupal/sources/jquery-ui/tests/unit/tabs/tabs_options.js +0 -146
- data/templates/drupal/sources/jquery-ui/tests/unit/tabs/tabs_tickets.js +0 -99
- data/templates/drupal/sources/jquery-ui/tests/unit/testsuite.js +0 -101
- data/templates/drupal/sources/jquery-ui/tests/unit/tooltip/tooltip.html +0 -47
- data/templates/drupal/sources/jquery-ui/tests/unit/tooltip/tooltip_core.js +0 -11
- data/templates/drupal/sources/jquery-ui/tests/unit/tooltip/tooltip_defaults.js +0 -16
- data/templates/drupal/sources/jquery-ui/tests/unit/tooltip/tooltip_events.js +0 -54
- data/templates/drupal/sources/jquery-ui/tests/unit/tooltip/tooltip_methods.js +0 -30
- data/templates/drupal/sources/jquery-ui/tests/unit/tooltip/tooltip_options.js +0 -62
- data/templates/drupal/sources/jquery-ui/tests/unit/widget/widget.html +0 -40
- data/templates/drupal/sources/jquery-ui/tests/unit/widget/widget_core.js +0 -992
- data/templates/drupal/sources/jquery-ui/tests/visual/addClass/addClass_queue.html +0 -50
- data/templates/drupal/sources/jquery-ui/tests/visual/all.css +0 -84
- data/templates/drupal/sources/jquery-ui/tests/visual/all.html +0 -190
- data/templates/drupal/sources/jquery-ui/tests/visual/animate/animate_backgroundColor_hex.html +0 -44
- data/templates/drupal/sources/jquery-ui/tests/visual/animate/animate_backgroundColor_rgb.html +0 -35
- data/templates/drupal/sources/jquery-ui/tests/visual/animate/animate_color_hex.html +0 -44
- data/templates/drupal/sources/jquery-ui/tests/visual/animate/animate_color_rgb.html +0 -35
- data/templates/drupal/sources/jquery-ui/tests/visual/button/button.html +0 -140
- data/templates/drupal/sources/jquery-ui/tests/visual/button/button_disabled_true.html +0 -84
- data/templates/drupal/sources/jquery-ui/tests/visual/button/button_input_type_checkbox.html +0 -25
- data/templates/drupal/sources/jquery-ui/tests/visual/button/button_option_disabled_true.html +0 -84
- data/templates/drupal/sources/jquery-ui/tests/visual/button/button_performance.html +0 -555
- data/templates/drupal/sources/jquery-ui/tests/visual/button/button_ticket_5254.html +0 -55
- data/templates/drupal/sources/jquery-ui/tests/visual/button/button_ticket_5261.html +0 -42
- data/templates/drupal/sources/jquery-ui/tests/visual/button/button_ticket_5278.html +0 -58
- data/templates/drupal/sources/jquery-ui/tests/visual/compound/accordion_dialog.html +0 -202
- data/templates/drupal/sources/jquery-ui/tests/visual/compound/accordion_tabs.html +0 -86
- data/templates/drupal/sources/jquery-ui/tests/visual/compound/datepicker_dialog.html +0 -157
- data/templates/drupal/sources/jquery-ui/tests/visual/compound/draggable_accordion.html +0 -65
- data/templates/drupal/sources/jquery-ui/tests/visual/compound/draggable_accordion_accordion_tabs_draggable.html +0 -109
- data/templates/drupal/sources/jquery-ui/tests/visual/compound/sortable_accordion_sortable_tabs.html +0 -108
- data/templates/drupal/sources/jquery-ui/tests/visual/compound/tabs_tabs.html +0 -73
- data/templates/drupal/sources/jquery-ui/tests/visual/compound/tabs_tooltips.html +0 -37
- data/templates/drupal/sources/jquery-ui/tests/visual/compound/widgets_in_dialog.html +0 -229
- data/templates/drupal/sources/jquery-ui/tests/visual/datepicker/calendar.gif +0 -0
- data/templates/drupal/sources/jquery-ui/tests/visual/datepicker/datepicker.html +0 -23
- data/templates/drupal/sources/jquery-ui/tests/visual/datepicker/datepicker_multi_inline.html +0 -113
- data/templates/drupal/sources/jquery-ui/tests/visual/datepicker/datepicker_ticket_4071.html +0 -96
- data/templates/drupal/sources/jquery-ui/tests/visual/datepicker/datepicker_ticket_4240.html +0 -55
- data/templates/drupal/sources/jquery-ui/tests/visual/datepicker/datepicker_ticket_4443.html +0 -38
- data/templates/drupal/sources/jquery-ui/tests/visual/datepicker/datepicker_ticket_5676.html +0 -30
- data/templates/drupal/sources/jquery-ui/tests/visual/datepicker/multimonth.html +0 -23
- data/templates/drupal/sources/jquery-ui/tests/visual/datepicker/viewport.html +0 -278
- data/templates/drupal/sources/jquery-ui/tests/visual/dialog/dialog_on_page_with_large_dom.html +0 -2963
- data/templates/drupal/sources/jquery-ui/tests/visual/draggable/draggable.html +0 -24
- data/templates/drupal/sources/jquery-ui/tests/visual/draggable/draggable.scroll.html +0 -152
- data/templates/drupal/sources/jquery-ui/tests/visual/draggable/draggable_option_containment_array.html +0 -26
- data/templates/drupal/sources/jquery-ui/tests/visual/draggable/draggable_option_cursorAt_object.html +0 -26
- data/templates/drupal/sources/jquery-ui/tests/visual/draggable/draggable_option_handle_selector.html +0 -28
- data/templates/drupal/sources/jquery-ui/tests/visual/draggable/draggable_option_iframeFix_false.html +0 -30
- data/templates/drupal/sources/jquery-ui/tests/visual/draggable/draggable_option_iframeFix_selector.html +0 -30
- data/templates/drupal/sources/jquery-ui/tests/visual/draggable/draggable_option_iframeFix_true.html +0 -30
- data/templates/drupal/sources/jquery-ui/tests/visual/droppable/droppable.css +0 -3
- data/templates/drupal/sources/jquery-ui/tests/visual/droppable/droppable.html +0 -33
- data/templates/drupal/sources/jquery-ui/tests/visual/droppable/droppable_option_accept_default.html +0 -40
- data/templates/drupal/sources/jquery-ui/tests/visual/droppable/droppable_option_accept_function.html +0 -43
- data/templates/drupal/sources/jquery-ui/tests/visual/droppable/droppable_option_accept_selector.html +0 -41
- data/templates/drupal/sources/jquery-ui/tests/visual/droppable/droppable_ticket_4087.html +0 -51
- data/templates/drupal/sources/jquery-ui/tests/visual/droppable/droppable_ticket_4088.html +0 -69
- data/templates/drupal/sources/jquery-ui/tests/visual/effects.all.css +0 -54
- data/templates/drupal/sources/jquery-ui/tests/visual/effects.all.html +0 -193
- data/templates/drupal/sources/jquery-ui/tests/visual/effects.all.js +0 -92
- data/templates/drupal/sources/jquery-ui/tests/visual/menu/contextmenu.html +0 -191
- data/templates/drupal/sources/jquery-ui/tests/visual/menu/drilldown.html +0 -266
- data/templates/drupal/sources/jquery-ui/tests/visual/menu/menu.html +0 -147
- data/templates/drupal/sources/jquery-ui/tests/visual/menu/menubar.html +0 -208
- data/templates/drupal/sources/jquery-ui/tests/visual/menu/menubar.js +0 -189
- data/templates/drupal/sources/jquery-ui/tests/visual/menu/popup.html +0 -159
- data/templates/drupal/sources/jquery-ui/tests/visual/menu/popup.js +0 -113
- data/templates/drupal/sources/jquery-ui/tests/visual/menu/tablemenu.html +0 -67
- data/templates/drupal/sources/jquery-ui/tests/visual/mouse/mouse_ticket_6946.html +0 -67
- data/templates/drupal/sources/jquery-ui/tests/visual/position/position.html +0 -67
- data/templates/drupal/sources/jquery-ui/tests/visual/position/position_margin.html +0 -43
- data/templates/drupal/sources/jquery-ui/tests/visual/resizable/images/test.png +0 -0
- data/templates/drupal/sources/jquery-ui/tests/visual/resizable/resizable.html +0 -24
- data/templates/drupal/sources/jquery-ui/tests/visual/resizable/resizable_option_alsoResize_child.html +0 -48
- data/templates/drupal/sources/jquery-ui/tests/visual/resizable/resizable_option_aspectRatio_0.5.html +0 -29
- data/templates/drupal/sources/jquery-ui/tests/visual/resizable/resizable_option_aspectRatio_1.0.html +0 -29
- data/templates/drupal/sources/jquery-ui/tests/visual/resizable/resizable_option_aspectRatio_1.5.html +0 -29
- data/templates/drupal/sources/jquery-ui/tests/visual/resizable/resizable_option_aspectRatio_preserve_maxHeight_150.html +0 -30
- data/templates/drupal/sources/jquery-ui/tests/visual/resizable/resizable_option_aspectRatio_preserve_maxWidth_150.html +0 -30
- data/templates/drupal/sources/jquery-ui/tests/visual/resizable/resizable_option_aspectRatio_preserve_minHeight_50.html +0 -30
- data/templates/drupal/sources/jquery-ui/tests/visual/resizable/resizable_option_aspectRatio_preserve_minWidth_50.html +0 -30
- data/templates/drupal/sources/jquery-ui/tests/visual/resizable/resizable_option_aspectRatio_preserve_w100xh100.html +0 -29
- data/templates/drupal/sources/jquery-ui/tests/visual/resizable/resizable_option_aspectRatio_preserve_w100xh50.html +0 -29
- data/templates/drupal/sources/jquery-ui/tests/visual/resizable/resizable_option_aspectRatio_preserve_w50xh100.html +0 -29
- data/templates/drupal/sources/jquery-ui/tests/visual/resizable/resizable_ticket_3053.html +0 -37
- data/templates/drupal/sources/jquery-ui/tests/visual/resizable/resizable_ticket_4199.html +0 -37
- data/templates/drupal/sources/jquery-ui/tests/visual/resizable/resizable_ticket_4217.html +0 -46
- data/templates/drupal/sources/jquery-ui/tests/visual/resizable/resizable_ticket_4940.html +0 -32
- data/templates/drupal/sources/jquery-ui/tests/visual/resizable/resizable_ticket_5335.html +0 -52
- data/templates/drupal/sources/jquery-ui/tests/visual/selectable/selectable.html +0 -40
- data/templates/drupal/sources/jquery-ui/tests/visual/selectable/selectable_ticket_4341.html +0 -46
- data/templates/drupal/sources/jquery-ui/tests/visual/slider/slider.html +0 -24
- data/templates/drupal/sources/jquery-ui/tests/visual/slider/slider_horizontal.html +0 -27
- data/templates/drupal/sources/jquery-ui/tests/visual/slider/slider_horizontal_range.html +0 -28
- data/templates/drupal/sources/jquery-ui/tests/visual/slider/slider_horizontal_range_max.html +0 -28
- data/templates/drupal/sources/jquery-ui/tests/visual/slider/slider_horizontal_range_min.html +0 -28
- data/templates/drupal/sources/jquery-ui/tests/visual/slider/slider_in_container_with_scrollbars.html +0 -43
- data/templates/drupal/sources/jquery-ui/tests/visual/slider/slider_method_destroy.html +0 -28
- data/templates/drupal/sources/jquery-ui/tests/visual/slider/slider_method_disable.html +0 -47
- data/templates/drupal/sources/jquery-ui/tests/visual/slider/slider_option_animate_false.html +0 -26
- data/templates/drupal/sources/jquery-ui/tests/visual/slider/slider_option_animate_true.html +0 -65
- data/templates/drupal/sources/jquery-ui/tests/visual/slider/slider_option_max_3.html +0 -26
- data/templates/drupal/sources/jquery-ui/tests/visual/slider/slider_option_max_30.html +0 -26
- data/templates/drupal/sources/jquery-ui/tests/visual/slider/slider_option_max_300.html +0 -26
- data/templates/drupal/sources/jquery-ui/tests/visual/slider/slider_option_min_-3.html +0 -27
- data/templates/drupal/sources/jquery-ui/tests/visual/slider/slider_option_min_-30.html +0 -27
- data/templates/drupal/sources/jquery-ui/tests/visual/slider/slider_option_min_-300.html +0 -27
- data/templates/drupal/sources/jquery-ui/tests/visual/slider/slider_option_orientation_horizontal.html +0 -26
- data/templates/drupal/sources/jquery-ui/tests/visual/slider/slider_option_orientation_vertical.html +0 -26
- data/templates/drupal/sources/jquery-ui/tests/visual/slider/slider_option_range_false.html +0 -27
- data/templates/drupal/sources/jquery-ui/tests/visual/slider/slider_option_range_max.html +0 -27
- data/templates/drupal/sources/jquery-ui/tests/visual/slider/slider_option_range_min.html +0 -27
- data/templates/drupal/sources/jquery-ui/tests/visual/slider/slider_option_range_true.html +0 -27
- data/templates/drupal/sources/jquery-ui/tests/visual/slider/slider_option_step_25.html +0 -26
- data/templates/drupal/sources/jquery-ui/tests/visual/slider/slider_option_step_5.html +0 -26
- data/templates/drupal/sources/jquery-ui/tests/visual/slider/slider_option_value_3.html +0 -26
- data/templates/drupal/sources/jquery-ui/tests/visual/slider/slider_option_value_30.html +0 -26
- data/templates/drupal/sources/jquery-ui/tests/visual/slider/slider_option_values_25_50_75.html +0 -26
- data/templates/drupal/sources/jquery-ui/tests/visual/slider/slider_option_values_25_75.html +0 -26
- data/templates/drupal/sources/jquery-ui/tests/visual/slider/slider_option_values_50.html +0 -26
- data/templates/drupal/sources/jquery-ui/tests/visual/slider/slider_ticket_3736.html +0 -36
- data/templates/drupal/sources/jquery-ui/tests/visual/slider/slider_ticket_3762.html +0 -44
- data/templates/drupal/sources/jquery-ui/tests/visual/slider/slider_ticket_4385.html +0 -42
- data/templates/drupal/sources/jquery-ui/tests/visual/slider/slider_ticket_4467.html +0 -34
- data/templates/drupal/sources/jquery-ui/tests/visual/slider/slider_vertical.html +0 -27
- data/templates/drupal/sources/jquery-ui/tests/visual/slider/slider_vertical_range.html +0 -28
- data/templates/drupal/sources/jquery-ui/tests/visual/slider/slider_vertical_range_max.html +0 -28
- data/templates/drupal/sources/jquery-ui/tests/visual/slider/slider_vertical_range_min.html +0 -28
- data/templates/drupal/sources/jquery-ui/tests/visual/sortable/sortable.html +0 -40
- data/templates/drupal/sources/jquery-ui/tests/visual/sortable/sortable_massive_scale.html +0 -757
- data/templates/drupal/sources/jquery-ui/tests/visual/sortable/sortable_option_revert_false.html +0 -31
- data/templates/drupal/sources/jquery-ui/tests/visual/sortable/sortable_option_revert_true.html +0 -31
- data/templates/drupal/sources/jquery-ui/tests/visual/sortable/sortable_ticket_4231.html +0 -78
- data/templates/drupal/sources/jquery-ui/tests/visual/sortable/sortable_ticket_5355.html +0 -58
- data/templates/drupal/sources/jquery-ui/tests/visual/spinner/spinner.html +0 -43
- data/templates/drupal/sources/jquery-ui/tests/visual/theme.html +0 -532
- data/templates/drupal/sources/jquery-ui/tests/visual/tooltip/ajaxcontent.php +0 -2
- data/templates/drupal/sources/jquery-ui/tests/visual/tooltip/callout.html +0 -213
- data/templates/drupal/sources/jquery-ui/tests/visual/tooltip/tooltip.html +0 -186
- data/templates/drupal/sources/jquery-ui/tests/visual/visual.css +0 -3
- data/templates/drupal/sources/jquery-ui/themes/base/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/templates/drupal/sources/jquery-ui/themes/base/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/templates/drupal/sources/jquery-ui/themes/base/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/templates/drupal/sources/jquery-ui/themes/base/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/templates/drupal/sources/jquery-ui/themes/base/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/templates/drupal/sources/jquery-ui/themes/base/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/templates/drupal/sources/jquery-ui/themes/base/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/templates/drupal/sources/jquery-ui/themes/base/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/templates/drupal/sources/jquery-ui/themes/base/images/ui-icons_222222_256x240.png +0 -0
- data/templates/drupal/sources/jquery-ui/themes/base/images/ui-icons_2e83ff_256x240.png +0 -0
- data/templates/drupal/sources/jquery-ui/themes/base/images/ui-icons_454545_256x240.png +0 -0
- data/templates/drupal/sources/jquery-ui/themes/base/images/ui-icons_888888_256x240.png +0 -0
- data/templates/drupal/sources/jquery-ui/themes/base/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/templates/drupal/sources/jquery-ui/themes/base/jquery.ui.accordion.css +0 -18
- data/templates/drupal/sources/jquery-ui/themes/base/jquery.ui.all.css +0 -11
- data/templates/drupal/sources/jquery-ui/themes/base/jquery.ui.autocomplete.css +0 -13
- data/templates/drupal/sources/jquery-ui/themes/base/jquery.ui.base.css +0 -24
- data/templates/drupal/sources/jquery-ui/themes/base/jquery.ui.button.css +0 -38
- data/templates/drupal/sources/jquery-ui/themes/base/jquery.ui.core.css +0 -41
- data/templates/drupal/sources/jquery-ui/themes/base/jquery.ui.datepicker.css +0 -68
- data/templates/drupal/sources/jquery-ui/themes/base/jquery.ui.dialog.css +0 -21
- data/templates/drupal/sources/jquery-ui/themes/base/jquery.ui.menu.css +0 -44
- data/templates/drupal/sources/jquery-ui/themes/base/jquery.ui.progressbar.css +0 -11
- data/templates/drupal/sources/jquery-ui/themes/base/jquery.ui.resizable.css +0 -25
- data/templates/drupal/sources/jquery-ui/themes/base/jquery.ui.selectable.css +0 -10
- data/templates/drupal/sources/jquery-ui/themes/base/jquery.ui.slider.css +0 -24
- data/templates/drupal/sources/jquery-ui/themes/base/jquery.ui.spinner.css +0 -23
- data/templates/drupal/sources/jquery-ui/themes/base/jquery.ui.tabs.css +0 -17
- data/templates/drupal/sources/jquery-ui/themes/base/jquery.ui.theme.css +0 -252
- data/templates/drupal/sources/jquery-ui/themes/base/jquery.ui.tooltip.css +0 -23
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-af.js +0 -23
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-ar-DZ.js +0 -23
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-ar.js +0 -23
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-az.js +0 -23
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-bg.js +0 -24
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-bs.js +0 -23
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-ca.js +0 -23
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-cs.js +0 -23
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-da.js +0 -23
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-de.js +0 -23
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-el.js +0 -23
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-en-AU.js +0 -23
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-en-GB.js +0 -23
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-en-NZ.js +0 -23
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-eo.js +0 -23
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-es.js +0 -23
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-et.js +0 -23
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-eu.js +0 -23
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-fa.js +0 -23
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-fi.js +0 -23
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-fo.js +0 -23
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-fr-CH.js +0 -23
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-fr.js +0 -25
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-gl.js +0 -23
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-he.js +0 -23
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-hr.js +0 -23
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-hu.js +0 -23
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-hy.js +0 -23
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-id.js +0 -23
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-is.js +0 -23
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-it.js +0 -23
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-ja.js +0 -23
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-ko.js +0 -23
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-kz.js +0 -23
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-lt.js +0 -23
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-lv.js +0 -23
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-ml.js +0 -23
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-ms.js +0 -23
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-nl.js +0 -23
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-no.js +0 -23
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-pl.js +0 -23
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-pt-BR.js +0 -23
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-pt.js +0 -22
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-rm.js +0 -21
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-ro.js +0 -26
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-ru.js +0 -23
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-sk.js +0 -23
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-sl.js +0 -24
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-sq.js +0 -23
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-sr-SR.js +0 -23
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-sr.js +0 -23
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-sv.js +0 -23
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-ta.js +0 -23
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-th.js +0 -23
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-tj.js +0 -23
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-tr.js +0 -23
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-uk.js +0 -23
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-vi.js +0 -23
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-zh-CN.js +0 -23
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-zh-HK.js +0 -23
- data/templates/drupal/sources/jquery-ui/ui/i18n/jquery.ui.datepicker-zh-TW.js +0 -23
- data/templates/drupal/sources/jquery-ui/ui/jquery.effects.blind.js +0 -52
- data/templates/drupal/sources/jquery-ui/ui/jquery.effects.bounce.js +0 -102
- data/templates/drupal/sources/jquery-ui/ui/jquery.effects.clip.js +0 -69
- data/templates/drupal/sources/jquery-ui/ui/jquery.effects.core.js +0 -825
- data/templates/drupal/sources/jquery-ui/ui/jquery.effects.drop.js +0 -64
- data/templates/drupal/sources/jquery-ui/ui/jquery.effects.explode.js +0 -103
- data/templates/drupal/sources/jquery-ui/ui/jquery.effects.fade.js +0 -34
- data/templates/drupal/sources/jquery-ui/ui/jquery.effects.fold.js +0 -73
- data/templates/drupal/sources/jquery-ui/ui/jquery.effects.highlight.js +0 -51
- data/templates/drupal/sources/jquery-ui/ui/jquery.effects.pulsate.js +0 -52
- data/templates/drupal/sources/jquery-ui/ui/jquery.effects.scale.js +0 -250
- data/templates/drupal/sources/jquery-ui/ui/jquery.effects.shake.js +0 -64
- data/templates/drupal/sources/jquery-ui/ui/jquery.effects.slide.js +0 -69
- data/templates/drupal/sources/jquery-ui/ui/jquery.effects.transfer.js +0 -46
- data/templates/drupal/sources/jquery-ui/ui/jquery.ui.accordion.js +0 -669
- data/templates/drupal/sources/jquery-ui/ui/jquery.ui.autocomplete.js +0 -439
- data/templates/drupal/sources/jquery-ui/ui/jquery.ui.button.js +0 -384
- data/templates/drupal/sources/jquery-ui/ui/jquery.ui.core.js +0 -303
- data/templates/drupal/sources/jquery-ui/ui/jquery.ui.datepicker.js +0 -1779
- data/templates/drupal/sources/jquery-ui/ui/jquery.ui.dialog.js +0 -829
- data/templates/drupal/sources/jquery-ui/ui/jquery.ui.draggable.js +0 -799
- data/templates/drupal/sources/jquery-ui/ui/jquery.ui.droppable.js +0 -285
- data/templates/drupal/sources/jquery-ui/ui/jquery.ui.menu.js +0 -402
- data/templates/drupal/sources/jquery-ui/ui/jquery.ui.mouse.js +0 -156
- data/templates/drupal/sources/jquery-ui/ui/jquery.ui.position.js +0 -283
- data/templates/drupal/sources/jquery-ui/ui/jquery.ui.progressbar.js +0 -107
- data/templates/drupal/sources/jquery-ui/ui/jquery.ui.resizable.js +0 -812
- data/templates/drupal/sources/jquery-ui/ui/jquery.ui.selectable.js +0 -266
- data/templates/drupal/sources/jquery-ui/ui/jquery.ui.slider.js +0 -684
- data/templates/drupal/sources/jquery-ui/ui/jquery.ui.sortable.js +0 -1076
- data/templates/drupal/sources/jquery-ui/ui/jquery.ui.spinner.js +0 -362
- data/templates/drupal/sources/jquery-ui/ui/jquery.ui.tabs.js +0 -1039
- data/templates/drupal/sources/jquery-ui/ui/jquery.ui.tooltip.js +0 -146
- data/templates/drupal/sources/jquery-ui/ui/jquery.ui.widget.js +0 -363
- data/templates/drupal/sources/jquery-ui/version.txt +0 -1
- data/templates/drupal/sources/pie/LICENSE-APACHE2.txt +0 -13
- data/templates/drupal/sources/pie/LICENSE-GPL2.txt +0 -278
- data/templates/drupal/sources/pie/build.xml +0 -118
- data/templates/drupal/sources/pie/demos/basic.html +0 -321
- data/templates/drupal/sources/pie/demos/farbtastic/CHANGELOG.html +0 -26
- data/templates/drupal/sources/pie/demos/farbtastic/LICENSE.txt +0 -341
- data/templates/drupal/sources/pie/demos/farbtastic/README.html +0 -71
- data/templates/drupal/sources/pie/demos/farbtastic/demo1.html +0 -28
- data/templates/drupal/sources/pie/demos/farbtastic/demo2.html +0 -57
- data/templates/drupal/sources/pie/demos/farbtastic/farbtastic.css +0 -51
- data/templates/drupal/sources/pie/demos/farbtastic/farbtastic.js +0 -345
- data/templates/drupal/sources/pie/demos/farbtastic/farbtastic.min.js +0 -1
- data/templates/drupal/sources/pie/demos/farbtastic/marker.png +0 -0
- data/templates/drupal/sources/pie/demos/farbtastic/mask.png +0 -0
- data/templates/drupal/sources/pie/demos/farbtastic/wheel.png +0 -0
- data/templates/drupal/sources/pie/demos/tabs-control.png +0 -0
- data/templates/drupal/sources/pie/demos/tabs.html +0 -296
- data/templates/drupal/sources/pie/documentation/about.html +0 -63
- data/templates/drupal/sources/pie/documentation/build.html +0 -72
- data/templates/drupal/sources/pie/documentation/getting-started.html +0 -66
- data/templates/drupal/sources/pie/documentation/known-issues.html +0 -205
- data/templates/drupal/sources/pie/documentation/pie-js.html +0 -89
- data/templates/drupal/sources/pie/documentation/product-comparison.html +0 -89
- data/templates/drupal/sources/pie/documentation/q-and-a.html +0 -152
- data/templates/drupal/sources/pie/documentation/supported-css3-features.html +0 -402
- data/templates/drupal/sources/pie/site/pie-wp-theme/404.php +0 -24
- data/templates/drupal/sources/pie/site/pie-wp-theme/archive.php +0 -24
- data/templates/drupal/sources/pie/site/pie-wp-theme/attachment.php +0 -25
- data/templates/drupal/sources/pie/site/pie-wp-theme/attachment/attachment-default.php +0 -61
- data/templates/drupal/sources/pie/site/pie-wp-theme/carrington-core/CHANGELOG.txt +0 -72
- data/templates/drupal/sources/pie/site/pie-wp-theme/carrington-core/README.txt +0 -15
- data/templates/drupal/sources/pie/site/pie-wp-theme/carrington-core/admin.php +0 -330
- data/templates/drupal/sources/pie/site/pie-wp-theme/carrington-core/ajax-load.php +0 -115
- data/templates/drupal/sources/pie/site/pie-wp-theme/carrington-core/attachment.php +0 -126
- data/templates/drupal/sources/pie/site/pie-wp-theme/carrington-core/carrington.php +0 -106
- data/templates/drupal/sources/pie/site/pie-wp-theme/carrington-core/compatibility.php +0 -234
- data/templates/drupal/sources/pie/site/pie-wp-theme/carrington-core/css/colorpicker.css +0 -161
- data/templates/drupal/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/blank.gif +0 -0
- data/templates/drupal/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/colorpicker_background.png +0 -0
- data/templates/drupal/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/colorpicker_hex.png +0 -0
- data/templates/drupal/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/colorpicker_hsb_b.png +0 -0
- data/templates/drupal/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/colorpicker_hsb_h.png +0 -0
- data/templates/drupal/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/colorpicker_hsb_s.png +0 -0
- data/templates/drupal/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/colorpicker_indic.gif +0 -0
- data/templates/drupal/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/colorpicker_overlay.png +0 -0
- data/templates/drupal/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/colorpicker_rgb_b.png +0 -0
- data/templates/drupal/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/colorpicker_rgb_g.png +0 -0
- data/templates/drupal/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/colorpicker_rgb_r.png +0 -0
- data/templates/drupal/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/colorpicker_select.gif +0 -0
- data/templates/drupal/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/colorpicker_submit.png +0 -0
- data/templates/drupal/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/custom_background.png +0 -0
- data/templates/drupal/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/custom_hex.png +0 -0
- data/templates/drupal/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/custom_hsb_b.png +0 -0
- data/templates/drupal/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/custom_hsb_h.png +0 -0
- data/templates/drupal/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/custom_hsb_s.png +0 -0
- data/templates/drupal/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/custom_indic.gif +0 -0
- data/templates/drupal/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/custom_rgb_b.png +0 -0
- data/templates/drupal/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/custom_rgb_g.png +0 -0
- data/templates/drupal/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/custom_rgb_r.png +0 -0
- data/templates/drupal/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/custom_submit.png +0 -0
- data/templates/drupal/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/select.png +0 -0
- data/templates/drupal/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/select2.png +0 -0
- data/templates/drupal/sources/pie/site/pie-wp-theme/carrington-core/images/colorpicker/slider.png +0 -0
- data/templates/drupal/sources/pie/site/pie-wp-theme/carrington-core/js/colorpicker.js +0 -490
- data/templates/drupal/sources/pie/site/pie-wp-theme/carrington-core/lightbox/LICENSE.txt +0 -30
- data/templates/drupal/sources/pie/site/pie-wp-theme/carrington-core/lightbox/css/thickbox.css +0 -157
- data/templates/drupal/sources/pie/site/pie-wp-theme/carrington-core/lightbox/img/blank.gif +0 -0
- data/templates/drupal/sources/pie/site/pie-wp-theme/carrington-core/lightbox/img/loadingAnimation.gif +0 -0
- data/templates/drupal/sources/pie/site/pie-wp-theme/carrington-core/lightbox/img/macFFBgHack.png +0 -0
- data/templates/drupal/sources/pie/site/pie-wp-theme/carrington-core/lightbox/thickbox.js +0 -332
- data/templates/drupal/sources/pie/site/pie-wp-theme/carrington-core/templates.php +0 -105
- data/templates/drupal/sources/pie/site/pie-wp-theme/carrington-core/utility.php +0 -821
- data/templates/drupal/sources/pie/site/pie-wp-theme/comment/comment-default.php +0 -53
- data/templates/drupal/sources/pie/site/pie-wp-theme/comment/ping.php +0 -33
- data/templates/drupal/sources/pie/site/pie-wp-theme/comments.php +0 -24
- data/templates/drupal/sources/pie/site/pie-wp-theme/comments/comments-default.php +0 -66
- data/templates/drupal/sources/pie/site/pie-wp-theme/comments/comments-loop.php +0 -49
- data/templates/drupal/sources/pie/site/pie-wp-theme/comments/pings-loop.php +0 -38
- data/templates/drupal/sources/pie/site/pie-wp-theme/comments/threaded.php +0 -31
- data/templates/drupal/sources/pie/site/pie-wp-theme/content/content-default.php +0 -56
- data/templates/drupal/sources/pie/site/pie-wp-theme/content/page.php +0 -44
- data/templates/drupal/sources/pie/site/pie-wp-theme/css/common.css +0 -442
- data/templates/drupal/sources/pie/site/pie-wp-theme/css/fonts/museosans_500-webfont.eot +0 -0
- data/templates/drupal/sources/pie/site/pie-wp-theme/css/fonts/museosans_500-webfont.svg +0 -240
- data/templates/drupal/sources/pie/site/pie-wp-theme/css/fonts/museosans_500-webfont.ttf +0 -0
- data/templates/drupal/sources/pie/site/pie-wp-theme/css/fonts/museosans_500-webfont.woff +0 -0
- data/templates/drupal/sources/pie/site/pie-wp-theme/error/404.php +0 -31
- data/templates/drupal/sources/pie/site/pie-wp-theme/error/exit.php +0 -24
- data/templates/drupal/sources/pie/site/pie-wp-theme/excerpt/excerpt-default.php +0 -41
- data/templates/drupal/sources/pie/site/pie-wp-theme/footer.php +0 -24
- data/templates/drupal/sources/pie/site/pie-wp-theme/footer/footer-default.php +0 -53
- data/templates/drupal/sources/pie/site/pie-wp-theme/forms/comment.php +0 -94
- data/templates/drupal/sources/pie/site/pie-wp-theme/forms/search.php +0 -33
- data/templates/drupal/sources/pie/site/pie-wp-theme/functions.php +0 -28
- data/templates/drupal/sources/pie/site/pie-wp-theme/functions/sidebars.php +0 -42
- data/templates/drupal/sources/pie/site/pie-wp-theme/header.php +0 -24
- data/templates/drupal/sources/pie/site/pie-wp-theme/header/header-default.php +0 -99
- data/templates/drupal/sources/pie/site/pie-wp-theme/img/divider.png +0 -0
- data/templates/drupal/sources/pie/site/pie-wp-theme/img/favicon.ico +0 -0
- data/templates/drupal/sources/pie/site/pie-wp-theme/img/icons.png +0 -0
- data/templates/drupal/sources/pie/site/pie-wp-theme/img/logo.png +0 -0
- data/templates/drupal/sources/pie/site/pie-wp-theme/index.php +0 -24
- data/templates/drupal/sources/pie/site/pie-wp-theme/js/farbtastic/CHANGELOG.html +0 -26
- data/templates/drupal/sources/pie/site/pie-wp-theme/js/farbtastic/LICENSE.txt +0 -341
- data/templates/drupal/sources/pie/site/pie-wp-theme/js/farbtastic/README.html +0 -71
- data/templates/drupal/sources/pie/site/pie-wp-theme/js/farbtastic/demo1.html +0 -28
- data/templates/drupal/sources/pie/site/pie-wp-theme/js/farbtastic/demo2.html +0 -57
- data/templates/drupal/sources/pie/site/pie-wp-theme/js/farbtastic/farbtastic.css +0 -51
- data/templates/drupal/sources/pie/site/pie-wp-theme/js/farbtastic/farbtastic.js +0 -345
- data/templates/drupal/sources/pie/site/pie-wp-theme/js/farbtastic/farbtastic.min.js +0 -1
- data/templates/drupal/sources/pie/site/pie-wp-theme/js/farbtastic/marker.png +0 -0
- data/templates/drupal/sources/pie/site/pie-wp-theme/js/farbtastic/mask.png +0 -0
- data/templates/drupal/sources/pie/site/pie-wp-theme/js/farbtastic/wheel.png +0 -0
- data/templates/drupal/sources/pie/site/pie-wp-theme/loop/archive.php +0 -28
- data/templates/drupal/sources/pie/site/pie-wp-theme/loop/loop-default.php +0 -33
- data/templates/drupal/sources/pie/site/pie-wp-theme/loop/search.php +0 -30
- data/templates/drupal/sources/pie/site/pie-wp-theme/misc/banner.php +0 -21
- data/templates/drupal/sources/pie/site/pie-wp-theme/misc/nav-posts.php +0 -22
- data/templates/drupal/sources/pie/site/pie-wp-theme/misc/no-results.php +0 -23
- data/templates/drupal/sources/pie/site/pie-wp-theme/page.php +0 -24
- data/templates/drupal/sources/pie/site/pie-wp-theme/pages/pages-default.php +0 -30
- data/templates/drupal/sources/pie/site/pie-wp-theme/posts/author.php +0 -52
- data/templates/drupal/sources/pie/site/pie-wp-theme/posts/category.php +0 -40
- data/templates/drupal/sources/pie/site/pie-wp-theme/posts/home.php +0 -30
- data/templates/drupal/sources/pie/site/pie-wp-theme/posts/posts-default.php +0 -30
- data/templates/drupal/sources/pie/site/pie-wp-theme/posts/search.php +0 -44
- data/templates/drupal/sources/pie/site/pie-wp-theme/posts/tag.php +0 -38
- data/templates/drupal/sources/pie/site/pie-wp-theme/screenshot.png +0 -0
- data/templates/drupal/sources/pie/site/pie-wp-theme/search.php +0 -24
- data/templates/drupal/sources/pie/site/pie-wp-theme/sidebar.php +0 -24
- data/templates/drupal/sources/pie/site/pie-wp-theme/sidebar/sidebar-default.php +0 -68
- data/templates/drupal/sources/pie/site/pie-wp-theme/single.php +0 -24
- data/templates/drupal/sources/pie/site/pie-wp-theme/single/single-default.php +0 -40
- data/templates/drupal/sources/pie/site/pie-wp-theme/style.css +0 -73
- data/templates/drupal/sources/pie/sources/Angle.js +0 -36
- data/templates/drupal/sources/pie/sources/BackgroundRenderer.js +0 -381
- data/templates/drupal/sources/pie/sources/BackgroundStyleInfo.js +0 -295
- data/templates/drupal/sources/pie/sources/BgPosition.js +0 -104
- data/templates/drupal/sources/pie/sources/BorderImageRenderer.js +0 -124
- data/templates/drupal/sources/pie/sources/BorderImageStyleInfo.js +0 -146
- data/templates/drupal/sources/pie/sources/BorderRadiusStyleInfo.js +0 -68
- data/templates/drupal/sources/pie/sources/BorderRenderer.js +0 -328
- data/templates/drupal/sources/pie/sources/BorderStyleInfo.js +0 -101
- data/templates/drupal/sources/pie/sources/BoundsInfo.js +0 -56
- data/templates/drupal/sources/pie/sources/BoxShadowInsetRenderer.js +0 -31
- data/templates/drupal/sources/pie/sources/BoxShadowOutsetRenderer.js +0 -136
- data/templates/drupal/sources/pie/sources/BoxShadowStyleInfo.js +0 -67
- data/templates/drupal/sources/pie/sources/Color.js +0 -127
- data/templates/drupal/sources/pie/sources/Element.js +0 -416
- data/templates/drupal/sources/pie/sources/Heartbeat.js +0 -16
- data/templates/drupal/sources/pie/sources/ImgRenderer.js +0 -66
- data/templates/drupal/sources/pie/sources/Length.js +0 -134
- data/templates/drupal/sources/pie/sources/Observable.js +0 -44
- data/templates/drupal/sources/pie/sources/OnBeforeUnload.js +0 -15
- data/templates/drupal/sources/pie/sources/OnPrint.js +0 -25
- data/templates/drupal/sources/pie/sources/OnResize.js +0 -12
- data/templates/drupal/sources/pie/sources/OnScroll.js +0 -15
- data/templates/drupal/sources/pie/sources/PIE_API.js +0 -35
- data/templates/drupal/sources/pie/sources/PIE_close.js +0 -2
- data/templates/drupal/sources/pie/sources/PIE_open.js +0 -47
- data/templates/drupal/sources/pie/sources/RendererBase.js +0 -299
- data/templates/drupal/sources/pie/sources/RootRenderer.js +0 -112
- data/templates/drupal/sources/pie/sources/StyleInfoBase.js +0 -93
- data/templates/drupal/sources/pie/sources/Tokenizer.js +0 -274
- data/templates/drupal/sources/pie/sources/Util.js +0 -94
- data/templates/drupal/sources/pie/sources/VisibilityStyleInfo.js +0 -38
- data/templates/drupal/sources/pie/sources/closure_externs.js +0 -4
- data/templates/drupal/sources/pie/sources/closure_preservefunctions.js +0 -4
- data/templates/drupal/sources/pie/sources/htc_close.txt +0 -2
- data/templates/drupal/sources/pie/sources/htc_init.js +0 -19
- data/templates/drupal/sources/pie/sources/htc_open.txt +0 -13
- data/templates/drupal/sources/pie/sources/js_close.js +0 -1
- data/templates/drupal/sources/pie/sources/js_open.js +0 -8
- data/templates/drupal/sources/pie/sources/wrappers/PIE.php +0 -19
- data/templates/drupal/sources/pie/tests/IE9 border-radius tests/border-radius-applies-to-001.htm +0 -27
- data/templates/drupal/sources/pie/tests/IE9 border-radius tests/border-radius-applies-to-002.htm +0 -31
- data/templates/drupal/sources/pie/tests/IE9 border-radius tests/border-radius-applies-to-003.htm +0 -29
- data/templates/drupal/sources/pie/tests/IE9 border-radius tests/border-radius-applies-to-004.htm +0 -29
- data/templates/drupal/sources/pie/tests/IE9 border-radius tests/border-radius-applies-to-005.htm +0 -29
- data/templates/drupal/sources/pie/tests/IE9 border-radius tests/border-radius-applies-to-006.htm +0 -41
- data/templates/drupal/sources/pie/tests/IE9 border-radius tests/border-radius-applies-to-007.htm +0 -46
- data/templates/drupal/sources/pie/tests/IE9 border-radius tests/border-radius-applies-to-008.htm +0 -41
- data/templates/drupal/sources/pie/tests/IE9 border-radius tests/border-radius-applies-to-009.htm +0 -45
- data/templates/drupal/sources/pie/tests/IE9 border-radius tests/border-radius-applies-to-010.htm +0 -31
- data/templates/drupal/sources/pie/tests/IE9 border-radius tests/border-radius-applies-to-011.htm +0 -41
- data/templates/drupal/sources/pie/tests/IE9 border-radius tests/border-radius-applies-to-012.htm +0 -49
- data/templates/drupal/sources/pie/tests/IE9 border-radius tests/border-radius-applies-to-013.htm +0 -51
- data/templates/drupal/sources/pie/tests/IE9 border-radius tests/border-radius-applies-to-014.htm +0 -51
- data/templates/drupal/sources/pie/tests/IE9 border-radius tests/border-radius-applies-to-015.htm +0 -51
- data/templates/drupal/sources/pie/tests/IE9 border-radius tests/border-radius-applies-to-016.htm +0 -50
- data/templates/drupal/sources/pie/tests/IE9 border-radius tests/border-radius-applies-to-017.htm +0 -35
- data/templates/drupal/sources/pie/tests/IE9 border-radius tests/border-radius-different-width-001.htm +0 -77
- data/templates/drupal/sources/pie/tests/IE9 border-radius tests/border-radius-initial-value-001.htm +0 -35
- data/templates/drupal/sources/pie/tests/IE9 border-radius tests/border-radius-not-inherited-001.htm +0 -44
- data/templates/drupal/sources/pie/tests/IE9 border-radius tests/border-radius-shorthand-001.htm +0 -69
- data/templates/drupal/sources/pie/tests/IE9 border-radius tests/border-radius-style-001.htm +0 -33
- data/templates/drupal/sources/pie/tests/IE9 border-radius tests/border-radius-style-002.htm +0 -28
- data/templates/drupal/sources/pie/tests/IE9 border-radius tests/border-radius-style-003.htm +0 -28
- data/templates/drupal/sources/pie/tests/IE9 border-radius tests/border-radius-style-004.htm +0 -28
- data/templates/drupal/sources/pie/tests/IE9 border-radius tests/border-radius-style-005.htm +0 -29
- data/templates/drupal/sources/pie/tests/IE9 border-radius tests/border-radius-sum-of-radii-001.htm +0 -158
- data/templates/drupal/sources/pie/tests/IE9 border-radius tests/border-radius-sum-of-radii-002.htm +0 -92
- data/templates/drupal/sources/pie/tests/IE9 border-radius tests/border-radius-with-three-values-001.htm +0 -43
- data/templates/drupal/sources/pie/tests/IE9 border-radius tests/border-radius-with-two-values-001.htm +0 -43
- data/templates/drupal/sources/pie/tests/IE9 border-radius tests/border-top-left-radius-values-001.htm +0 -45
- data/templates/drupal/sources/pie/tests/IE9 border-radius tests/border-top-left-radius-values-002.htm +0 -40
- data/templates/drupal/sources/pie/tests/IE9 border-radius tests/border-top-left-radius-values-003.htm +0 -51
- data/templates/drupal/sources/pie/tests/background1.gif +0 -0
- data/templates/drupal/sources/pie/tests/background2.gif +0 -0
- data/templates/drupal/sources/pie/tests/basic.html +0 -188
- data/templates/drupal/sources/pie/tests/border-image-test.html +0 -52
- data/templates/drupal/sources/pie/tests/border.png +0 -0
- data/templates/drupal/sources/pie/tests/border2.png +0 -0
- data/templates/drupal/sources/pie/tests/box-shadow-tests.html +0 -166
- data/templates/drupal/sources/pie/tests/buttons.html +0 -735
- data/templates/drupal/sources/pie/tests/color-names.html +0 -32
- data/templates/drupal/sources/pie/tests/gradient-tests.html +0 -237
- data/templates/drupal/sources/pie/tests/hiding-tests.html +0 -92
- data/templates/drupal/sources/pie/tests/hover-tests.html +0 -107
- data/templates/drupal/sources/pie/tests/iPhoneBackButton.png +0 -0
- data/templates/drupal/sources/pie/tests/icon-chrome.png +0 -0
- data/templates/drupal/sources/pie/tests/icon-firefox.png +0 -0
- data/templates/drupal/sources/pie/tests/icon-ie.png +0 -0
- data/templates/drupal/sources/pie/tests/icon-opera.png +0 -0
- data/templates/drupal/sources/pie/tests/icon-safari.png +0 -0
- data/templates/drupal/sources/pie/tests/img.html +0 -63
- data/templates/drupal/sources/pie/tests/margin-auto-tests.html +0 -57
- data/templates/drupal/sources/pie/tests/margin-collapsing-tests.html +0 -77
- data/templates/drupal/sources/pie/tests/misc-tests.html +0 -257
- data/templates/drupal/sources/pie/tests/multiple-bg-tests.html +0 -100
- data/templates/drupal/sources/pie/tests/peculiar-icons/Peculiar.html +0 -372
- data/templates/drupal/sources/pie/tests/peculiar-icons/pictograms.css +0 -1934
- data/templates/drupal/sources/pie/tests/peculiar-icons/style.css +0 -106
- data/templates/drupal/sources/pie/tests/photo.jpg +0 -0
- data/templates/drupal/sources/pie/tests/png-fix.html +0 -50
- data/templates/drupal/sources/pie/tests/position-fixed.html +0 -70
- data/templates/drupal/sources/pie/tests/rtl.html +0 -190
- data/templates/drupal/sources/pie/tests/sizing-tests.html +0 -55
- data/templates/drupal/sources/pie/tests/solar-system/asteroids_meteorids.png +0 -0
- data/templates/drupal/sources/pie/tests/solar-system/bg.jpg +0 -0
- data/templates/drupal/sources/pie/tests/solar-system/solar-system.html +0 -148
- data/templates/drupal/sources/pie/tests/solar-system/styles.css +0 -447
- data/templates/drupal/sources/pie/tests/stress-test.html +0 -187
- data/templates/drupal/sources/pie/tests/submitted/block.png +0 -0
- data/templates/drupal/sources/pie/tests/submitted/forum-f3-t19.html +0 -31
- data/templates/drupal/sources/pie/tests/submitted/forum-f3-t25.gif +0 -0
- data/templates/drupal/sources/pie/tests/submitted/forum-f3-t25.html +0 -24
- data/templates/drupal/sources/pie/tests/submitted/forum-f3-t70.html +0 -136
- data/templates/drupal/sources/pie/tests/submitted/issue23.html +0 -124
- data/templates/drupal/sources/pie/tests/submitted/issue41.html +0 -164
- data/templates/drupal/sources/pie/tests/submitted/issue47.html +0 -136
- data/templates/drupal/sources/pie/tests/submitted/issue75.html +0 -94
- data/templates/drupal/sources/pie/tests/submitted/tab.png +0 -0
- data/templates/drupal/sources/pie/tests/tables.html +0 -87
- data/templates/drupal/sources/pie/tests/tokenizer-tests.html +0 -158
- data/templates/drupal/sources/pie/tests/z-index-tests.html +0 -145
- data/templates/drupal/sources/pie/tools/compiler.jar +0 -0
- data/templates/drupal/sources/scrollability/README.md +0 -38
- data/templates/drupal/sources/scrollability/scrollability-min.js +0 -1
- data/templates/drupal/sources/scrollability/scrollability.js +0 -661
- data/templates/drupal/sources/scrollorama/README.md +0 -21
- data/templates/drupal/sources/scrollorama/css/normalize.css +0 -439
- data/templates/drupal/sources/scrollorama/css/style.css +0 -257
- data/templates/drupal/sources/scrollorama/index.html +0 -167
- data/templates/drupal/sources/scrollorama/js/jquery-1.7.1.min.js +0 -4
- data/templates/drupal/sources/scrollorama/js/jquery.lettering-0.6.1.min.js +0 -2
- data/templates/drupal/sources/scrollorama/js/jquery.scrollorama.js +0 -299
@@ -1 +0,0 @@
|
|
1
|
-
(function($){$.fn.deOrphan=function(){function _deOrphan(node){$(node).contents().each(function(){if(this.nodeType==3){this.textContent=this.textContent.replace(/ (\S*)$/,'\u00A0$1');}else{_deOrphan(this);}});}return this.each(function(i,el){_deOrphan(el);});};})(jQuery);
|
@@ -1,142 +0,0 @@
|
|
1
|
-
Cross-browser support for the [CSS3 Flexible Box Model](http://www.w3.org/TR/css3-flexbox/). Check out [The Playground](http://flexiejs.com/playground/) to see it in action.
|
2
|
-
# Flexie v1.0 [![](http://stillmaintained.com/doctyper/flexie.png)](http://stillmaintained.com/doctyper/flexie)
|
3
|
-
|
4
|
-
## Browser Support
|
5
|
-
* IE 6-9
|
6
|
-
* Opera 10.0+
|
7
|
-
|
8
|
-
The Flexible Box Model is [supported natively](http://www.caniuse.com/#feat=flexbox) by these browsers:
|
9
|
-
|
10
|
-
* Firefox 3.0+
|
11
|
-
* Safari 3.2+
|
12
|
-
* Chrome 5.0+
|
13
|
-
|
14
|
-
In addition, Flexie attempts to normailze browser inconsistencies with the flexible box model.
|
15
|
-
|
16
|
-
### Currently Supported Properties
|
17
|
-
* box-orient
|
18
|
-
* box-align
|
19
|
-
* box-direction
|
20
|
-
* box-pack
|
21
|
-
* box-flex
|
22
|
-
* box-flex-group
|
23
|
-
* box-ordinal-group
|
24
|
-
|
25
|
-
## Why?
|
26
|
-
I *really* wanted to use the CSS3 Flexible Box Model.
|
27
|
-
|
28
|
-
## How?
|
29
|
-
It works like [Selectivizr](http://selectivizr.com). In fact, it uses Selectivizr's engine to traverse your style sheets and looks for `display: box` elements. After that, it looks for any of the currently supported properties.
|
30
|
-
|
31
|
-
Note: Flexie looks for non-vendor-prefixed properties. For example, it will ignore `-moz-box-pack`, but not `box-pack`. For best results, make sure to use a non-vendor-prefixed property _in addition to_ your prefixed properties. But you were already doing that to future-proof your code, weren't you?
|
32
|
-
|
33
|
-
No setup on your end, just stick Flexie in your markup after your [selector engine of choice](http://selectivizr.com/#things).
|
34
|
-
|
35
|
-
## Requirements
|
36
|
-
See the [things you need to know](http://selectivizr.com/#things)
|
37
|
-
|
38
|
-
## Caveats
|
39
|
-
* For older browsers (IE < 8), please remember that some advanced selectors (child, adjacent, pseudo-selectors) will fail. Flexie does not attempt to bridge this gap, so if you must support legacy browsers, class names and ID selectors are your best bets.
|
40
|
-
|
41
|
-
* As of FF 4.0 / Chrome 7 / Safari 5, Gecko and Webkit differ slightly in their flexbox implementations. <strike>Of note is their default values. Webkit will default to `box-align: start`, while Gecko defaults to the spec-defined `box-align: stretch`. Make sure your flexbox CSS works on both these browsers before adding Flexie.</strike>
|
42
|
-
* As of version 0.7, Flexie normalizes the `box-align` property across Webkit browsers.
|
43
|
-
* As of version 0.8, Flexie normalizes the `box-pack` property in Gecko.
|
44
|
-
|
45
|
-
* Be careful of pseudo-selectors (i.e., `:nth-child`, `:first-child`). While native flexbox does not modify the DOM, Flexie must. Thus, your CSS properties might not apply as intended. For example, if you use a combination of `box-direction: reverse` and a `:first-child` selector, that selector will target the wrong element. And if you followed all of that, congratulations.
|
46
|
-
|
47
|
-
* There may be cases where the floats used to mimic the flexbox layout drop in Internet Explorer browsers. If possible, you can try the [overflow fix](http://css-tricks.com/all-about-floats/) to snap these into place _(Flexie assumes it cannot use this as a workaround due to the impact this may have in your layouts)_.
|
48
|
-
|
49
|
-
* As of YUI 2.8.2r1, YUI's selector engine does not recognize dashed attributes (i.e. [data-name="foo"]). Flexie uses several [data- attributes](http://ejohn.org/blog/html-5-data-attributes/) as element flags. A bug report [has been filed](http://yuilibrary.com/projects/yui2/ticket/2529254) about this issue, but in the meantime YUI remains incompatible with Flexie.
|
50
|
-
|
51
|
-
## Asynchronous API
|
52
|
-
You can run Flexie asynchronously in case you cannot purely on style sheets. All parameters are optional, unless otherwise stated:
|
53
|
-
|
54
|
-
### Creating a new Flexie Object
|
55
|
-
var box = new Flexie.box({
|
56
|
-
target : document.getElementById("foo"),
|
57
|
-
orient : "horizontal",
|
58
|
-
align : "stretch",
|
59
|
-
direction : "normal",
|
60
|
-
pack : "start",
|
61
|
-
flexMatrix : [1, 1, 1, 1],
|
62
|
-
ordinalMatrix : [0, 0, 0, 0]
|
63
|
-
});
|
64
|
-
|
65
|
-
* **target**
|
66
|
-
(required) The flexbox parent element. This must be a DOM node.
|
67
|
-
* **orient**
|
68
|
-
(optional) Possible values: `horizontal`, `vertical`
|
69
|
-
* **align**
|
70
|
-
(optional) Possible values: `stretch`, `start`, `end`, `center`
|
71
|
-
* **direction**
|
72
|
-
(optional) Possible values: `normal`, `reverse`
|
73
|
-
* **pack**
|
74
|
-
(optional) Possible values: `start`, `end`, `center`, `justify`
|
75
|
-
* **flexMatrix**
|
76
|
-
(optional) An array of values to apply to the parent's children. e.g.:
|
77
|
-
flexMatrix : [1, 0, 0] // Three child nodes contained, the parent's first child has a box-flex value of 1
|
78
|
-
flexMatrix : [1, 0, 1] // Three child nodes contained, the parent's first and last child have a box-flex value of 1
|
79
|
-
flexMatrix : [1, 1, 1] // Three child nodes contained, all children have a box-flex value of 1
|
80
|
-
* **ordinalMatrix**
|
81
|
-
(optional) An array of values to apply to the parent's children. See `flexMatrix` for an example.
|
82
|
-
|
83
|
-
### Flexie.updateInstance(target, params)
|
84
|
-
Used to redraw currently active Flexie objects (i.e., after dynamically updating a flexbox element). All parameters optional.
|
85
|
-
|
86
|
-
_Note: Calling this method without parameters will update all instances._
|
87
|
-
|
88
|
-
* **target**
|
89
|
-
(optional) The flexbox element to update.
|
90
|
-
* **params**
|
91
|
-
(optional) An object of flexbox properties to update. See Creating a new Flexie Object for accepted parameters.
|
92
|
-
|
93
|
-
### Flexie.getInstance(target)
|
94
|
-
Returns the target instance
|
95
|
-
|
96
|
-
* **target**
|
97
|
-
(optional) The flexbox instance to retrieve.
|
98
|
-
|
99
|
-
### Flexie.destroyInstance(target)
|
100
|
-
Destroys the target instance.
|
101
|
-
|
102
|
-
_Note: Calling this method without parameters will destroy all instances._
|
103
|
-
|
104
|
-
* **target**
|
105
|
-
(optional) The flexbox instance to retrieve.
|
106
|
-
|
107
|
-
### Flexie.flexboxSupported
|
108
|
-
An exposed object detailing the level of flexbox support. Returns false for no support.
|
109
|
-
|
110
|
-
## Acknowledgements
|
111
|
-
Selectivizr, for their fantastic CSS parsing engine.
|
112
|
-
|
113
|
-
## Copyright and Software License
|
114
|
-
The MIT License
|
115
|
-
|
116
|
-
Copyright (c) 2010 Richard Herrera
|
117
|
-
|
118
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
119
|
-
of this software and associated documentation files (the "Software"), to deal
|
120
|
-
in the Software without restriction, including without limitation the rights
|
121
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
122
|
-
copies of the Software, and to permit persons to whom the Software is
|
123
|
-
furnished to do so, subject to the following conditions:
|
124
|
-
|
125
|
-
The above copyright notice and this permission notice shall be included in
|
126
|
-
all copies or substantial portions of the Software.
|
127
|
-
|
128
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
129
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
130
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
131
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
132
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
133
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
134
|
-
THE SOFTWARE.
|
135
|
-
|
136
|
-
## Contact
|
137
|
-
* rich {at} doctyper {dot} com
|
138
|
-
* [@doctyper](http://twitter.com/doctyper) on Twitter
|
139
|
-
* <http://doctyper.com>
|
140
|
-
|
141
|
-
## Links
|
142
|
-
* Flexie on GitHub: <http://github.com/doctyper/flexie>
|
@@ -1,30 +0,0 @@
|
|
1
|
-
#box-parent {
|
2
|
-
width: 100%; /* Firefox needs this */
|
3
|
-
height: 100%;
|
4
|
-
}
|
5
|
-
|
6
|
-
#box-parent, #box-child-2, #nested-child-2 {
|
7
|
-
display: -webkit-box;
|
8
|
-
display: -moz-box;
|
9
|
-
display: box;
|
10
|
-
|
11
|
-
-webkit-box-orient: vertical;
|
12
|
-
-moz-box-orient: vertical;
|
13
|
-
box-orient: vertical;
|
14
|
-
|
15
|
-
-webkit-box-direction: reverse;
|
16
|
-
-moz-box-direction: reverse;
|
17
|
-
box-direction: reverse;
|
18
|
-
}
|
19
|
-
|
20
|
-
#box-parent div {
|
21
|
-
-webkit-box-flex: 1;
|
22
|
-
-moz-box-flex: 1;
|
23
|
-
box-flex: 1;
|
24
|
-
}
|
25
|
-
|
26
|
-
#box-child-2 {
|
27
|
-
-webkit-box-ordinal-group: 2;
|
28
|
-
-moz-box-ordinal-group: 2;
|
29
|
-
box-ordinal-group: 2;
|
30
|
-
}
|
@@ -1,108 +0,0 @@
|
|
1
|
-
<!doctype html>
|
2
|
-
<html lang="en">
|
3
|
-
<head>
|
4
|
-
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
5
|
-
<title>Flexie Demo</title>
|
6
|
-
|
7
|
-
<!-- Flexie -->
|
8
|
-
<style type="text/css" media="screen">
|
9
|
-
* {
|
10
|
-
margin: 0;
|
11
|
-
padding: 0;
|
12
|
-
border: 0;
|
13
|
-
}
|
14
|
-
|
15
|
-
html, body {
|
16
|
-
width: 100%;
|
17
|
-
height: 100%;
|
18
|
-
}
|
19
|
-
|
20
|
-
body {
|
21
|
-
background: #444;
|
22
|
-
text-align: center;
|
23
|
-
color: #ddd;
|
24
|
-
font: bold 14px "Helvetica Neue", Helvetica, Arial, sans-serif;
|
25
|
-
}
|
26
|
-
|
27
|
-
#box-child-1 {
|
28
|
-
background: #111;
|
29
|
-
}
|
30
|
-
|
31
|
-
#box-child-2 {
|
32
|
-
background: #222;
|
33
|
-
}
|
34
|
-
|
35
|
-
#box-child-3 {
|
36
|
-
background: #333;
|
37
|
-
}
|
38
|
-
|
39
|
-
#nested-child-1 {
|
40
|
-
background: #444;
|
41
|
-
}
|
42
|
-
|
43
|
-
#nested-child-2 {
|
44
|
-
background: #555;
|
45
|
-
}
|
46
|
-
|
47
|
-
#nested-child-3 {
|
48
|
-
background: #666;
|
49
|
-
}
|
50
|
-
|
51
|
-
#deep-child-1 {
|
52
|
-
background: #777;
|
53
|
-
}
|
54
|
-
|
55
|
-
#deep-child-2 {
|
56
|
-
background: #888;
|
57
|
-
}
|
58
|
-
|
59
|
-
#deep-child-3 {
|
60
|
-
background: #999;
|
61
|
-
}
|
62
|
-
</style>
|
63
|
-
<link rel="stylesheet" href="css/box-flex.css" type="text/css" />
|
64
|
-
</head>
|
65
|
-
<body>
|
66
|
-
<div id="box-parent">
|
67
|
-
<div id="box-child-1"><span>Box Child 1</span></div>
|
68
|
-
<div id="box-child-2">
|
69
|
-
<div id="nested-child-1"><span>Nested Child 1</span></div>
|
70
|
-
<div id="nested-child-2">
|
71
|
-
<div id="deep-child-1"><span>Deep Child 1</span></div>
|
72
|
-
<div id="deep-child-2"><span>Deep Child 2</span></div>
|
73
|
-
<div id="deep-child-3"><span>Deep Child 3</span></div>
|
74
|
-
</div>
|
75
|
-
<div id="nested-child-3"><span>Nested Child 3</span></div>
|
76
|
-
</div>
|
77
|
-
<div id="box-child-3"><span>Box Child 3</span></div>
|
78
|
-
</div>
|
79
|
-
|
80
|
-
<!-- DOMAssistant -->
|
81
|
-
<!-- <script src="http://domassistant.googlecode.com/svn/branches/2.8/DOMAssistantCompressed.js" type="text/javascript"></script> -->
|
82
|
-
|
83
|
-
<!-- NWMatcher -->
|
84
|
-
<!-- <script src="http://nwevents.googlecode.com/svn/trunk/nwmatcher.js" type="text/javascript"></script> -->
|
85
|
-
|
86
|
-
<!-- jQuery -->
|
87
|
-
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js" type="text/javascript"></script>
|
88
|
-
|
89
|
-
<!-- Sizzle -->
|
90
|
-
<!-- <script src="http://github.com/jeresig/sizzle/raw/master/sizzle.js" type="text/javascript"></script> -->
|
91
|
-
|
92
|
-
<!-- MooTools -->
|
93
|
-
<!-- <script src="https://ajax.googleapis.com/ajax/libs/mootools/1.3.0/mootools-yui-compressed.js" type="text/javascript"></script> -->
|
94
|
-
|
95
|
-
<!-- YUI -->
|
96
|
-
<!-- <script src="http://yui.yahooapis.com/2.8.1/build/yahoo/yahoo-min.js"></script> -->
|
97
|
-
<!-- <script src="http://yui.yahooapis.com/2.8.1/build/selector/selector-min.js"></script> -->
|
98
|
-
|
99
|
-
<!-- Prototype -->
|
100
|
-
<!-- <script src="https://ajax.googleapis.com/ajax/libs/prototype/1.6.1.0/prototype.js" type="text/javascript"></script> -->
|
101
|
-
|
102
|
-
<!-- Dojo -->
|
103
|
-
<!-- <script src="https://ajax.googleapis.com/ajax/libs/dojo/1.5/dojo/dojo.xd.js" type="text/javascript"></script> -->
|
104
|
-
|
105
|
-
<!-- Flexie -->
|
106
|
-
<script src="/src/flexie.js" type="text/javascript"></script>
|
107
|
-
</body>
|
108
|
-
</html>
|
@@ -1,33 +0,0 @@
|
|
1
|
-
var Flexie=function(x,E){function F(a){if(a)a=a.replace(wa,v).replace(xa,v);return a}function h(a,d){var c,b=0,e=a?a.length:W;if(e===W)for(c in a){if(a.hasOwnProperty(c))if(d.call(a[c],c,a[c])===I)break}else for(c=a[0];b<e&&d.call(c,b,c)!==I;c=a[++b]);}function ya(){var a;h(X,function(d,c){if(x[d]&&!a)if(a=eval(c.s.replace("*",d))){Y=d;return false}});return a}function Z(a,d){a="on"+a;var c=x[a];x[a]=typeof x[a]!=="function"?d:function(){c&&c();d()}}function $(a){var d=a.nodeName.toLowerCase();if(a.id)d+=
|
2
|
-
"#"+a.id;else if(a.FLX_DOM_ID)d+="["+aa+"='"+a.FLX_DOM_ID+"']";return d}function S(a){if(!a.FLX_DOM_ID){T+=1;a.FLX_DOM_ID=T;a.setAttribute(aa,a.FLX_DOM_ID)}}function za(a){var d=[],c,b,e,f,g,i;a=a.replace(Aa,v);a=a.replace(/\s?(\{|\:|\})\s?/g,P);a=a.split(ba);h(a,function(j,l){if(l){c=[l,ba].join(v);if((b=/(.*)\{(.*)\}/.exec(c))&&b[2]){e=b[1];f=b[2].split(";");i=[];h(f,function(m,r){g=r.split(":");g.length&&g[1]&&i.push({property:g[0],value:g[1]})});e&&i.length&&d.push({selector:e,properties:i})}}});
|
3
|
-
return d}function Ba(a){var d,c,b,e,f,g=/\s?,\s?/,i,j,l={},m={};i=function(r,n,o,k){var p={selector:F(r),properties:[]};h(n.properties,function(s,w){p.properties.push({property:F(w.property),value:F(w.value)})});if(o&&k)p[o]=k;return p};j=function(r,n,o,k){var p=o&&k?l[r]:m[r],s;if(p){h(n.properties,function(w,B){h(p.properties,function(M,A){if(B.property===A.property){s=M;return false}});if(s)p.properties[s]=B;else p.properties.push(B)});if(o&&k)p[o]=k}else if(o&&k)l[r]=i(r,n,o,k);else m[r]=i(r,
|
4
|
-
n,t,t)};h(a,function(r,n){d=F(n.selector).replace(g,",").split(g);h(d,function(o,k){k=F(k);c=n.properties;h(c,function(p,s){b=F(s.property);e=F(s.value);if(b){f=b.replace("box-",v);switch(f){case "display":e==="box"&&j(k,n,t,t);break;case "orient":case "align":case "direction":case "pack":j(k,n,t,t);break;case "flex":case "flex-group":case "ordinal-group":j(k,n,f,e)}}})})});h(m,function(r,n){y.push(n)});h(l,function(r,n){ca.push(n)});return{boxes:y,children:ca}}function da(a,d,c){var b,e,f=[];h(c,
|
5
|
-
function(g,i){if(i.selector){b=d(i.selector);b=b[0]?b:[b];b[0]&&h(b,function(j,l){switch(l.nodeName.toLowerCase()){case "script":case "style":case "link":break;default:if(l.parentNode===a){S(l);e={};h(i,function(m){e[m]=i[m]});e.match=l;f.push(e)}}})}else{S(i);f.push({match:i,selector:$(i)})}});return f}function Ca(a){h(a,function(d,c){a[d]=c||Da[d]});return a}function Ea(a){var d,c,b,e,f,g,i,j,l,m,r,n,o,k,p={},s,w,B,M="["+Q+"]";if(a){h(a.boxes,function(A,C){C.selector=F(C.selector);d=C.selector;
|
6
|
-
c=C.properties;g=i=j=l=m=t;h(c,function(Fa,G){b=F(G.property);e=F(G.value);if(b){f=b.replace("box-",v);switch(f){case "display":if(e==="box")g=e;break;case "orient":i=e;break;case "align":j=e;break;case "direction":l=e;break;case "pack":m=e}}});r=J;n=r(C.selector);n=n[0]?n:[n];h(n,function(Fa,G){if(G.nodeType){S(G);o=da(G,r,a.children);B=d+" "+M;k={target:G,selector:d,properties:c,children:o,display:g,orient:i,align:j,direction:l,pack:m,nested:B};if(s=p[G.FLX_DOM_ID])h(k,function(K,N){switch(K){case "selector":if(N&&
|
7
|
-
!RegExp(N).test(s[K]))s[K]+=", "+N;break;case "children":h(k[K],function(Xa,ea){w=I;h(s[K],function(Ya,Ga){if(ea.match.FLX_DOM_ID===Ga.match.FLX_DOM_ID)w=q});w||s[K].push(ea)});break;default:if(N)s[K]=N}});else{p[G.FLX_DOM_ID]=Ca(k);p[G.FLX_DOM_ID].target.setAttribute(Q,q)}}})});fa=J(M);y={};h(fa,function(A,C){y[C.FLX_DOM_ID]=p[C.FLX_DOM_ID]});h(y,function(A,C){C.display==="box"&&new z.box(C)})}}function ga(a,d,c){c=c.replace(c.charAt(0),c.charAt(0).toUpperCase());var b=a["offset"+c]||0;b&&h(d,function(e,
|
8
|
-
f){f=parseFloat(a.currentStyle[f]);isNaN(f)||(b-=f)});return b}function ha(a,d){var c,b,e=a.currentStyle&&a.currentStyle[d],f=a.style;if(!ia.test(e)&&Ha.test(e)){c=f.left;b=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;f.left=e||0;e=f.pixelLeft+"px";f.left=c||0;a.runtimeStyle.left=b}return e}function u(a,d,c){if(x.getComputedStyle)a=x.getComputedStyle(a,t)[d];else if(Ia.test(d)){var b=a&&a.currentStyle?a.currentStyle[d]:0;if(!ia.test(b)){if(b==="auto"||b==="medium"){switch(d){case "width":b=
|
9
|
-
[ja,ka,la,ma];b=ga(a,b,d);break;case "height":b=[U,na,oa,pa];b=ga(a,b,d);break;default:b=ha(a,d)}a=b}else a=ha(a,d);b=a}a=b}else a=a.currentStyle[d];if(c){a=parseInt(a,10);if(isNaN(a))a=0}return a}function Ja(a){return a.innerWidth||a.clientWidth}function Ka(a){return a.innerHeight||a.clientHeight}function V(a,d,c,b){var e=[];h(La,function(f,g){e.push((b?g:v)+d+":"+(!b?g:v)+c)});a.style.cssText+=e.join(";");return a}function D(a,d,c){h(a&&a[0]?a:[a],function(b,e){if(e&&e.style)e.style[d]=c?c+"px":
|
10
|
-
v})}function Ma(a){var d,c;a=a.replace(Na,function(b,e){return"%"+e}).replace(/\s|\>|\+|\~/g,"%").split(/%/g);d={_id:100,_class:10,_tag:1};c=0;h(a,function(b,e){if(/#/.test(e))c+=d._id;else if(/\.|\[|\:/.test(e))c+=d._class;else if(/[a-zA-Z]+/.test(e))c+=d._tag});return c}function Oa(a,d,c){var b=[],e,f=(c?"ordinal":"flex")+"Specificity";h(a,function(g,i){if(!c&&i.flex||c&&i["ordinal-group"]){i[f]=i[f]||Ma(i.selector);e=I;h(b,function(j,l){if(l.match===i.match){if(l[f]<i[f])b[j]=i;e=q;return I}});
|
11
|
-
e||b.push(i)}});return b}function R(a,d,c){var b={},e=[],f=0,g;a=Oa(a,d,c);h(d,function(i,j){h(a,function(l,m){if(c){g=m["ordinal-group"]||"1";if(m.match===j){m.match.setAttribute("data-ordinal-group",g);b[g]=b[g]||[];b[g].push(m)}}else{g=m.flex||"0";if(m.match===j&&(!m[g]||m[g]&&parseInt(m[g],10)<=1)){f+=parseInt(g,10);b[g]=b[g]||[];b[g].push(m)}}});if(c&&!j.getAttribute("data-ordinal-group")){g="1";j.setAttribute("data-ordinal-group",g);b[g]=b[g]||[];b[g].push({match:j})}});h(b,function(i){e.push(i)});
|
12
|
-
e.sort(function(i,j){return j-i});return{keys:e,groups:b,total:f}}function qa(a,d,c){a=d.nodes;var b,e=true;for(b=function(f){return f.offsetTop-u(f,c.anti.pos,q)};e&&b(a[0])!==b(a[a.length-1]);)h(a,function(f,g){if(!d.hasFlex||g.getAttribute("data-flex")){e=Math.max(0,u(g,c.props.dim,q)-1);g.style[c.props.dim]=e}})}function Pa(){if(!ra){var a,d,c,b,e=E.body,f=E.documentElement;Z("resize",function(){c=x.innerWidth||f.innerWidth||f.clientWidth||e.clientWidth;b=x.innerHeight||f.innerHeight||f.clientHeight||
|
13
|
-
e.clientHeight;if(a!==c||d!==b){z.updateInstance(t,t);a=c;d=b}});ra=q}}function sa(a){var d,c;h(a,function(b,e){d=e.style.width;c=e.style.height;e.style.cssText=v;e.style.width=d;e.style.height=c})}function O(a,d){var c=[],b,e,f;e=0;for(f=d.length;e<f;e++)if(b=d[e])switch(b.nodeName.toLowerCase()){case "script":case "style":case "link":break;default:if(b.nodeType===1)c.push(b);else if(b.nodeType===3&&(b.isElementContentWhitespace||Qa.test(b.data))){a.removeChild(b);e--}}return c}function ta(a){var d=
|
14
|
-
0;a=a.parentNode;for(var c;a.FLX_DOM_ID;){c=y[a.FLX_DOM_ID];c=R(c.children,O(a,a.childNodes),t);d+=c.total;c=q;a=a.parentNode}return{nested:c,flex:d}}function Ra(a,d){var c=a.parentNode,b;if(c.FLX_DOM_ID){c=y[c.FLX_DOM_ID];h(c.properties,function(e,f){if(RegExp(d).test(f.property)){b=q;return I}})}return b}function Sa(a){a.flexMatrix&&h(a.children,function(d,c){c.flex=a.flexMatrix[d]});a.ordinalMatrix&&h(a.children,function(d,c){c["ordinal-group"]=a.ordinalMatrix[d]});return a}function Ta(a,d){var c=
|
15
|
-
a.target;if(!c.FLX_DOM_ID)c.FLX_DOM_ID=c.FLX_DOM_ID||++T;if(!a.nodes)a.nodes=O(c,c.childNodes);if(!a.selector){a.selector=$(c);c.setAttribute(Q,q)}if(!a.properties)a.properties=[];if(!a.children)a.children=da(c,J,O(c,c.childNodes));if(!a.nested)a.nested=a.selector+" ["+Q+"]";a.target=c;a._instance=d;return a}var z={},T=0,aa="data-flexie-id",Q="data-flexie-parent",H,Y,X={NW:{s:"*.Dom.select"},DOMAssistant:{s:"*.$",m:"*.DOMReady"},Prototype:{s:"$$",m:"document.observe",p:"dom:loaded",c:"document"},
|
16
|
-
YAHOO:{s:"*.util.Selector.query",m:"*.util.Event.onDOMReady",c:"*.util.Event"},MooTools:{s:"$$",m:"window.addEvent",p:"domready"},Sizzle:{s:"*"},jQuery:{s:"*",m:"*(document).ready"},dojo:{s:"*.query",m:"*.addOnLoad"}},J,ia=/^-?\d+(?:px)?$/i,Ha=/^-?\d/,Ia=/width|height|margin|padding|border/,Ua=/(msie) ([\w.]+)/,Aa=/\t|\n|\r/g,Va=/^max\-([a-z]+)/,Wa=/^https?:\/\//i,wa=/^\s\s*/,xa=/\s\s*$/,Qa=/^\s*$/,Na=/\s?(\#|\.|\[|\:(\:)?[^first\-(line|letter)|before|after]+)/g,v="",ua=" ",P="$1",ka="paddingRight",
|
17
|
-
na="paddingBottom",ja="paddingLeft",U="paddingTop",ma="borderRightWidth",pa="borderBottomWidth",la="borderLeftWidth",oa="borderTopWidth",ba="}",La=" -o- -moz- -ms- -webkit- -khtml- ".split(ua),Da={orient:"horizontal",align:"stretch",direction:"inherit",pack:"start"},y=[],ca=[],fa,ra,q=true,I=false,t=null,W,L={IE:function(){var a,d=Ua.exec(x.navigator.userAgent.toLowerCase());if(d)a=parseInt(d[2],10);return a}()},va;va=function(){function a(o){return o.replace(j,function(k,p,s){k=s.split(",");h(k,
|
18
|
-
function(w,B){B.replace(l,P).replace(m,P).replace(n,P).replace(r,ua)});return p+k.join(",")})}function d(){if(x.XMLHttpRequest)return new x.XMLHttpRequest;try{return new x.ActiveXObject("Microsoft.XMLHTTP")}catch(o){return t}}function c(o){var k=d();k.open("GET",o,I);k.send();return k.status===200?k.responseText:v}function b(o,k){if(o){if(Wa.test(o))return k.substring(0,k.indexOf("/",8))===o.substring(0,o.indexOf("/",8))?o:t;if(o.charAt(0)==="/")return k.substring(0,k.indexOf("/",8))+o;var p=k.split("?")[0];
|
19
|
-
if(o.charAt(0)!=="?"&&p.charAt(p.length-1)!=="/")p=p.substring(0,p.lastIndexOf("/")+1);return p+o}}function e(o){if(o)return c(o).replace(f,v).replace(g,function(k,p,s){return e(b(s,o))}).replace(i,function(k,p,s){p=p||v;return" url("+p+b(s,o)+p+") "});return v}var f=/(\/\*[^*]*\*+([^\/][^*]*\*+)*\/)\s*/g,g=/@import\s*(?:url\(\s*?)?(["'])?(.*?)\1\s*\)?[\w\W]*?;/g,i=/\surl\((["'])?([^"')]+)\1\)/g,j=/(^|\})\s*([^\{]*?[\[:][^\{]+)/g,l=/([(\[+~])\s+/g,m=/\s+([)\]+~])/g,r=/\s+/g,n=/^\s*((?:[\S\s]*\S)?)\s*$/;
|
20
|
-
return function(){var o,k,p;k=E.getElementsByTagName("BASE");var s=k.length>0?k[0].href:E.location.href,w;k=0;for(p=E.styleSheets.length;k<p;k++)if((o=E.styleSheets[k])&&o.href!==t)if(o=b(o.href,s)){w=a(e(o));w=za(w);w=Ba(w)}Ea(w)}}();z.box=function(a){return this.renderModel(a)};z.box.prototype={properties:{boxModel:function(a,d,c){var b,e;a.style.display="block";if(L.IE===8)a.style.overflow="hidden";if(!c.cleared){selectors=c.selector.split(/\s?,\s?/);b=E.styleSheets;b=b[b.length-1];e="padding-top:"+
|
21
|
-
(u(a,U,t)||"0.1px;");h(selectors,function(f,g){if(b.addRule)if(L.IE<8){a.style.zoom="1";if(L.IE===6)b.addRule(g.replace(/\>|\+|\~/g,""),e+"zoom:1;",0);else L.IE===7&&b.addRule(g,e+"display:inline-block;",0)}else{b.addRule(g,e,0);b.addRule(g+":before","content: '.';display: block;height: 0;overflow: hidden",0);b.addRule(g+":after","content: '.';display: block;height: 0;overflow: hidden;clear:both;",0)}else if(b.insertRule){b.insertRule(g+"{"+e+"}",0);b.insertRule(g+":after{content: '.';display: block;height: 0;overflow: hidden;clear:both;}",
|
22
|
-
0)}});c.cleared=q}},boxDirection:function(a,d,c){var b;if(c.direction==="reverse"&&!c.reversed||c.direction==="normal"&&c.reversed){d=d.reverse();h(d,function(e,f){a.appendChild(f)});d=J(c.nested);h(d,function(e,f){if((b=y[f.FLX_DOM_ID])&&b.direction==="inherit")b.direction=c.direction});c.reversed=!c.reversed}},boxOrient:function(a,d,c){var b;a={pos:"marginLeft",opp:"marginRight",dim:"width",out:"offsetWidth",func:Ja,pad:[ja,ka,la,ma]};b={pos:"marginTop",opp:"marginBottom",dim:"height",out:"offsetHeight",
|
23
|
-
func:Ka,pad:[U,na,oa,pa]};H||h(d,function(e,f){f.style[L.IE>=9?"cssFloat":"styleFloat"]="left";if(c.orient==="vertical"||c.orient==="block-axis")f.style.clear="left";if(L.IE===6)f.style.display="inline"});switch(c.orient){case "vertical":case "block-axis":this.props=b;this.anti=a;break;default:this.props=a;this.anti=b}},boxOrdinalGroup:function(a,d,c){var b,e;if(d.length){b=function(f){f=f.keys;h(c.reversed?f:f.reverse(),function(g,i){h(d,function(j,l){i===l.getAttribute("data-ordinal-group")&&a.appendChild(l)})})};
|
24
|
-
e=R(c.children,d,q);e.keys.length>1&&b(e)}},boxFlex:function(a,d,c){var b=this,e,f,g,i;if(d.length){e=function(j){var l=j.groups,m;h(j.keys,function(r,n){h(l[n],function(o,k){m=t;h(k.properties,function(p,s){if(Va.test(s.property))m=parseFloat(s.value)});if(!m||k.match[b.props.out]>m)D(k.match,b.props.pos,t)})})};f=function(j){var l=0,m;h(d,function(r,n){l+=u(n,b.props.dim,q);h(b.props.pad,function(o,k){l+=u(n,k,q)});l+=u(n,b.props.pos,q);l+=u(n,b.props.opp,q)});m=a[b.props.out]-l;h(b.props.pad,function(r,
|
25
|
-
n){m-=u(a,n,q)});return{whitespace:m,ration:m/j.total}};g=function(j,l){var m=j.groups,r,n,o=l.ration,k,p,s;h(j.keys,function(w,B){k=o*B;h(m[B],function(M,A){if(A.match){r=A.match.getAttribute("data-flex");n=A.match.getAttribute("data-specificity");if(!r||n<=A.flexSpecificity){A.match.setAttribute("data-flex",B);A.match.setAttribute("data-specificity",A.flexSpecificity);p=u(A.match,b.props.dim,q);s=Math.max(0,p+k);D(A.match,b.props.dim,s)}}})});if(c.orient==="horizontal"||c.orient==="inline-axis")qa(a,
|
26
|
-
c,b)};i=R(c.children,d,t);if(i.total){c.hasFlex=q;e(i);e=f(i);g(i,e)}}},boxAlign:function(a,d,c){var b=this,e,f,g=ta(a);if(!H&&!g.flex&&(c.orient==="vertical"||c.orient==="block-axis")){Ra(a,b.anti.dim)||D(a,b.anti.dim,t);D(d,b.anti.dim,t)}e=a[b.anti.out];h(b.anti.pad,function(i,j){e-=u(a,j,q)});switch(c.align){case "start":break;case "end":h(d,function(i,j){f=e-j[b.anti.out];f-=u(j,b.anti.opp,q);D(j,b.anti.pos,f)});break;case "center":h(d,function(i,j){f=(e-j[b.anti.out])/2;D(j,b.anti.pos,f)});break;
|
27
|
-
default:h(d,function(i,j){switch(j.nodeName.toLowerCase()){case "button":case "input":case "select":break;default:var l=0;h(b.anti.pad,function(m,r){l+=u(j,r,q);l+=u(a,r,q)});j.style[b.anti.dim]="100%";f=j[b.anti.out]-l;D(j,b.anti.dim,t);f=e;f-=u(j,b.anti.pos,q);h(b.anti.pad,function(m,r){f-=u(j,r,q)});f-=u(j,b.anti.opp,q);f=Math.max(0,f);D(j,b.anti.dim,f)}})}},boxPack:function(a,d,c){var b=this,e=0,f=0,g=0,i,j,l;l=d.length-1;h(d,function(r,n){e+=n[b.props.out];e+=u(n,b.props.pos,q);e+=u(n,b.props.opp,
|
28
|
-
q)});f=u(d[0],b.props.pos,q);i=a[b.props.out]-e;h(b.props.pad,function(r,n){i-=u(a,n,q)});if(i<0)i=Math.max(0,i);switch(c.pack){case "end":D(d[0],b.props.pos,g+f+i);break;case "center":if(g)g/=2;D(d[0],b.props.pos,g+f+i/2);break;case "justify":f=Math.floor((g+i)/l);l=f*l-i;for(var m=d.length-1;m;){g=d[m];j=f;if(l){j++;l++}j=u(g,b.props.pos,q)+j;D(g,b.props.pos,j);m--}}if((c.pack==="end"||c.pack==="justify")&&(c.orient==="horizontal"||c.orient==="inline-axis"))qa(a,c,b);a.style.overflow=""}},setup:function(a,
|
29
|
-
d,c){var b=this,e,f;if(!(!a||!d||!c))if(H&&H.partialSupport){e=R(c.children,d,t);f=ta(a);d=O(a,a.childNodes);b.properties.boxOrient.call(b,a,d,c);if(!e.total||!J(c.nested).length){if(c.align==="stretch"&&!H.boxAlignStretch&&(!f.nested||!f.flex))b.properties.boxAlign.call(b,a,d,c);c.pack==="justify"&&!H.boxPackJustify&&!e.total&&b.properties.boxPack.call(b,a,d,c)}}else H||h(b.properties,function(g,i){i.call(b,a,O(a,a.childNodes),c)})},trackDOM:function(a){Pa(this,a)},updateModel:function(a){var d=
|
30
|
-
a.target,c=a.nodes;sa(c);if(a.flexMatrix||a.ordinalMatrix)a=Sa(a);this.setup(d,c,a);this.bubbleUp(d,a)},renderModel:function(a){var d=this,c=a.target,b=c.childNodes;if(!c.length&&!b)return false;a=Ta(a,this);d.updateModel(a);x.setTimeout(function(){d.trackDOM(a)},0);return d},bubbleUp:function(a,d){for(var c,b=d.target.parentNode;b;){if(c=y[b.FLX_DOM_ID]){sa(c.nodes);this.setup(c.target,c.nodes,c)}b=b.parentNode}}};z.updateInstance=function(a,d){var c;if(a)if(c=y[a.FLX_DOM_ID])c._instance.updateModel(c);
|
31
|
-
else c=new z.box(d);else h(y,function(b,e){e._instance.updateModel(e)})};z.getInstance=function(a){return y[a.FLX_DOM_ID]};z.destroyInstance=function(a){var d;d=function(c){c.target.FLX_DOM_ID=t;c.target.style.cssText=v;h(c.children,function(b,e){e.match.style.cssText=v})};if(a)(a=y[a.FLX_DOM_ID])&&d(a);else{h(y,function(c,b){d(b)});y=[]}};z.flexboxSupport=function(){var a={},d,c=E.createElement("flxbox"),b;c.style.width=c.style.height="100px";c.innerHTML='<b style="margin: 0; padding: 0; display:block; width: 10px; height:50px"></b><b style="margin: 0; padding: 0; display:block; width: 10px; height:50px"></b><b style="margin: 0; padding: 0; display:block; width: 10px; height:50px"></b>';
|
32
|
-
V(c,"display","box",t);V(c,"box-align","stretch",q);V(c,"box-pack","justify",q);E.body.appendChild(c);d=c.firstChild.offsetHeight;h({boxAlignStretch:function(){return d===100},boxPackJustify:function(){var e=0;h(c.childNodes,function(f,g){e+=g.offsetLeft});return e===135}},function(e,f){b=f();if(!b)a.partialSupport=q;a[e]=b});E.body.removeChild(c);return~c.style.display.indexOf("box")?a:I};z.init=function(){z.flexboxSupported=H=z.flexboxSupport();if((!H||H.partialSupport)&&J)va()};z.version=1;(function(a){Y||
|
33
|
-
(J=ya());var d,c,b;h(X,function(e,f){if(x[e]&&!d&&f.m){d=eval(f.m.replace("*",e));c=f.c?eval(f.c.replace("*",e)):x;b=[];if(d&&c){f.p&&b.push(f.p);b.push(a);d.apply(c,b);return false}}});d||Z("load",a)})(z.init);return z}(this,document);
|
@@ -1,1872 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
File: flexie.js
|
3
|
-
|
4
|
-
About: Version
|
5
|
-
1.0
|
6
|
-
|
7
|
-
Project: Flexie
|
8
|
-
|
9
|
-
Description:
|
10
|
-
Legacy support for the CSS3 Flexible Box Model
|
11
|
-
|
12
|
-
License:
|
13
|
-
The MIT License
|
14
|
-
|
15
|
-
Copyright (c) 2010 Richard Herrera
|
16
|
-
|
17
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
18
|
-
of this software and associated documentation files (the "Software"), to deal
|
19
|
-
in the Software without restriction, including without limitation the rights
|
20
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
21
|
-
copies of the Software, and to permit persons to whom the Software is
|
22
|
-
furnished to do so, subject to the following conditions:
|
23
|
-
|
24
|
-
The above copyright notice and this permission notice shall be included in
|
25
|
-
all copies or substantial portions of the Software.
|
26
|
-
|
27
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
28
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
29
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
30
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
31
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
32
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
33
|
-
THE SOFTWARE.
|
34
|
-
*/
|
35
|
-
|
36
|
-
/*
|
37
|
-
Class: Flexie
|
38
|
-
Scoped to the Flexie Global Namespace
|
39
|
-
*/
|
40
|
-
|
41
|
-
/*jslint evil: true, regexp: false, plusplus: false */
|
42
|
-
/*global window, document */
|
43
|
-
|
44
|
-
var Flexie = (function (win, doc) {
|
45
|
-
|
46
|
-
// Scope public properties
|
47
|
-
var FLX = {},
|
48
|
-
|
49
|
-
// Each Flexie-modified DOM node gets a unique identifier
|
50
|
-
FLX_DOM_ID = 0,
|
51
|
-
FLX_DOM_ATTR = "data-flexie-id",
|
52
|
-
FLX_PARENT_ATTR = "data-flexie-parent",
|
53
|
-
|
54
|
-
// Store support for flexbox
|
55
|
-
SUPPORT,
|
56
|
-
|
57
|
-
// Store reference to engine
|
58
|
-
ENGINE,
|
59
|
-
|
60
|
-
ENGINES = {
|
61
|
-
"NW" : {
|
62
|
-
s : "*.Dom.select"
|
63
|
-
},
|
64
|
-
"DOMAssistant" : {
|
65
|
-
s : "*.$",
|
66
|
-
m : "*.DOMReady"
|
67
|
-
},
|
68
|
-
"Prototype" : {
|
69
|
-
s : "$$",
|
70
|
-
m : "document.observe",
|
71
|
-
p : "dom:loaded",
|
72
|
-
c : "document"
|
73
|
-
},
|
74
|
-
"YAHOO" : {
|
75
|
-
s : "*.util.Selector.query",
|
76
|
-
m : "*.util.Event.onDOMReady",
|
77
|
-
c : "*.util.Event"
|
78
|
-
},
|
79
|
-
"MooTools" : {
|
80
|
-
s : "$$",
|
81
|
-
m : "window.addEvent",
|
82
|
-
p : "domready"
|
83
|
-
},
|
84
|
-
"Sizzle" : {
|
85
|
-
s : "*"
|
86
|
-
},
|
87
|
-
"jQuery" : {
|
88
|
-
s : "*",
|
89
|
-
m : "*(document).ready"
|
90
|
-
},
|
91
|
-
"dojo" : {
|
92
|
-
s : "*.query",
|
93
|
-
m : "*.addOnLoad"
|
94
|
-
}
|
95
|
-
},
|
96
|
-
|
97
|
-
// Store reference to library
|
98
|
-
LIBRARY,
|
99
|
-
|
100
|
-
// Regular Expressions
|
101
|
-
PIXEL = /^-?\d+(?:px)?$/i,
|
102
|
-
NUMBER = /^-?\d/,
|
103
|
-
SIZES = /width|height|margin|padding|border/,
|
104
|
-
MSIE = /(msie) ([\w.]+)/,
|
105
|
-
WHITESPACE_CHARACTERS = /\t|\n|\r/g,
|
106
|
-
RESTRICTIVE_PROPERTIES = /^max\-([a-z]+)/,
|
107
|
-
PROTOCOL = /^https?:\/\//i,
|
108
|
-
LEADINGTRIM = /^\s\s*/,
|
109
|
-
TRAILINGTRIM = /\s\s*$/,
|
110
|
-
ONLY_WHITESPACE = /^\s*$/,
|
111
|
-
CSS_SELECTOR = /\s?(\#|\.|\[|\:(\:)?[^first\-(line|letter)|before|after]+)/g,
|
112
|
-
|
113
|
-
// String constants
|
114
|
-
EMPTY_STRING = "",
|
115
|
-
SPACE_STRING = " ",
|
116
|
-
PLACEHOLDER_STRING = "$1",
|
117
|
-
PADDING_RIGHT = "paddingRight",
|
118
|
-
PADDING_BOTTOM = "paddingBottom",
|
119
|
-
PADDING_LEFT = "paddingLeft",
|
120
|
-
PADDING_TOP = "paddingTop",
|
121
|
-
BORDER_RIGHT = "borderRightWidth",
|
122
|
-
BORDER_BOTTOM = "borderBottomWidth",
|
123
|
-
BORDER_LEFT = "borderLeftWidth",
|
124
|
-
BORDER_TOP = "borderTopWidth",
|
125
|
-
HORIZONTAL = "horizontal",
|
126
|
-
VERTICAL = "vertical",
|
127
|
-
INLINE_AXIS = "inline-axis",
|
128
|
-
BLOCK_AXIS = "block-axis",
|
129
|
-
INHERIT = "inherit",
|
130
|
-
LEFT = "left",
|
131
|
-
|
132
|
-
END_MUSTACHE = "}",
|
133
|
-
|
134
|
-
PREFIXES = " -o- -moz- -ms- -webkit- -khtml- ".split(SPACE_STRING),
|
135
|
-
|
136
|
-
DEFAULTS = {
|
137
|
-
orient : HORIZONTAL,
|
138
|
-
align : "stretch",
|
139
|
-
direction : INHERIT,
|
140
|
-
pack : "start"
|
141
|
-
},
|
142
|
-
|
143
|
-
// Global reference objects
|
144
|
-
FLEX_BOXES = [],
|
145
|
-
POSSIBLE_FLEX_CHILDREN = [],
|
146
|
-
DOM_ORDERED,
|
147
|
-
|
148
|
-
RESIZE_LISTENER,
|
149
|
-
|
150
|
-
// Minification optimizations
|
151
|
-
TRUE = true,
|
152
|
-
FALSE = false,
|
153
|
-
NULL = null,
|
154
|
-
UNDEFINED,
|
155
|
-
|
156
|
-
// If IE, which version?
|
157
|
-
BROWSER = {
|
158
|
-
IE : (function () {
|
159
|
-
var ie, ua = win.navigator.userAgent,
|
160
|
-
match = (MSIE).exec(ua.toLowerCase());
|
161
|
-
|
162
|
-
if (match) {
|
163
|
-
ie = parseInt(match[2], 10);
|
164
|
-
}
|
165
|
-
|
166
|
-
return ie;
|
167
|
-
}())
|
168
|
-
},
|
169
|
-
|
170
|
-
/*
|
171
|
-
selectivizr v1.0.0 - (c) Keith Clark, freely distributable under the terms
|
172
|
-
of the MIT license.
|
173
|
-
|
174
|
-
selectivizr.com
|
175
|
-
*/
|
176
|
-
selectivizrEngine;
|
177
|
-
|
178
|
-
function trim (string) {
|
179
|
-
if (string) {
|
180
|
-
string = string.replace(LEADINGTRIM, EMPTY_STRING).replace(TRAILINGTRIM, EMPTY_STRING);
|
181
|
-
}
|
182
|
-
|
183
|
-
return string;
|
184
|
-
}
|
185
|
-
|
186
|
-
// Via jQuery 1.4.3
|
187
|
-
// http://github.com/jquery/jquery/blob/master/src/core.js#L593
|
188
|
-
function forEach(object, callback) {
|
189
|
-
var name, i = 0, value,
|
190
|
-
length = object ? object.length : UNDEFINED,
|
191
|
-
isObj = length === UNDEFINED;
|
192
|
-
|
193
|
-
if (isObj) {
|
194
|
-
for (name in object) {
|
195
|
-
if (object.hasOwnProperty(name)) {
|
196
|
-
if (callback.call(object[name], name, object[name]) === FALSE) {
|
197
|
-
break;
|
198
|
-
}
|
199
|
-
}
|
200
|
-
}
|
201
|
-
} else {
|
202
|
-
for (value = object[0]; i < length && callback.call(value, i, value) !== FALSE; value = object[++i]) {
|
203
|
-
continue;
|
204
|
-
}
|
205
|
-
}
|
206
|
-
}
|
207
|
-
|
208
|
-
// --[ determineSelectorMethod() ]--------------------------------------
|
209
|
-
// walks through the engines object testing for an suitable
|
210
|
-
// selector engine.
|
211
|
-
|
212
|
-
// Moving outside Selectivizr scope because detection is needed before running selectivizrEngine
|
213
|
-
function determineSelectorMethod() {
|
214
|
-
// compatiable selector engines in order of CSS3 support
|
215
|
-
var engines = ENGINES, method;
|
216
|
-
|
217
|
-
forEach(engines, function (engine, obj) {
|
218
|
-
if (win[engine] && !method) {
|
219
|
-
method = eval(obj.s.replace("*", engine));
|
220
|
-
|
221
|
-
if (method) {
|
222
|
-
ENGINE = engine;
|
223
|
-
return false;
|
224
|
-
}
|
225
|
-
}
|
226
|
-
});
|
227
|
-
|
228
|
-
return method;
|
229
|
-
}
|
230
|
-
|
231
|
-
// Event handler for onload/onresize events
|
232
|
-
function addEvent(type, func) {
|
233
|
-
type = "on" + type;
|
234
|
-
var oldevent = win[type];
|
235
|
-
|
236
|
-
if (typeof win[type] !== "function") {
|
237
|
-
win[type] = func;
|
238
|
-
} else {
|
239
|
-
win[type] = function () {
|
240
|
-
if (oldevent) {
|
241
|
-
oldevent();
|
242
|
-
}
|
243
|
-
func();
|
244
|
-
};
|
245
|
-
}
|
246
|
-
}
|
247
|
-
|
248
|
-
function attachLoadMethod(handler) {
|
249
|
-
if (!ENGINE) {
|
250
|
-
LIBRARY = determineSelectorMethod();
|
251
|
-
}
|
252
|
-
|
253
|
-
// compatiable selector engines in order of CSS3 support
|
254
|
-
var engines = ENGINES,
|
255
|
-
method, caller, args;
|
256
|
-
|
257
|
-
forEach(engines, function (engine, obj) {
|
258
|
-
if (win[engine] && !method && obj.m) {
|
259
|
-
method = eval(obj.m.replace("*", engine));
|
260
|
-
caller = obj.c ? eval(obj.c.replace("*", engine)) : win;
|
261
|
-
args = [];
|
262
|
-
|
263
|
-
if (method && caller) {
|
264
|
-
if (obj.p) {
|
265
|
-
args.push(obj.p);
|
266
|
-
}
|
267
|
-
args.push(handler);
|
268
|
-
method.apply(caller, args);
|
269
|
-
return false;
|
270
|
-
}
|
271
|
-
}
|
272
|
-
});
|
273
|
-
|
274
|
-
if (!method) {
|
275
|
-
addEvent("load", handler);
|
276
|
-
}
|
277
|
-
}
|
278
|
-
|
279
|
-
function buildSelector (node) {
|
280
|
-
var selector = node.nodeName.toLowerCase();
|
281
|
-
|
282
|
-
if (node.id) {
|
283
|
-
selector += "#" + node.id;
|
284
|
-
} else if (node.FLX_DOM_ID) {
|
285
|
-
selector += "[" + FLX_DOM_ATTR + "='" + node.FLX_DOM_ID + "']";
|
286
|
-
}
|
287
|
-
|
288
|
-
return selector;
|
289
|
-
}
|
290
|
-
|
291
|
-
function setFlexieId (node) {
|
292
|
-
if (!node.FLX_DOM_ID) {
|
293
|
-
FLX_DOM_ID = (FLX_DOM_ID + 1);
|
294
|
-
|
295
|
-
node.FLX_DOM_ID = FLX_DOM_ID;
|
296
|
-
node.setAttribute(FLX_DOM_ATTR, node.FLX_DOM_ID);
|
297
|
-
}
|
298
|
-
}
|
299
|
-
|
300
|
-
function buildSelectorTree(text) {
|
301
|
-
var rules = [], ruletext, rule,
|
302
|
-
match, selector, proptext, splitprop, properties;
|
303
|
-
|
304
|
-
// Tabs, Returns
|
305
|
-
text = text.replace(WHITESPACE_CHARACTERS, EMPTY_STRING);
|
306
|
-
|
307
|
-
// Leading / Trailing Whitespace
|
308
|
-
text = text.replace(/\s?(\{|\:|\})\s?/g, PLACEHOLDER_STRING);
|
309
|
-
|
310
|
-
ruletext = text.split(END_MUSTACHE);
|
311
|
-
|
312
|
-
forEach(ruletext, function (i, text) {
|
313
|
-
if (text) {
|
314
|
-
rule = [text, END_MUSTACHE].join(EMPTY_STRING);
|
315
|
-
|
316
|
-
match = (/(.*)\{(.*)\}/).exec(rule);
|
317
|
-
|
318
|
-
if (match && match[2]) {
|
319
|
-
selector = match[1];
|
320
|
-
proptext = match[2].split(";");
|
321
|
-
properties = [];
|
322
|
-
|
323
|
-
forEach(proptext, function (i, x) {
|
324
|
-
splitprop = x.split(":");
|
325
|
-
|
326
|
-
if (splitprop.length && splitprop[1]) {
|
327
|
-
properties.push({
|
328
|
-
property : splitprop[0],
|
329
|
-
value : splitprop[1]
|
330
|
-
});
|
331
|
-
}
|
332
|
-
});
|
333
|
-
|
334
|
-
if (selector && properties.length) {
|
335
|
-
rules.push({
|
336
|
-
selector : selector,
|
337
|
-
properties : properties
|
338
|
-
});
|
339
|
-
}
|
340
|
-
}
|
341
|
-
}
|
342
|
-
});
|
343
|
-
|
344
|
-
return rules;
|
345
|
-
}
|
346
|
-
|
347
|
-
function findFlexboxElements(rules) {
|
348
|
-
var selectors, properties,
|
349
|
-
property, value, shortProp,
|
350
|
-
selectorSplit = /\s?,\s?/,
|
351
|
-
createUniqueObject, addRules,
|
352
|
-
uniqueChildren = {}, uniqueBoxes = {};
|
353
|
-
|
354
|
-
createUniqueObject = function (selector, rules, prop, value) {
|
355
|
-
var unique = {
|
356
|
-
selector : trim(selector),
|
357
|
-
properties : []
|
358
|
-
};
|
359
|
-
|
360
|
-
forEach(rules.properties, function (i, prop) {
|
361
|
-
unique.properties.push({
|
362
|
-
property : trim(prop.property),
|
363
|
-
value : trim(prop.value)
|
364
|
-
});
|
365
|
-
});
|
366
|
-
|
367
|
-
if (prop && value) {
|
368
|
-
unique[prop] = value;
|
369
|
-
}
|
370
|
-
|
371
|
-
return unique;
|
372
|
-
};
|
373
|
-
|
374
|
-
addRules = function (selector, rules, prop, value) {
|
375
|
-
var box = (prop && value) ? uniqueChildren[selector] : uniqueBoxes[selector],
|
376
|
-
exists;
|
377
|
-
|
378
|
-
if (box) {
|
379
|
-
forEach(rules.properties, function (i, rule) {
|
380
|
-
forEach(box.properties, function (j, x) {
|
381
|
-
if (rule.property === x.property) {
|
382
|
-
exists = j;
|
383
|
-
return false;
|
384
|
-
}
|
385
|
-
});
|
386
|
-
|
387
|
-
if (exists) {
|
388
|
-
box.properties[exists] = rule;
|
389
|
-
} else {
|
390
|
-
box.properties.push(rule);
|
391
|
-
}
|
392
|
-
});
|
393
|
-
|
394
|
-
if (prop && value) {
|
395
|
-
box[prop] = value;
|
396
|
-
}
|
397
|
-
} else {
|
398
|
-
if (prop && value) {
|
399
|
-
uniqueChildren[selector] = createUniqueObject(selector, rules, prop, value);
|
400
|
-
} else {
|
401
|
-
uniqueBoxes[selector] = createUniqueObject(selector, rules, NULL, NULL);
|
402
|
-
}
|
403
|
-
}
|
404
|
-
};
|
405
|
-
|
406
|
-
forEach(rules, function (i, rule) {
|
407
|
-
selectors = trim(rule.selector).replace(selectorSplit, ",").split(selectorSplit);
|
408
|
-
|
409
|
-
forEach(selectors, function (i, selector) {
|
410
|
-
selector = trim(selector);
|
411
|
-
properties = rule.properties;
|
412
|
-
|
413
|
-
forEach(properties, function (i, prop) {
|
414
|
-
property = trim(prop.property);
|
415
|
-
value = trim(prop.value);
|
416
|
-
|
417
|
-
if (property) {
|
418
|
-
shortProp = property.replace("box-", EMPTY_STRING);
|
419
|
-
|
420
|
-
switch (shortProp) {
|
421
|
-
case "display" :
|
422
|
-
if (value === "box") {
|
423
|
-
addRules(selector, rule, NULL, NULL);
|
424
|
-
}
|
425
|
-
break;
|
426
|
-
|
427
|
-
case "orient" :
|
428
|
-
case "align" :
|
429
|
-
case "direction" :
|
430
|
-
case "pack" :
|
431
|
-
addRules(selector, rule, NULL, NULL);
|
432
|
-
break;
|
433
|
-
|
434
|
-
case "flex" :
|
435
|
-
case "flex-group" :
|
436
|
-
case "ordinal-group" :
|
437
|
-
addRules(selector, rule, shortProp, value);
|
438
|
-
break;
|
439
|
-
}
|
440
|
-
}
|
441
|
-
});
|
442
|
-
});
|
443
|
-
});
|
444
|
-
|
445
|
-
forEach(uniqueBoxes, function (key, box) {
|
446
|
-
FLEX_BOXES.push(box);
|
447
|
-
});
|
448
|
-
|
449
|
-
forEach(uniqueChildren, function (key, child) {
|
450
|
-
POSSIBLE_FLEX_CHILDREN.push(child);
|
451
|
-
});
|
452
|
-
|
453
|
-
return {
|
454
|
-
boxes : FLEX_BOXES,
|
455
|
-
children : POSSIBLE_FLEX_CHILDREN
|
456
|
-
};
|
457
|
-
}
|
458
|
-
|
459
|
-
function matchFlexChildren(parent, lib, possibleChildren) {
|
460
|
-
var caller, unique, matches = [];
|
461
|
-
|
462
|
-
forEach(possibleChildren, function (i, child) {
|
463
|
-
if (child.selector) {
|
464
|
-
caller = lib(child.selector);
|
465
|
-
caller = caller[0] ? caller : [caller];
|
466
|
-
|
467
|
-
if (caller[0]) {
|
468
|
-
forEach(caller, function (i, node) {
|
469
|
-
switch (node.nodeName.toLowerCase()) {
|
470
|
-
case "script" :
|
471
|
-
case "style" :
|
472
|
-
case "link" :
|
473
|
-
break;
|
474
|
-
|
475
|
-
default :
|
476
|
-
if (node.parentNode === parent) {
|
477
|
-
// Flag each unique node with FLX_DOM_ID
|
478
|
-
setFlexieId(node);
|
479
|
-
|
480
|
-
unique = {};
|
481
|
-
|
482
|
-
forEach(child, function (key) {
|
483
|
-
unique[key] = child[key];
|
484
|
-
});
|
485
|
-
|
486
|
-
unique.match = node;
|
487
|
-
matches.push(unique);
|
488
|
-
}
|
489
|
-
break;
|
490
|
-
}
|
491
|
-
});
|
492
|
-
}
|
493
|
-
} else {
|
494
|
-
// Flag each unique node with FLX_DOM_ID
|
495
|
-
setFlexieId(child);
|
496
|
-
|
497
|
-
matches.push({
|
498
|
-
match : child,
|
499
|
-
selector : buildSelector(child)
|
500
|
-
});
|
501
|
-
}
|
502
|
-
});
|
503
|
-
|
504
|
-
return matches;
|
505
|
-
}
|
506
|
-
|
507
|
-
function getParams(params) {
|
508
|
-
forEach(params, function (key, value) {
|
509
|
-
params[key] = value || DEFAULTS[key];
|
510
|
-
});
|
511
|
-
|
512
|
-
return params;
|
513
|
-
}
|
514
|
-
|
515
|
-
function buildFlexieCall(flexers) {
|
516
|
-
var selector, properties, property, value, shortProp,
|
517
|
-
display, orient, align, direction, pack,
|
518
|
-
lib, caller, children,
|
519
|
-
box, params, flexboxes = {},
|
520
|
-
match, childMatch, nestedFlexboxes,
|
521
|
-
flexieParentSelector = "[" + FLX_PARENT_ATTR + "]";
|
522
|
-
|
523
|
-
// No boxflex? No dice.
|
524
|
-
if (!flexers) {
|
525
|
-
return;
|
526
|
-
}
|
527
|
-
|
528
|
-
forEach(flexers.boxes, function (i, flex) {
|
529
|
-
flex.selector = trim(flex.selector);
|
530
|
-
|
531
|
-
selector = flex.selector;
|
532
|
-
properties = flex.properties;
|
533
|
-
|
534
|
-
display = orient = align = direction = pack = NULL;
|
535
|
-
|
536
|
-
forEach(properties, function (i, prop) {
|
537
|
-
|
538
|
-
property = trim(prop.property);
|
539
|
-
value = trim(prop.value);
|
540
|
-
|
541
|
-
if (property) {
|
542
|
-
shortProp = property.replace("box-", EMPTY_STRING);
|
543
|
-
|
544
|
-
switch (shortProp) {
|
545
|
-
case "display" :
|
546
|
-
if (value === "box") {
|
547
|
-
display = value;
|
548
|
-
}
|
549
|
-
break;
|
550
|
-
|
551
|
-
case "orient" :
|
552
|
-
orient = value;
|
553
|
-
break;
|
554
|
-
|
555
|
-
case "align" :
|
556
|
-
align = value;
|
557
|
-
break;
|
558
|
-
|
559
|
-
case "direction" :
|
560
|
-
direction = value;
|
561
|
-
break;
|
562
|
-
|
563
|
-
case "pack" :
|
564
|
-
pack = value;
|
565
|
-
break;
|
566
|
-
}
|
567
|
-
}
|
568
|
-
});
|
569
|
-
|
570
|
-
// Determine library
|
571
|
-
lib = LIBRARY;
|
572
|
-
|
573
|
-
// Call it.
|
574
|
-
caller = lib(flex.selector);
|
575
|
-
|
576
|
-
// In an array?
|
577
|
-
caller = caller[0] ? caller : [caller];
|
578
|
-
|
579
|
-
forEach(caller, function (i, target) {
|
580
|
-
// If is DOM object
|
581
|
-
if (target.nodeType) {
|
582
|
-
// Flag each unique node with FLX_DOM_ID
|
583
|
-
setFlexieId(target);
|
584
|
-
|
585
|
-
// Find possible child node matches
|
586
|
-
children = matchFlexChildren(target, lib, flexers.children);
|
587
|
-
|
588
|
-
// Find any nested flexbox elements
|
589
|
-
nestedFlexboxes = selector + " " + flexieParentSelector;
|
590
|
-
|
591
|
-
// Make sure there is some value associated with box properties
|
592
|
-
params = {
|
593
|
-
target : target,
|
594
|
-
selector : selector,
|
595
|
-
properties : properties,
|
596
|
-
children : children,
|
597
|
-
display : display,
|
598
|
-
orient : orient,
|
599
|
-
align : align,
|
600
|
-
direction: direction,
|
601
|
-
pack : pack,
|
602
|
-
nested : nestedFlexboxes
|
603
|
-
};
|
604
|
-
|
605
|
-
match = flexboxes[target.FLX_DOM_ID];
|
606
|
-
|
607
|
-
if (match) {
|
608
|
-
forEach(params, function (key, value) {
|
609
|
-
switch (key) {
|
610
|
-
case "selector" :
|
611
|
-
if (value && !(new RegExp(value).test(match[key]))) {
|
612
|
-
match[key] += ", " + value;
|
613
|
-
}
|
614
|
-
break;
|
615
|
-
|
616
|
-
case "children" :
|
617
|
-
forEach(params[key], function (k, child) {
|
618
|
-
childMatch = FALSE;
|
619
|
-
|
620
|
-
forEach(match[key], function (key, existing) {
|
621
|
-
if (child.match.FLX_DOM_ID === existing.match.FLX_DOM_ID) {
|
622
|
-
childMatch = TRUE;
|
623
|
-
}
|
624
|
-
});
|
625
|
-
|
626
|
-
if (!childMatch) {
|
627
|
-
match[key].push(child);
|
628
|
-
}
|
629
|
-
});
|
630
|
-
break;
|
631
|
-
|
632
|
-
default :
|
633
|
-
if (value) {
|
634
|
-
match[key] = value;
|
635
|
-
}
|
636
|
-
break;
|
637
|
-
}
|
638
|
-
});
|
639
|
-
} else {
|
640
|
-
flexboxes[target.FLX_DOM_ID] = getParams(params);
|
641
|
-
flexboxes[target.FLX_DOM_ID].target.setAttribute(FLX_PARENT_ATTR, TRUE);
|
642
|
-
}
|
643
|
-
}
|
644
|
-
});
|
645
|
-
});
|
646
|
-
|
647
|
-
DOM_ORDERED = LIBRARY(flexieParentSelector);
|
648
|
-
FLEX_BOXES = {};
|
649
|
-
|
650
|
-
forEach(DOM_ORDERED, function (i, target) {
|
651
|
-
FLEX_BOXES[target.FLX_DOM_ID] = flexboxes[target.FLX_DOM_ID];
|
652
|
-
});
|
653
|
-
|
654
|
-
// Loop through each match, initialize constructor
|
655
|
-
forEach(FLEX_BOXES, function (key, flex) {
|
656
|
-
// One final check to ensure each flexbox has a display property
|
657
|
-
if (flex.display === "box") {
|
658
|
-
// Constructor
|
659
|
-
box = new FLX.box(flex);
|
660
|
-
}
|
661
|
-
});
|
662
|
-
}
|
663
|
-
|
664
|
-
function calcPx(element, props, dir) {
|
665
|
-
var dim = dir.replace(dir.charAt(0), dir.charAt(0).toUpperCase()),
|
666
|
-
value = element["offset" + dim] || 0;
|
667
|
-
|
668
|
-
if (value) {
|
669
|
-
forEach(props, function (i, prop) {
|
670
|
-
prop = parseFloat(element.currentStyle[prop]);
|
671
|
-
if (!isNaN(prop)) {
|
672
|
-
value -= prop;
|
673
|
-
}
|
674
|
-
});
|
675
|
-
}
|
676
|
-
|
677
|
-
return value;
|
678
|
-
}
|
679
|
-
|
680
|
-
function getTrueValue(element, name) {
|
681
|
-
var left, rsLeft,
|
682
|
-
ret = element.currentStyle && element.currentStyle[name],
|
683
|
-
style = element.style;
|
684
|
-
|
685
|
-
if (!PIXEL.test(ret) && NUMBER.test(ret)) {
|
686
|
-
|
687
|
-
// Remember the original values
|
688
|
-
left = style.left;
|
689
|
-
rsLeft = element.runtimeStyle.left;
|
690
|
-
|
691
|
-
// Put in the new values to get a computed value out
|
692
|
-
element.runtimeStyle.left = element.currentStyle.left;
|
693
|
-
style.left = ret || 0;
|
694
|
-
ret = style.pixelLeft + "px";
|
695
|
-
|
696
|
-
// Revert the changed values
|
697
|
-
style.left = left || 0;
|
698
|
-
element.runtimeStyle.left = rsLeft;
|
699
|
-
}
|
700
|
-
|
701
|
-
return ret;
|
702
|
-
}
|
703
|
-
|
704
|
-
function unAuto(element, prop, name) {
|
705
|
-
var props;
|
706
|
-
|
707
|
-
switch (name) {
|
708
|
-
case "width" :
|
709
|
-
props = [PADDING_LEFT, PADDING_RIGHT, BORDER_LEFT, BORDER_RIGHT];
|
710
|
-
prop = calcPx(element, props, name);
|
711
|
-
break;
|
712
|
-
|
713
|
-
case "height" :
|
714
|
-
props = [PADDING_TOP, PADDING_BOTTOM, BORDER_TOP, BORDER_BOTTOM];
|
715
|
-
prop = calcPx(element, props, name);
|
716
|
-
break;
|
717
|
-
|
718
|
-
default :
|
719
|
-
prop = getTrueValue(element, name);
|
720
|
-
break;
|
721
|
-
}
|
722
|
-
|
723
|
-
return prop;
|
724
|
-
}
|
725
|
-
|
726
|
-
function getPixelValue(element, prop, name) {
|
727
|
-
if (PIXEL.test(prop)) {
|
728
|
-
return prop;
|
729
|
-
}
|
730
|
-
|
731
|
-
// if property is auto, do some messy appending
|
732
|
-
if (prop === "auto" || prop === "medium") {
|
733
|
-
prop = unAuto(element, prop, name);
|
734
|
-
} else {
|
735
|
-
prop = getTrueValue(element, name);
|
736
|
-
}
|
737
|
-
|
738
|
-
return prop;
|
739
|
-
}
|
740
|
-
|
741
|
-
function getComputedStyle(element, property, returnAsInt) {
|
742
|
-
var value;
|
743
|
-
|
744
|
-
if (win.getComputedStyle) {
|
745
|
-
value = win.getComputedStyle(element, NULL)[property];
|
746
|
-
} else {
|
747
|
-
if (SIZES.test(property)) {
|
748
|
-
value = getPixelValue(element, (element && element.currentStyle) ? element.currentStyle[property] : 0, property);
|
749
|
-
} else {
|
750
|
-
value = element.currentStyle[property];
|
751
|
-
}
|
752
|
-
}
|
753
|
-
|
754
|
-
if (returnAsInt) {
|
755
|
-
value = parseInt(value, 10);
|
756
|
-
|
757
|
-
if (isNaN(value)) {
|
758
|
-
value = 0;
|
759
|
-
}
|
760
|
-
}
|
761
|
-
|
762
|
-
return value;
|
763
|
-
}
|
764
|
-
|
765
|
-
function clientWidth(element) {
|
766
|
-
return element.innerWidth || element.clientWidth;
|
767
|
-
}
|
768
|
-
|
769
|
-
function clientHeight(element) {
|
770
|
-
return element.innerHeight || element.clientHeight;
|
771
|
-
}
|
772
|
-
|
773
|
-
function appendProperty(target, prop, value, prefixName) {
|
774
|
-
var cssText = [];
|
775
|
-
|
776
|
-
forEach(PREFIXES, function (i, prefix) {
|
777
|
-
cssText.push((prefixName ? prefix : EMPTY_STRING) + prop + ":" + (!prefixName ? prefix : EMPTY_STRING) + value);
|
778
|
-
});
|
779
|
-
|
780
|
-
target.style.cssText += cssText.join(";");
|
781
|
-
return target;
|
782
|
-
}
|
783
|
-
|
784
|
-
function appendPixelValue(target, prop, value) {
|
785
|
-
var targets = target && target[0] ? target : [target];
|
786
|
-
|
787
|
-
forEach(targets, function (i, target) {
|
788
|
-
if (target && target.style) {
|
789
|
-
target.style[prop] = (value ? (value + "px") : EMPTY_STRING);
|
790
|
-
}
|
791
|
-
});
|
792
|
-
}
|
793
|
-
|
794
|
-
function calculateSpecificity (selector) {
|
795
|
-
var selectorGrid, matrix, total;
|
796
|
-
|
797
|
-
selectorGrid = selector.replace(CSS_SELECTOR, function (e, f) {
|
798
|
-
return "%" + f;
|
799
|
-
}).replace(/\s|\>|\+|\~/g, "%").split(/%/g);
|
800
|
-
|
801
|
-
matrix = {
|
802
|
-
_id : 100,
|
803
|
-
_class : 10,
|
804
|
-
_tag : 1
|
805
|
-
};
|
806
|
-
|
807
|
-
// Start with rule index position
|
808
|
-
total = 0;
|
809
|
-
|
810
|
-
// Add each selector value to total.
|
811
|
-
forEach(selectorGrid, function (i, chunk) {
|
812
|
-
if ((/#/).test(chunk)) {
|
813
|
-
total += matrix._id;
|
814
|
-
} else if ((/\.|\[|\:/).test(chunk)) {
|
815
|
-
total += matrix._class;
|
816
|
-
} else if ((/[a-zA-Z]+/).test(chunk)) {
|
817
|
-
total += matrix._tag;
|
818
|
-
}
|
819
|
-
});
|
820
|
-
|
821
|
-
return total;
|
822
|
-
}
|
823
|
-
|
824
|
-
function filterDuplicates (matches, children, type) {
|
825
|
-
var filteredMatches = [], exists,
|
826
|
-
spec = (type ? "ordinal" : "flex") + "Specificity";
|
827
|
-
|
828
|
-
forEach(matches, function (i, x) {
|
829
|
-
if ((!type && x.flex) || (type && x["ordinal-group"])) {
|
830
|
-
x[spec] = x[spec] || calculateSpecificity(x.selector);
|
831
|
-
|
832
|
-
exists = FALSE;
|
833
|
-
|
834
|
-
forEach(filteredMatches, function (j, f) {
|
835
|
-
if (f.match === x.match) {
|
836
|
-
if (f[spec] < x[spec]) {
|
837
|
-
filteredMatches[j] = x;
|
838
|
-
}
|
839
|
-
|
840
|
-
exists = TRUE;
|
841
|
-
return FALSE;
|
842
|
-
}
|
843
|
-
});
|
844
|
-
|
845
|
-
if (!exists) {
|
846
|
-
filteredMatches.push(x);
|
847
|
-
}
|
848
|
-
}
|
849
|
-
});
|
850
|
-
|
851
|
-
return filteredMatches;
|
852
|
-
}
|
853
|
-
|
854
|
-
function createMatchMatrix(matches, children, type) {
|
855
|
-
var groups = {}, keys = [], totalRatio = 0,
|
856
|
-
group, order = "ordinal-group",
|
857
|
-
BoxOrdinalAttr = "data-" + order;
|
858
|
-
|
859
|
-
// Filter dupes
|
860
|
-
matches = filterDuplicates(matches, children, type);
|
861
|
-
|
862
|
-
forEach(children, function (i, kid) {
|
863
|
-
forEach(matches, function (j, x) {
|
864
|
-
if (type) {
|
865
|
-
// If no value declared, it's the default.
|
866
|
-
group = x[order] || "1";
|
867
|
-
|
868
|
-
if (x.match === kid) {
|
869
|
-
x.match.setAttribute(BoxOrdinalAttr, group);
|
870
|
-
|
871
|
-
groups[group] = groups[group] || [];
|
872
|
-
groups[group].push(x);
|
873
|
-
}
|
874
|
-
} else {
|
875
|
-
// If no value declared, it's the default.
|
876
|
-
group = x.flex || "0";
|
877
|
-
|
878
|
-
if (x.match === kid && (!x[group] || (x[group] && parseInt(x[group], 10) <= 1))) {
|
879
|
-
totalRatio += parseInt(group, 10);
|
880
|
-
|
881
|
-
groups[group] = groups[group] || [];
|
882
|
-
groups[group].push(x);
|
883
|
-
}
|
884
|
-
}
|
885
|
-
});
|
886
|
-
|
887
|
-
if (type && !kid.getAttribute(BoxOrdinalAttr)) {
|
888
|
-
group = "1";
|
889
|
-
kid.setAttribute(BoxOrdinalAttr, group);
|
890
|
-
|
891
|
-
groups[group] = groups[group] || [];
|
892
|
-
groups[group].push({
|
893
|
-
match : kid
|
894
|
-
});
|
895
|
-
}
|
896
|
-
});
|
897
|
-
|
898
|
-
forEach(groups, function (key) {
|
899
|
-
keys.push(key);
|
900
|
-
});
|
901
|
-
|
902
|
-
keys.sort(function (a, b) {
|
903
|
-
return b - a;
|
904
|
-
});
|
905
|
-
|
906
|
-
return {
|
907
|
-
keys : keys,
|
908
|
-
groups : groups,
|
909
|
-
total : totalRatio
|
910
|
-
};
|
911
|
-
}
|
912
|
-
|
913
|
-
function floatDropFix(target, params, instance) {
|
914
|
-
// Float drop fix
|
915
|
-
// Test offset values. If different, let's bring the widow back
|
916
|
-
var offsetProp = "offsetTop",
|
917
|
-
children = params.nodes,
|
918
|
-
calcOffset, val = true;
|
919
|
-
|
920
|
-
calcOffset = function (kid) {
|
921
|
-
return kid[offsetProp] - getComputedStyle(kid, instance.anti.pos, TRUE);
|
922
|
-
};
|
923
|
-
|
924
|
-
while (val && calcOffset(children[0]) !== calcOffset(children[children.length - 1])) {
|
925
|
-
forEach(children, function (i, kid) {
|
926
|
-
if (!params.hasFlex || kid.getAttribute("data-flex")) {
|
927
|
-
val = Math.max(0, getComputedStyle(kid, instance.props.dim, TRUE) - 1);
|
928
|
-
kid.style[instance.props.dim] = val;
|
929
|
-
}
|
930
|
-
});
|
931
|
-
}
|
932
|
-
}
|
933
|
-
|
934
|
-
function attachResizeListener(construct, params) {
|
935
|
-
if (!RESIZE_LISTENER) {
|
936
|
-
var storedWidth, storedHeight,
|
937
|
-
currentWidth, currentHeight,
|
938
|
-
docBody = doc.body,
|
939
|
-
docEl = doc.documentElement,
|
940
|
-
innerWidth = "innerWidth", innerHeight = "innerHeight",
|
941
|
-
clientWidth = "clientWidth", clientHeight = "clientHeight";
|
942
|
-
|
943
|
-
addEvent("resize", function () {
|
944
|
-
currentWidth = win[innerWidth] || docEl[innerWidth] || docEl[clientWidth] || docBody[clientWidth];
|
945
|
-
currentHeight = win[innerHeight] || docEl[innerHeight] || docEl[clientHeight] || docBody[clientHeight];
|
946
|
-
|
947
|
-
if (storedWidth !== currentWidth || storedHeight !== currentHeight) {
|
948
|
-
FLX.updateInstance(NULL, NULL);
|
949
|
-
|
950
|
-
storedWidth = currentWidth;
|
951
|
-
storedHeight = currentHeight;
|
952
|
-
}
|
953
|
-
});
|
954
|
-
|
955
|
-
RESIZE_LISTENER = TRUE;
|
956
|
-
}
|
957
|
-
}
|
958
|
-
|
959
|
-
function cleanPositioningProperties (children) {
|
960
|
-
var w, h;
|
961
|
-
|
962
|
-
forEach(children, function (i, kid) {
|
963
|
-
w = kid.style.width;
|
964
|
-
h = kid.style.height;
|
965
|
-
|
966
|
-
kid.style.cssText = EMPTY_STRING;
|
967
|
-
|
968
|
-
kid.style.width = w;
|
969
|
-
kid.style.height = h;
|
970
|
-
});
|
971
|
-
}
|
972
|
-
|
973
|
-
function sanitizeChildren (target, nodes) {
|
974
|
-
var children = [], node, i, j;
|
975
|
-
|
976
|
-
for (i = 0, j = nodes.length; i < j; i++) {
|
977
|
-
node = nodes[i];
|
978
|
-
|
979
|
-
if (node) {
|
980
|
-
switch (node.nodeName.toLowerCase()) {
|
981
|
-
case "script" :
|
982
|
-
case "style" :
|
983
|
-
case "link" :
|
984
|
-
break;
|
985
|
-
|
986
|
-
default :
|
987
|
-
if (node.nodeType === 1) {
|
988
|
-
children.push(node);
|
989
|
-
} else if ((node.nodeType === 3) && (node.isElementContentWhitespace || (ONLY_WHITESPACE).test(node.data))) {
|
990
|
-
target.removeChild(node);
|
991
|
-
i--;
|
992
|
-
}
|
993
|
-
break;
|
994
|
-
}
|
995
|
-
}
|
996
|
-
}
|
997
|
-
|
998
|
-
return children;
|
999
|
-
}
|
1000
|
-
|
1001
|
-
function parentFlex (target) {
|
1002
|
-
var totalFlex = 0,
|
1003
|
-
parent = target.parentNode,
|
1004
|
-
obj,
|
1005
|
-
matrix,
|
1006
|
-
isNested;
|
1007
|
-
|
1008
|
-
while (parent.FLX_DOM_ID) {
|
1009
|
-
obj = FLEX_BOXES[parent.FLX_DOM_ID];
|
1010
|
-
matrix = createMatchMatrix(obj.children, sanitizeChildren(parent, parent.childNodes), NULL);
|
1011
|
-
|
1012
|
-
totalFlex += matrix.total;
|
1013
|
-
isNested = TRUE;
|
1014
|
-
|
1015
|
-
parent = parent.parentNode;
|
1016
|
-
}
|
1017
|
-
|
1018
|
-
return {
|
1019
|
-
nested : isNested,
|
1020
|
-
flex : totalFlex
|
1021
|
-
};
|
1022
|
-
}
|
1023
|
-
|
1024
|
-
function dimensionValues (target, prop) {
|
1025
|
-
var parent = target.parentNode,
|
1026
|
-
obj,
|
1027
|
-
dimension;
|
1028
|
-
|
1029
|
-
if (parent.FLX_DOM_ID) {
|
1030
|
-
obj = FLEX_BOXES[parent.FLX_DOM_ID];
|
1031
|
-
|
1032
|
-
forEach(obj.properties, function (i, rule) {
|
1033
|
-
if ((new RegExp(prop)).test(rule.property)) {
|
1034
|
-
dimension = TRUE;
|
1035
|
-
return FALSE;
|
1036
|
-
}
|
1037
|
-
});
|
1038
|
-
}
|
1039
|
-
|
1040
|
-
return dimension;
|
1041
|
-
}
|
1042
|
-
|
1043
|
-
function updateChildValues (params) {
|
1044
|
-
if (params.flexMatrix) {
|
1045
|
-
forEach(params.children, function (i, x) {
|
1046
|
-
x.flex = params.flexMatrix[i];
|
1047
|
-
});
|
1048
|
-
}
|
1049
|
-
|
1050
|
-
if (params.ordinalMatrix) {
|
1051
|
-
forEach(params.children, function (i, x) {
|
1052
|
-
x["ordinal-group"] = params.ordinalMatrix[i];
|
1053
|
-
});
|
1054
|
-
}
|
1055
|
-
|
1056
|
-
return params;
|
1057
|
-
}
|
1058
|
-
|
1059
|
-
function ensureStructuralIntegrity (params, instance) {
|
1060
|
-
var target = params.target;
|
1061
|
-
|
1062
|
-
if (!target.FLX_DOM_ID) {
|
1063
|
-
target.FLX_DOM_ID = target.FLX_DOM_ID || (++FLX_DOM_ID);
|
1064
|
-
}
|
1065
|
-
|
1066
|
-
if (!params.nodes) {
|
1067
|
-
params.nodes = sanitizeChildren(target, target.childNodes);
|
1068
|
-
}
|
1069
|
-
|
1070
|
-
if (!params.selector) {
|
1071
|
-
params.selector = buildSelector(target);
|
1072
|
-
target.setAttribute(FLX_PARENT_ATTR, TRUE);
|
1073
|
-
}
|
1074
|
-
|
1075
|
-
if (!params.properties) {
|
1076
|
-
params.properties = [];
|
1077
|
-
}
|
1078
|
-
|
1079
|
-
if (!params.children) {
|
1080
|
-
params.children = matchFlexChildren(target, LIBRARY, sanitizeChildren(target, target.childNodes));
|
1081
|
-
}
|
1082
|
-
|
1083
|
-
if (!params.nested) {
|
1084
|
-
params.nested = params.selector + " [" + FLX_PARENT_ATTR + "]";
|
1085
|
-
}
|
1086
|
-
|
1087
|
-
params.target = target;
|
1088
|
-
params._instance = instance;
|
1089
|
-
|
1090
|
-
return params;
|
1091
|
-
}
|
1092
|
-
|
1093
|
-
selectivizrEngine = (function () {
|
1094
|
-
var RE_COMMENT = /(\/\*[^*]*\*+([^\/][^*]*\*+)*\/)\s*/g,
|
1095
|
-
RE_IMPORT = /@import\s*(?:url\(\s*?)?(["'])?(.*?)\1\s*\)?[\w\W]*?;/g,
|
1096
|
-
RE_ASSET_URL = /\surl\((["'])?([^"')]+)\1\)/g,
|
1097
|
-
RE_SELECTOR_GROUP = /(^|\})\s*([^\{]*?[\[:][^\{]+)/g,
|
1098
|
-
|
1099
|
-
// Whitespace normalization regexp's
|
1100
|
-
RE_TIDY_TRAILING_WHITESPACE = /([(\[+~])\s+/g,
|
1101
|
-
RE_TIDY_LEADING_WHITESPACE = /\s+([)\]+~])/g,
|
1102
|
-
RE_TIDY_CONSECUTIVE_WHITESPACE = /\s+/g,
|
1103
|
-
RE_TIDY_TRIM_WHITESPACE = /^\s*((?:[\S\s]*\S)?)\s*$/;
|
1104
|
-
|
1105
|
-
// --[ trim() ]---------------------------------------------------------
|
1106
|
-
// removes leading, trailing whitespace from a string
|
1107
|
-
function trim(text) {
|
1108
|
-
return text.replace(RE_TIDY_TRIM_WHITESPACE, PLACEHOLDER_STRING);
|
1109
|
-
}
|
1110
|
-
|
1111
|
-
// --[ normalizeWhitespace() ]------------------------------------------
|
1112
|
-
// removes leading, trailing and consecutive whitespace from a string
|
1113
|
-
function normalizeWhitespace(text) {
|
1114
|
-
return trim(text).replace(RE_TIDY_CONSECUTIVE_WHITESPACE, SPACE_STRING);
|
1115
|
-
}
|
1116
|
-
|
1117
|
-
// --[ normalizeSelectorWhitespace() ]----------------------------------
|
1118
|
-
// tidys whitespace around selector brackets and combinators
|
1119
|
-
function normalizeSelectorWhitespace(selectorText) {
|
1120
|
-
return normalizeWhitespace(selectorText.replace(RE_TIDY_TRAILING_WHITESPACE, PLACEHOLDER_STRING).replace(RE_TIDY_LEADING_WHITESPACE, PLACEHOLDER_STRING));
|
1121
|
-
}
|
1122
|
-
|
1123
|
-
// --[ patchStyleSheet() ]----------------------------------------------
|
1124
|
-
// Scans the passed cssText for selectors that require emulation and
|
1125
|
-
// creates one or more patches for each matched selector.
|
1126
|
-
function patchStyleSheet(cssText) {
|
1127
|
-
return cssText.replace(RE_SELECTOR_GROUP, function (m, prefix, selectorText) {
|
1128
|
-
var selectorGroups, selector;
|
1129
|
-
|
1130
|
-
selectorGroups = selectorText.split(",");
|
1131
|
-
|
1132
|
-
forEach(selectorGroups, function (i, group) {
|
1133
|
-
selector = normalizeSelectorWhitespace(group) + SPACE_STRING;
|
1134
|
-
});
|
1135
|
-
|
1136
|
-
return prefix + selectorGroups.join(",");
|
1137
|
-
});
|
1138
|
-
}
|
1139
|
-
|
1140
|
-
// --[ getXHRObject() ]-------------------------------------------------
|
1141
|
-
function getXHRObject() {
|
1142
|
-
if (win.XMLHttpRequest) {
|
1143
|
-
return new win.XMLHttpRequest();
|
1144
|
-
}
|
1145
|
-
|
1146
|
-
try {
|
1147
|
-
return new win.ActiveXObject("Microsoft.XMLHTTP");
|
1148
|
-
} catch (e) {
|
1149
|
-
return NULL;
|
1150
|
-
}
|
1151
|
-
}
|
1152
|
-
|
1153
|
-
// --[ loadStyleSheet() ]-----------------------------------------------
|
1154
|
-
function loadStyleSheet(url) {
|
1155
|
-
var xhr = getXHRObject();
|
1156
|
-
|
1157
|
-
xhr.open("GET", url, FALSE);
|
1158
|
-
xhr.send();
|
1159
|
-
return (xhr.status === 200) ? xhr.responseText : EMPTY_STRING;
|
1160
|
-
}
|
1161
|
-
|
1162
|
-
// --[ resolveUrl() ]---------------------------------------------------
|
1163
|
-
// Converts a URL fragment to a fully qualified URL using the specified
|
1164
|
-
// context URL. Returns null if same-origin policy is broken
|
1165
|
-
function resolveUrl(url, contextUrl) {
|
1166
|
-
|
1167
|
-
// IE9 returns a false positive sometimes(?)
|
1168
|
-
if (!url) {
|
1169
|
-
return;
|
1170
|
-
}
|
1171
|
-
|
1172
|
-
function getProtocolAndHost(url) {
|
1173
|
-
return url.substring(0, url.indexOf("/", 8));
|
1174
|
-
}
|
1175
|
-
|
1176
|
-
// absolute path
|
1177
|
-
if (PROTOCOL.test(url)) {
|
1178
|
-
return getProtocolAndHost(contextUrl) === getProtocolAndHost(url) ? url : NULL;
|
1179
|
-
}
|
1180
|
-
|
1181
|
-
// root-relative path
|
1182
|
-
if (url.charAt(0) === "/") {
|
1183
|
-
return getProtocolAndHost(contextUrl) + url;
|
1184
|
-
}
|
1185
|
-
|
1186
|
-
// relative path
|
1187
|
-
var contextUrlPath = contextUrl.split("?")[0]; // ignore query string in the contextUrl
|
1188
|
-
if (url.charAt(0) !== "?" && contextUrlPath.charAt(contextUrlPath.length - 1) !== "/") {
|
1189
|
-
contextUrlPath = contextUrlPath.substring(0, contextUrlPath.lastIndexOf("/") + 1);
|
1190
|
-
}
|
1191
|
-
|
1192
|
-
return contextUrlPath + url;
|
1193
|
-
}
|
1194
|
-
|
1195
|
-
// --[ parseStyleSheet() ]----------------------------------------------
|
1196
|
-
// Downloads the stylesheet specified by the URL, removes it's comments
|
1197
|
-
// and recursivly replaces @import rules with their contents, ultimately
|
1198
|
-
// returning the full cssText.
|
1199
|
-
function parseStyleSheet(url) {
|
1200
|
-
if (url) {
|
1201
|
-
return loadStyleSheet(url).replace(RE_COMMENT, EMPTY_STRING).replace(RE_IMPORT, function( match, quoteChar, importUrl ) {
|
1202
|
-
return parseStyleSheet(resolveUrl(importUrl, url));
|
1203
|
-
}).replace(RE_ASSET_URL, function( match, quoteChar, assetUrl ) {
|
1204
|
-
quoteChar = quoteChar || EMPTY_STRING;
|
1205
|
-
return " url(" + quoteChar + resolveUrl(assetUrl, url) + quoteChar + ") ";
|
1206
|
-
});
|
1207
|
-
}
|
1208
|
-
return EMPTY_STRING;
|
1209
|
-
}
|
1210
|
-
|
1211
|
-
// --[ init() ]---------------------------------------------------------
|
1212
|
-
return function () {
|
1213
|
-
// honour the <base> tag
|
1214
|
-
var url, stylesheet, i, j,
|
1215
|
-
baseTags = doc.getElementsByTagName("BASE"),
|
1216
|
-
baseUrl = (baseTags.length > 0) ? baseTags[0].href : doc.location.href,
|
1217
|
-
cssText, tree, flexers;
|
1218
|
-
|
1219
|
-
for (i = 0, j = doc.styleSheets.length; i < j; i++) {
|
1220
|
-
stylesheet = doc.styleSheets[i];
|
1221
|
-
|
1222
|
-
if (stylesheet && stylesheet.href !== NULL) {
|
1223
|
-
url = resolveUrl(stylesheet.href, baseUrl);
|
1224
|
-
|
1225
|
-
if (url) {
|
1226
|
-
cssText = patchStyleSheet(parseStyleSheet(url));
|
1227
|
-
tree = buildSelectorTree(cssText);
|
1228
|
-
flexers = findFlexboxElements(tree);
|
1229
|
-
}
|
1230
|
-
}
|
1231
|
-
}
|
1232
|
-
|
1233
|
-
buildFlexieCall(flexers);
|
1234
|
-
};
|
1235
|
-
}());
|
1236
|
-
|
1237
|
-
// Flexie box constructor
|
1238
|
-
FLX.box = function (params) {
|
1239
|
-
return this.renderModel(params);
|
1240
|
-
};
|
1241
|
-
|
1242
|
-
FLX.box.prototype = {
|
1243
|
-
properties : {
|
1244
|
-
boxModel : function (target, children, params) {
|
1245
|
-
var selector, stylesheet, paddingFix, generatedRules;
|
1246
|
-
|
1247
|
-
target.style.display = "block";
|
1248
|
-
|
1249
|
-
if (BROWSER.IE === 8) {
|
1250
|
-
target.style.overflow = "hidden";
|
1251
|
-
}
|
1252
|
-
|
1253
|
-
// We'll be using floats, so the easiest way to retain layout
|
1254
|
-
// is the dreaded clear fix:
|
1255
|
-
if (!params.cleared) {
|
1256
|
-
selectors = params.selector.split(/\s?,\s?/);
|
1257
|
-
stylesheet = doc.styleSheets;
|
1258
|
-
stylesheet = stylesheet[stylesheet.length - 1];
|
1259
|
-
paddingFix = "padding-top:" + (getComputedStyle(target, PADDING_TOP, NULL) || "0.1px;");
|
1260
|
-
|
1261
|
-
generatedRules = [
|
1262
|
-
"content: '.'",
|
1263
|
-
"display: block",
|
1264
|
-
"height: 0",
|
1265
|
-
"overflow: hidden"
|
1266
|
-
].join(";");
|
1267
|
-
|
1268
|
-
forEach(selectors, function (i, selector) {
|
1269
|
-
if (stylesheet.addRule) {
|
1270
|
-
if (BROWSER.IE < 8) {
|
1271
|
-
target.style.zoom = "1";
|
1272
|
-
|
1273
|
-
if (BROWSER.IE === 6) {
|
1274
|
-
stylesheet.addRule(selector.replace(/\>|\+|\~/g, ""), paddingFix + "zoom:1;", 0);
|
1275
|
-
} else if (BROWSER.IE === 7) {
|
1276
|
-
stylesheet.addRule(selector, paddingFix + "display:inline-block;", 0);
|
1277
|
-
}
|
1278
|
-
} else {
|
1279
|
-
stylesheet.addRule(selector, paddingFix, 0);
|
1280
|
-
stylesheet.addRule(selector + ":before", generatedRules, 0);
|
1281
|
-
stylesheet.addRule(selector + ":after", generatedRules + ";clear:both;", 0);
|
1282
|
-
}
|
1283
|
-
} else if (stylesheet.insertRule) {
|
1284
|
-
stylesheet.insertRule(selector + "{" + paddingFix + "}", 0);
|
1285
|
-
stylesheet.insertRule(selector + ":after{" + generatedRules + ";clear:both;}", 0);
|
1286
|
-
}
|
1287
|
-
});
|
1288
|
-
|
1289
|
-
params.cleared = TRUE;
|
1290
|
-
}
|
1291
|
-
},
|
1292
|
-
|
1293
|
-
boxDirection : function (target, children, params) {
|
1294
|
-
var nestedSelector, nested;
|
1295
|
-
|
1296
|
-
if ((params.direction === "reverse" && !params.reversed) || (params.direction === "normal" && params.reversed)) {
|
1297
|
-
children = children.reverse();
|
1298
|
-
|
1299
|
-
forEach(children, function (i, kid) {
|
1300
|
-
target.appendChild(kid);
|
1301
|
-
});
|
1302
|
-
|
1303
|
-
// box-direction is inheritable.
|
1304
|
-
// We need to see if there are any nested flexbox elements
|
1305
|
-
nestedSelector = LIBRARY(params.nested);
|
1306
|
-
|
1307
|
-
forEach(nestedSelector, function (i, node) {
|
1308
|
-
nested = FLEX_BOXES[node.FLX_DOM_ID];
|
1309
|
-
|
1310
|
-
if (nested && nested.direction === INHERIT) {
|
1311
|
-
nested.direction = params.direction;
|
1312
|
-
}
|
1313
|
-
});
|
1314
|
-
|
1315
|
-
params.reversed = !params.reversed;
|
1316
|
-
}
|
1317
|
-
},
|
1318
|
-
|
1319
|
-
boxOrient : function (target, children, params) {
|
1320
|
-
var self = this, wide, high;
|
1321
|
-
|
1322
|
-
wide = {
|
1323
|
-
pos : "marginLeft",
|
1324
|
-
opp : "marginRight",
|
1325
|
-
dim : "width",
|
1326
|
-
out : "offsetWidth",
|
1327
|
-
func : clientWidth,
|
1328
|
-
pad : [PADDING_LEFT, PADDING_RIGHT, BORDER_LEFT, BORDER_RIGHT]
|
1329
|
-
};
|
1330
|
-
|
1331
|
-
high = {
|
1332
|
-
pos : "marginTop",
|
1333
|
-
opp : "marginBottom",
|
1334
|
-
dim : "height",
|
1335
|
-
out : "offsetHeight",
|
1336
|
-
func : clientHeight,
|
1337
|
-
pad : [PADDING_TOP, PADDING_BOTTOM, BORDER_TOP, BORDER_BOTTOM]
|
1338
|
-
};
|
1339
|
-
|
1340
|
-
if (!SUPPORT) {
|
1341
|
-
forEach(children, function (i, kid) {
|
1342
|
-
kid.style[(BROWSER.IE >= 9) ? "cssFloat" : "styleFloat"] = LEFT;
|
1343
|
-
|
1344
|
-
if (params.orient === VERTICAL || params.orient === BLOCK_AXIS) {
|
1345
|
-
kid.style.clear = LEFT;
|
1346
|
-
}
|
1347
|
-
|
1348
|
-
if (BROWSER.IE === 6) {
|
1349
|
-
kid.style.display = "inline";
|
1350
|
-
}
|
1351
|
-
});
|
1352
|
-
}
|
1353
|
-
|
1354
|
-
switch (params.orient) {
|
1355
|
-
case VERTICAL :
|
1356
|
-
case BLOCK_AXIS:
|
1357
|
-
self.props = high;
|
1358
|
-
self.anti = wide;
|
1359
|
-
break;
|
1360
|
-
|
1361
|
-
default :
|
1362
|
-
self.props = wide;
|
1363
|
-
self.anti = high;
|
1364
|
-
break;
|
1365
|
-
}
|
1366
|
-
},
|
1367
|
-
|
1368
|
-
boxOrdinalGroup : function (target, children, params) {
|
1369
|
-
var organizeChildren,
|
1370
|
-
matrix;
|
1371
|
-
|
1372
|
-
if (!children.length) {
|
1373
|
-
return;
|
1374
|
-
}
|
1375
|
-
|
1376
|
-
organizeChildren = function (matrix) {
|
1377
|
-
var keys = matrix.keys;
|
1378
|
-
|
1379
|
-
forEach(params.reversed ? keys : keys.reverse(), function (i, key) {
|
1380
|
-
forEach(children, function (i, kid) {
|
1381
|
-
if (key === kid.getAttribute("data-ordinal-group")) {
|
1382
|
-
target.appendChild(kid);
|
1383
|
-
}
|
1384
|
-
});
|
1385
|
-
});
|
1386
|
-
};
|
1387
|
-
|
1388
|
-
matrix = createMatchMatrix(params.children, children, TRUE);
|
1389
|
-
|
1390
|
-
if (matrix.keys.length > 1) {
|
1391
|
-
organizeChildren(matrix);
|
1392
|
-
}
|
1393
|
-
},
|
1394
|
-
|
1395
|
-
boxFlex : function (target, children, params) {
|
1396
|
-
var self = this,
|
1397
|
-
testForRestrictiveProperties,
|
1398
|
-
findTotalWhitespace,
|
1399
|
-
distributeRatio,
|
1400
|
-
matrix,
|
1401
|
-
restrict,
|
1402
|
-
whitespace,
|
1403
|
-
distro;
|
1404
|
-
|
1405
|
-
if (!children.length) {
|
1406
|
-
return;
|
1407
|
-
}
|
1408
|
-
|
1409
|
-
testForRestrictiveProperties = function (matrix) {
|
1410
|
-
var flexers = matrix.groups,
|
1411
|
-
keys = matrix.keys,
|
1412
|
-
max;
|
1413
|
-
|
1414
|
-
forEach(keys, function (i, key) {
|
1415
|
-
forEach(flexers[key], function (i, x) {
|
1416
|
-
max = NULL;
|
1417
|
-
|
1418
|
-
forEach(x.properties, function (i, rule) {
|
1419
|
-
if ((RESTRICTIVE_PROPERTIES).test(rule.property)) {
|
1420
|
-
max = parseFloat(rule.value);
|
1421
|
-
}
|
1422
|
-
});
|
1423
|
-
|
1424
|
-
if (!max || x.match[self.props.out] > max) {
|
1425
|
-
appendPixelValue(x.match, self.props.pos, NULL);
|
1426
|
-
}
|
1427
|
-
|
1428
|
-
});
|
1429
|
-
});
|
1430
|
-
};
|
1431
|
-
|
1432
|
-
findTotalWhitespace = function (matrix) {
|
1433
|
-
var groupDimension = 0,
|
1434
|
-
whitespace,
|
1435
|
-
ration;
|
1436
|
-
|
1437
|
-
forEach(children, function (i, kid) {
|
1438
|
-
groupDimension += getComputedStyle(kid, self.props.dim, TRUE);
|
1439
|
-
|
1440
|
-
forEach(self.props.pad, function (i, pad) {
|
1441
|
-
groupDimension += getComputedStyle(kid, pad, TRUE);
|
1442
|
-
});
|
1443
|
-
|
1444
|
-
groupDimension += getComputedStyle(kid, self.props.pos, TRUE);
|
1445
|
-
groupDimension += getComputedStyle(kid, self.props.opp, TRUE);
|
1446
|
-
});
|
1447
|
-
|
1448
|
-
whitespace = target[self.props.out] - groupDimension;
|
1449
|
-
|
1450
|
-
forEach(self.props.pad, function (i, pad) {
|
1451
|
-
whitespace -= getComputedStyle(target, pad, TRUE);
|
1452
|
-
});
|
1453
|
-
|
1454
|
-
ration = (whitespace / matrix.total);
|
1455
|
-
|
1456
|
-
return {
|
1457
|
-
whitespace : whitespace,
|
1458
|
-
ration : ration
|
1459
|
-
};
|
1460
|
-
};
|
1461
|
-
|
1462
|
-
distributeRatio = function (matrix, whitespace) {
|
1463
|
-
var flexers = matrix.groups,
|
1464
|
-
keys = matrix.keys,
|
1465
|
-
flex,
|
1466
|
-
specificity,
|
1467
|
-
ration = whitespace.ration,
|
1468
|
-
widthRation,
|
1469
|
-
trueDim,
|
1470
|
-
newDimension;
|
1471
|
-
|
1472
|
-
forEach(keys, function (i, key) {
|
1473
|
-
widthRation = (ration * key);
|
1474
|
-
|
1475
|
-
forEach(flexers[key], function (i, x) {
|
1476
|
-
if (x.match) {
|
1477
|
-
flex = x.match.getAttribute("data-flex");
|
1478
|
-
specificity = x.match.getAttribute("data-specificity");
|
1479
|
-
|
1480
|
-
if (!flex || (specificity <= x.flexSpecificity)) {
|
1481
|
-
x.match.setAttribute("data-flex", key);
|
1482
|
-
x.match.setAttribute("data-specificity", x.flexSpecificity);
|
1483
|
-
|
1484
|
-
trueDim = getComputedStyle(x.match, self.props.dim, TRUE);
|
1485
|
-
newDimension = Math.max(0, (trueDim + widthRation));
|
1486
|
-
appendPixelValue(x.match, self.props.dim, newDimension);
|
1487
|
-
}
|
1488
|
-
}
|
1489
|
-
});
|
1490
|
-
});
|
1491
|
-
|
1492
|
-
// Float drop fix
|
1493
|
-
// Test offset values. If different, let's bring the widow back
|
1494
|
-
if (params.orient === HORIZONTAL || params.orient === INLINE_AXIS) {
|
1495
|
-
floatDropFix(target, params, self);
|
1496
|
-
}
|
1497
|
-
};
|
1498
|
-
|
1499
|
-
matrix = createMatchMatrix(params.children, children, NULL);
|
1500
|
-
|
1501
|
-
if (matrix.total) {
|
1502
|
-
params.hasFlex = TRUE;
|
1503
|
-
|
1504
|
-
restrict = testForRestrictiveProperties(matrix);
|
1505
|
-
whitespace = findTotalWhitespace(matrix);
|
1506
|
-
|
1507
|
-
// Distribute the calculated ratios among the children
|
1508
|
-
distro = distributeRatio(matrix, whitespace);
|
1509
|
-
}
|
1510
|
-
},
|
1511
|
-
|
1512
|
-
boxAlign : function (target, children, params) {
|
1513
|
-
var self = this,
|
1514
|
-
targetDimension,
|
1515
|
-
kidDimension,
|
1516
|
-
flexCheck = parentFlex(target);
|
1517
|
-
|
1518
|
-
if (!SUPPORT && !flexCheck.flex && (params.orient === VERTICAL || params.orient === BLOCK_AXIS)) {
|
1519
|
-
if (!dimensionValues(target, self.anti.dim)) {
|
1520
|
-
appendPixelValue(target, self.anti.dim, NULL);
|
1521
|
-
}
|
1522
|
-
appendPixelValue(children, self.anti.dim, NULL);
|
1523
|
-
}
|
1524
|
-
|
1525
|
-
// Remove padding / border from target dimension
|
1526
|
-
targetDimension = target[self.anti.out];
|
1527
|
-
forEach(self.anti.pad, function (i, pad) {
|
1528
|
-
targetDimension -= getComputedStyle(target, pad, TRUE);
|
1529
|
-
});
|
1530
|
-
|
1531
|
-
switch (params.align) {
|
1532
|
-
case "start" :
|
1533
|
-
break;
|
1534
|
-
|
1535
|
-
case "end" :
|
1536
|
-
forEach(children, function (i, kid) {
|
1537
|
-
kidDimension = targetDimension - kid[self.anti.out];
|
1538
|
-
kidDimension -= getComputedStyle(kid, self.anti.opp, TRUE);
|
1539
|
-
appendPixelValue(kid, self.anti.pos, kidDimension);
|
1540
|
-
});
|
1541
|
-
break;
|
1542
|
-
|
1543
|
-
case "center" :
|
1544
|
-
forEach(children, function (i, kid) {
|
1545
|
-
kidDimension = (targetDimension - kid[self.anti.out]) / 2;
|
1546
|
-
appendPixelValue(kid, self.anti.pos, kidDimension);
|
1547
|
-
});
|
1548
|
-
break;
|
1549
|
-
|
1550
|
-
default :
|
1551
|
-
forEach(children, function (i, kid) {
|
1552
|
-
switch (kid.nodeName.toLowerCase()) {
|
1553
|
-
case "button" :
|
1554
|
-
case "input" :
|
1555
|
-
case "select" :
|
1556
|
-
break;
|
1557
|
-
|
1558
|
-
default :
|
1559
|
-
var subtract = 0;
|
1560
|
-
|
1561
|
-
forEach(self.anti.pad, function (i, pad) {
|
1562
|
-
subtract += getComputedStyle(kid, pad, TRUE);
|
1563
|
-
subtract += getComputedStyle(target, pad, TRUE);
|
1564
|
-
});
|
1565
|
-
|
1566
|
-
kid.style[self.anti.dim] = "100%";
|
1567
|
-
kidDimension = kid[self.anti.out] - subtract;
|
1568
|
-
appendPixelValue(kid, self.anti.dim, NULL);
|
1569
|
-
|
1570
|
-
kidDimension = targetDimension;
|
1571
|
-
kidDimension -= getComputedStyle(kid, self.anti.pos, TRUE);
|
1572
|
-
|
1573
|
-
forEach(self.anti.pad, function (i, pad) {
|
1574
|
-
kidDimension -= getComputedStyle(kid, pad, TRUE);
|
1575
|
-
});
|
1576
|
-
|
1577
|
-
kidDimension -= getComputedStyle(kid, self.anti.opp, TRUE);
|
1578
|
-
kidDimension = Math.max(0, kidDimension);
|
1579
|
-
|
1580
|
-
appendPixelValue(kid, self.anti.dim, kidDimension);
|
1581
|
-
break;
|
1582
|
-
}
|
1583
|
-
});
|
1584
|
-
break;
|
1585
|
-
}
|
1586
|
-
},
|
1587
|
-
|
1588
|
-
boxPack : function (target, children, params) {
|
1589
|
-
var self = this,
|
1590
|
-
groupDimension = 0,
|
1591
|
-
firstComputedMargin = 0,
|
1592
|
-
targetPadding = 0,
|
1593
|
-
totalDimension,
|
1594
|
-
fractionedDimension,
|
1595
|
-
currentDimension,
|
1596
|
-
remainder,
|
1597
|
-
length = children.length - 1,
|
1598
|
-
kid;
|
1599
|
-
|
1600
|
-
forEach(children, function (i, kid) {
|
1601
|
-
groupDimension += kid[self.props.out];
|
1602
|
-
groupDimension += getComputedStyle(kid, self.props.pos, TRUE);
|
1603
|
-
groupDimension += getComputedStyle(kid, self.props.opp, TRUE);
|
1604
|
-
});
|
1605
|
-
|
1606
|
-
firstComputedMargin = getComputedStyle(children[0], self.props.pos, TRUE);
|
1607
|
-
totalDimension = target[self.props.out] - groupDimension;
|
1608
|
-
|
1609
|
-
// Remove padding / border from target dimension
|
1610
|
-
forEach(self.props.pad, function (i, pad) {
|
1611
|
-
totalDimension -= getComputedStyle(target, pad, TRUE);
|
1612
|
-
});
|
1613
|
-
|
1614
|
-
// If totalDimension is less than 0, we have a problem...
|
1615
|
-
if (totalDimension < 0) {
|
1616
|
-
totalDimension = Math.max(0, totalDimension);
|
1617
|
-
}
|
1618
|
-
|
1619
|
-
switch (params.pack) {
|
1620
|
-
case "end" :
|
1621
|
-
appendPixelValue(children[0], self.props.pos, targetPadding + firstComputedMargin + totalDimension);
|
1622
|
-
break;
|
1623
|
-
|
1624
|
-
case "center" :
|
1625
|
-
if (targetPadding) {
|
1626
|
-
targetPadding /= 2;
|
1627
|
-
}
|
1628
|
-
|
1629
|
-
appendPixelValue(children[0], self.props.pos, targetPadding + firstComputedMargin + (totalDimension / 2));
|
1630
|
-
break;
|
1631
|
-
|
1632
|
-
case "justify" :
|
1633
|
-
fractionedDimension = Math.floor((targetPadding + totalDimension) / length);
|
1634
|
-
remainder = (fractionedDimension * length) - totalDimension;
|
1635
|
-
|
1636
|
-
var i = children.length - 1,
|
1637
|
-
value;
|
1638
|
-
|
1639
|
-
while (i) {
|
1640
|
-
kid = children[i];
|
1641
|
-
currentDimension = fractionedDimension;
|
1642
|
-
|
1643
|
-
if (remainder) {
|
1644
|
-
currentDimension++;
|
1645
|
-
remainder++;
|
1646
|
-
}
|
1647
|
-
|
1648
|
-
value = getComputedStyle(kid, self.props.pos, TRUE) + currentDimension;
|
1649
|
-
appendPixelValue(kid, self.props.pos, value);
|
1650
|
-
|
1651
|
-
i--;
|
1652
|
-
}
|
1653
|
-
|
1654
|
-
break;
|
1655
|
-
}
|
1656
|
-
|
1657
|
-
// Float drop fix
|
1658
|
-
// Test offset values. If different, let's bring the widow back
|
1659
|
-
if ((params.pack === "end" || params.pack === "justify") && (params.orient === HORIZONTAL || params.orient === INLINE_AXIS)) {
|
1660
|
-
floatDropFix(target, params, self);
|
1661
|
-
}
|
1662
|
-
|
1663
|
-
target.style.overflow = "";
|
1664
|
-
}
|
1665
|
-
},
|
1666
|
-
|
1667
|
-
setup : function (target, children, params) {
|
1668
|
-
var self = this, matrix, flexCheck;
|
1669
|
-
|
1670
|
-
if (!target || !children || !params) {
|
1671
|
-
return;
|
1672
|
-
}
|
1673
|
-
|
1674
|
-
if (SUPPORT && SUPPORT.partialSupport) {
|
1675
|
-
matrix = createMatchMatrix(params.children, children, NULL);
|
1676
|
-
flexCheck = parentFlex(target);
|
1677
|
-
children = sanitizeChildren(target, target.childNodes);
|
1678
|
-
|
1679
|
-
self.properties.boxOrient.call(self, target, children, params);
|
1680
|
-
|
1681
|
-
if (!matrix.total || !LIBRARY(params.nested).length) {
|
1682
|
-
if ((params.align === "stretch") && !SUPPORT.boxAlignStretch && (!flexCheck.nested || !flexCheck.flex)) {
|
1683
|
-
self.properties.boxAlign.call(self, target, children, params);
|
1684
|
-
}
|
1685
|
-
|
1686
|
-
if ((params.pack === "justify") && !SUPPORT.boxPackJustify && !matrix.total) {
|
1687
|
-
self.properties.boxPack.call(self, target, children, params);
|
1688
|
-
}
|
1689
|
-
}
|
1690
|
-
} else if (!SUPPORT) {
|
1691
|
-
forEach(self.properties, function (key, func) {
|
1692
|
-
func.call(self, target, sanitizeChildren(target, target.childNodes), params);
|
1693
|
-
});
|
1694
|
-
}
|
1695
|
-
},
|
1696
|
-
|
1697
|
-
trackDOM : function (params) {
|
1698
|
-
attachResizeListener(this, params);
|
1699
|
-
},
|
1700
|
-
|
1701
|
-
updateModel : function (params) {
|
1702
|
-
var self = this,
|
1703
|
-
target = params.target,
|
1704
|
-
children = params.nodes;
|
1705
|
-
|
1706
|
-
// Null properties
|
1707
|
-
cleanPositioningProperties(children);
|
1708
|
-
|
1709
|
-
if (params.flexMatrix || params.ordinalMatrix) {
|
1710
|
-
params = updateChildValues(params);
|
1711
|
-
}
|
1712
|
-
|
1713
|
-
self.setup(target, children, params);
|
1714
|
-
self.bubbleUp(target, params);
|
1715
|
-
},
|
1716
|
-
|
1717
|
-
renderModel : function (params) {
|
1718
|
-
var self = this,
|
1719
|
-
target = params.target,
|
1720
|
-
nodes = target.childNodes;
|
1721
|
-
|
1722
|
-
// Sanity check.
|
1723
|
-
if (!target.length && !nodes) {
|
1724
|
-
return false;
|
1725
|
-
}
|
1726
|
-
|
1727
|
-
params = ensureStructuralIntegrity(params, this);
|
1728
|
-
|
1729
|
-
// Setup properties
|
1730
|
-
self.updateModel(params);
|
1731
|
-
|
1732
|
-
// Resize / DOM Polling Events
|
1733
|
-
// Delay for an instant because IE6 is insane.
|
1734
|
-
win.setTimeout(function () {
|
1735
|
-
self.trackDOM(params);
|
1736
|
-
}, 0);
|
1737
|
-
|
1738
|
-
return self;
|
1739
|
-
},
|
1740
|
-
|
1741
|
-
bubbleUp : function (target, params) {
|
1742
|
-
var self = this, flex,
|
1743
|
-
parent = params.target.parentNode;
|
1744
|
-
|
1745
|
-
while (parent) {
|
1746
|
-
flex = FLEX_BOXES[parent.FLX_DOM_ID];
|
1747
|
-
|
1748
|
-
if (flex) {
|
1749
|
-
cleanPositioningProperties(flex.nodes);
|
1750
|
-
self.setup(flex.target, flex.nodes, flex);
|
1751
|
-
}
|
1752
|
-
|
1753
|
-
parent = parent.parentNode;
|
1754
|
-
}
|
1755
|
-
}
|
1756
|
-
};
|
1757
|
-
|
1758
|
-
FLX.updateInstance = function (target, params) {
|
1759
|
-
var box;
|
1760
|
-
|
1761
|
-
if (target) {
|
1762
|
-
box = FLEX_BOXES[target.FLX_DOM_ID];
|
1763
|
-
|
1764
|
-
if (box) {
|
1765
|
-
box._instance.updateModel(box);
|
1766
|
-
} else {
|
1767
|
-
box = new FLX.box(params);
|
1768
|
-
}
|
1769
|
-
} else {
|
1770
|
-
forEach(FLEX_BOXES, function (i, box) {
|
1771
|
-
box._instance.updateModel(box);
|
1772
|
-
});
|
1773
|
-
}
|
1774
|
-
};
|
1775
|
-
|
1776
|
-
FLX.getInstance = function (target) {
|
1777
|
-
return FLEX_BOXES[target.FLX_DOM_ID];
|
1778
|
-
};
|
1779
|
-
|
1780
|
-
FLX.destroyInstance = function (target) {
|
1781
|
-
var box,
|
1782
|
-
destroy;
|
1783
|
-
|
1784
|
-
destroy = function (box) {
|
1785
|
-
box.target.FLX_DOM_ID = NULL;
|
1786
|
-
box.target.style.cssText = EMPTY_STRING;
|
1787
|
-
|
1788
|
-
forEach(box.children, function (i, x) {
|
1789
|
-
x.match.style.cssText = EMPTY_STRING;
|
1790
|
-
});
|
1791
|
-
};
|
1792
|
-
|
1793
|
-
if (target) {
|
1794
|
-
box = FLEX_BOXES[target.FLX_DOM_ID];
|
1795
|
-
|
1796
|
-
if (box) {
|
1797
|
-
destroy(box);
|
1798
|
-
}
|
1799
|
-
} else {
|
1800
|
-
forEach(FLEX_BOXES, function (i, box) {
|
1801
|
-
destroy(box);
|
1802
|
-
});
|
1803
|
-
|
1804
|
-
FLEX_BOXES = [];
|
1805
|
-
}
|
1806
|
-
};
|
1807
|
-
|
1808
|
-
FLX.flexboxSupport = function () {
|
1809
|
-
var partialSupportGrid = {},
|
1810
|
-
height = 100,
|
1811
|
-
childHeight,
|
1812
|
-
dummy = doc.createElement("flxbox"),
|
1813
|
-
child = '<b style="margin: 0; padding: 0; display:block; width: 10px; height:' + (height / 2) + 'px"></b>',
|
1814
|
-
tests,
|
1815
|
-
result;
|
1816
|
-
|
1817
|
-
dummy.style.width = dummy.style.height = height + "px";
|
1818
|
-
dummy.innerHTML = (child + child + child);
|
1819
|
-
|
1820
|
-
appendProperty(dummy, "display", "box", NULL);
|
1821
|
-
appendProperty(dummy, "box-align", "stretch", TRUE);
|
1822
|
-
appendProperty(dummy, "box-pack", "justify", TRUE);
|
1823
|
-
|
1824
|
-
doc.body.appendChild(dummy);
|
1825
|
-
childHeight = dummy.firstChild.offsetHeight;
|
1826
|
-
|
1827
|
-
tests = {
|
1828
|
-
boxAlignStretch : function () {
|
1829
|
-
return (childHeight === 100);
|
1830
|
-
},
|
1831
|
-
|
1832
|
-
boxPackJustify : function () {
|
1833
|
-
var totalOffset = 0;
|
1834
|
-
|
1835
|
-
forEach(dummy.childNodes, function (i, child) {
|
1836
|
-
totalOffset += child.offsetLeft;
|
1837
|
-
});
|
1838
|
-
|
1839
|
-
return (totalOffset === 135);
|
1840
|
-
}
|
1841
|
-
};
|
1842
|
-
|
1843
|
-
forEach(tests, function (key, value) {
|
1844
|
-
result = value();
|
1845
|
-
|
1846
|
-
if (!result) {
|
1847
|
-
partialSupportGrid.partialSupport = TRUE;
|
1848
|
-
}
|
1849
|
-
|
1850
|
-
partialSupportGrid[key] = result;
|
1851
|
-
});
|
1852
|
-
|
1853
|
-
doc.body.removeChild(dummy);
|
1854
|
-
return ~ (dummy.style.display).indexOf("box") ? partialSupportGrid : FALSE;
|
1855
|
-
};
|
1856
|
-
|
1857
|
-
FLX.init = function () {
|
1858
|
-
FLX.flexboxSupported = SUPPORT = FLX.flexboxSupport();
|
1859
|
-
|
1860
|
-
if ((!SUPPORT || SUPPORT.partialSupport) && LIBRARY) {
|
1861
|
-
selectivizrEngine();
|
1862
|
-
}
|
1863
|
-
};
|
1864
|
-
|
1865
|
-
// Flexie Version
|
1866
|
-
FLX.version = 1.0;
|
1867
|
-
|
1868
|
-
// Load when the DOM is ready
|
1869
|
-
attachLoadMethod(FLX.init);
|
1870
|
-
|
1871
|
-
return FLX;
|
1872
|
-
}(this, document));
|