aacinfo-theme 0.2.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +25 -1
- data/_includes/footer.html +54 -0
- data/_includes/header.html +46 -0
- data/_includes/parts/content.html +6 -0
- data/_includes/parts/social-media.html +10 -0
- data/_includes/theme-menu.html +27 -28
- data/_layouts/theme.html +14 -26
- data/_layouts/title-page.html +22 -0
- data/_sass/_style.scss +122 -0
- data/_sass/components/_blockquotes.scss +62 -0
- data/_sass/components/_buttons.scss +100 -0
- data/_sass/components/_cards.scss +29 -0
- data/_sass/components/_dividers.scss +165 -0
- data/_sass/components/_featured-image.scss +14 -0
- data/_sass/components/_forms.scss +414 -0
- data/_sass/components/_links.scss +83 -0
- data/_sass/components/_pagination.scss +91 -0
- data/_sass/components/_selectric.scss +200 -0
- data/_sass/components/_slick-theme.scss +194 -0
- data/_sass/components/_slick.scss +98 -0
- data/_sass/components/_spinner.scss +356 -0
- data/_sass/components/_svg.scss +12 -0
- data/_sass/fontawesome/.bower.json +36 -0
- data/_sass/fontawesome/.gitignore +33 -0
- data/_sass/fontawesome/.npmignore +42 -0
- data/_sass/fontawesome/HELP-US-OUT.txt +7 -0
- data/_sass/fontawesome/bower.json +22 -0
- data/{assets → _sass/fontawesome}/css/font-awesome.css +547 -11
- data/_sass/fontawesome/css/font-awesome.css.map +7 -0
- data/_sass/fontawesome/css/font-awesome.min.css +4 -0
- data/_sass/fontawesome/fonts/FontAwesome.otf +0 -0
- data/_sass/fontawesome/fonts/fontawesome-webfont.eot +0 -0
- data/_sass/fontawesome/fonts/fontawesome-webfont.svg +2671 -0
- data/_sass/fontawesome/fonts/fontawesome-webfont.ttf +0 -0
- data/_sass/fontawesome/fonts/fontawesome-webfont.woff +0 -0
- data/_sass/fontawesome/fonts/fontawesome-webfont.woff2 +0 -0
- data/_sass/fontawesome/less/animated.less +34 -0
- data/_sass/fontawesome/less/bordered-pulled.less +25 -0
- data/_sass/fontawesome/less/core.less +12 -0
- data/_sass/fontawesome/less/fixed-width.less +6 -0
- data/_sass/fontawesome/less/font-awesome.less +18 -0
- data/_sass/fontawesome/less/icons.less +789 -0
- data/_sass/fontawesome/less/larger.less +13 -0
- data/_sass/fontawesome/less/list.less +19 -0
- data/_sass/fontawesome/less/mixins.less +60 -0
- data/_sass/fontawesome/less/path.less +15 -0
- data/_sass/fontawesome/less/rotated-flipped.less +20 -0
- data/_sass/fontawesome/less/screen-reader.less +5 -0
- data/_sass/fontawesome/less/stacked.less +20 -0
- data/_sass/fontawesome/less/variables.less +800 -0
- data/_sass/fontawesome/scss/_animated.scss +34 -0
- data/_sass/fontawesome/scss/_bordered-pulled.scss +25 -0
- data/_sass/fontawesome/scss/_core.scss +12 -0
- data/_sass/fontawesome/scss/_fixed-width.scss +6 -0
- data/_sass/fontawesome/scss/_icons.scss +789 -0
- data/_sass/fontawesome/scss/_larger.scss +13 -0
- data/_sass/fontawesome/scss/_list.scss +19 -0
- data/_sass/fontawesome/scss/_mixins.scss +60 -0
- data/_sass/fontawesome/scss/_path.scss +15 -0
- data/_sass/fontawesome/scss/_rotated-flipped.scss +20 -0
- data/_sass/fontawesome/scss/_screen-reader.scss +5 -0
- data/_sass/fontawesome/scss/_stacked.scss +20 -0
- data/_sass/fontawesome/scss/_variables.scss +800 -0
- data/_sass/fontawesome/scss/font-awesome.scss +18 -0
- data/_sass/foundation-sites/.bower.json +44 -0
- data/_sass/foundation-sites/.bowerrc +3 -0
- data/_sass/foundation-sites/.eslintrc +64 -0
- data/_sass/foundation-sites/.github/ISSUE_TEMPLATE.md +21 -0
- data/_sass/foundation-sites/.github/PULL_REQUEST_TEMPLATE.md +9 -0
- data/_sass/foundation-sites/.sass-lint.yml +409 -0
- data/_sass/foundation-sites/.travis.yml +9 -0
- data/_sass/foundation-sites/LICENSE +22 -0
- data/_sass/foundation-sites/README.md +52 -0
- data/_sass/foundation-sites/_vendor/normalize-scss/sass/_normalize.scss +3 -0
- data/_sass/foundation-sites/_vendor/normalize-scss/sass/normalize/_import-now.scss +11 -0
- data/_sass/foundation-sites/_vendor/normalize-scss/sass/normalize/_normalize-mixin.scss +676 -0
- data/_sass/foundation-sites/_vendor/normalize-scss/sass/normalize/_variables.scss +36 -0
- data/_sass/foundation-sites/_vendor/normalize-scss/sass/normalize/_vertical-rhythm.scss +61 -0
- data/_sass/foundation-sites/_vendor/sassy-lists/stylesheets/functions/_purge.scss +38 -0
- data/_sass/foundation-sites/_vendor/sassy-lists/stylesheets/functions/_remove.scss +31 -0
- data/_sass/foundation-sites/_vendor/sassy-lists/stylesheets/functions/_replace.scss +46 -0
- data/_sass/foundation-sites/_vendor/sassy-lists/stylesheets/functions/_to-list.scss +27 -0
- data/_sass/foundation-sites/_vendor/sassy-lists/stylesheets/helpers/_missing-dependencies.scss +25 -0
- data/_sass/foundation-sites/_vendor/sassy-lists/stylesheets/helpers/_true.scss +13 -0
- data/_sass/foundation-sites/assets/foundation-flex.scss +3 -0
- data/_sass/foundation-sites/assets/foundation-rtl.scss +5 -0
- data/_sass/foundation-sites/assets/foundation.scss +3 -0
- data/_sass/foundation-sites/bower.json +34 -0
- data/_sass/foundation-sites/browserstack.json +32 -0
- data/_sass/foundation-sites/code-of-conduct.md +43 -0
- data/_sass/foundation-sites/customizer/complete.json +48 -0
- data/_sass/foundation-sites/customizer/config.yml +228 -0
- data/_sass/foundation-sites/customizer/essential.json +11 -0
- data/_sass/foundation-sites/customizer/index.html +169 -0
- data/_sass/foundation-sites/dist/css/foundation-flex.css +4566 -0
- data/_sass/foundation-sites/dist/css/foundation-flex.min.css +2 -0
- data/_sass/foundation-sites/dist/css/foundation-rtl.css +4006 -0
- data/_sass/foundation-sites/dist/css/foundation-rtl.min.css +2 -0
- data/_sass/foundation-sites/dist/css/foundation.css +4001 -0
- data/_sass/foundation-sites/dist/css/foundation.min.css +2 -0
- data/_sass/foundation-sites/dist/js/foundation.d.ts +496 -0
- data/_sass/foundation-sites/dist/js/foundation.js +10207 -0
- data/_sass/foundation-sites/dist/js/foundation.min.js +4 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.abide.js +637 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.abide.min.js +1 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.accordion.js +252 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.accordion.min.js +1 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.accordionMenu.js +318 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.accordionMenu.min.js +1 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.core.js +386 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.core.min.js +1 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.drilldown.js +565 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.drilldown.min.js +1 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.dropdown.js +465 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.dropdown.min.js +1 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.dropdownMenu.js +486 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.dropdownMenu.min.js +1 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.equalizer.js +374 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.equalizer.min.js +1 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.interchange.js +233 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.interchange.min.js +1 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.magellan.js +285 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.magellan.min.js +1 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.offcanvas.js +474 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.offcanvas.min.js +1 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.orbit.js +566 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.orbit.min.js +1 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.responsiveMenu.js +169 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.responsiveMenu.min.js +1 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.responsiveToggle.js +177 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.responsiveToggle.min.js +1 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.reveal.js +633 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.reveal.min.js +1 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.slider.js +762 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.slider.min.js +1 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.sticky.js +518 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.sticky.min.js +1 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.tabs.js +512 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.tabs.min.js +1 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.toggler.js +169 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.toggler.min.js +1 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.tooltip.js +492 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.tooltip.min.js +1 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.util.box.js +196 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.util.box.min.js +1 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.util.keyboard.js +163 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.util.keyboard.min.js +1 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.util.mediaQuery.js +233 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.util.mediaQuery.min.js +1 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.util.motion.js +103 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.util.motion.min.js +1 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.util.nest.js +74 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.util.nest.min.js +1 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.util.timerAndImageLoader.js +90 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.util.timerAndImageLoader.min.js +1 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.util.touch.js +352 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.util.touch.min.js +1 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.util.triggers.js +261 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.util.triggers.min.js +1 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.zf.responsiveAccordionTabs.js +262 -0
- data/_sass/foundation-sites/dist/js/plugins/foundation.zf.responsiveAccordionTabs.min.js +1 -0
- data/_sass/foundation-sites/docslink.sh +3 -0
- data/_sass/foundation-sites/js/foundation.abide.js +584 -0
- data/_sass/foundation-sites/js/foundation.accordion.js +315 -0
- data/_sass/foundation-sites/js/foundation.accordionMenu.js +283 -0
- data/_sass/foundation-sites/js/foundation.core.js +378 -0
- data/_sass/foundation-sites/js/foundation.drilldown.js +518 -0
- data/_sass/foundation-sites/js/foundation.dropdown.js +432 -0
- data/_sass/foundation-sites/js/foundation.dropdownMenu.js +442 -0
- data/_sass/foundation-sites/js/foundation.equalizer.js +317 -0
- data/_sass/foundation-sites/js/foundation.interchange.js +203 -0
- data/_sass/foundation-sites/js/foundation.magellan.js +251 -0
- data/_sass/foundation-sites/js/foundation.offcanvas.js +434 -0
- data/_sass/foundation-sites/js/foundation.orbit.js +523 -0
- data/_sass/foundation-sites/js/foundation.responsiveMenu.js +147 -0
- data/_sass/foundation-sites/js/foundation.responsiveToggle.js +155 -0
- data/_sass/foundation-sites/js/foundation.reveal.js +603 -0
- data/_sass/foundation-sites/js/foundation.slider.js +697 -0
- data/_sass/foundation-sites/js/foundation.sticky.js +499 -0
- data/_sass/foundation-sites/js/foundation.tabs.js +490 -0
- data/_sass/foundation-sites/js/foundation.toggler.js +148 -0
- data/_sass/foundation-sites/js/foundation.tooltip.js +470 -0
- data/_sass/foundation-sites/js/foundation.util.box.js +195 -0
- data/_sass/foundation-sites/js/foundation.util.keyboard.js +152 -0
- data/_sass/foundation-sites/js/foundation.util.mediaQuery.js +230 -0
- data/_sass/foundation-sites/js/foundation.util.motion.js +105 -0
- data/_sass/foundation-sites/js/foundation.util.nest.js +81 -0
- data/_sass/foundation-sites/js/foundation.util.timerAndImageLoader.js +88 -0
- data/_sass/foundation-sites/js/foundation.util.touch.js +352 -0
- data/_sass/foundation-sites/js/foundation.util.triggers.js +210 -0
- data/_sass/foundation-sites/js/foundation.zf.responsiveAccordionTabs.js +240 -0
- data/_sass/foundation-sites/scss/_global.scss +219 -0
- data/_sass/foundation-sites/scss/components/_accordion-menu.scss +36 -0
- data/_sass/foundation-sites/scss/components/_accordion.scss +150 -0
- data/_sass/foundation-sites/scss/components/_badge.scss +63 -0
- data/_sass/foundation-sites/scss/components/_breadcrumbs.scss +100 -0
- data/_sass/foundation-sites/scss/components/_button-group.scss +253 -0
- data/_sass/foundation-sites/scss/components/_button.scss +332 -0
- data/_sass/foundation-sites/scss/components/_callout.scss +106 -0
- data/_sass/foundation-sites/scss/components/_card.scss +121 -0
- data/_sass/foundation-sites/scss/components/_close-button.scss +102 -0
- data/_sass/foundation-sites/scss/components/_drilldown.scss +93 -0
- data/_sass/foundation-sites/scss/components/_dropdown-menu.scss +226 -0
- data/_sass/foundation-sites/scss/components/_dropdown.scss +72 -0
- data/_sass/foundation-sites/scss/components/_flex-video.scss +1 -0
- data/_sass/foundation-sites/scss/components/_flex.scss +34 -0
- data/_sass/foundation-sites/scss/components/_float.scss +27 -0
- data/_sass/foundation-sites/scss/components/_label.scss +64 -0
- data/_sass/foundation-sites/scss/components/_media-object.scss +114 -0
- data/_sass/foundation-sites/scss/components/_menu-icon.scss +9 -0
- data/_sass/foundation-sites/scss/components/_menu.scss +376 -0
- data/_sass/foundation-sites/scss/components/_off-canvas.scss +329 -0
- data/_sass/foundation-sites/scss/components/_orbit.scss +196 -0
- data/_sass/foundation-sites/scss/components/_pagination.scss +193 -0
- data/_sass/foundation-sites/scss/components/_progress-bar.scss +64 -0
- data/_sass/foundation-sites/scss/components/_responsive-embed.scss +70 -0
- data/_sass/foundation-sites/scss/components/_reveal.scss +178 -0
- data/_sass/foundation-sites/scss/components/_slider.scss +138 -0
- data/_sass/foundation-sites/scss/components/_sticky.scss +38 -0
- data/_sass/foundation-sites/scss/components/_switch.scss +247 -0
- data/_sass/foundation-sites/scss/components/_table.scss +329 -0
- data/_sass/foundation-sites/scss/components/_tabs.scss +196 -0
- data/_sass/foundation-sites/scss/components/_thumbnail.scss +67 -0
- data/_sass/foundation-sites/scss/components/_title-bar.scss +84 -0
- data/_sass/foundation-sites/scss/components/_tooltip.scss +107 -0
- data/_sass/foundation-sites/scss/components/_top-bar.scss +173 -0
- data/_sass/foundation-sites/scss/components/_visibility.scss +132 -0
- data/_sass/foundation-sites/scss/forms/_checkbox.scss +41 -0
- data/_sass/foundation-sites/scss/forms/_error.scss +88 -0
- data/_sass/foundation-sites/scss/forms/_fieldset.scss +54 -0
- data/_sass/foundation-sites/scss/forms/_forms.scss +34 -0
- data/_sass/foundation-sites/scss/forms/_help-text.scss +30 -0
- data/_sass/foundation-sites/scss/forms/_input-group.scss +135 -0
- data/_sass/foundation-sites/scss/forms/_label.scss +50 -0
- data/_sass/foundation-sites/scss/forms/_meter.scss +110 -0
- data/_sass/foundation-sites/scss/forms/_progress.scss +94 -0
- data/_sass/foundation-sites/scss/forms/_range.scss +149 -0
- data/_sass/foundation-sites/scss/forms/_select.scss +85 -0
- data/_sass/foundation-sites/scss/forms/_text.scss +170 -0
- data/_sass/foundation-sites/scss/foundation.scss +118 -0
- data/_sass/foundation-sites/scss/grid/_classes.scss +176 -0
- data/_sass/foundation-sites/scss/grid/_column.scss +112 -0
- data/_sass/foundation-sites/scss/grid/_flex-grid.scss +312 -0
- data/_sass/foundation-sites/scss/grid/_grid.scss +48 -0
- data/_sass/foundation-sites/scss/grid/_gutter.scss +82 -0
- data/_sass/foundation-sites/scss/grid/_layout.scss +76 -0
- data/_sass/foundation-sites/scss/grid/_position.scss +76 -0
- data/_sass/foundation-sites/scss/grid/_row.scss +99 -0
- data/_sass/foundation-sites/scss/grid/_size.scss +24 -0
- data/_sass/foundation-sites/scss/settings/_settings.scss +620 -0
- data/_sass/foundation-sites/scss/typography/_alignment.scss +22 -0
- data/_sass/foundation-sites/scss/typography/_base.scss +509 -0
- data/_sass/foundation-sites/scss/typography/_helpers.scss +78 -0
- data/_sass/foundation-sites/scss/typography/_print.scss +86 -0
- data/_sass/foundation-sites/scss/typography/_typography.scss +26 -0
- data/_sass/foundation-sites/scss/util/_breakpoint.scss +281 -0
- data/_sass/foundation-sites/scss/util/_color.scss +126 -0
- data/_sass/foundation-sites/scss/util/_direction.scss +31 -0
- data/_sass/foundation-sites/scss/util/_flex.scss +85 -0
- data/_sass/foundation-sites/scss/util/_math.scss +72 -0
- data/_sass/foundation-sites/scss/util/_mixins.scss +276 -0
- data/_sass/foundation-sites/scss/util/_selector.scss +41 -0
- data/_sass/foundation-sites/scss/util/_typography.scss +26 -0
- data/_sass/foundation-sites/scss/util/_unit.scss +152 -0
- data/_sass/foundation-sites/scss/util/_util.scss +14 -0
- data/_sass/foundation-sites/scss/util/_value.scss +160 -0
- data/_sass/global/_accessibility.scss +32 -0
- data/_sass/global/_functions.scss +7 -0
- data/_sass/global/_modernizr.scss +0 -0
- data/_sass/global/_settings.scss +657 -0
- data/_sass/global/_wp-admin.scss +24 -0
- data/_sass/global/_wp-overrides.scss +51 -0
- data/_sass/jquery/.bower.json +25 -0
- data/_sass/jquery/AUTHORS.txt +278 -0
- data/_sass/jquery/LICENSE.txt +36 -0
- data/_sass/jquery/README.md +65 -0
- data/_sass/jquery/bower.json +14 -0
- data/_sass/jquery/dist/jquery.js +9814 -0
- data/_sass/jquery/dist/jquery.min.js +4 -0
- data/_sass/jquery/dist/jquery.min.map +1 -0
- data/_sass/jquery/external/sizzle/LICENSE.txt +36 -0
- data/_sass/jquery/external/sizzle/dist/sizzle.js +2143 -0
- data/_sass/jquery/external/sizzle/dist/sizzle.min.js +3 -0
- data/_sass/jquery/external/sizzle/dist/sizzle.min.map +1 -0
- data/_sass/jquery/src/.jshintrc +29 -0
- data/_sass/jquery/src/ajax.js +845 -0
- data/_sass/jquery/src/ajax/jsonp.js +100 -0
- data/_sass/jquery/src/ajax/load.js +83 -0
- data/_sass/jquery/src/ajax/parseJSON.js +13 -0
- data/_sass/jquery/src/ajax/parseXML.js +27 -0
- data/_sass/jquery/src/ajax/script.js +68 -0
- data/_sass/jquery/src/ajax/var/location.js +3 -0
- data/_sass/jquery/src/ajax/var/nonce.js +5 -0
- data/_sass/jquery/src/ajax/var/rquery.js +3 -0
- data/_sass/jquery/src/ajax/xhr.js +167 -0
- data/_sass/jquery/src/attributes.js +11 -0
- data/_sass/jquery/src/attributes/attr.js +142 -0
- data/_sass/jquery/src/attributes/classes.js +177 -0
- data/_sass/jquery/src/attributes/prop.js +125 -0
- data/_sass/jquery/src/attributes/support.js +36 -0
- data/_sass/jquery/src/attributes/val.js +177 -0
- data/_sass/jquery/src/callbacks.js +232 -0
- data/_sass/jquery/src/core.js +494 -0
- data/_sass/jquery/src/core/access.js +65 -0
- data/_sass/jquery/src/core/init.js +134 -0
- data/_sass/jquery/src/core/parseHTML.js +41 -0
- data/_sass/jquery/src/core/ready.js +103 -0
- data/_sass/jquery/src/core/var/rsingleTag.js +5 -0
- data/_sass/jquery/src/css.js +502 -0
- data/_sass/jquery/src/css/addGetHookIf.js +24 -0
- data/_sass/jquery/src/css/adjustCSS.js +65 -0
- data/_sass/jquery/src/css/curCSS.js +60 -0
- data/_sass/jquery/src/css/defaultDisplay.js +72 -0
- data/_sass/jquery/src/css/hiddenVisibleSelectors.js +18 -0
- data/_sass/jquery/src/css/showHide.js +48 -0
- data/_sass/jquery/src/css/support.js +121 -0
- data/_sass/jquery/src/css/var/cssExpand.js +3 -0
- data/_sass/jquery/src/css/var/getStyles.js +15 -0
- data/_sass/jquery/src/css/var/isHidden.js +16 -0
- data/_sass/jquery/src/css/var/rmargin.js +3 -0
- data/_sass/jquery/src/css/var/rnumnonpx.js +5 -0
- data/_sass/jquery/src/css/var/swap.js +24 -0
- data/_sass/jquery/src/data.js +187 -0
- data/_sass/jquery/src/data/Data.js +200 -0
- data/_sass/jquery/src/data/var/acceptData.js +18 -0
- data/_sass/jquery/src/data/var/dataPriv.js +5 -0
- data/_sass/jquery/src/data/var/dataUser.js +5 -0
- data/_sass/jquery/src/deferred.js +158 -0
- data/_sass/jquery/src/deprecated.js +32 -0
- data/_sass/jquery/src/dimensions.js +54 -0
- data/_sass/jquery/src/effects.js +629 -0
- data/_sass/jquery/src/effects/Tween.js +121 -0
- data/_sass/jquery/src/effects/animatedSelector.js +13 -0
- data/_sass/jquery/src/event.js +711 -0
- data/_sass/jquery/src/event/ajax.js +20 -0
- data/_sass/jquery/src/event/alias.js +27 -0
- data/_sass/jquery/src/event/focusin.js +53 -0
- data/_sass/jquery/src/event/support.js +9 -0
- data/_sass/jquery/src/event/trigger.js +183 -0
- data/_sass/jquery/src/exports/amd.js +24 -0
- data/_sass/jquery/src/exports/global.js +26 -0
- data/_sass/jquery/src/intro.js +44 -0
- data/_sass/jquery/src/jquery.js +37 -0
- data/_sass/jquery/src/manipulation.js +481 -0
- data/_sass/jquery/src/manipulation/_evalUrl.js +20 -0
- data/_sass/jquery/src/manipulation/buildFragment.js +102 -0
- data/_sass/jquery/src/manipulation/getAll.js +21 -0
- data/_sass/jquery/src/manipulation/setGlobalEval.js +20 -0
- data/_sass/jquery/src/manipulation/support.js +33 -0
- data/_sass/jquery/src/manipulation/var/rcheckableType.js +3 -0
- data/_sass/jquery/src/manipulation/var/rscriptType.js +3 -0
- data/_sass/jquery/src/manipulation/var/rtagName.js +3 -0
- data/_sass/jquery/src/manipulation/wrapMap.js +27 -0
- data/_sass/jquery/src/offset.js +218 -0
- data/_sass/jquery/src/outro.js +2 -0
- data/_sass/jquery/src/queue.js +143 -0
- data/_sass/jquery/src/queue/delay.js +22 -0
- data/_sass/jquery/src/selector-native.js +211 -0
- data/_sass/jquery/src/selector-sizzle.js +14 -0
- data/_sass/jquery/src/selector.js +1 -0
- data/_sass/jquery/src/serialize.js +125 -0
- data/_sass/jquery/src/traversing.js +175 -0
- data/_sass/jquery/src/traversing/findFilter.js +100 -0
- data/_sass/jquery/src/traversing/var/dir.js +20 -0
- data/_sass/jquery/src/traversing/var/rneedsContext.js +6 -0
- data/_sass/jquery/src/traversing/var/siblings.js +15 -0
- data/_sass/jquery/src/var/arr.js +3 -0
- data/_sass/jquery/src/var/class2type.js +5 -0
- data/_sass/jquery/src/var/concat.js +5 -0
- data/_sass/jquery/src/var/document.js +3 -0
- data/_sass/jquery/src/var/documentElement.js +5 -0
- data/_sass/jquery/src/var/hasOwn.js +5 -0
- data/_sass/jquery/src/var/indexOf.js +5 -0
- data/_sass/jquery/src/var/pnum.js +3 -0
- data/_sass/jquery/src/var/push.js +5 -0
- data/_sass/jquery/src/var/rcssNum.js +7 -0
- data/_sass/jquery/src/var/rnotwhite.js +3 -0
- data/_sass/jquery/src/var/slice.js +5 -0
- data/_sass/jquery/src/var/support.js +5 -0
- data/_sass/jquery/src/var/toString.js +5 -0
- data/_sass/jquery/src/wrap.js +79 -0
- data/_sass/modules/_editor-style.scss +5 -0
- data/_sass/modules/_footer.scss +115 -0
- data/_sass/modules/_navigation.scss +570 -0
- data/_sass/modules/_sidebar.scss +66 -0
- data/_sass/modules/_twitter.scss +58 -0
- data/_sass/motion-ui/.bower.json +38 -0
- data/_sass/motion-ui/LICENSE +22 -0
- data/_sass/motion-ui/README.md +29 -0
- data/_sass/motion-ui/bower.json +28 -0
- data/_sass/motion-ui/composer.json +25 -0
- data/_sass/motion-ui/dist/motion-ui.css +634 -0
- data/_sass/motion-ui/dist/motion-ui.js +117 -0
- data/_sass/motion-ui/dist/motion-ui.min.css +1 -0
- data/_sass/motion-ui/dist/motion-ui.min.js +1 -0
- data/_sass/motion-ui/docs/animations.md +230 -0
- data/_sass/motion-ui/docs/classes.md +81 -0
- data/_sass/motion-ui/docs/configuration.md +63 -0
- data/_sass/motion-ui/docs/installation.md +50 -0
- data/_sass/motion-ui/docs/javascript.md +36 -0
- data/_sass/motion-ui/docs/readme.md +32 -0
- data/_sass/motion-ui/docs/transitions.md +112 -0
- data/_sass/motion-ui/docs/wow.md +35 -0
- data/_sass/motion-ui/gulpfile.js +90 -0
- data/_sass/motion-ui/lib/handlebars.js +8 -0
- data/_sass/motion-ui/motion-ui.js +105 -0
- data/_sass/motion-ui/motion-ui.scss +4 -0
- data/_sass/motion-ui/package.json +44 -0
- data/_sass/motion-ui/src/_classes.scss +109 -0
- data/_sass/motion-ui/src/_settings.scss +61 -0
- data/_sass/motion-ui/src/effects/_fade.scss +32 -0
- data/_sass/motion-ui/src/effects/_hinge.scss +65 -0
- data/_sass/motion-ui/src/effects/_shake.scss +15 -0
- data/_sass/motion-ui/src/effects/_slide.scss +41 -0
- data/_sass/motion-ui/src/effects/_spin.scss +28 -0
- data/_sass/motion-ui/src/effects/_wiggle.scss +13 -0
- data/_sass/motion-ui/src/effects/_zoom.scss +15 -0
- data/_sass/motion-ui/src/motion-ui.scss +29 -0
- data/_sass/motion-ui/src/transitions/_fade.scss +28 -0
- data/_sass/motion-ui/src/transitions/_hinge.scss +43 -0
- data/_sass/motion-ui/src/transitions/_slide.scss +42 -0
- data/_sass/motion-ui/src/transitions/_spin.scss +39 -0
- data/_sass/motion-ui/src/transitions/_zoom.scss +39 -0
- data/_sass/motion-ui/src/util/_animation.scss +7 -0
- data/_sass/motion-ui/src/util/_args.scss +15 -0
- data/_sass/motion-ui/src/util/_keyframe.scss +136 -0
- data/_sass/motion-ui/src/util/_selector.scss +23 -0
- data/_sass/motion-ui/src/util/_series.scss +54 -0
- data/_sass/motion-ui/src/util/_transition.scss +45 -0
- data/_sass/motion-ui/src/util/_unit.scss +7 -0
- data/_sass/templates/_archive.scss +66 -0
- data/_sass/templates/_page-accordion-sidebar.scss +137 -0
- data/_sass/templates/_page-contact.scss +33 -0
- data/_sass/templates/_page-default.scss +472 -0
- data/_sass/templates/_page-faq-sidebar.scss +77 -0
- data/_sass/templates/_page-front.scss +549 -0
- data/_sass/templates/_page-full-width.scss +11 -0
- data/_sass/templates/_page-highlights.scss +156 -0
- data/_sass/templates/_page-sidebar-left.scss +27 -0
- data/_sass/templates/_print.scss +69 -0
- data/_sass/templates/_single-post.scss +12 -0
- data/_sass/what-input/.bower.json +35 -0
- data/_sass/what-input/Gulpfile.js +104 -0
- data/_sass/what-input/LICENSE +21 -0
- data/_sass/what-input/README.md +178 -0
- data/_sass/what-input/bower.json +26 -0
- data/_sass/what-input/dist/lte-IE8.js +1 -0
- data/_sass/what-input/dist/what-input.js +337 -0
- data/_sass/what-input/dist/what-input.min.js +7 -0
- data/_sass/what-input/index.html +164 -0
- data/_sass/what-input/package.json +38 -0
- data/_sass/what-input/src/polyfills/ie8/EventListener.js +150 -0
- data/_sass/what-input/src/polyfills/ie8/indexOf.js +65 -0
- data/_sass/what-input/src/what-input.js +269 -0
- data/_sass/what-input/yarn.lock +3482 -0
- data/assets/css/style.scss +4 -0
- data/assets/{css → fonts}/comfortaa-bold-webfont.eot +0 -0
- data/assets/{css → fonts}/comfortaa-bold-webfont.svg +0 -0
- data/assets/{css → fonts}/comfortaa-bold-webfont.ttf +0 -0
- data/assets/{css → fonts}/comfortaa-bold-webfont.woff +0 -0
- data/assets/{css → fonts}/comfortaa-bold-webfont.woff2 +0 -0
- data/assets/{css → fonts}/comfortaa-regular-webfont.eot +0 -0
- data/assets/{css → fonts}/comfortaa-regular-webfont.svg +0 -0
- data/assets/{css → fonts}/comfortaa-regular-webfont.ttf +0 -0
- data/assets/{css → fonts}/comfortaa-regular-webfont.woff +0 -0
- data/assets/{css → fonts}/comfortaa-regular-webfont.woff2 +0 -0
- data/assets/{css → fonts}/raleway-regular-webfont.svg +0 -0
- data/assets/images/ace-centre-logo.png +0 -0
- data/assets/images/getting-started-with-aac-logo.png +0 -0
- data/assets/images/getting-started-with-aac.png +0 -0
- data/assets/images/icon/ace-icon-180x180.png +0 -0
- data/assets/images/icon/ace-icon-192x192.png +0 -0
- data/assets/images/icon/ace-icon-270x270.png +0 -0
- data/assets/images/icon/ace-icon-32x32.png +0 -0
- data/assets/javascript/scripts.js +10 -0
- metadata +477 -29
- data/_includes/theme-footer.html +0 -16
- data/_includes/theme-head.html +0 -48
- data/assets/css/bootstrap-select.min.css +0 -7
- data/assets/css/bootstrap-theme.css +0 -442
- data/assets/css/bootstrap.css +0 -6203
- data/assets/css/draganddrop.css +0 -210
- data/assets/css/fonts.css +0 -41
- data/assets/css/responsive.css +0 -90
- data/assets/css/style.css +0 -260
- data/assets/images/divider.png +0 -0
- data/assets/images/logo-1.png +0 -0
- data/assets/images/logo-2.png +0 -0
@@ -0,0 +1,148 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
!function($) {
|
4
|
+
|
5
|
+
/**
|
6
|
+
* Toggler module.
|
7
|
+
* @module foundation.toggler
|
8
|
+
* @requires foundation.util.motion
|
9
|
+
* @requires foundation.util.triggers
|
10
|
+
*/
|
11
|
+
|
12
|
+
class Toggler {
|
13
|
+
/**
|
14
|
+
* Creates a new instance of Toggler.
|
15
|
+
* @class
|
16
|
+
* @fires Toggler#init
|
17
|
+
* @param {Object} element - jQuery object to add the trigger to.
|
18
|
+
* @param {Object} options - Overrides to the default plugin settings.
|
19
|
+
*/
|
20
|
+
constructor(element, options) {
|
21
|
+
this.$element = element;
|
22
|
+
this.options = $.extend({}, Toggler.defaults, element.data(), options);
|
23
|
+
this.className = '';
|
24
|
+
|
25
|
+
this._init();
|
26
|
+
this._events();
|
27
|
+
|
28
|
+
Foundation.registerPlugin(this, 'Toggler');
|
29
|
+
}
|
30
|
+
|
31
|
+
/**
|
32
|
+
* Initializes the Toggler plugin by parsing the toggle class from data-toggler, or animation classes from data-animate.
|
33
|
+
* @function
|
34
|
+
* @private
|
35
|
+
*/
|
36
|
+
_init() {
|
37
|
+
var input;
|
38
|
+
// Parse animation classes if they were set
|
39
|
+
if (this.options.animate) {
|
40
|
+
input = this.options.animate.split(' ');
|
41
|
+
|
42
|
+
this.animationIn = input[0];
|
43
|
+
this.animationOut = input[1] || null;
|
44
|
+
}
|
45
|
+
// Otherwise, parse toggle class
|
46
|
+
else {
|
47
|
+
input = this.$element.data('toggler');
|
48
|
+
// Allow for a . at the beginning of the string
|
49
|
+
this.className = input[0] === '.' ? input.slice(1) : input;
|
50
|
+
}
|
51
|
+
|
52
|
+
// Add ARIA attributes to triggers
|
53
|
+
var id = this.$element[0].id;
|
54
|
+
$(`[data-open="${id}"], [data-close="${id}"], [data-toggle="${id}"]`)
|
55
|
+
.attr('aria-controls', id);
|
56
|
+
// If the target is hidden, add aria-hidden
|
57
|
+
this.$element.attr('aria-expanded', this.$element.is(':hidden') ? false : true);
|
58
|
+
}
|
59
|
+
|
60
|
+
/**
|
61
|
+
* Initializes events for the toggle trigger.
|
62
|
+
* @function
|
63
|
+
* @private
|
64
|
+
*/
|
65
|
+
_events() {
|
66
|
+
this.$element.off('toggle.zf.trigger').on('toggle.zf.trigger', this.toggle.bind(this));
|
67
|
+
}
|
68
|
+
|
69
|
+
/**
|
70
|
+
* Toggles the target class on the target element. An event is fired from the original trigger depending on if the resultant state was "on" or "off".
|
71
|
+
* @function
|
72
|
+
* @fires Toggler#on
|
73
|
+
* @fires Toggler#off
|
74
|
+
*/
|
75
|
+
toggle() {
|
76
|
+
this[ this.options.animate ? '_toggleAnimate' : '_toggleClass']();
|
77
|
+
}
|
78
|
+
|
79
|
+
_toggleClass() {
|
80
|
+
this.$element.toggleClass(this.className);
|
81
|
+
|
82
|
+
var isOn = this.$element.hasClass(this.className);
|
83
|
+
if (isOn) {
|
84
|
+
/**
|
85
|
+
* Fires if the target element has the class after a toggle.
|
86
|
+
* @event Toggler#on
|
87
|
+
*/
|
88
|
+
this.$element.trigger('on.zf.toggler');
|
89
|
+
}
|
90
|
+
else {
|
91
|
+
/**
|
92
|
+
* Fires if the target element does not have the class after a toggle.
|
93
|
+
* @event Toggler#off
|
94
|
+
*/
|
95
|
+
this.$element.trigger('off.zf.toggler');
|
96
|
+
}
|
97
|
+
|
98
|
+
this._updateARIA(isOn);
|
99
|
+
this.$element.find('[data-mutate]').trigger('mutateme.zf.trigger');
|
100
|
+
}
|
101
|
+
|
102
|
+
_toggleAnimate() {
|
103
|
+
var _this = this;
|
104
|
+
|
105
|
+
if (this.$element.is(':hidden')) {
|
106
|
+
Foundation.Motion.animateIn(this.$element, this.animationIn, function() {
|
107
|
+
_this._updateARIA(true);
|
108
|
+
this.trigger('on.zf.toggler');
|
109
|
+
this.find('[data-mutate]').trigger('mutateme.zf.trigger');
|
110
|
+
});
|
111
|
+
}
|
112
|
+
else {
|
113
|
+
Foundation.Motion.animateOut(this.$element, this.animationOut, function() {
|
114
|
+
_this._updateARIA(false);
|
115
|
+
this.trigger('off.zf.toggler');
|
116
|
+
this.find('[data-mutate]').trigger('mutateme.zf.trigger');
|
117
|
+
});
|
118
|
+
}
|
119
|
+
}
|
120
|
+
|
121
|
+
_updateARIA(isOn) {
|
122
|
+
this.$element.attr('aria-expanded', isOn ? true : false);
|
123
|
+
}
|
124
|
+
|
125
|
+
/**
|
126
|
+
* Destroys the instance of Toggler on the element.
|
127
|
+
* @function
|
128
|
+
*/
|
129
|
+
destroy() {
|
130
|
+
this.$element.off('.zf.toggler');
|
131
|
+
Foundation.unregisterPlugin(this);
|
132
|
+
}
|
133
|
+
}
|
134
|
+
|
135
|
+
Toggler.defaults = {
|
136
|
+
/**
|
137
|
+
* Tells the plugin if the element should animated when toggled.
|
138
|
+
* @option
|
139
|
+
* @type {boolean}
|
140
|
+
* @default false
|
141
|
+
*/
|
142
|
+
animate: false
|
143
|
+
};
|
144
|
+
|
145
|
+
// Window exports
|
146
|
+
Foundation.plugin(Toggler, 'Toggler');
|
147
|
+
|
148
|
+
}(jQuery);
|
@@ -0,0 +1,470 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
!function($) {
|
4
|
+
|
5
|
+
/**
|
6
|
+
* Tooltip module.
|
7
|
+
* @module foundation.tooltip
|
8
|
+
* @requires foundation.util.box
|
9
|
+
* @requires foundation.util.mediaQuery
|
10
|
+
* @requires foundation.util.triggers
|
11
|
+
*/
|
12
|
+
|
13
|
+
class Tooltip {
|
14
|
+
/**
|
15
|
+
* Creates a new instance of a Tooltip.
|
16
|
+
* @class
|
17
|
+
* @fires Tooltip#init
|
18
|
+
* @param {jQuery} element - jQuery object to attach a tooltip to.
|
19
|
+
* @param {Object} options - object to extend the default configuration.
|
20
|
+
*/
|
21
|
+
constructor(element, options) {
|
22
|
+
this.$element = element;
|
23
|
+
this.options = $.extend({}, Tooltip.defaults, this.$element.data(), options);
|
24
|
+
|
25
|
+
this.isActive = false;
|
26
|
+
this.isClick = false;
|
27
|
+
this._init();
|
28
|
+
|
29
|
+
Foundation.registerPlugin(this, 'Tooltip');
|
30
|
+
}
|
31
|
+
|
32
|
+
/**
|
33
|
+
* Initializes the tooltip by setting the creating the tip element, adding it's text, setting private variables and setting attributes on the anchor.
|
34
|
+
* @private
|
35
|
+
*/
|
36
|
+
_init() {
|
37
|
+
var elemId = this.$element.attr('aria-describedby') || Foundation.GetYoDigits(6, 'tooltip');
|
38
|
+
|
39
|
+
this.options.positionClass = this.options.positionClass || this._getPositionClass(this.$element);
|
40
|
+
this.options.tipText = this.options.tipText || this.$element.attr('title');
|
41
|
+
this.template = this.options.template ? $(this.options.template) : this._buildTemplate(elemId);
|
42
|
+
|
43
|
+
if (this.options.allowHtml) {
|
44
|
+
this.template.appendTo(document.body)
|
45
|
+
.html(this.options.tipText)
|
46
|
+
.hide();
|
47
|
+
} else {
|
48
|
+
this.template.appendTo(document.body)
|
49
|
+
.text(this.options.tipText)
|
50
|
+
.hide();
|
51
|
+
}
|
52
|
+
|
53
|
+
this.$element.attr({
|
54
|
+
'title': '',
|
55
|
+
'aria-describedby': elemId,
|
56
|
+
'data-yeti-box': elemId,
|
57
|
+
'data-toggle': elemId,
|
58
|
+
'data-resize': elemId
|
59
|
+
}).addClass(this.options.triggerClass);
|
60
|
+
|
61
|
+
//helper variables to track movement on collisions
|
62
|
+
this.usedPositions = [];
|
63
|
+
this.counter = 4;
|
64
|
+
this.classChanged = false;
|
65
|
+
|
66
|
+
this._events();
|
67
|
+
}
|
68
|
+
|
69
|
+
/**
|
70
|
+
* Grabs the current positioning class, if present, and returns the value or an empty string.
|
71
|
+
* @private
|
72
|
+
*/
|
73
|
+
_getPositionClass(element) {
|
74
|
+
if (!element) { return ''; }
|
75
|
+
// var position = element.attr('class').match(/top|left|right/g);
|
76
|
+
var position = element[0].className.match(/\b(top|left|right)\b/g);
|
77
|
+
position = position ? position[0] : '';
|
78
|
+
return position;
|
79
|
+
};
|
80
|
+
/**
|
81
|
+
* builds the tooltip element, adds attributes, and returns the template.
|
82
|
+
* @private
|
83
|
+
*/
|
84
|
+
_buildTemplate(id) {
|
85
|
+
var templateClasses = (`${this.options.tooltipClass} ${this.options.positionClass} ${this.options.templateClasses}`).trim();
|
86
|
+
var $template = $('<div></div>').addClass(templateClasses).attr({
|
87
|
+
'role': 'tooltip',
|
88
|
+
'aria-hidden': true,
|
89
|
+
'data-is-active': false,
|
90
|
+
'data-is-focus': false,
|
91
|
+
'id': id
|
92
|
+
});
|
93
|
+
return $template;
|
94
|
+
}
|
95
|
+
|
96
|
+
/**
|
97
|
+
* Function that gets called if a collision event is detected.
|
98
|
+
* @param {String} position - positioning class to try
|
99
|
+
* @private
|
100
|
+
*/
|
101
|
+
_reposition(position) {
|
102
|
+
this.usedPositions.push(position ? position : 'bottom');
|
103
|
+
|
104
|
+
//default, try switching to opposite side
|
105
|
+
if (!position && (this.usedPositions.indexOf('top') < 0)) {
|
106
|
+
this.template.addClass('top');
|
107
|
+
} else if (position === 'top' && (this.usedPositions.indexOf('bottom') < 0)) {
|
108
|
+
this.template.removeClass(position);
|
109
|
+
} else if (position === 'left' && (this.usedPositions.indexOf('right') < 0)) {
|
110
|
+
this.template.removeClass(position)
|
111
|
+
.addClass('right');
|
112
|
+
} else if (position === 'right' && (this.usedPositions.indexOf('left') < 0)) {
|
113
|
+
this.template.removeClass(position)
|
114
|
+
.addClass('left');
|
115
|
+
}
|
116
|
+
|
117
|
+
//if default change didn't work, try bottom or left first
|
118
|
+
else if (!position && (this.usedPositions.indexOf('top') > -1) && (this.usedPositions.indexOf('left') < 0)) {
|
119
|
+
this.template.addClass('left');
|
120
|
+
} else if (position === 'top' && (this.usedPositions.indexOf('bottom') > -1) && (this.usedPositions.indexOf('left') < 0)) {
|
121
|
+
this.template.removeClass(position)
|
122
|
+
.addClass('left');
|
123
|
+
} else if (position === 'left' && (this.usedPositions.indexOf('right') > -1) && (this.usedPositions.indexOf('bottom') < 0)) {
|
124
|
+
this.template.removeClass(position);
|
125
|
+
} else if (position === 'right' && (this.usedPositions.indexOf('left') > -1) && (this.usedPositions.indexOf('bottom') < 0)) {
|
126
|
+
this.template.removeClass(position);
|
127
|
+
}
|
128
|
+
//if nothing cleared, set to bottom
|
129
|
+
else {
|
130
|
+
this.template.removeClass(position);
|
131
|
+
}
|
132
|
+
this.classChanged = true;
|
133
|
+
this.counter--;
|
134
|
+
}
|
135
|
+
|
136
|
+
/**
|
137
|
+
* sets the position class of an element and recursively calls itself until there are no more possible positions to attempt, or the tooltip element is no longer colliding.
|
138
|
+
* if the tooltip is larger than the screen width, default to full width - any user selected margin
|
139
|
+
* @private
|
140
|
+
*/
|
141
|
+
_setPosition() {
|
142
|
+
var position = this._getPositionClass(this.template),
|
143
|
+
$tipDims = Foundation.Box.GetDimensions(this.template),
|
144
|
+
$anchorDims = Foundation.Box.GetDimensions(this.$element),
|
145
|
+
direction = (position === 'left' ? 'left' : ((position === 'right') ? 'left' : 'top')),
|
146
|
+
param = (direction === 'top') ? 'height' : 'width',
|
147
|
+
offset = (param === 'height') ? this.options.vOffset : this.options.hOffset,
|
148
|
+
_this = this;
|
149
|
+
|
150
|
+
if (($tipDims.width >= $tipDims.windowDims.width) || (!this.counter && !Foundation.Box.ImNotTouchingYou(this.template))) {
|
151
|
+
this.template.offset(Foundation.Box.GetOffsets(this.template, this.$element, 'center bottom', this.options.vOffset, this.options.hOffset, true)).css({
|
152
|
+
// this.$element.offset(Foundation.GetOffsets(this.template, this.$element, 'center bottom', this.options.vOffset, this.options.hOffset, true)).css({
|
153
|
+
'width': $anchorDims.windowDims.width - (this.options.hOffset * 2),
|
154
|
+
'height': 'auto'
|
155
|
+
});
|
156
|
+
return false;
|
157
|
+
}
|
158
|
+
|
159
|
+
this.template.offset(Foundation.Box.GetOffsets(this.template, this.$element,'center ' + (position || 'bottom'), this.options.vOffset, this.options.hOffset));
|
160
|
+
|
161
|
+
while(!Foundation.Box.ImNotTouchingYou(this.template) && this.counter) {
|
162
|
+
this._reposition(position);
|
163
|
+
this._setPosition();
|
164
|
+
}
|
165
|
+
}
|
166
|
+
|
167
|
+
/**
|
168
|
+
* reveals the tooltip, and fires an event to close any other open tooltips on the page
|
169
|
+
* @fires Tooltip#closeme
|
170
|
+
* @fires Tooltip#show
|
171
|
+
* @function
|
172
|
+
*/
|
173
|
+
show() {
|
174
|
+
if (this.options.showOn !== 'all' && !Foundation.MediaQuery.is(this.options.showOn)) {
|
175
|
+
// console.error('The screen is too small to display this tooltip');
|
176
|
+
return false;
|
177
|
+
}
|
178
|
+
|
179
|
+
var _this = this;
|
180
|
+
this.template.css('visibility', 'hidden').show();
|
181
|
+
this._setPosition();
|
182
|
+
|
183
|
+
/**
|
184
|
+
* Fires to close all other open tooltips on the page
|
185
|
+
* @event Closeme#tooltip
|
186
|
+
*/
|
187
|
+
this.$element.trigger('closeme.zf.tooltip', this.template.attr('id'));
|
188
|
+
|
189
|
+
|
190
|
+
this.template.attr({
|
191
|
+
'data-is-active': true,
|
192
|
+
'aria-hidden': false
|
193
|
+
});
|
194
|
+
_this.isActive = true;
|
195
|
+
// console.log(this.template);
|
196
|
+
this.template.stop().hide().css('visibility', '').fadeIn(this.options.fadeInDuration, function() {
|
197
|
+
//maybe do stuff?
|
198
|
+
});
|
199
|
+
/**
|
200
|
+
* Fires when the tooltip is shown
|
201
|
+
* @event Tooltip#show
|
202
|
+
*/
|
203
|
+
this.$element.trigger('show.zf.tooltip');
|
204
|
+
}
|
205
|
+
|
206
|
+
/**
|
207
|
+
* Hides the current tooltip, and resets the positioning class if it was changed due to collision
|
208
|
+
* @fires Tooltip#hide
|
209
|
+
* @function
|
210
|
+
*/
|
211
|
+
hide() {
|
212
|
+
// console.log('hiding', this.$element.data('yeti-box'));
|
213
|
+
var _this = this;
|
214
|
+
this.template.stop().attr({
|
215
|
+
'aria-hidden': true,
|
216
|
+
'data-is-active': false
|
217
|
+
}).fadeOut(this.options.fadeOutDuration, function() {
|
218
|
+
_this.isActive = false;
|
219
|
+
_this.isClick = false;
|
220
|
+
if (_this.classChanged) {
|
221
|
+
_this.template
|
222
|
+
.removeClass(_this._getPositionClass(_this.template))
|
223
|
+
.addClass(_this.options.positionClass);
|
224
|
+
|
225
|
+
_this.usedPositions = [];
|
226
|
+
_this.counter = 4;
|
227
|
+
_this.classChanged = false;
|
228
|
+
}
|
229
|
+
});
|
230
|
+
/**
|
231
|
+
* fires when the tooltip is hidden
|
232
|
+
* @event Tooltip#hide
|
233
|
+
*/
|
234
|
+
this.$element.trigger('hide.zf.tooltip');
|
235
|
+
}
|
236
|
+
|
237
|
+
/**
|
238
|
+
* adds event listeners for the tooltip and its anchor
|
239
|
+
* TODO combine some of the listeners like focus and mouseenter, etc.
|
240
|
+
* @private
|
241
|
+
*/
|
242
|
+
_events() {
|
243
|
+
var _this = this;
|
244
|
+
var $template = this.template;
|
245
|
+
var isFocus = false;
|
246
|
+
|
247
|
+
if (!this.options.disableHover) {
|
248
|
+
|
249
|
+
this.$element
|
250
|
+
.on('mouseenter.zf.tooltip', function(e) {
|
251
|
+
if (!_this.isActive) {
|
252
|
+
_this.timeout = setTimeout(function() {
|
253
|
+
_this.show();
|
254
|
+
}, _this.options.hoverDelay);
|
255
|
+
}
|
256
|
+
})
|
257
|
+
.on('mouseleave.zf.tooltip', function(e) {
|
258
|
+
clearTimeout(_this.timeout);
|
259
|
+
if (!isFocus || (_this.isClick && !_this.options.clickOpen)) {
|
260
|
+
_this.hide();
|
261
|
+
}
|
262
|
+
});
|
263
|
+
}
|
264
|
+
|
265
|
+
if (this.options.clickOpen) {
|
266
|
+
this.$element.on('mousedown.zf.tooltip', function(e) {
|
267
|
+
e.stopImmediatePropagation();
|
268
|
+
if (_this.isClick) {
|
269
|
+
//_this.hide();
|
270
|
+
// _this.isClick = false;
|
271
|
+
} else {
|
272
|
+
_this.isClick = true;
|
273
|
+
if ((_this.options.disableHover || !_this.$element.attr('tabindex')) && !_this.isActive) {
|
274
|
+
_this.show();
|
275
|
+
}
|
276
|
+
}
|
277
|
+
});
|
278
|
+
} else {
|
279
|
+
this.$element.on('mousedown.zf.tooltip', function(e) {
|
280
|
+
e.stopImmediatePropagation();
|
281
|
+
_this.isClick = true;
|
282
|
+
});
|
283
|
+
}
|
284
|
+
|
285
|
+
if (!this.options.disableForTouch) {
|
286
|
+
this.$element
|
287
|
+
.on('tap.zf.tooltip touchend.zf.tooltip', function(e) {
|
288
|
+
_this.isActive ? _this.hide() : _this.show();
|
289
|
+
});
|
290
|
+
}
|
291
|
+
|
292
|
+
this.$element.on({
|
293
|
+
// 'toggle.zf.trigger': this.toggle.bind(this),
|
294
|
+
// 'close.zf.trigger': this.hide.bind(this)
|
295
|
+
'close.zf.trigger': this.hide.bind(this)
|
296
|
+
});
|
297
|
+
|
298
|
+
this.$element
|
299
|
+
.on('focus.zf.tooltip', function(e) {
|
300
|
+
isFocus = true;
|
301
|
+
if (_this.isClick) {
|
302
|
+
// If we're not showing open on clicks, we need to pretend a click-launched focus isn't
|
303
|
+
// a real focus, otherwise on hover and come back we get bad behavior
|
304
|
+
if(!_this.options.clickOpen) { isFocus = false; }
|
305
|
+
return false;
|
306
|
+
} else {
|
307
|
+
_this.show();
|
308
|
+
}
|
309
|
+
})
|
310
|
+
|
311
|
+
.on('focusout.zf.tooltip', function(e) {
|
312
|
+
isFocus = false;
|
313
|
+
_this.isClick = false;
|
314
|
+
_this.hide();
|
315
|
+
})
|
316
|
+
|
317
|
+
.on('resizeme.zf.trigger', function() {
|
318
|
+
if (_this.isActive) {
|
319
|
+
_this._setPosition();
|
320
|
+
}
|
321
|
+
});
|
322
|
+
}
|
323
|
+
|
324
|
+
/**
|
325
|
+
* adds a toggle method, in addition to the static show() & hide() functions
|
326
|
+
* @function
|
327
|
+
*/
|
328
|
+
toggle() {
|
329
|
+
if (this.isActive) {
|
330
|
+
this.hide();
|
331
|
+
} else {
|
332
|
+
this.show();
|
333
|
+
}
|
334
|
+
}
|
335
|
+
|
336
|
+
/**
|
337
|
+
* Destroys an instance of tooltip, removes template element from the view.
|
338
|
+
* @function
|
339
|
+
*/
|
340
|
+
destroy() {
|
341
|
+
this.$element.attr('title', this.template.text())
|
342
|
+
.off('.zf.trigger .zf.tooltip')
|
343
|
+
.removeClass('has-tip top right left')
|
344
|
+
.removeAttr('aria-describedby aria-haspopup data-disable-hover data-resize data-toggle data-tooltip data-yeti-box');
|
345
|
+
|
346
|
+
this.template.remove();
|
347
|
+
|
348
|
+
Foundation.unregisterPlugin(this);
|
349
|
+
}
|
350
|
+
}
|
351
|
+
|
352
|
+
Tooltip.defaults = {
|
353
|
+
disableForTouch: false,
|
354
|
+
/**
|
355
|
+
* Time, in ms, before a tooltip should open on hover.
|
356
|
+
* @option
|
357
|
+
* @type {number}
|
358
|
+
* @default 200
|
359
|
+
*/
|
360
|
+
hoverDelay: 200,
|
361
|
+
/**
|
362
|
+
* Time, in ms, a tooltip should take to fade into view.
|
363
|
+
* @option
|
364
|
+
* @type {number}
|
365
|
+
* @default 150
|
366
|
+
*/
|
367
|
+
fadeInDuration: 150,
|
368
|
+
/**
|
369
|
+
* Time, in ms, a tooltip should take to fade out of view.
|
370
|
+
* @option
|
371
|
+
* @type {number}
|
372
|
+
* @default 150
|
373
|
+
*/
|
374
|
+
fadeOutDuration: 150,
|
375
|
+
/**
|
376
|
+
* Disables hover events from opening the tooltip if set to true
|
377
|
+
* @option
|
378
|
+
* @type {boolean}
|
379
|
+
* @default false
|
380
|
+
*/
|
381
|
+
disableHover: false,
|
382
|
+
/**
|
383
|
+
* Optional addtional classes to apply to the tooltip template on init.
|
384
|
+
* @option
|
385
|
+
* @type {string}
|
386
|
+
* @default ''
|
387
|
+
*/
|
388
|
+
templateClasses: '',
|
389
|
+
/**
|
390
|
+
* Non-optional class added to tooltip templates. Foundation default is 'tooltip'.
|
391
|
+
* @option
|
392
|
+
* @type {string}
|
393
|
+
* @default 'tooltip'
|
394
|
+
*/
|
395
|
+
tooltipClass: 'tooltip',
|
396
|
+
/**
|
397
|
+
* Class applied to the tooltip anchor element.
|
398
|
+
* @option
|
399
|
+
* @type {string}
|
400
|
+
* @default 'has-tip'
|
401
|
+
*/
|
402
|
+
triggerClass: 'has-tip',
|
403
|
+
/**
|
404
|
+
* Minimum breakpoint size at which to open the tooltip.
|
405
|
+
* @option
|
406
|
+
* @type {string}
|
407
|
+
* @default 'small'
|
408
|
+
*/
|
409
|
+
showOn: 'small',
|
410
|
+
/**
|
411
|
+
* Custom template to be used to generate markup for tooltip.
|
412
|
+
* @option
|
413
|
+
* @type {string}
|
414
|
+
* @default ''
|
415
|
+
*/
|
416
|
+
template: '',
|
417
|
+
/**
|
418
|
+
* Text displayed in the tooltip template on open.
|
419
|
+
* @option
|
420
|
+
* @type {string}
|
421
|
+
* @default ''
|
422
|
+
*/
|
423
|
+
tipText: '',
|
424
|
+
touchCloseText: 'Tap to close.',
|
425
|
+
/**
|
426
|
+
* Allows the tooltip to remain open if triggered with a click or touch event.
|
427
|
+
* @option
|
428
|
+
* @type {boolean}
|
429
|
+
* @default true
|
430
|
+
*/
|
431
|
+
clickOpen: true,
|
432
|
+
/**
|
433
|
+
* Additional positioning classes, set by the JS
|
434
|
+
* @option
|
435
|
+
* @type {string}
|
436
|
+
* @default ''
|
437
|
+
*/
|
438
|
+
positionClass: '',
|
439
|
+
/**
|
440
|
+
* Distance, in pixels, the template should push away from the anchor on the Y axis.
|
441
|
+
* @option
|
442
|
+
* @type {number}
|
443
|
+
* @default 10
|
444
|
+
*/
|
445
|
+
vOffset: 10,
|
446
|
+
/**
|
447
|
+
* Distance, in pixels, the template should push away from the anchor on the X axis, if aligned to a side.
|
448
|
+
* @option
|
449
|
+
* @type {number}
|
450
|
+
* @default 12
|
451
|
+
*/
|
452
|
+
hOffset: 12,
|
453
|
+
/**
|
454
|
+
* Allow HTML in tooltip. Warning: If you are loading user-generated content into tooltips,
|
455
|
+
* allowing HTML may open yourself up to XSS attacks.
|
456
|
+
* @option
|
457
|
+
* @type {boolean}
|
458
|
+
* @default false
|
459
|
+
*/
|
460
|
+
allowHtml: false
|
461
|
+
};
|
462
|
+
|
463
|
+
/**
|
464
|
+
* TODO utilize resize event trigger
|
465
|
+
*/
|
466
|
+
|
467
|
+
// Window exports
|
468
|
+
Foundation.plugin(Tooltip, 'Tooltip');
|
469
|
+
|
470
|
+
}(jQuery);
|