blazer-rails 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.bowerrc +3 -0
- data/.gitignore +9 -0
- data/.ruby-version +1 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +85 -0
- data/Rakefile +1 -0
- data/assets/fonts/FontAwesome.otf +0 -0
- data/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/assets/fonts/fontawesome-webfont.woff +0 -0
- data/assets/fonts/fontawesome-webfont.woff2 +0 -0
- data/assets/javascripts/blazer.js +5 -0
- data/assets/stylesheets/blazer.scss.erb +12 -0
- data/blazer-rails.gemspec +26 -0
- data/bower.json +27 -0
- data/lib/blazer-rails.rb +2 -0
- data/lib/blazer-rails/engine.rb +13 -0
- data/lib/blazer-rails/version.rb +3 -0
- data/vendor/assets/components/jquery/.bower.json +25 -0
- data/vendor/assets/components/jquery/AUTHORS.txt +278 -0
- data/vendor/assets/components/jquery/LICENSE.txt +36 -0
- data/vendor/assets/components/jquery/README.md +65 -0
- data/vendor/assets/components/jquery/bower.json +14 -0
- data/vendor/assets/components/jquery/dist/jquery.js +9814 -0
- data/vendor/assets/components/jquery/dist/jquery.min.js +4 -0
- data/vendor/assets/components/jquery/dist/jquery.min.map +1 -0
- data/vendor/assets/components/jquery/external/sizzle/LICENSE.txt +36 -0
- data/vendor/assets/components/jquery/external/sizzle/dist/sizzle.js +2143 -0
- data/vendor/assets/components/jquery/external/sizzle/dist/sizzle.min.js +3 -0
- data/vendor/assets/components/jquery/external/sizzle/dist/sizzle.min.map +1 -0
- data/vendor/assets/components/jquery/src/.jshintrc +29 -0
- data/vendor/assets/components/jquery/src/ajax.js +845 -0
- data/vendor/assets/components/jquery/src/ajax/jsonp.js +100 -0
- data/vendor/assets/components/jquery/src/ajax/load.js +83 -0
- data/vendor/assets/components/jquery/src/ajax/parseJSON.js +13 -0
- data/vendor/assets/components/jquery/src/ajax/parseXML.js +27 -0
- data/vendor/assets/components/jquery/src/ajax/script.js +68 -0
- data/vendor/assets/components/jquery/src/ajax/var/location.js +3 -0
- data/vendor/assets/components/jquery/src/ajax/var/nonce.js +5 -0
- data/vendor/assets/components/jquery/src/ajax/var/rquery.js +3 -0
- data/vendor/assets/components/jquery/src/ajax/xhr.js +167 -0
- data/vendor/assets/components/jquery/src/attributes.js +11 -0
- data/vendor/assets/components/jquery/src/attributes/attr.js +142 -0
- data/vendor/assets/components/jquery/src/attributes/classes.js +177 -0
- data/vendor/assets/components/jquery/src/attributes/prop.js +125 -0
- data/vendor/assets/components/jquery/src/attributes/support.js +36 -0
- data/vendor/assets/components/jquery/src/attributes/val.js +177 -0
- data/vendor/assets/components/jquery/src/callbacks.js +232 -0
- data/vendor/assets/components/jquery/src/core.js +494 -0
- data/vendor/assets/components/jquery/src/core/access.js +65 -0
- data/vendor/assets/components/jquery/src/core/init.js +134 -0
- data/vendor/assets/components/jquery/src/core/parseHTML.js +41 -0
- data/vendor/assets/components/jquery/src/core/ready.js +103 -0
- data/vendor/assets/components/jquery/src/core/var/rsingleTag.js +5 -0
- data/vendor/assets/components/jquery/src/css.js +502 -0
- data/vendor/assets/components/jquery/src/css/addGetHookIf.js +24 -0
- data/vendor/assets/components/jquery/src/css/adjustCSS.js +65 -0
- data/vendor/assets/components/jquery/src/css/curCSS.js +60 -0
- data/vendor/assets/components/jquery/src/css/defaultDisplay.js +72 -0
- data/vendor/assets/components/jquery/src/css/hiddenVisibleSelectors.js +18 -0
- data/vendor/assets/components/jquery/src/css/showHide.js +48 -0
- data/vendor/assets/components/jquery/src/css/support.js +121 -0
- data/vendor/assets/components/jquery/src/css/var/cssExpand.js +3 -0
- data/vendor/assets/components/jquery/src/css/var/getStyles.js +15 -0
- data/vendor/assets/components/jquery/src/css/var/isHidden.js +16 -0
- data/vendor/assets/components/jquery/src/css/var/rmargin.js +3 -0
- data/vendor/assets/components/jquery/src/css/var/rnumnonpx.js +5 -0
- data/vendor/assets/components/jquery/src/css/var/swap.js +24 -0
- data/vendor/assets/components/jquery/src/data.js +187 -0
- data/vendor/assets/components/jquery/src/data/Data.js +200 -0
- data/vendor/assets/components/jquery/src/data/var/acceptData.js +18 -0
- data/vendor/assets/components/jquery/src/data/var/dataPriv.js +5 -0
- data/vendor/assets/components/jquery/src/data/var/dataUser.js +5 -0
- data/vendor/assets/components/jquery/src/deferred.js +158 -0
- data/vendor/assets/components/jquery/src/deprecated.js +32 -0
- data/vendor/assets/components/jquery/src/dimensions.js +54 -0
- data/vendor/assets/components/jquery/src/effects.js +629 -0
- data/vendor/assets/components/jquery/src/effects/Tween.js +121 -0
- data/vendor/assets/components/jquery/src/effects/animatedSelector.js +13 -0
- data/vendor/assets/components/jquery/src/event.js +711 -0
- data/vendor/assets/components/jquery/src/event/ajax.js +20 -0
- data/vendor/assets/components/jquery/src/event/alias.js +27 -0
- data/vendor/assets/components/jquery/src/event/focusin.js +53 -0
- data/vendor/assets/components/jquery/src/event/support.js +9 -0
- data/vendor/assets/components/jquery/src/event/trigger.js +183 -0
- data/vendor/assets/components/jquery/src/exports/amd.js +24 -0
- data/vendor/assets/components/jquery/src/exports/global.js +26 -0
- data/vendor/assets/components/jquery/src/intro.js +44 -0
- data/vendor/assets/components/jquery/src/jquery.js +37 -0
- data/vendor/assets/components/jquery/src/manipulation.js +481 -0
- data/vendor/assets/components/jquery/src/manipulation/_evalUrl.js +20 -0
- data/vendor/assets/components/jquery/src/manipulation/buildFragment.js +102 -0
- data/vendor/assets/components/jquery/src/manipulation/getAll.js +21 -0
- data/vendor/assets/components/jquery/src/manipulation/setGlobalEval.js +20 -0
- data/vendor/assets/components/jquery/src/manipulation/support.js +33 -0
- data/vendor/assets/components/jquery/src/manipulation/var/rcheckableType.js +3 -0
- data/vendor/assets/components/jquery/src/manipulation/var/rscriptType.js +3 -0
- data/vendor/assets/components/jquery/src/manipulation/var/rtagName.js +3 -0
- data/vendor/assets/components/jquery/src/manipulation/wrapMap.js +27 -0
- data/vendor/assets/components/jquery/src/offset.js +218 -0
- data/vendor/assets/components/jquery/src/outro.js +2 -0
- data/vendor/assets/components/jquery/src/queue.js +143 -0
- data/vendor/assets/components/jquery/src/queue/delay.js +22 -0
- data/vendor/assets/components/jquery/src/selector-native.js +211 -0
- data/vendor/assets/components/jquery/src/selector-sizzle.js +14 -0
- data/vendor/assets/components/jquery/src/selector.js +1 -0
- data/vendor/assets/components/jquery/src/serialize.js +125 -0
- data/vendor/assets/components/jquery/src/traversing.js +175 -0
- data/vendor/assets/components/jquery/src/traversing/findFilter.js +100 -0
- data/vendor/assets/components/jquery/src/traversing/var/dir.js +20 -0
- data/vendor/assets/components/jquery/src/traversing/var/rneedsContext.js +6 -0
- data/vendor/assets/components/jquery/src/traversing/var/siblings.js +15 -0
- data/vendor/assets/components/jquery/src/var/arr.js +3 -0
- data/vendor/assets/components/jquery/src/var/class2type.js +5 -0
- data/vendor/assets/components/jquery/src/var/concat.js +5 -0
- data/vendor/assets/components/jquery/src/var/document.js +3 -0
- data/vendor/assets/components/jquery/src/var/documentElement.js +5 -0
- data/vendor/assets/components/jquery/src/var/hasOwn.js +5 -0
- data/vendor/assets/components/jquery/src/var/indexOf.js +5 -0
- data/vendor/assets/components/jquery/src/var/pnum.js +3 -0
- data/vendor/assets/components/jquery/src/var/push.js +5 -0
- data/vendor/assets/components/jquery/src/var/rcssNum.js +7 -0
- data/vendor/assets/components/jquery/src/var/rnotwhite.js +3 -0
- data/vendor/assets/components/jquery/src/var/slice.js +5 -0
- data/vendor/assets/components/jquery/src/var/support.js +5 -0
- data/vendor/assets/components/jquery/src/var/toString.js +5 -0
- data/vendor/assets/components/jquery/src/wrap.js +79 -0
- data/vendor/assets/components/uikit/.bower.json +34 -0
- data/vendor/assets/components/uikit/README.md +13 -0
- data/vendor/assets/components/uikit/bower.json +25 -0
- data/vendor/assets/components/uikit/css/components/accordion.almost-flat.css +39 -0
- data/vendor/assets/components/uikit/css/components/accordion.almost-flat.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/accordion.css +37 -0
- data/vendor/assets/components/uikit/css/components/accordion.gradient.css +39 -0
- data/vendor/assets/components/uikit/css/components/accordion.gradient.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/accordion.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/autocomplete.almost-flat.css +57 -0
- data/vendor/assets/components/uikit/css/components/autocomplete.almost-flat.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/autocomplete.css +55 -0
- data/vendor/assets/components/uikit/css/components/autocomplete.gradient.css +57 -0
- data/vendor/assets/components/uikit/css/components/autocomplete.gradient.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/autocomplete.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/datepicker.almost-flat.css +129 -0
- data/vendor/assets/components/uikit/css/components/datepicker.almost-flat.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/datepicker.css +123 -0
- data/vendor/assets/components/uikit/css/components/datepicker.gradient.css +139 -0
- data/vendor/assets/components/uikit/css/components/datepicker.gradient.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/datepicker.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/dotnav.almost-flat.css +128 -0
- data/vendor/assets/components/uikit/css/components/dotnav.almost-flat.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/dotnav.css +124 -0
- data/vendor/assets/components/uikit/css/components/dotnav.gradient.css +128 -0
- data/vendor/assets/components/uikit/css/components/dotnav.gradient.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/dotnav.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/form-advanced.almost-flat.css +78 -0
- data/vendor/assets/components/uikit/css/components/form-advanced.almost-flat.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/form-advanced.css +78 -0
- data/vendor/assets/components/uikit/css/components/form-advanced.gradient.css +78 -0
- data/vendor/assets/components/uikit/css/components/form-advanced.gradient.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/form-advanced.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/form-file.almost-flat.css +34 -0
- data/vendor/assets/components/uikit/css/components/form-file.almost-flat.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/form-file.css +34 -0
- data/vendor/assets/components/uikit/css/components/form-file.gradient.css +34 -0
- data/vendor/assets/components/uikit/css/components/form-file.gradient.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/form-file.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/form-password.almost-flat.css +34 -0
- data/vendor/assets/components/uikit/css/components/form-password.almost-flat.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/form-password.css +34 -0
- data/vendor/assets/components/uikit/css/components/form-password.gradient.css +34 -0
- data/vendor/assets/components/uikit/css/components/form-password.gradient.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/form-password.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/form-select.almost-flat.css +35 -0
- data/vendor/assets/components/uikit/css/components/form-select.almost-flat.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/form-select.css +35 -0
- data/vendor/assets/components/uikit/css/components/form-select.gradient.css +35 -0
- data/vendor/assets/components/uikit/css/components/form-select.gradient.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/form-select.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/htmleditor.almost-flat.css +222 -0
- data/vendor/assets/components/uikit/css/components/htmleditor.almost-flat.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/htmleditor.css +164 -0
- data/vendor/assets/components/uikit/css/components/htmleditor.gradient.css +229 -0
- data/vendor/assets/components/uikit/css/components/htmleditor.gradient.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/htmleditor.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/nestable.almost-flat.css +135 -0
- data/vendor/assets/components/uikit/css/components/nestable.almost-flat.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/nestable.css +132 -0
- data/vendor/assets/components/uikit/css/components/nestable.gradient.css +139 -0
- data/vendor/assets/components/uikit/css/components/nestable.gradient.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/nestable.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/notify.almost-flat.css +98 -0
- data/vendor/assets/components/uikit/css/components/notify.almost-flat.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/notify.css +92 -0
- data/vendor/assets/components/uikit/css/components/notify.gradient.css +98 -0
- data/vendor/assets/components/uikit/css/components/notify.gradient.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/notify.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/placeholder.almost-flat.css +29 -0
- data/vendor/assets/components/uikit/css/components/placeholder.almost-flat.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/placeholder.css +29 -0
- data/vendor/assets/components/uikit/css/components/placeholder.gradient.css +29 -0
- data/vendor/assets/components/uikit/css/components/placeholder.gradient.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/placeholder.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/progress.almost-flat.css +104 -0
- data/vendor/assets/components/uikit/css/components/progress.almost-flat.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/progress.css +94 -0
- data/vendor/assets/components/uikit/css/components/progress.gradient.css +112 -0
- data/vendor/assets/components/uikit/css/components/progress.gradient.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/progress.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/search.almost-flat.css +191 -0
- data/vendor/assets/components/uikit/css/components/search.almost-flat.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/search.css +189 -0
- data/vendor/assets/components/uikit/css/components/search.gradient.css +191 -0
- data/vendor/assets/components/uikit/css/components/search.gradient.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/search.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/slidenav.almost-flat.css +98 -0
- data/vendor/assets/components/uikit/css/components/slidenav.almost-flat.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/slidenav.css +98 -0
- data/vendor/assets/components/uikit/css/components/slidenav.gradient.css +98 -0
- data/vendor/assets/components/uikit/css/components/slidenav.gradient.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/slidenav.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/slider.almost-flat.css +85 -0
- data/vendor/assets/components/uikit/css/components/slider.almost-flat.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/slider.css +85 -0
- data/vendor/assets/components/uikit/css/components/slider.gradient.css +85 -0
- data/vendor/assets/components/uikit/css/components/slider.gradient.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/slider.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/slideshow.almost-flat.css +144 -0
- data/vendor/assets/components/uikit/css/components/slideshow.almost-flat.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/slideshow.css +144 -0
- data/vendor/assets/components/uikit/css/components/slideshow.gradient.css +144 -0
- data/vendor/assets/components/uikit/css/components/slideshow.gradient.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/slideshow.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/sortable.almost-flat.css +62 -0
- data/vendor/assets/components/uikit/css/components/sortable.almost-flat.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/sortable.css +62 -0
- data/vendor/assets/components/uikit/css/components/sortable.gradient.css +62 -0
- data/vendor/assets/components/uikit/css/components/sortable.gradient.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/sortable.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/sticky.almost-flat.css +23 -0
- data/vendor/assets/components/uikit/css/components/sticky.almost-flat.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/sticky.css +23 -0
- data/vendor/assets/components/uikit/css/components/sticky.gradient.css +23 -0
- data/vendor/assets/components/uikit/css/components/sticky.gradient.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/sticky.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/tooltip.almost-flat.css +118 -0
- data/vendor/assets/components/uikit/css/components/tooltip.almost-flat.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/tooltip.css +116 -0
- data/vendor/assets/components/uikit/css/components/tooltip.gradient.css +118 -0
- data/vendor/assets/components/uikit/css/components/tooltip.gradient.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/tooltip.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/upload.almost-flat.css +10 -0
- data/vendor/assets/components/uikit/css/components/upload.almost-flat.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/upload.css +10 -0
- data/vendor/assets/components/uikit/css/components/upload.gradient.css +10 -0
- data/vendor/assets/components/uikit/css/components/upload.gradient.min.css +2 -0
- data/vendor/assets/components/uikit/css/components/upload.min.css +2 -0
- data/vendor/assets/components/uikit/css/uikit.almost-flat.css +9043 -0
- data/vendor/assets/components/uikit/css/uikit.almost-flat.min.css +2 -0
- data/vendor/assets/components/uikit/css/uikit.css +8743 -0
- data/vendor/assets/components/uikit/css/uikit.gradient.css +9106 -0
- data/vendor/assets/components/uikit/css/uikit.gradient.min.css +2 -0
- data/vendor/assets/components/uikit/css/uikit.min.css +2 -0
- data/vendor/assets/components/uikit/fonts/FontAwesome.otf +0 -0
- data/vendor/assets/components/uikit/fonts/fontawesome-webfont.ttf +0 -0
- data/vendor/assets/components/uikit/fonts/fontawesome-webfont.woff +0 -0
- data/vendor/assets/components/uikit/fonts/fontawesome-webfont.woff2 +0 -0
- data/vendor/assets/components/uikit/js/components/accordion.js +174 -0
- data/vendor/assets/components/uikit/js/components/accordion.min.js +2 -0
- data/vendor/assets/components/uikit/js/components/autocomplete.js +334 -0
- data/vendor/assets/components/uikit/js/components/autocomplete.min.js +2 -0
- data/vendor/assets/components/uikit/js/components/datepicker.js +3166 -0
- data/vendor/assets/components/uikit/js/components/datepicker.min.js +3 -0
- data/vendor/assets/components/uikit/js/components/form-password.js +67 -0
- data/vendor/assets/components/uikit/js/components/form-password.min.js +2 -0
- data/vendor/assets/components/uikit/js/components/form-select.js +77 -0
- data/vendor/assets/components/uikit/js/components/form-select.min.js +2 -0
- data/vendor/assets/components/uikit/js/components/grid-parallax.js +168 -0
- data/vendor/assets/components/uikit/js/components/grid-parallax.min.js +2 -0
- data/vendor/assets/components/uikit/js/components/grid.js +527 -0
- data/vendor/assets/components/uikit/js/components/grid.min.js +2 -0
- data/vendor/assets/components/uikit/js/components/htmleditor.js +635 -0
- data/vendor/assets/components/uikit/js/components/htmleditor.min.js +2 -0
- data/vendor/assets/components/uikit/js/components/lightbox.js +590 -0
- data/vendor/assets/components/uikit/js/components/lightbox.min.js +2 -0
- data/vendor/assets/components/uikit/js/components/nestable.js +653 -0
- data/vendor/assets/components/uikit/js/components/nestable.min.js +2 -0
- data/vendor/assets/components/uikit/js/components/notify.js +189 -0
- data/vendor/assets/components/uikit/js/components/notify.min.js +2 -0
- data/vendor/assets/components/uikit/js/components/pagination.js +147 -0
- data/vendor/assets/components/uikit/js/components/pagination.min.js +2 -0
- data/vendor/assets/components/uikit/js/components/parallax.js +462 -0
- data/vendor/assets/components/uikit/js/components/parallax.min.js +2 -0
- data/vendor/assets/components/uikit/js/components/search.js +92 -0
- data/vendor/assets/components/uikit/js/components/search.min.js +2 -0
- data/vendor/assets/components/uikit/js/components/slider.js +540 -0
- data/vendor/assets/components/uikit/js/components/slider.min.js +2 -0
- data/vendor/assets/components/uikit/js/components/slideset.js +514 -0
- data/vendor/assets/components/uikit/js/components/slideset.min.js +2 -0
- data/vendor/assets/components/uikit/js/components/slideshow-fx.js +375 -0
- data/vendor/assets/components/uikit/js/components/slideshow-fx.min.js +2 -0
- data/vendor/assets/components/uikit/js/components/slideshow.js +562 -0
- data/vendor/assets/components/uikit/js/components/slideshow.min.js +2 -0
- data/vendor/assets/components/uikit/js/components/sortable.js +679 -0
- data/vendor/assets/components/uikit/js/components/sortable.min.js +2 -0
- data/vendor/assets/components/uikit/js/components/sticky.js +358 -0
- data/vendor/assets/components/uikit/js/components/sticky.min.js +2 -0
- data/vendor/assets/components/uikit/js/components/timepicker.js +192 -0
- data/vendor/assets/components/uikit/js/components/timepicker.min.js +2 -0
- data/vendor/assets/components/uikit/js/components/tooltip.js +234 -0
- data/vendor/assets/components/uikit/js/components/tooltip.min.js +2 -0
- data/vendor/assets/components/uikit/js/components/upload.js +260 -0
- data/vendor/assets/components/uikit/js/components/upload.min.js +2 -0
- data/vendor/assets/components/uikit/js/core/alert.js +66 -0
- data/vendor/assets/components/uikit/js/core/alert.min.js +2 -0
- data/vendor/assets/components/uikit/js/core/button.js +157 -0
- data/vendor/assets/components/uikit/js/core/button.min.js +2 -0
- data/vendor/assets/components/uikit/js/core/core.js +785 -0
- data/vendor/assets/components/uikit/js/core/core.min.js +2 -0
- data/vendor/assets/components/uikit/js/core/cover.js +95 -0
- data/vendor/assets/components/uikit/js/core/cover.min.js +2 -0
- data/vendor/assets/components/uikit/js/core/dropdown.js +525 -0
- data/vendor/assets/components/uikit/js/core/dropdown.min.js +2 -0
- data/vendor/assets/components/uikit/js/core/grid.js +117 -0
- data/vendor/assets/components/uikit/js/core/grid.min.js +2 -0
- data/vendor/assets/components/uikit/js/core/modal.js +393 -0
- data/vendor/assets/components/uikit/js/core/modal.min.js +2 -0
- data/vendor/assets/components/uikit/js/core/nav.js +136 -0
- data/vendor/assets/components/uikit/js/core/nav.min.js +2 -0
- data/vendor/assets/components/uikit/js/core/offcanvas.js +180 -0
- data/vendor/assets/components/uikit/js/core/offcanvas.min.js +2 -0
- data/vendor/assets/components/uikit/js/core/scrollspy.js +209 -0
- data/vendor/assets/components/uikit/js/core/scrollspy.min.js +2 -0
- data/vendor/assets/components/uikit/js/core/smooth-scroll.js +62 -0
- data/vendor/assets/components/uikit/js/core/smooth-scroll.min.js +2 -0
- data/vendor/assets/components/uikit/js/core/switcher.js +305 -0
- data/vendor/assets/components/uikit/js/core/switcher.min.js +2 -0
- data/vendor/assets/components/uikit/js/core/tab.js +167 -0
- data/vendor/assets/components/uikit/js/core/tab.min.js +2 -0
- data/vendor/assets/components/uikit/js/core/toggle.js +120 -0
- data/vendor/assets/components/uikit/js/core/toggle.min.js +2 -0
- data/vendor/assets/components/uikit/js/core/touch.js +175 -0
- data/vendor/assets/components/uikit/js/core/touch.min.js +2 -0
- data/vendor/assets/components/uikit/js/core/utility.js +319 -0
- data/vendor/assets/components/uikit/js/core/utility.min.js +2 -0
- data/vendor/assets/components/uikit/js/uikit.js +3811 -0
- data/vendor/assets/components/uikit/js/uikit.min.js +3 -0
- data/vendor/assets/components/uikit/less/components/accordion.less +94 -0
- data/vendor/assets/components/uikit/less/components/autocomplete.less +107 -0
- data/vendor/assets/components/uikit/less/components/datepicker.less +197 -0
- data/vendor/assets/components/uikit/less/components/dotnav.less +212 -0
- data/vendor/assets/components/uikit/less/components/form-advanced.less +128 -0
- data/vendor/assets/components/uikit/less/components/form-file.less +63 -0
- data/vendor/assets/components/uikit/less/components/form-password.less +74 -0
- data/vendor/assets/components/uikit/less/components/form-select.less +66 -0
- data/vendor/assets/components/uikit/less/components/htmleditor.less +269 -0
- data/vendor/assets/components/uikit/less/components/nestable.less +229 -0
- data/vendor/assets/components/uikit/less/components/notify.less +190 -0
- data/vendor/assets/components/uikit/less/components/placeholder.less +66 -0
- data/vendor/assets/components/uikit/less/components/progress.less +173 -0
- data/vendor/assets/components/uikit/less/components/search.less +309 -0
- data/vendor/assets/components/uikit/less/components/slidenav.less +183 -0
- data/vendor/assets/components/uikit/less/components/slider.less +131 -0
- data/vendor/assets/components/uikit/less/components/slideshow.less +208 -0
- data/vendor/assets/components/uikit/less/components/sortable.less +122 -0
- data/vendor/assets/components/uikit/less/components/sticky.less +54 -0
- data/vendor/assets/components/uikit/less/components/tooltip.less +177 -0
- data/vendor/assets/components/uikit/less/components/upload.less +34 -0
- data/vendor/assets/components/uikit/less/core/alert.less +141 -0
- data/vendor/assets/components/uikit/less/core/animation.less +599 -0
- data/vendor/assets/components/uikit/less/core/article.less +139 -0
- data/vendor/assets/components/uikit/less/core/badge.less +110 -0
- data/vendor/assets/components/uikit/less/core/base.less +563 -0
- data/vendor/assets/components/uikit/less/core/block.less +155 -0
- data/vendor/assets/components/uikit/less/core/breadcrumb.less +86 -0
- data/vendor/assets/components/uikit/less/core/button.less +406 -0
- data/vendor/assets/components/uikit/less/core/close.less +132 -0
- data/vendor/assets/components/uikit/less/core/column.less +209 -0
- data/vendor/assets/components/uikit/less/core/comment.less +172 -0
- data/vendor/assets/components/uikit/less/core/contrast.less +493 -0
- data/vendor/assets/components/uikit/less/core/cover.less +70 -0
- data/vendor/assets/components/uikit/less/core/description-list.less +71 -0
- data/vendor/assets/components/uikit/less/core/dropdown.less +280 -0
- data/vendor/assets/components/uikit/less/core/flex.less +320 -0
- data/vendor/assets/components/uikit/less/core/form.less +629 -0
- data/vendor/assets/components/uikit/less/core/grid.less +731 -0
- data/vendor/assets/components/uikit/less/core/icon.less +925 -0
- data/vendor/assets/components/uikit/less/core/list.less +102 -0
- data/vendor/assets/components/uikit/less/core/modal.less +343 -0
- data/vendor/assets/components/uikit/less/core/nav.less +468 -0
- data/vendor/assets/components/uikit/less/core/navbar.less +325 -0
- data/vendor/assets/components/uikit/less/core/offcanvas.less +168 -0
- data/vendor/assets/components/uikit/less/core/overlay.less +534 -0
- data/vendor/assets/components/uikit/less/core/pagination.less +197 -0
- data/vendor/assets/components/uikit/less/core/panel.less +332 -0
- data/vendor/assets/components/uikit/less/core/print.less +61 -0
- data/vendor/assets/components/uikit/less/core/subnav.less +213 -0
- data/vendor/assets/components/uikit/less/core/switcher.less +38 -0
- data/vendor/assets/components/uikit/less/core/tab.less +368 -0
- data/vendor/assets/components/uikit/less/core/table.less +147 -0
- data/vendor/assets/components/uikit/less/core/text.less +128 -0
- data/vendor/assets/components/uikit/less/core/thumbnail.less +122 -0
- data/vendor/assets/components/uikit/less/core/thumbnav.less +122 -0
- data/vendor/assets/components/uikit/less/core/utility.less +610 -0
- data/vendor/assets/components/uikit/less/core/variables.less +23 -0
- data/vendor/assets/components/uikit/less/uikit-variables.less +819 -0
- data/vendor/assets/components/uikit/less/uikit.less +52 -0
- data/vendor/assets/components/uikit/scss/components/accordion.scss +94 -0
- data/vendor/assets/components/uikit/scss/components/autocomplete.scss +107 -0
- data/vendor/assets/components/uikit/scss/components/datepicker.scss +197 -0
- data/vendor/assets/components/uikit/scss/components/dotnav.scss +212 -0
- data/vendor/assets/components/uikit/scss/components/form-advanced.scss +128 -0
- data/vendor/assets/components/uikit/scss/components/form-file.scss +63 -0
- data/vendor/assets/components/uikit/scss/components/form-password.scss +74 -0
- data/vendor/assets/components/uikit/scss/components/form-select.scss +66 -0
- data/vendor/assets/components/uikit/scss/components/htmleditor.scss +269 -0
- data/vendor/assets/components/uikit/scss/components/nestable.scss +229 -0
- data/vendor/assets/components/uikit/scss/components/notify.scss +190 -0
- data/vendor/assets/components/uikit/scss/components/placeholder.scss +66 -0
- data/vendor/assets/components/uikit/scss/components/progress.scss +173 -0
- data/vendor/assets/components/uikit/scss/components/search.scss +309 -0
- data/vendor/assets/components/uikit/scss/components/slidenav.scss +183 -0
- data/vendor/assets/components/uikit/scss/components/slider.scss +131 -0
- data/vendor/assets/components/uikit/scss/components/slideshow.scss +208 -0
- data/vendor/assets/components/uikit/scss/components/sortable.scss +122 -0
- data/vendor/assets/components/uikit/scss/components/sticky.scss +54 -0
- data/vendor/assets/components/uikit/scss/components/tooltip.scss +177 -0
- data/vendor/assets/components/uikit/scss/components/upload.scss +34 -0
- data/vendor/assets/components/uikit/scss/core/alert.scss +141 -0
- data/vendor/assets/components/uikit/scss/core/animation.scss +599 -0
- data/vendor/assets/components/uikit/scss/core/article.scss +139 -0
- data/vendor/assets/components/uikit/scss/core/badge.scss +110 -0
- data/vendor/assets/components/uikit/scss/core/base.scss +563 -0
- data/vendor/assets/components/uikit/scss/core/block.scss +155 -0
- data/vendor/assets/components/uikit/scss/core/breadcrumb.scss +86 -0
- data/vendor/assets/components/uikit/scss/core/button.scss +406 -0
- data/vendor/assets/components/uikit/scss/core/close.scss +132 -0
- data/vendor/assets/components/uikit/scss/core/column.scss +209 -0
- data/vendor/assets/components/uikit/scss/core/comment.scss +172 -0
- data/vendor/assets/components/uikit/scss/core/contrast.scss +493 -0
- data/vendor/assets/components/uikit/scss/core/cover.scss +70 -0
- data/vendor/assets/components/uikit/scss/core/description-list.scss +71 -0
- data/vendor/assets/components/uikit/scss/core/dropdown.scss +280 -0
- data/vendor/assets/components/uikit/scss/core/flex.scss +320 -0
- data/vendor/assets/components/uikit/scss/core/form.scss +629 -0
- data/vendor/assets/components/uikit/scss/core/grid.scss +731 -0
- data/vendor/assets/components/uikit/scss/core/icon.scss +925 -0
- data/vendor/assets/components/uikit/scss/core/list.scss +102 -0
- data/vendor/assets/components/uikit/scss/core/modal.scss +343 -0
- data/vendor/assets/components/uikit/scss/core/nav.scss +468 -0
- data/vendor/assets/components/uikit/scss/core/navbar.scss +325 -0
- data/vendor/assets/components/uikit/scss/core/offcanvas.scss +168 -0
- data/vendor/assets/components/uikit/scss/core/overlay.scss +534 -0
- data/vendor/assets/components/uikit/scss/core/pagination.scss +197 -0
- data/vendor/assets/components/uikit/scss/core/panel.scss +332 -0
- data/vendor/assets/components/uikit/scss/core/print.scss +61 -0
- data/vendor/assets/components/uikit/scss/core/subnav.scss +213 -0
- data/vendor/assets/components/uikit/scss/core/switcher.scss +38 -0
- data/vendor/assets/components/uikit/scss/core/tab.scss +368 -0
- data/vendor/assets/components/uikit/scss/core/table.scss +147 -0
- data/vendor/assets/components/uikit/scss/core/text.scss +128 -0
- data/vendor/assets/components/uikit/scss/core/thumbnail.scss +122 -0
- data/vendor/assets/components/uikit/scss/core/thumbnav.scss +122 -0
- data/vendor/assets/components/uikit/scss/core/utility.scss +610 -0
- data/vendor/assets/components/uikit/scss/core/variables.scss +23 -0
- data/vendor/assets/components/uikit/scss/uikit-mixins.scss +327 -0
- data/vendor/assets/components/uikit/scss/uikit-variables.scss +819 -0
- data/vendor/assets/components/uikit/scss/uikit.scss +52 -0
- metadata +567 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! UIkit 2.26.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
|
|
2
|
+
!function(t){"use strict";var s=t.$win,o=t.$doc,i=[],e=function(){for(var t=0;t<i.length;t++)window.requestAnimationFrame.apply(window,[i[t].check])};t.component("scrollspy",{defaults:{target:!1,cls:"uk-scrollspy-inview",initcls:"uk-scrollspy-init-inview",topoffset:0,leftoffset:0,repeat:!1,delay:0},boot:function(){o.on("scrolling.uk.document",e),s.on("load resize orientationchange",t.Utils.debounce(e,50)),t.ready(function(s){t.$("[data-uk-scrollspy]",s).each(function(){var s=t.$(this);if(!s.data("scrollspy")){t.scrollspy(s,t.Utils.options(s.attr("data-uk-scrollspy")))}})})},init:function(){var s,o=this,e=this.options.cls.split(/,/),l=function(){var i=o.options.target?o.element.find(o.options.target):o.element,l=1===i.length?1:0,n=0;i.each(function(){var i=t.$(this),a=i.data("inviewstate"),r=t.Utils.isInView(i,o.options),c=i.data("ukScrollspyCls")||e[n].trim();!r||a||i.data("scrollspy-idle")||(s||(i.addClass(o.options.initcls),o.offset=i.offset(),s=!0,i.trigger("init.uk.scrollspy")),i.data("scrollspy-idle",setTimeout(function(){i.addClass("uk-scrollspy-inview").toggleClass(c).width(),i.trigger("inview.uk.scrollspy"),i.data("scrollspy-idle",!1),i.data("inviewstate",!0)},o.options.delay*l)),l++),!r&&a&&o.options.repeat&&(i.data("scrollspy-idle")&&(clearTimeout(i.data("scrollspy-idle")),i.data("scrollspy-idle",!1)),i.removeClass("uk-scrollspy-inview").toggleClass(c),i.data("inviewstate",!1),i.trigger("outview.uk.scrollspy")),n=e[n+1]?n+1:0})};l(),this.check=l,i.push(this)}});var l=[],n=function(){for(var t=0;t<l.length;t++)window.requestAnimationFrame.apply(window,[l[t].check])};t.component("scrollspynav",{defaults:{cls:"uk-active",closest:!1,topoffset:0,leftoffset:0,smoothscroll:!1},boot:function(){o.on("scrolling.uk.document",n),s.on("resize orientationchange",t.Utils.debounce(n,50)),t.ready(function(s){t.$("[data-uk-scrollspy-nav]",s).each(function(){var s=t.$(this);if(!s.data("scrollspynav")){t.scrollspynav(s,t.Utils.options(s.attr("data-uk-scrollspy-nav")))}})})},init:function(){var o,i=[],e=this.find("a[href^='#']").each(function(){"#"!==this.getAttribute("href").trim()&&i.push(this.getAttribute("href"))}),n=t.$(i.join(",")),a=this.options.cls,r=this.options.closest||this.options.closest,c=this,p=function(){o=[];for(var i=0;i<n.length;i++)t.Utils.isInView(n.eq(i),c.options)&&o.push(n.eq(i));if(o.length){var l,p=s.scrollTop(),u=function(){for(var t=0;t<o.length;t++)if(o[t].offset().top>=p)return o[t]}();if(!u)return;c.options.closest?(e.blur().closest(r).removeClass(a),l=e.filter("a[href='#"+u.attr("id")+"']").closest(r).addClass(a)):l=e.removeClass(a).filter("a[href='#"+u.attr("id")+"']").addClass(a),c.element.trigger("inview.uk.scrollspynav",[u,l])}};this.options.smoothscroll&&t.smoothScroll&&e.each(function(){t.smoothScroll(this,c.options.smoothscroll)}),p(),this.element.data("scrollspynav",this),this.check=p,l.push(this)}})}(UIkit);
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/*! UIkit 2.26.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
|
|
2
|
+
(function(UI) {
|
|
3
|
+
|
|
4
|
+
"use strict";
|
|
5
|
+
|
|
6
|
+
UI.component('smoothScroll', {
|
|
7
|
+
|
|
8
|
+
boot: function() {
|
|
9
|
+
|
|
10
|
+
// init code
|
|
11
|
+
UI.$html.on("click.smooth-scroll.uikit", "[data-uk-smooth-scroll]", function(e) {
|
|
12
|
+
var ele = UI.$(this);
|
|
13
|
+
|
|
14
|
+
if (!ele.data("smoothScroll")) {
|
|
15
|
+
var obj = UI.smoothScroll(ele, UI.Utils.options(ele.attr("data-uk-smooth-scroll")));
|
|
16
|
+
ele.trigger("click");
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
return false;
|
|
20
|
+
});
|
|
21
|
+
},
|
|
22
|
+
|
|
23
|
+
init: function() {
|
|
24
|
+
|
|
25
|
+
var $this = this;
|
|
26
|
+
|
|
27
|
+
this.on("click", function(e) {
|
|
28
|
+
e.preventDefault();
|
|
29
|
+
scrollToElement(UI.$(this.hash).length ? UI.$(this.hash) : UI.$("body"), $this.options);
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
function scrollToElement(ele, options) {
|
|
35
|
+
|
|
36
|
+
options = UI.$.extend({
|
|
37
|
+
duration: 1000,
|
|
38
|
+
transition: 'easeOutExpo',
|
|
39
|
+
offset: 0,
|
|
40
|
+
complete: function(){}
|
|
41
|
+
}, options);
|
|
42
|
+
|
|
43
|
+
// get / set parameters
|
|
44
|
+
var target = ele.offset().top - options.offset,
|
|
45
|
+
docheight = UI.$doc.height(),
|
|
46
|
+
winheight = window.innerHeight;
|
|
47
|
+
|
|
48
|
+
if ((target + winheight) > docheight) {
|
|
49
|
+
target = docheight - winheight;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// animate to target, fire callback when done
|
|
53
|
+
UI.$("html,body").stop().animate({scrollTop: target}, options.duration, options.transition).promise().done(options.complete);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
UI.Utils.scrollToElement = scrollToElement;
|
|
57
|
+
|
|
58
|
+
if (!UI.$.easing.easeOutExpo) {
|
|
59
|
+
UI.$.easing.easeOutExpo = function(x, t, b, c, d) { return (t == d) ? b + c : c * (-Math.pow(2, -10 * t / d) + 1) + b; };
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
})(UIkit);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! UIkit 2.26.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
|
|
2
|
+
!function(t){"use strict";function o(o,i){i=t.$.extend({duration:1e3,transition:"easeOutExpo",offset:0,complete:function(){}},i);var n=o.offset().top-i.offset,s=t.$doc.height(),e=window.innerHeight;n+e>s&&(n=s-e),t.$("html,body").stop().animate({scrollTop:n},i.duration,i.transition).promise().done(i.complete)}t.component("smoothScroll",{boot:function(){t.$html.on("click.smooth-scroll.uikit","[data-uk-smooth-scroll]",function(){var o=t.$(this);if(!o.data("smoothScroll")){{t.smoothScroll(o,t.Utils.options(o.attr("data-uk-smooth-scroll")))}o.trigger("click")}return!1})},init:function(){var i=this;this.on("click",function(n){n.preventDefault(),o(t.$(this.hash).length?t.$(this.hash):t.$("body"),i.options)})}}),t.Utils.scrollToElement=o,t.$.easing.easeOutExpo||(t.$.easing.easeOutExpo=function(t,o,i,n,s){return o==s?i+n:n*(-Math.pow(2,-10*o/s)+1)+i})}(UIkit);
|
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
/*! UIkit 2.26.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
|
|
2
|
+
(function(UI) {
|
|
3
|
+
|
|
4
|
+
"use strict";
|
|
5
|
+
|
|
6
|
+
var Animations;
|
|
7
|
+
|
|
8
|
+
UI.component('switcher', {
|
|
9
|
+
|
|
10
|
+
defaults: {
|
|
11
|
+
connect : false,
|
|
12
|
+
toggle : ">*",
|
|
13
|
+
active : 0,
|
|
14
|
+
animation : false,
|
|
15
|
+
duration : 200,
|
|
16
|
+
swiping : true
|
|
17
|
+
},
|
|
18
|
+
|
|
19
|
+
animating: false,
|
|
20
|
+
|
|
21
|
+
boot: function() {
|
|
22
|
+
|
|
23
|
+
// init code
|
|
24
|
+
UI.ready(function(context) {
|
|
25
|
+
|
|
26
|
+
UI.$("[data-uk-switcher]", context).each(function() {
|
|
27
|
+
var switcher = UI.$(this);
|
|
28
|
+
|
|
29
|
+
if (!switcher.data("switcher")) {
|
|
30
|
+
var obj = UI.switcher(switcher, UI.Utils.options(switcher.attr("data-uk-switcher")));
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
},
|
|
35
|
+
|
|
36
|
+
init: function() {
|
|
37
|
+
|
|
38
|
+
var $this = this;
|
|
39
|
+
|
|
40
|
+
this.on("click.uk.switcher", this.options.toggle, function(e) {
|
|
41
|
+
e.preventDefault();
|
|
42
|
+
$this.show(this);
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
if (this.options.connect) {
|
|
46
|
+
|
|
47
|
+
this.connect = UI.$(this.options.connect);
|
|
48
|
+
|
|
49
|
+
this.connect.children().removeClass("uk-active");
|
|
50
|
+
|
|
51
|
+
// delegate switch commands within container content
|
|
52
|
+
if (this.connect.length) {
|
|
53
|
+
|
|
54
|
+
// Init ARIA for connect
|
|
55
|
+
this.connect.children().attr('aria-hidden', 'true');
|
|
56
|
+
|
|
57
|
+
this.connect.on("click", '[data-uk-switcher-item]', function(e) {
|
|
58
|
+
|
|
59
|
+
e.preventDefault();
|
|
60
|
+
|
|
61
|
+
var item = UI.$(this).attr('data-uk-switcher-item');
|
|
62
|
+
|
|
63
|
+
if ($this.index == item) return;
|
|
64
|
+
|
|
65
|
+
switch(item) {
|
|
66
|
+
case 'next':
|
|
67
|
+
case 'previous':
|
|
68
|
+
$this.show($this.index + (item=='next' ? 1:-1));
|
|
69
|
+
break;
|
|
70
|
+
default:
|
|
71
|
+
$this.show(parseInt(item, 10));
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
if (this.options.swiping) {
|
|
76
|
+
|
|
77
|
+
this.connect.on('swipeRight swipeLeft', function(e) {
|
|
78
|
+
e.preventDefault();
|
|
79
|
+
if(!window.getSelection().toString()) {
|
|
80
|
+
$this.show($this.index + (e.type == 'swipeLeft' ? 1 : -1));
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
var toggles = this.find(this.options.toggle),
|
|
87
|
+
active = toggles.filter(".uk-active");
|
|
88
|
+
|
|
89
|
+
if (active.length) {
|
|
90
|
+
this.show(active, false);
|
|
91
|
+
} else {
|
|
92
|
+
|
|
93
|
+
if (this.options.active===false) return;
|
|
94
|
+
|
|
95
|
+
active = toggles.eq(this.options.active);
|
|
96
|
+
this.show(active.length ? active : toggles.eq(0), false);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
// Init ARIA for toggles
|
|
100
|
+
toggles.not(active).attr('aria-expanded', 'false');
|
|
101
|
+
active.attr('aria-expanded', 'true');
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
},
|
|
105
|
+
|
|
106
|
+
show: function(tab, animate) {
|
|
107
|
+
|
|
108
|
+
if (this.animating) {
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
if (isNaN(tab)) {
|
|
113
|
+
tab = UI.$(tab);
|
|
114
|
+
} else {
|
|
115
|
+
|
|
116
|
+
var toggles = this.find(this.options.toggle);
|
|
117
|
+
|
|
118
|
+
tab = tab < 0 ? toggles.length-1 : tab;
|
|
119
|
+
tab = toggles.eq(toggles[tab] ? tab : 0);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
var $this = this,
|
|
123
|
+
toggles = this.find(this.options.toggle),
|
|
124
|
+
active = UI.$(tab),
|
|
125
|
+
animation = Animations[this.options.animation] || function(current, next) {
|
|
126
|
+
|
|
127
|
+
if (!$this.options.animation) {
|
|
128
|
+
return Animations.none.apply($this);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
var anim = $this.options.animation.split(',');
|
|
132
|
+
|
|
133
|
+
if (anim.length == 1) {
|
|
134
|
+
anim[1] = anim[0];
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
anim[0] = anim[0].trim();
|
|
138
|
+
anim[1] = anim[1].trim();
|
|
139
|
+
|
|
140
|
+
return coreAnimation.apply($this, [anim, current, next]);
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
if (animate===false || !UI.support.animation) {
|
|
144
|
+
animation = Animations.none;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
if (active.hasClass("uk-disabled")) return;
|
|
148
|
+
|
|
149
|
+
// Update ARIA for Toggles
|
|
150
|
+
toggles.attr('aria-expanded', 'false');
|
|
151
|
+
active.attr('aria-expanded', 'true');
|
|
152
|
+
|
|
153
|
+
toggles.filter(".uk-active").removeClass("uk-active");
|
|
154
|
+
active.addClass("uk-active");
|
|
155
|
+
|
|
156
|
+
if (this.options.connect && this.connect.length) {
|
|
157
|
+
|
|
158
|
+
this.index = this.find(this.options.toggle).index(active);
|
|
159
|
+
|
|
160
|
+
if (this.index == -1 ) {
|
|
161
|
+
this.index = 0;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
this.connect.each(function() {
|
|
165
|
+
|
|
166
|
+
var container = UI.$(this),
|
|
167
|
+
children = UI.$(container.children()),
|
|
168
|
+
current = UI.$(children.filter('.uk-active')),
|
|
169
|
+
next = UI.$(children.eq($this.index));
|
|
170
|
+
|
|
171
|
+
$this.animating = true;
|
|
172
|
+
|
|
173
|
+
animation.apply($this, [current, next]).then(function(){
|
|
174
|
+
|
|
175
|
+
current.removeClass("uk-active");
|
|
176
|
+
next.addClass("uk-active");
|
|
177
|
+
|
|
178
|
+
// Update ARIA for connect
|
|
179
|
+
current.attr('aria-hidden', 'true');
|
|
180
|
+
next.attr('aria-hidden', 'false');
|
|
181
|
+
|
|
182
|
+
UI.Utils.checkDisplay(next, true);
|
|
183
|
+
|
|
184
|
+
$this.animating = false;
|
|
185
|
+
|
|
186
|
+
});
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
this.trigger("show.uk.switcher", [active]);
|
|
191
|
+
}
|
|
192
|
+
});
|
|
193
|
+
|
|
194
|
+
Animations = {
|
|
195
|
+
|
|
196
|
+
'none': function() {
|
|
197
|
+
var d = UI.$.Deferred();
|
|
198
|
+
d.resolve();
|
|
199
|
+
return d.promise();
|
|
200
|
+
},
|
|
201
|
+
|
|
202
|
+
'fade': function(current, next) {
|
|
203
|
+
return coreAnimation.apply(this, ['uk-animation-fade', current, next]);
|
|
204
|
+
},
|
|
205
|
+
|
|
206
|
+
'slide-bottom': function(current, next) {
|
|
207
|
+
return coreAnimation.apply(this, ['uk-animation-slide-bottom', current, next]);
|
|
208
|
+
},
|
|
209
|
+
|
|
210
|
+
'slide-top': function(current, next) {
|
|
211
|
+
return coreAnimation.apply(this, ['uk-animation-slide-top', current, next]);
|
|
212
|
+
},
|
|
213
|
+
|
|
214
|
+
'slide-vertical': function(current, next, dir) {
|
|
215
|
+
|
|
216
|
+
var anim = ['uk-animation-slide-top', 'uk-animation-slide-bottom'];
|
|
217
|
+
|
|
218
|
+
if (current && current.index() > next.index()) {
|
|
219
|
+
anim.reverse();
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
return coreAnimation.apply(this, [anim, current, next]);
|
|
223
|
+
},
|
|
224
|
+
|
|
225
|
+
'slide-left': function(current, next) {
|
|
226
|
+
return coreAnimation.apply(this, ['uk-animation-slide-left', current, next]);
|
|
227
|
+
},
|
|
228
|
+
|
|
229
|
+
'slide-right': function(current, next) {
|
|
230
|
+
return coreAnimation.apply(this, ['uk-animation-slide-right', current, next]);
|
|
231
|
+
},
|
|
232
|
+
|
|
233
|
+
'slide-horizontal': function(current, next, dir) {
|
|
234
|
+
|
|
235
|
+
var anim = ['uk-animation-slide-right', 'uk-animation-slide-left'];
|
|
236
|
+
|
|
237
|
+
if (current && current.index() > next.index()) {
|
|
238
|
+
anim.reverse();
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
return coreAnimation.apply(this, [anim, current, next]);
|
|
242
|
+
},
|
|
243
|
+
|
|
244
|
+
'scale': function(current, next) {
|
|
245
|
+
return coreAnimation.apply(this, ['uk-animation-scale-up', current, next]);
|
|
246
|
+
}
|
|
247
|
+
};
|
|
248
|
+
|
|
249
|
+
UI.switcher.animations = Animations;
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
// helpers
|
|
253
|
+
|
|
254
|
+
function coreAnimation(cls, current, next) {
|
|
255
|
+
|
|
256
|
+
var d = UI.$.Deferred(), clsIn = cls, clsOut = cls, release;
|
|
257
|
+
|
|
258
|
+
if (next[0]===current[0]) {
|
|
259
|
+
d.resolve();
|
|
260
|
+
return d.promise();
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
if (typeof(cls) == 'object') {
|
|
264
|
+
clsIn = cls[0];
|
|
265
|
+
clsOut = cls[1] || cls[0];
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
UI.$body.css('overflow-x', 'hidden'); // fix scroll jumping in iOS
|
|
269
|
+
|
|
270
|
+
release = function() {
|
|
271
|
+
|
|
272
|
+
if (current) current.hide().removeClass('uk-active '+clsOut+' uk-animation-reverse');
|
|
273
|
+
|
|
274
|
+
next.addClass(clsIn).one(UI.support.animation.end, function() {
|
|
275
|
+
|
|
276
|
+
next.removeClass(''+clsIn+'').css({opacity:'', display:''});
|
|
277
|
+
|
|
278
|
+
d.resolve();
|
|
279
|
+
|
|
280
|
+
UI.$body.css('overflow-x', '');
|
|
281
|
+
|
|
282
|
+
if (current) current.css({opacity:'', display:''});
|
|
283
|
+
|
|
284
|
+
}.bind(this)).show();
|
|
285
|
+
};
|
|
286
|
+
|
|
287
|
+
next.css('animation-duration', this.options.duration+'ms');
|
|
288
|
+
|
|
289
|
+
if (current && current.length) {
|
|
290
|
+
|
|
291
|
+
current.css('animation-duration', this.options.duration+'ms');
|
|
292
|
+
|
|
293
|
+
current.css('display', 'none').addClass(clsOut+' uk-animation-reverse').one(UI.support.animation.end, function() {
|
|
294
|
+
release();
|
|
295
|
+
}.bind(this)).css('display', '');
|
|
296
|
+
|
|
297
|
+
} else {
|
|
298
|
+
next.addClass('uk-active');
|
|
299
|
+
release();
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
return d.promise();
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
})(UIkit);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! UIkit 2.26.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
|
|
2
|
+
!function(i){"use strict";function t(t,n,e){var s,a=i.$.Deferred(),o=t,r=t;return e[0]===n[0]?(a.resolve(),a.promise()):("object"==typeof t&&(o=t[0],r=t[1]||t[0]),i.$body.css("overflow-x","hidden"),s=function(){n&&n.hide().removeClass("uk-active "+r+" uk-animation-reverse"),e.addClass(o).one(i.support.animation.end,function(){e.removeClass(""+o).css({opacity:"",display:""}),a.resolve(),i.$body.css("overflow-x",""),n&&n.css({opacity:"",display:""})}.bind(this)).show()},e.css("animation-duration",this.options.duration+"ms"),n&&n.length?(n.css("animation-duration",this.options.duration+"ms"),n.css("display","none").addClass(r+" uk-animation-reverse").one(i.support.animation.end,function(){s()}.bind(this)).css("display","")):(e.addClass("uk-active"),s()),a.promise())}var n;i.component("switcher",{defaults:{connect:!1,toggle:">*",active:0,animation:!1,duration:200,swiping:!0},animating:!1,boot:function(){i.ready(function(t){i.$("[data-uk-switcher]",t).each(function(){var t=i.$(this);if(!t.data("switcher")){i.switcher(t,i.Utils.options(t.attr("data-uk-switcher")))}})})},init:function(){var t=this;if(this.on("click.uk.switcher",this.options.toggle,function(i){i.preventDefault(),t.show(this)}),this.options.connect){this.connect=i.$(this.options.connect),this.connect.children().removeClass("uk-active"),this.connect.length&&(this.connect.children().attr("aria-hidden","true"),this.connect.on("click","[data-uk-switcher-item]",function(n){n.preventDefault();var e=i.$(this).attr("data-uk-switcher-item");if(t.index!=e)switch(e){case"next":case"previous":t.show(t.index+("next"==e?1:-1));break;default:t.show(parseInt(e,10))}}),this.options.swiping&&this.connect.on("swipeRight swipeLeft",function(i){i.preventDefault(),window.getSelection().toString()||t.show(t.index+("swipeLeft"==i.type?1:-1))}));var n=this.find(this.options.toggle),e=n.filter(".uk-active");if(e.length)this.show(e,!1);else{if(this.options.active===!1)return;e=n.eq(this.options.active),this.show(e.length?e:n.eq(0),!1)}n.not(e).attr("aria-expanded","false"),e.attr("aria-expanded","true")}},show:function(e,s){if(!this.animating){if(isNaN(e))e=i.$(e);else{var a=this.find(this.options.toggle);e=0>e?a.length-1:e,e=a.eq(a[e]?e:0)}var o=this,a=this.find(this.options.toggle),r=i.$(e),c=n[this.options.animation]||function(i,e){if(!o.options.animation)return n.none.apply(o);var s=o.options.animation.split(",");return 1==s.length&&(s[1]=s[0]),s[0]=s[0].trim(),s[1]=s[1].trim(),t.apply(o,[s,i,e])};s!==!1&&i.support.animation||(c=n.none),r.hasClass("uk-disabled")||(a.attr("aria-expanded","false"),r.attr("aria-expanded","true"),a.filter(".uk-active").removeClass("uk-active"),r.addClass("uk-active"),this.options.connect&&this.connect.length&&(this.index=this.find(this.options.toggle).index(r),-1==this.index&&(this.index=0),this.connect.each(function(){var t=i.$(this),n=i.$(t.children()),e=i.$(n.filter(".uk-active")),s=i.$(n.eq(o.index));o.animating=!0,c.apply(o,[e,s]).then(function(){e.removeClass("uk-active"),s.addClass("uk-active"),e.attr("aria-hidden","true"),s.attr("aria-hidden","false"),i.Utils.checkDisplay(s,!0),o.animating=!1})})),this.trigger("show.uk.switcher",[r]))}}}),n={none:function(){var t=i.$.Deferred();return t.resolve(),t.promise()},fade:function(i,n){return t.apply(this,["uk-animation-fade",i,n])},"slide-bottom":function(i,n){return t.apply(this,["uk-animation-slide-bottom",i,n])},"slide-top":function(i,n){return t.apply(this,["uk-animation-slide-top",i,n])},"slide-vertical":function(i,n){var e=["uk-animation-slide-top","uk-animation-slide-bottom"];return i&&i.index()>n.index()&&e.reverse(),t.apply(this,[e,i,n])},"slide-left":function(i,n){return t.apply(this,["uk-animation-slide-left",i,n])},"slide-right":function(i,n){return t.apply(this,["uk-animation-slide-right",i,n])},"slide-horizontal":function(i,n){var e=["uk-animation-slide-right","uk-animation-slide-left"];return i&&i.index()>n.index()&&e.reverse(),t.apply(this,[e,i,n])},scale:function(i,n){return t.apply(this,["uk-animation-scale-up",i,n])}},i.switcher.animations=n}(UIkit);
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
/*! UIkit 2.26.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
|
|
2
|
+
(function(UI) {
|
|
3
|
+
|
|
4
|
+
"use strict";
|
|
5
|
+
|
|
6
|
+
UI.component('tab', {
|
|
7
|
+
|
|
8
|
+
defaults: {
|
|
9
|
+
'target' : '>li:not(.uk-tab-responsive, .uk-disabled)',
|
|
10
|
+
'connect' : false,
|
|
11
|
+
'active' : 0,
|
|
12
|
+
'animation' : false,
|
|
13
|
+
'duration' : 200,
|
|
14
|
+
'swiping' : true
|
|
15
|
+
},
|
|
16
|
+
|
|
17
|
+
boot: function() {
|
|
18
|
+
|
|
19
|
+
// init code
|
|
20
|
+
UI.ready(function(context) {
|
|
21
|
+
|
|
22
|
+
UI.$("[data-uk-tab]", context).each(function() {
|
|
23
|
+
|
|
24
|
+
var tab = UI.$(this);
|
|
25
|
+
|
|
26
|
+
if (!tab.data("tab")) {
|
|
27
|
+
var obj = UI.tab(tab, UI.Utils.options(tab.attr("data-uk-tab")));
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
},
|
|
32
|
+
|
|
33
|
+
init: function() {
|
|
34
|
+
|
|
35
|
+
var $this = this;
|
|
36
|
+
|
|
37
|
+
this.current = false;
|
|
38
|
+
|
|
39
|
+
this.on("click.uk.tab", this.options.target, function(e) {
|
|
40
|
+
|
|
41
|
+
e.preventDefault();
|
|
42
|
+
|
|
43
|
+
if ($this.switcher && $this.switcher.animating) {
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
var current = $this.find($this.options.target).not(this);
|
|
48
|
+
|
|
49
|
+
current.removeClass("uk-active").blur();
|
|
50
|
+
|
|
51
|
+
$this.trigger("change.uk.tab", [UI.$(this).addClass("uk-active"), $this.current]);
|
|
52
|
+
|
|
53
|
+
$this.current = UI.$(this);
|
|
54
|
+
|
|
55
|
+
// Update ARIA
|
|
56
|
+
if (!$this.options.connect) {
|
|
57
|
+
current.attr('aria-expanded', 'false');
|
|
58
|
+
UI.$(this).attr('aria-expanded', 'true');
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
if (this.options.connect) {
|
|
63
|
+
this.connect = UI.$(this.options.connect);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// init responsive tab
|
|
67
|
+
this.responsivetab = UI.$('<li class="uk-tab-responsive uk-active"><a></a></li>').append('<div class="uk-dropdown uk-dropdown-small"><ul class="uk-nav uk-nav-dropdown"></ul><div>');
|
|
68
|
+
|
|
69
|
+
this.responsivetab.dropdown = this.responsivetab.find('.uk-dropdown');
|
|
70
|
+
this.responsivetab.lst = this.responsivetab.dropdown.find('ul');
|
|
71
|
+
this.responsivetab.caption = this.responsivetab.find('a:first');
|
|
72
|
+
|
|
73
|
+
if (this.element.hasClass("uk-tab-bottom")) this.responsivetab.dropdown.addClass("uk-dropdown-up");
|
|
74
|
+
|
|
75
|
+
// handle click
|
|
76
|
+
this.responsivetab.lst.on('click.uk.tab', 'a', function(e) {
|
|
77
|
+
|
|
78
|
+
e.preventDefault();
|
|
79
|
+
e.stopPropagation();
|
|
80
|
+
|
|
81
|
+
var link = UI.$(this);
|
|
82
|
+
|
|
83
|
+
$this.element.children('li:not(.uk-tab-responsive)').eq(link.data('index')).trigger('click');
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
this.on('show.uk.switcher change.uk.tab', function(e, tab) {
|
|
87
|
+
$this.responsivetab.caption.html(tab.text());
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
this.element.append(this.responsivetab);
|
|
91
|
+
|
|
92
|
+
// init UIkit components
|
|
93
|
+
if (this.options.connect) {
|
|
94
|
+
this.switcher = UI.switcher(this.element, {
|
|
95
|
+
'toggle' : '>li:not(.uk-tab-responsive)',
|
|
96
|
+
'connect' : this.options.connect,
|
|
97
|
+
'active' : this.options.active,
|
|
98
|
+
'animation' : this.options.animation,
|
|
99
|
+
'duration' : this.options.duration,
|
|
100
|
+
'swiping' : this.options.swiping
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
UI.dropdown(this.responsivetab, {"mode": "click", "preventflip": "y"});
|
|
105
|
+
|
|
106
|
+
// init
|
|
107
|
+
$this.trigger("change.uk.tab", [this.element.find(this.options.target).not('.uk-tab-responsive').filter('.uk-active')]);
|
|
108
|
+
|
|
109
|
+
this.check();
|
|
110
|
+
|
|
111
|
+
UI.$win.on('resize orientationchange', UI.Utils.debounce(function(){
|
|
112
|
+
if ($this.element.is(":visible")) $this.check();
|
|
113
|
+
}, 100));
|
|
114
|
+
|
|
115
|
+
this.on('display.uk.check', function(){
|
|
116
|
+
if ($this.element.is(":visible")) $this.check();
|
|
117
|
+
});
|
|
118
|
+
},
|
|
119
|
+
|
|
120
|
+
check: function() {
|
|
121
|
+
|
|
122
|
+
var children = this.element.children('li:not(.uk-tab-responsive)').removeClass('uk-hidden');
|
|
123
|
+
|
|
124
|
+
if (!children.length) {
|
|
125
|
+
this.responsivetab.addClass('uk-hidden');
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
var top = (children.eq(0).offset().top + Math.ceil(children.eq(0).height()/2)),
|
|
130
|
+
doresponsive = false,
|
|
131
|
+
item, link, clone;
|
|
132
|
+
|
|
133
|
+
this.responsivetab.lst.empty();
|
|
134
|
+
|
|
135
|
+
children.each(function(){
|
|
136
|
+
|
|
137
|
+
if (UI.$(this).offset().top > top) {
|
|
138
|
+
doresponsive = true;
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
|
|
142
|
+
if (doresponsive) {
|
|
143
|
+
|
|
144
|
+
for (var i = 0; i < children.length; i++) {
|
|
145
|
+
|
|
146
|
+
item = UI.$(children.eq(i));
|
|
147
|
+
link = item.find('a');
|
|
148
|
+
|
|
149
|
+
if (item.css('float') != 'none' && !item.attr('uk-dropdown')) {
|
|
150
|
+
|
|
151
|
+
if (!item.hasClass('uk-disabled')) {
|
|
152
|
+
|
|
153
|
+
clone = item[0].outerHTML.replace('<a ', '<a data-index="'+i+'" ');
|
|
154
|
+
|
|
155
|
+
this.responsivetab.lst.append(clone);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
item.addClass('uk-hidden');
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
this.responsivetab[this.responsivetab.lst.children('li').length ? 'removeClass':'addClass']('uk-hidden');
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
|
|
167
|
+
})(UIkit);
|