TokiCLI 0.1.1 → 0.2.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 +4 -4
- data/.gitignore +2 -0
- data/CHANGELOG.md +7 -0
- data/README.md +56 -10
- data/TokiCLI.gemspec +5 -2
- data/lib/API/dbapi.rb +104 -67
- data/lib/API/helpers.rb +47 -3
- data/lib/TokiCLI/app.rb +88 -12
- data/lib/TokiCLI/version.rb +1 -1
- data/lib/TokiCLI/view.rb +5 -1
- data/lib/TokiServer/Gemfile +6 -0
- data/lib/TokiServer/README.md +37 -0
- data/lib/TokiServer/bower.json +8 -0
- data/lib/TokiServer/bower_components/fastclick/.bower.json +23 -0
- data/lib/TokiServer/bower_components/fastclick/LICENSE +22 -0
- data/lib/TokiServer/bower_components/fastclick/README.md +133 -0
- data/lib/TokiServer/bower_components/fastclick/bower.json +13 -0
- data/lib/TokiServer/bower_components/fastclick/lib/fastclick.js +790 -0
- data/lib/TokiServer/bower_components/foundation/.bower.json +30 -0
- data/lib/TokiServer/bower_components/foundation/bower.json +20 -0
- data/lib/TokiServer/bower_components/foundation/css/foundation.css +4860 -0
- data/lib/TokiServer/bower_components/foundation/css/normalize.css +320 -0
- data/lib/TokiServer/bower_components/foundation/js/foundation.js +5543 -0
- data/lib/TokiServer/bower_components/foundation/js/foundation.min.js +3 -0
- data/lib/TokiServer/bower_components/foundation/js/foundation/foundation.abide.js +299 -0
- data/lib/TokiServer/bower_components/foundation/js/foundation/foundation.accordion.js +59 -0
- data/lib/TokiServer/bower_components/foundation/js/foundation/foundation.alert.js +43 -0
- data/lib/TokiServer/bower_components/foundation/js/foundation/foundation.clearing.js +534 -0
- data/lib/TokiServer/bower_components/foundation/js/foundation/foundation.dropdown.js +311 -0
- data/lib/TokiServer/bower_components/foundation/js/foundation/foundation.equalizer.js +74 -0
- data/lib/TokiServer/bower_components/foundation/js/foundation/foundation.interchange.js +331 -0
- data/lib/TokiServer/bower_components/foundation/js/foundation/foundation.joyride.js +843 -0
- data/lib/TokiServer/bower_components/foundation/js/foundation/foundation.js +611 -0
- data/lib/TokiServer/bower_components/foundation/js/foundation/foundation.magellan.js +178 -0
- data/lib/TokiServer/bower_components/foundation/js/foundation/foundation.offcanvas.js +108 -0
- data/lib/TokiServer/bower_components/foundation/js/foundation/foundation.orbit.js +610 -0
- data/lib/TokiServer/bower_components/foundation/js/foundation/foundation.reveal.js +437 -0
- data/lib/TokiServer/bower_components/foundation/js/foundation/foundation.slider.js +199 -0
- data/lib/TokiServer/bower_components/foundation/js/foundation/foundation.tab.js +167 -0
- data/lib/TokiServer/bower_components/foundation/js/foundation/foundation.tooltip.js +298 -0
- data/lib/TokiServer/bower_components/foundation/js/foundation/foundation.topbar.js +425 -0
- data/lib/TokiServer/bower_components/foundation/js/vendor/fastclick.js +9 -0
- data/lib/TokiServer/bower_components/foundation/js/vendor/jquery.cookie.js +8 -0
- data/lib/TokiServer/bower_components/foundation/js/vendor/jquery.js +26 -0
- data/lib/TokiServer/bower_components/foundation/js/vendor/modernizr.js +8 -0
- data/lib/TokiServer/bower_components/foundation/js/vendor/placeholder.js +2 -0
- data/lib/TokiServer/bower_components/foundation/scss/foundation.scss +45 -0
- data/lib/TokiServer/bower_components/foundation/scss/foundation/_functions.scss +101 -0
- data/lib/TokiServer/bower_components/foundation/scss/foundation/_settings.scss +1289 -0
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_accordion.scss +53 -0
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_alert-boxes.scss +126 -0
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_block-grid.scss +132 -0
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_breadcrumbs.scss +127 -0
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_button-groups.scss +108 -0
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_buttons.scss +222 -0
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_clearing.scss +247 -0
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_dropdown-buttons.scss +129 -0
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_dropdown.scss +248 -0
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_flex-video.scss +51 -0
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_forms.scss +498 -0
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_global.scss +429 -0
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_grid.scss +260 -0
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_inline-lists.scss +57 -0
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_joyride.scss +220 -0
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_keystrokes.scss +61 -0
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_labels.scss +104 -0
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_magellan.scss +34 -0
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_offcanvas.scss +355 -0
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_orbit.scss +423 -0
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_pagination.scss +150 -0
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_panels.scss +90 -0
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_pricing-tables.scss +150 -0
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_progress-bars.scss +79 -0
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_range-slider.scss +148 -0
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_reveal-new.scss +0 -0
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_reveal.scss +216 -0
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_side-nav.scss +115 -0
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_split-buttons.scss +191 -0
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_sub-nav.scss +125 -0
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_switch.scss +294 -0
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_tables.scss +129 -0
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_tabs.scss +109 -0
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_thumbs.scss +68 -0
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_tooltips.scss +140 -0
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_top-bar.scss +644 -0
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_type.scss +511 -0
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_visibility.scss +408 -0
- data/lib/TokiServer/bower_components/foundation/scss/normalize.scss +425 -0
- data/lib/TokiServer/bower_components/jquery-placeholder/.bower.json +17 -0
- data/lib/TokiServer/bower_components/jquery-placeholder/.gitattributes +1 -0
- data/lib/TokiServer/bower_components/jquery-placeholder/.gitignore +1 -0
- data/lib/TokiServer/bower_components/jquery-placeholder/LICENSE-MIT.txt +20 -0
- data/lib/TokiServer/bower_components/jquery-placeholder/README.md +76 -0
- data/lib/TokiServer/bower_components/jquery-placeholder/bower.json +5 -0
- data/lib/TokiServer/bower_components/jquery-placeholder/demo.html +55 -0
- data/lib/TokiServer/bower_components/jquery-placeholder/jquery.placeholder.js +185 -0
- data/lib/TokiServer/bower_components/jquery-placeholder/tests/index.html +32 -0
- data/lib/TokiServer/bower_components/jquery-placeholder/tests/tests.js +134 -0
- data/lib/TokiServer/bower_components/jquery.cookie/.bower.json +28 -0
- data/lib/TokiServer/bower_components/jquery.cookie/jquery.cookie.js +117 -0
- data/lib/TokiServer/bower_components/jquery/.bower.json +37 -0
- data/lib/TokiServer/bower_components/jquery/MIT-LICENSE.txt +21 -0
- data/lib/TokiServer/bower_components/jquery/bower.json +27 -0
- data/lib/TokiServer/bower_components/jquery/dist/jquery.js +9190 -0
- data/lib/TokiServer/bower_components/jquery/dist/jquery.min.js +5 -0
- data/lib/TokiServer/bower_components/jquery/dist/jquery.min.map +1 -0
- data/lib/TokiServer/bower_components/jquery/src/ajax.js +806 -0
- data/lib/TokiServer/bower_components/jquery/src/ajax/jsonp.js +89 -0
- data/lib/TokiServer/bower_components/jquery/src/ajax/load.js +75 -0
- data/lib/TokiServer/bower_components/jquery/src/ajax/parseJSON.js +13 -0
- data/lib/TokiServer/bower_components/jquery/src/ajax/parseXML.js +28 -0
- data/lib/TokiServer/bower_components/jquery/src/ajax/script.js +64 -0
- data/lib/TokiServer/bower_components/jquery/src/ajax/var/nonce.js +5 -0
- data/lib/TokiServer/bower_components/jquery/src/ajax/var/rquery.js +3 -0
- data/lib/TokiServer/bower_components/jquery/src/ajax/xhr.js +135 -0
- data/lib/TokiServer/bower_components/jquery/src/attributes.js +11 -0
- data/lib/TokiServer/bower_components/jquery/src/attributes/attr.js +143 -0
- data/lib/TokiServer/bower_components/jquery/src/attributes/classes.js +158 -0
- data/lib/TokiServer/bower_components/jquery/src/attributes/prop.js +96 -0
- data/lib/TokiServer/bower_components/jquery/src/attributes/support.js +35 -0
- data/lib/TokiServer/bower_components/jquery/src/attributes/val.js +163 -0
- data/lib/TokiServer/bower_components/jquery/src/callbacks.js +205 -0
- data/lib/TokiServer/bower_components/jquery/src/core.js +498 -0
- data/lib/TokiServer/bower_components/jquery/src/core/access.js +60 -0
- data/lib/TokiServer/bower_components/jquery/src/core/init.js +123 -0
- data/lib/TokiServer/bower_components/jquery/src/core/parseHTML.js +39 -0
- data/lib/TokiServer/bower_components/jquery/src/core/ready.js +97 -0
- data/lib/TokiServer/bower_components/jquery/src/core/var/rsingleTag.js +4 -0
- data/lib/TokiServer/bower_components/jquery/src/css.js +451 -0
- data/lib/TokiServer/bower_components/jquery/src/css/addGetHookIf.js +24 -0
- data/lib/TokiServer/bower_components/jquery/src/css/curCSS.js +57 -0
- data/lib/TokiServer/bower_components/jquery/src/css/defaultDisplay.js +70 -0
- data/lib/TokiServer/bower_components/jquery/src/css/hiddenVisibleSelectors.js +15 -0
- data/lib/TokiServer/bower_components/jquery/src/css/support.js +91 -0
- data/lib/TokiServer/bower_components/jquery/src/css/swap.js +28 -0
- data/lib/TokiServer/bower_components/jquery/src/css/var/cssExpand.js +3 -0
- data/lib/TokiServer/bower_components/jquery/src/css/var/getStyles.js +5 -0
- data/lib/TokiServer/bower_components/jquery/src/css/var/isHidden.js +13 -0
- data/lib/TokiServer/bower_components/jquery/src/css/var/rmargin.js +3 -0
- data/lib/TokiServer/bower_components/jquery/src/css/var/rnumnonpx.js +5 -0
- data/lib/TokiServer/bower_components/jquery/src/data.js +179 -0
- data/lib/TokiServer/bower_components/jquery/src/data/Data.js +181 -0
- data/lib/TokiServer/bower_components/jquery/src/data/accepts.js +20 -0
- data/lib/TokiServer/bower_components/jquery/src/data/var/data_priv.js +5 -0
- data/lib/TokiServer/bower_components/jquery/src/data/var/data_user.js +5 -0
- data/lib/TokiServer/bower_components/jquery/src/deferred.js +149 -0
- data/lib/TokiServer/bower_components/jquery/src/deprecated.js +13 -0
- data/lib/TokiServer/bower_components/jquery/src/dimensions.js +50 -0
- data/lib/TokiServer/bower_components/jquery/src/effects.js +649 -0
- data/lib/TokiServer/bower_components/jquery/src/effects/Tween.js +114 -0
- data/lib/TokiServer/bower_components/jquery/src/effects/animatedSelector.js +13 -0
- data/lib/TokiServer/bower_components/jquery/src/event.js +868 -0
- data/lib/TokiServer/bower_components/jquery/src/event/alias.js +39 -0
- data/lib/TokiServer/bower_components/jquery/src/event/support.js +9 -0
- data/lib/TokiServer/bower_components/jquery/src/exports/amd.js +24 -0
- data/lib/TokiServer/bower_components/jquery/src/exports/global.js +32 -0
- data/lib/TokiServer/bower_components/jquery/src/intro.js +44 -0
- data/lib/TokiServer/bower_components/jquery/src/jquery.js +36 -0
- data/lib/TokiServer/bower_components/jquery/src/manipulation.js +582 -0
- data/lib/TokiServer/bower_components/jquery/src/manipulation/_evalUrl.js +18 -0
- data/lib/TokiServer/bower_components/jquery/src/manipulation/support.js +31 -0
- data/lib/TokiServer/bower_components/jquery/src/manipulation/var/rcheckableType.js +3 -0
- data/lib/TokiServer/bower_components/jquery/src/offset.js +204 -0
- data/lib/TokiServer/bower_components/jquery/src/outro.js +1 -0
- data/lib/TokiServer/bower_components/jquery/src/queue.js +142 -0
- data/lib/TokiServer/bower_components/jquery/src/queue/delay.js +22 -0
- data/lib/TokiServer/bower_components/jquery/src/selector-native.js +172 -0
- data/lib/TokiServer/bower_components/jquery/src/selector-sizzle.js +14 -0
- data/lib/TokiServer/bower_components/jquery/src/selector.js +1 -0
- data/lib/TokiServer/bower_components/jquery/src/serialize.js +111 -0
- data/lib/TokiServer/bower_components/jquery/src/sizzle/dist/sizzle.js +2044 -0
- data/lib/TokiServer/bower_components/jquery/src/sizzle/dist/sizzle.min.js +3 -0
- data/lib/TokiServer/bower_components/jquery/src/sizzle/dist/sizzle.min.map +1 -0
- data/lib/TokiServer/bower_components/jquery/src/traversing.js +200 -0
- data/lib/TokiServer/bower_components/jquery/src/traversing/findFilter.js +100 -0
- data/lib/TokiServer/bower_components/jquery/src/traversing/var/rneedsContext.js +6 -0
- data/lib/TokiServer/bower_components/jquery/src/var/arr.js +3 -0
- data/lib/TokiServer/bower_components/jquery/src/var/class2type.js +4 -0
- data/lib/TokiServer/bower_components/jquery/src/var/concat.js +5 -0
- data/lib/TokiServer/bower_components/jquery/src/var/hasOwn.js +5 -0
- data/lib/TokiServer/bower_components/jquery/src/var/indexOf.js +5 -0
- data/lib/TokiServer/bower_components/jquery/src/var/pnum.js +3 -0
- data/lib/TokiServer/bower_components/jquery/src/var/push.js +5 -0
- data/lib/TokiServer/bower_components/jquery/src/var/rnotwhite.js +3 -0
- data/lib/TokiServer/bower_components/jquery/src/var/slice.js +5 -0
- data/lib/TokiServer/bower_components/jquery/src/var/strundefined.js +3 -0
- data/lib/TokiServer/bower_components/jquery/src/var/support.js +4 -0
- data/lib/TokiServer/bower_components/jquery/src/var/toString.js +5 -0
- data/lib/TokiServer/bower_components/jquery/src/wrap.js +78 -0
- data/lib/TokiServer/bower_components/modernizr/.bower.json +14 -0
- data/lib/TokiServer/bower_components/modernizr/.editorconfig +10 -0
- data/lib/TokiServer/bower_components/modernizr/.gitignore +2 -0
- data/lib/TokiServer/bower_components/modernizr/.travis.yml +6 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/a-download.js +8 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/audio-audiodata-api.js +4 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/audio-webaudio-api.js +4 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/battery-api.js +8 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/battery-level.js +11 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/blob-constructor.js +10 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/canvas-todataurl-type.js +28 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/contenteditable.js +9 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/contentsecuritypolicy.js +10 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/contextmenu.js +11 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/cookies.js +15 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/cors.js +3 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/css-backgroundposition-shorthand.js +19 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/css-backgroundposition-xy.js +15 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/css-backgroundrepeat.js +31 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/css-backgroundsizecover.js +10 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/css-boxsizing.js +9 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/css-calc.js +12 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/css-cubicbezierrange.js +8 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/css-displayrunin.js +18 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/css-displaytable.js +27 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/css-filters.js +7 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/css-hyphens.js +205 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/css-lastchild.js +11 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/css-mask.js +12 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/css-mediaqueries.js +3 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/css-objectfit.js +6 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/css-overflow-scrolling.js +9 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/css-pointerevents.js +25 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/css-positionsticky.js +13 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/css-regions.js +55 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/css-remunit.js +19 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/css-resize.js +8 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/css-scrollbars.js +19 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/css-shapes.js +4 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/css-subpixelfont.js +23 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/css-supports.js +6 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/css-userselect.js +10 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/css-vhunit.js +14 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/css-vmaxunit.js +14 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/css-vminunit.js +14 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/css-vwunit.js +14 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/custom-protocol-handler.js +10 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/dart.js +6 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/dataview-api.js +4 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/dom-classlist.js +4 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/dom-createElement-attrs.js +11 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/dom-dataset.js +9 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/dom-microdata.js +4 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/elem-datalist.js +12 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/elem-details.js +25 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/elem-output.js +4 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/elem-progress-meter.js +11 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/elem-ruby.js +53 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/elem-time.js +4 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/elem-track.js +11 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/emoji.js +11 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/es5-strictmode.js +7 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/event-deviceorientation-motion.js +11 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/exif-orientation.js +32 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/file-api.js +12 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/file-filesystem.js +9 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/forms-fileinput.js +13 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/forms-formattribute.js +29 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/forms-inputnumber-l10n.js +32 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/forms-placeholder.js +10 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/forms-speechinput.js +19 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/forms-validation.js +62 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/fullscreen-api.js +10 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/gamepad.js +12 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/getusermedia.js +5 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/ie8compat.js +12 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/iframe-sandbox.js +5 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/iframe-seamless.js +5 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/iframe-srcdoc.js +5 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/img-apng.js +26 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/img-webp.js +20 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/json.js +7 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/lists-reversed.js +6 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/mathml.js +23 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/network-connection.js +22 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/network-eventsource.js +5 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/network-xhr2.js +13 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/notification.js +10 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/performance.js +5 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/pointerlock-api.js +4 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/quota-management-api.js +11 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/requestanimationframe.js +7 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/script-async.js +3 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/script-defer.js +3 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/style-scoped.js +6 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/svg-filters.js +13 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/unicode.js +32 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/url-data-uri.js +26 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/userdata.js +7 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/vibration.js +4 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/web-intents.js +6 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/webgl-extensions.js +42 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/websockets-binary.js +20 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/window-framed.js +8 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/workers-blobworkers.js +66 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/workers-dataworkers.js +34 -0
- data/lib/TokiServer/bower_components/modernizr/feature-detects/workers-sharedworkers.js +3 -0
- data/lib/TokiServer/bower_components/modernizr/grunt.js +69 -0
- data/lib/TokiServer/bower_components/modernizr/media/Modernizr 2 Logo.ai +292 -1
- data/lib/TokiServer/bower_components/modernizr/media/Modernizr 2 Logo.eps +0 -0
- data/lib/TokiServer/bower_components/modernizr/media/Modernizr 2 Logo.pdf +292 -1
- data/lib/TokiServer/bower_components/modernizr/media/Modernizr 2 Logo.png +0 -0
- data/lib/TokiServer/bower_components/modernizr/media/Modernizr 2 Logo.svg +35 -0
- data/lib/TokiServer/bower_components/modernizr/modernizr.js +1406 -0
- data/lib/TokiServer/bower_components/modernizr/readme.md +28 -0
- data/lib/TokiServer/bower_components/modernizr/test/basic.html +65 -0
- data/lib/TokiServer/bower_components/modernizr/test/caniuse.html +1451 -0
- data/lib/TokiServer/bower_components/modernizr/test/caniuse_files/Windsong-webfont.eot +0 -0
- data/lib/TokiServer/bower_components/modernizr/test/caniuse_files/Windsong-webfont.otf +0 -0
- data/lib/TokiServer/bower_components/modernizr/test/caniuse_files/Windsong-webfont.svg +147 -0
- data/lib/TokiServer/bower_components/modernizr/test/caniuse_files/Windsong-webfont.ttf +0 -0
- data/lib/TokiServer/bower_components/modernizr/test/caniuse_files/Windsong-webfont.woff +0 -0
- data/lib/TokiServer/bower_components/modernizr/test/caniuse_files/alpha.png +0 -0
- data/lib/TokiServer/bower_components/modernizr/test/caniuse_files/apng_test.png +0 -0
- data/lib/TokiServer/bower_components/modernizr/test/caniuse_files/before-after.png +0 -0
- data/lib/TokiServer/bower_components/modernizr/test/caniuse_files/form_validation.html +15 -0
- data/lib/TokiServer/bower_components/modernizr/test/caniuse_files/ga.js +43 -0
- data/lib/TokiServer/bower_components/modernizr/test/caniuse_files/green5x5.png +0 -0
- data/lib/TokiServer/bower_components/modernizr/test/caniuse_files/hashchange.html +16 -0
- data/lib/TokiServer/bower_components/modernizr/test/caniuse_files/jquery.min.js +18 -0
- data/lib/TokiServer/bower_components/modernizr/test/caniuse_files/mathml.html +120 -0
- data/lib/TokiServer/bower_components/modernizr/test/caniuse_files/mathml_ref.png +0 -0
- data/lib/TokiServer/bower_components/modernizr/test/caniuse_files/modernizr-1.7.min.js +2 -0
- data/lib/TokiServer/bower_components/modernizr/test/caniuse_files/png_alpha_result.png +0 -0
- data/lib/TokiServer/bower_components/modernizr/test/caniuse_files/pushstate.html +40 -0
- data/lib/TokiServer/bower_components/modernizr/test/caniuse_files/red30x30.png +0 -0
- data/lib/TokiServer/bower_components/modernizr/test/caniuse_files/ruby.png +0 -0
- data/lib/TokiServer/bower_components/modernizr/test/caniuse_files/stroked-text.png +0 -0
- data/lib/TokiServer/bower_components/modernizr/test/caniuse_files/style.css +168 -0
- data/lib/TokiServer/bower_components/modernizr/test/caniuse_files/svg-html-blur.png +0 -0
- data/lib/TokiServer/bower_components/modernizr/test/caniuse_files/svg-img.svg +5 -0
- data/lib/TokiServer/bower_components/modernizr/test/caniuse_files/svg-img.svg.1 +5 -0
- data/lib/TokiServer/bower_components/modernizr/test/caniuse_files/svg_blur.png +0 -0
- data/lib/TokiServer/bower_components/modernizr/test/caniuse_files/table.png +0 -0
- data/lib/TokiServer/bower_components/modernizr/test/caniuse_files/text-shadow1.png +0 -0
- data/lib/TokiServer/bower_components/modernizr/test/caniuse_files/text-shadow2.png +0 -0
- data/lib/TokiServer/bower_components/modernizr/test/caniuse_files/windsong_font.png +0 -0
- data/lib/TokiServer/bower_components/modernizr/test/caniuse_files/xhtml.html +14 -0
- data/lib/TokiServer/bower_components/modernizr/test/index.html +104 -0
- data/lib/TokiServer/bower_components/modernizr/test/js/basic.html +65 -0
- data/lib/TokiServer/bower_components/modernizr/test/js/dumpdata.js +75 -0
- data/lib/TokiServer/bower_components/modernizr/test/js/lib/detect-global.js +153 -0
- data/lib/TokiServer/bower_components/modernizr/test/js/lib/jquery-1.7b2.js +9279 -0
- data/lib/TokiServer/bower_components/modernizr/test/js/lib/jsonselect.js +279 -0
- data/lib/TokiServer/bower_components/modernizr/test/js/lib/polyfills.js +96 -0
- data/lib/TokiServer/bower_components/modernizr/test/js/lib/uaparser.js +215 -0
- data/lib/TokiServer/bower_components/modernizr/test/js/setup.js +44 -0
- data/lib/TokiServer/bower_components/modernizr/test/js/unit-caniuse.js +191 -0
- data/lib/TokiServer/bower_components/modernizr/test/js/unit.js +669 -0
- data/lib/TokiServer/bower_components/modernizr/test/qunit/qunit.css +231 -0
- data/lib/TokiServer/bower_components/modernizr/test/qunit/qunit.js +1932 -0
- data/lib/TokiServer/bower_components/modernizr/test/qunit/run-qunit.js +72 -0
- data/lib/TokiServer/config.rb +25 -0
- data/lib/TokiServer/humans.txt +8 -0
- data/lib/TokiServer/itunesicon.rb +60 -0
- data/lib/TokiServer/js/app.js +3 -0
- data/lib/TokiServer/public/stylesheets/app.css +8094 -0
- data/lib/TokiServer/robots.txt +4 -0
- data/lib/TokiServer/scss/_settings.scss +1240 -0
- data/lib/TokiServer/scss/app.scss +102 -0
- data/lib/TokiServer/tokiserver.rb +377 -0
- data/lib/TokiServer/views/apps_total.erb +28 -0
- data/lib/TokiServer/views/error.erb +25 -0
- data/lib/TokiServer/views/index.erb +191 -0
- data/lib/TokiServer/views/layout.erb +20 -0
- data/lib/TokiServer/views/name_log.erb +50 -0
- data/lib/TokiServer/views/name_split.erb +37 -0
- data/lib/TokiServer/views/name_total.erb +34 -0
- metadata +416 -4
data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_dropdown-buttons.scss
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
// Foundation by ZURB
|
|
2
|
+
// foundation.zurb.com
|
|
3
|
+
// Licensed under MIT Open Source
|
|
4
|
+
|
|
5
|
+
@import "global";
|
|
6
|
+
|
|
7
|
+
//
|
|
8
|
+
// @variables
|
|
9
|
+
//
|
|
10
|
+
$include-html-button-classes: $include-html-classes !default;
|
|
11
|
+
|
|
12
|
+
// We use these to set the color of the pip in dropdown buttons
|
|
13
|
+
$dropdown-button-pip-color: #fff !default;
|
|
14
|
+
$dropdown-button-pip-color-alt: #333 !default;
|
|
15
|
+
|
|
16
|
+
$button-pip-tny: rem-calc(6) !default;
|
|
17
|
+
$button-pip-sml: rem-calc(7) !default;
|
|
18
|
+
$button-pip-med: rem-calc(9) !default;
|
|
19
|
+
$button-pip-lrg: rem-calc(11) !default;
|
|
20
|
+
|
|
21
|
+
// We use these to style tiny dropdown buttons
|
|
22
|
+
$dropdown-button-padding-tny: $button-pip-tny * 7 !default;
|
|
23
|
+
$dropdown-button-pip-size-tny: $button-pip-tny !default;
|
|
24
|
+
$dropdown-button-pip-opposite-tny: $button-pip-tny * 3 !default;
|
|
25
|
+
$dropdown-button-pip-top-tny: -$button-pip-tny / 2 + rem-calc(1) !default;
|
|
26
|
+
|
|
27
|
+
// We use these to style small dropdown buttons
|
|
28
|
+
$dropdown-button-padding-sml: $button-pip-sml * 7 !default;
|
|
29
|
+
$dropdown-button-pip-size-sml: $button-pip-sml !default;
|
|
30
|
+
$dropdown-button-pip-opposite-sml: $button-pip-sml * 3 !default;
|
|
31
|
+
$dropdown-button-pip-top-sml: -$button-pip-sml / 2 + rem-calc(1) !default;
|
|
32
|
+
|
|
33
|
+
// We use these to style medium dropdown buttons
|
|
34
|
+
$dropdown-button-padding-med: $button-pip-med * 6 + rem-calc(3) !default;
|
|
35
|
+
$dropdown-button-pip-size-med: $button-pip-med - rem-calc(3) !default;
|
|
36
|
+
$dropdown-button-pip-opposite-med: $button-pip-med * 2.5 !default;
|
|
37
|
+
$dropdown-button-pip-top-med: -$button-pip-med / 2 + rem-calc(2) !default;
|
|
38
|
+
|
|
39
|
+
// We use these to style large dropdown buttons
|
|
40
|
+
$dropdown-button-padding-lrg: $button-pip-lrg * 5 + rem-calc(3) !default;
|
|
41
|
+
$dropdown-button-pip-size-lrg: $button-pip-lrg - rem-calc(6) !default;
|
|
42
|
+
$dropdown-button-pip-opposite-lrg: $button-pip-lrg * 2.5 !default;
|
|
43
|
+
$dropdown-button-pip-top-lrg: -$button-pip-lrg / 2 + rem-calc(3) !default;
|
|
44
|
+
|
|
45
|
+
// @mixins
|
|
46
|
+
//
|
|
47
|
+
// Dropdown Button Mixin
|
|
48
|
+
//
|
|
49
|
+
// We use this mixin to build off of the button mixin and add dropdown button styles
|
|
50
|
+
//
|
|
51
|
+
// $padding - Determines the size of button you're working with. Default: medium. Options [tiny, small, medium, large]
|
|
52
|
+
// $pip-color - Color of the little triangle that points to the dropdown. Default: #fff.
|
|
53
|
+
// $base-style - Add in base-styles. This can be set to false. Default:true
|
|
54
|
+
|
|
55
|
+
@mixin dropdown-button($padding:medium, $pip-color:#fff, $base-style:true) {
|
|
56
|
+
|
|
57
|
+
// We add in base styles, but they can be negated by setting to 'false'.
|
|
58
|
+
@if $base-style {
|
|
59
|
+
position: relative;
|
|
60
|
+
|
|
61
|
+
// This creates the base styles for the triangle pip
|
|
62
|
+
&:after {
|
|
63
|
+
position: absolute;
|
|
64
|
+
content: "";
|
|
65
|
+
width: 0;
|
|
66
|
+
height: 0;
|
|
67
|
+
display: block;
|
|
68
|
+
border-style: solid;
|
|
69
|
+
border-color: $dropdown-button-pip-color transparent transparent transparent;
|
|
70
|
+
top: 50%;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// If we're dealing with tiny buttons, use these styles
|
|
75
|
+
@if $padding == tiny {
|
|
76
|
+
padding-#{$opposite-direction}: $dropdown-button-padding-tny;
|
|
77
|
+
&:before {
|
|
78
|
+
border-width: $dropdown-button-pip-size-tny;
|
|
79
|
+
#{$opposite-direction}: $dropdown-button-pip-opposite-tny;
|
|
80
|
+
margin-top: $dropdown-button-pip-top-tny;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// If we're dealing with small buttons, use these styles
|
|
85
|
+
@if $padding == small {
|
|
86
|
+
padding-#{$opposite-direction}: $dropdown-button-padding-sml;
|
|
87
|
+
&:after {
|
|
88
|
+
border-width: $dropdown-button-pip-size-sml;
|
|
89
|
+
#{$opposite-direction}: $dropdown-button-pip-opposite-sml;
|
|
90
|
+
margin-top: $dropdown-button-pip-top-sml;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
// If we're dealing with default (medium) buttons, use these styles
|
|
95
|
+
@if $padding == medium {
|
|
96
|
+
padding-#{$opposite-direction}: $dropdown-button-padding-med;
|
|
97
|
+
&:after {
|
|
98
|
+
border-width: $dropdown-button-pip-size-med;
|
|
99
|
+
#{$opposite-direction}: $dropdown-button-pip-opposite-med;
|
|
100
|
+
margin-top: $dropdown-button-pip-top-med;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
// If we're dealing with large buttons, use these styles
|
|
105
|
+
@if $padding == large {
|
|
106
|
+
padding-#{$opposite-direction}: $dropdown-button-padding-lrg;
|
|
107
|
+
&:after {
|
|
108
|
+
border-width: $dropdown-button-pip-size-lrg;
|
|
109
|
+
#{$opposite-direction}: $dropdown-button-pip-opposite-lrg;
|
|
110
|
+
margin-top: $dropdown-button-pip-top-lrg;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
// We can control the pip color. We didn't use logic in this case, just set it and forget it.
|
|
115
|
+
@if $pip-color {
|
|
116
|
+
&:after { border-color: $pip-color transparent transparent transparent; }
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
@include exports("dropdown-button") {
|
|
121
|
+
@if $include-html-button-classes {
|
|
122
|
+
.dropdown.button, button.dropdown { @include dropdown-button;
|
|
123
|
+
&.tiny { @include dropdown-button(tiny,$base-style:false); }
|
|
124
|
+
&.small { @include dropdown-button(small,$base-style:false); }
|
|
125
|
+
&.large { @include dropdown-button(large,$base-style:false); }
|
|
126
|
+
&.secondary:after { border-color: $dropdown-button-pip-color-alt transparent transparent transparent; }
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
// Foundation by ZURB
|
|
2
|
+
// foundation.zurb.com
|
|
3
|
+
// Licensed under MIT Open Source
|
|
4
|
+
|
|
5
|
+
@import "global";
|
|
6
|
+
|
|
7
|
+
//
|
|
8
|
+
// @variables
|
|
9
|
+
//
|
|
10
|
+
$include-html-dropdown-classes: $include-html-classes !default;
|
|
11
|
+
|
|
12
|
+
// We use these to controls height and width styles.
|
|
13
|
+
$f-dropdown-max-width: 200px !default;
|
|
14
|
+
$f-dropdown-height: auto !default;
|
|
15
|
+
$f-dropdown-max-height: none !default;
|
|
16
|
+
|
|
17
|
+
// Used for bottom position
|
|
18
|
+
$f-dropdown-margin-top: 2px !default;
|
|
19
|
+
|
|
20
|
+
// Used for right position
|
|
21
|
+
$f-dropdown-margin-left: $f-dropdown-margin-top !default;
|
|
22
|
+
|
|
23
|
+
// Used for left position
|
|
24
|
+
$f-dropdown-margin-right: $f-dropdown-margin-top !default;
|
|
25
|
+
|
|
26
|
+
// Used for top position
|
|
27
|
+
$f-dropdown-margin-bottom: $f-dropdown-margin-top !default;
|
|
28
|
+
|
|
29
|
+
// We use this to control the background color
|
|
30
|
+
$f-dropdown-bg: #fff !default;
|
|
31
|
+
|
|
32
|
+
// We use this to set the border styles for dropdowns.
|
|
33
|
+
$f-dropdown-border-style: solid !default;
|
|
34
|
+
$f-dropdown-border-width: 1px !default;
|
|
35
|
+
$f-dropdown-border-color: scale-color(#fff, $lightness: -20%) !default;
|
|
36
|
+
|
|
37
|
+
// We use these to style the triangle pip.
|
|
38
|
+
$f-dropdown-triangle-size: 6px !default;
|
|
39
|
+
$f-dropdown-triangle-color: #fff !default;
|
|
40
|
+
$f-dropdown-triangle-side-offset: 10px !default;
|
|
41
|
+
|
|
42
|
+
// We use these to control styles for the list elements.
|
|
43
|
+
$f-dropdown-list-style: none !default;
|
|
44
|
+
$f-dropdown-font-color: #555 !default;
|
|
45
|
+
$f-dropdown-font-size: rem-calc(14) !default;
|
|
46
|
+
$f-dropdown-list-padding: rem-calc(5, 10) !default;
|
|
47
|
+
$f-dropdown-line-height: rem-calc(18) !default;
|
|
48
|
+
$f-dropdown-list-hover-bg: #eeeeee !default;
|
|
49
|
+
$dropdown-mobile-default-float: 0 !default;
|
|
50
|
+
|
|
51
|
+
// We use this to control the styles for when the dropdown has custom content.
|
|
52
|
+
$f-dropdown-content-padding: rem-calc(20) !default;
|
|
53
|
+
|
|
54
|
+
//
|
|
55
|
+
// @mixins
|
|
56
|
+
//
|
|
57
|
+
//
|
|
58
|
+
// NOTE: Make default max-width change between list and content types. Can add more width with classes, maybe .small, .medium, .large, etc.;
|
|
59
|
+
// We use this to style the dropdown container element.
|
|
60
|
+
// $content-list - Sets list-style. Default: list. Options: [list, content]
|
|
61
|
+
// $triangle - Sets if dropdown has triangle. Default:true.
|
|
62
|
+
// $max-width - Default: $f-dropdown-max-width || 200px.
|
|
63
|
+
@mixin dropdown-container($content:list, $triangle:true, $max-width:$f-dropdown-max-width) {
|
|
64
|
+
position: absolute;
|
|
65
|
+
left: -9999px;
|
|
66
|
+
list-style: $f-dropdown-list-style;
|
|
67
|
+
margin-#{$default-float}: 0;
|
|
68
|
+
|
|
69
|
+
> *:first-child { margin-top: 0; }
|
|
70
|
+
> *:last-child { margin-bottom: 0; }
|
|
71
|
+
|
|
72
|
+
@if $content == list {
|
|
73
|
+
width: 100%;
|
|
74
|
+
max-height: $f-dropdown-max-height;
|
|
75
|
+
height: $f-dropdown-height;
|
|
76
|
+
background: $f-dropdown-bg;
|
|
77
|
+
border: $f-dropdown-border-style $f-dropdown-border-width $f-dropdown-border-color;
|
|
78
|
+
font-size: $f-dropdown-font-size;
|
|
79
|
+
z-index: 99;
|
|
80
|
+
}
|
|
81
|
+
@else if $content == content {
|
|
82
|
+
padding: $f-dropdown-content-padding;
|
|
83
|
+
width: 100%;
|
|
84
|
+
height: $f-dropdown-height;
|
|
85
|
+
max-height: $f-dropdown-max-height;
|
|
86
|
+
background: $f-dropdown-bg;
|
|
87
|
+
border: $f-dropdown-border-style $f-dropdown-border-width $f-dropdown-border-color;
|
|
88
|
+
font-size: $f-dropdown-font-size;
|
|
89
|
+
z-index: 99;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
@if $triangle == bottom {
|
|
93
|
+
margin-top: $f-dropdown-margin-top;
|
|
94
|
+
|
|
95
|
+
&:before {
|
|
96
|
+
@include css-triangle($f-dropdown-triangle-size, $f-dropdown-triangle-color, bottom);
|
|
97
|
+
position: absolute;
|
|
98
|
+
top: -($f-dropdown-triangle-size * 2);
|
|
99
|
+
#{$default-float}: $f-dropdown-triangle-side-offset;
|
|
100
|
+
z-index: 99;
|
|
101
|
+
}
|
|
102
|
+
&:after {
|
|
103
|
+
@include css-triangle($f-dropdown-triangle-size + 1, $f-dropdown-border-color, bottom);
|
|
104
|
+
position: absolute;
|
|
105
|
+
top: -(($f-dropdown-triangle-size + 1) * 2);
|
|
106
|
+
#{$default-float}: $f-dropdown-triangle-side-offset - 1;
|
|
107
|
+
z-index: 98;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&.right:before {
|
|
111
|
+
left: auto;
|
|
112
|
+
right: $f-dropdown-triangle-side-offset;
|
|
113
|
+
}
|
|
114
|
+
&.right:after {
|
|
115
|
+
left: auto;
|
|
116
|
+
right: $f-dropdown-triangle-side-offset - 1;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
@if $triangle == left {
|
|
121
|
+
margin-top: 0;
|
|
122
|
+
margin-left: $f-dropdown-margin-right;
|
|
123
|
+
|
|
124
|
+
&:before {
|
|
125
|
+
@include css-triangle($f-dropdown-triangle-size, $f-dropdown-triangle-color, right);
|
|
126
|
+
position: absolute;
|
|
127
|
+
top: $f-dropdown-triangle-side-offset;
|
|
128
|
+
#{$default-float}: -($f-dropdown-triangle-size * 2);
|
|
129
|
+
z-index: 99;
|
|
130
|
+
}
|
|
131
|
+
&:after {
|
|
132
|
+
@include css-triangle($f-dropdown-triangle-size + 1, $f-dropdown-border-color, right);
|
|
133
|
+
position: absolute;
|
|
134
|
+
top: $f-dropdown-triangle-side-offset - 1;
|
|
135
|
+
#{$default-float}: -($f-dropdown-triangle-size * 2) - 2;
|
|
136
|
+
z-index: 98;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
@if $triangle == right {
|
|
142
|
+
margin-top: 0;
|
|
143
|
+
margin-left: -$f-dropdown-margin-right;
|
|
144
|
+
|
|
145
|
+
&:before {
|
|
146
|
+
@include css-triangle($f-dropdown-triangle-size, $f-dropdown-triangle-color, left);
|
|
147
|
+
position: absolute;
|
|
148
|
+
top: $f-dropdown-triangle-side-offset;
|
|
149
|
+
#{$opposite-direction}: -($f-dropdown-triangle-size * 2);
|
|
150
|
+
left: auto;
|
|
151
|
+
z-index: 99;
|
|
152
|
+
}
|
|
153
|
+
&:after {
|
|
154
|
+
@include css-triangle($f-dropdown-triangle-size + 1, $f-dropdown-border-color, left);
|
|
155
|
+
position: absolute;
|
|
156
|
+
top: $f-dropdown-triangle-side-offset - 1;
|
|
157
|
+
#{$opposite-direction}: -($f-dropdown-triangle-size * 2) - 2;
|
|
158
|
+
left: auto;
|
|
159
|
+
z-index: 98;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
@if $triangle == top {
|
|
165
|
+
margin-top: -$f-dropdown-margin-bottom;
|
|
166
|
+
margin-left: 0;
|
|
167
|
+
|
|
168
|
+
&:before {
|
|
169
|
+
@include css-triangle($f-dropdown-triangle-size, $f-dropdown-triangle-color, top);
|
|
170
|
+
position: absolute;
|
|
171
|
+
top: auto;
|
|
172
|
+
bottom: -($f-dropdown-triangle-size * 2);
|
|
173
|
+
#{$default-float}: $f-dropdown-triangle-side-offset;
|
|
174
|
+
right: auto;
|
|
175
|
+
z-index: 99;
|
|
176
|
+
}
|
|
177
|
+
&:after {
|
|
178
|
+
@include css-triangle($f-dropdown-triangle-size + 1, $f-dropdown-border-color, top);
|
|
179
|
+
position: absolute;
|
|
180
|
+
top: auto;
|
|
181
|
+
bottom: -($f-dropdown-triangle-size * 2) - 2;
|
|
182
|
+
#{$default-float}: $f-dropdown-triangle-side-offset - 1;
|
|
183
|
+
right: auto;
|
|
184
|
+
z-index: 98;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
@if $max-width { max-width: $max-width; }
|
|
190
|
+
@else { max-width: $f-dropdown-max-width; }
|
|
191
|
+
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
// @MIXIN
|
|
195
|
+
//
|
|
196
|
+
// We use this to style the list elements or content inside the dropdown.
|
|
197
|
+
|
|
198
|
+
@mixin dropdown-style {
|
|
199
|
+
font-size: $f-dropdown-font-size;
|
|
200
|
+
cursor: $cursor-pointer-value;
|
|
201
|
+
|
|
202
|
+
line-height: $f-dropdown-line-height;
|
|
203
|
+
margin: 0;
|
|
204
|
+
|
|
205
|
+
&:hover,
|
|
206
|
+
&:focus { background: $f-dropdown-list-hover-bg; }
|
|
207
|
+
|
|
208
|
+
a {
|
|
209
|
+
display: block;
|
|
210
|
+
padding: $f-dropdown-list-padding;
|
|
211
|
+
color: $f-dropdown-font-color;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
@include exports("dropdown") {
|
|
216
|
+
@if $include-html-dropdown-classes {
|
|
217
|
+
|
|
218
|
+
/* Foundation Dropdowns */
|
|
219
|
+
.f-dropdown {
|
|
220
|
+
@include dropdown-container(list, bottom);
|
|
221
|
+
|
|
222
|
+
&.drop-right {
|
|
223
|
+
@include dropdown-container(list, left);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
&.drop-left {
|
|
227
|
+
@include dropdown-container(list, right);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
&.drop-top {
|
|
231
|
+
@include dropdown-container(list, top);
|
|
232
|
+
}
|
|
233
|
+
// max-width: none;
|
|
234
|
+
|
|
235
|
+
li { @include dropdown-style; }
|
|
236
|
+
|
|
237
|
+
// You can also put custom content in these dropdowns
|
|
238
|
+
&.content { @include dropdown-container(content, $triangle:false); }
|
|
239
|
+
|
|
240
|
+
// Sizes
|
|
241
|
+
&.tiny { max-width: 200px; }
|
|
242
|
+
&.small { max-width: 300px; }
|
|
243
|
+
&.medium { max-width: 500px; }
|
|
244
|
+
&.large { max-width: 800px; }
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
}
|
|
248
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
// Foundation by ZURB
|
|
2
|
+
// foundation.zurb.com
|
|
3
|
+
// Licensed under MIT Open Source
|
|
4
|
+
|
|
5
|
+
@import "global";
|
|
6
|
+
|
|
7
|
+
//
|
|
8
|
+
// @variables
|
|
9
|
+
//
|
|
10
|
+
$include-html-media-classes: $include-html-classes !default;
|
|
11
|
+
|
|
12
|
+
// We use these to control video container padding and margins
|
|
13
|
+
$flex-video-padding-top: rem-calc(25) !default;
|
|
14
|
+
$flex-video-padding-bottom: 67.5% !default;
|
|
15
|
+
$flex-video-margin-bottom: rem-calc(16) !default;
|
|
16
|
+
|
|
17
|
+
// We use this to control widescreen bottom padding
|
|
18
|
+
$flex-video-widescreen-padding-bottom: 56.34% !default;
|
|
19
|
+
|
|
20
|
+
//
|
|
21
|
+
// @mixins
|
|
22
|
+
//
|
|
23
|
+
|
|
24
|
+
@mixin flex-video-container {
|
|
25
|
+
position: relative;
|
|
26
|
+
padding-top: $flex-video-padding-top;
|
|
27
|
+
padding-bottom: $flex-video-padding-bottom;
|
|
28
|
+
height: 0;
|
|
29
|
+
margin-bottom: $flex-video-margin-bottom;
|
|
30
|
+
overflow: hidden;
|
|
31
|
+
|
|
32
|
+
&.widescreen { padding-bottom: $flex-video-widescreen-padding-bottom; }
|
|
33
|
+
&.vimeo { padding-top: 0; }
|
|
34
|
+
|
|
35
|
+
iframe,
|
|
36
|
+
object,
|
|
37
|
+
embed,
|
|
38
|
+
video {
|
|
39
|
+
position: absolute;
|
|
40
|
+
top: 0;
|
|
41
|
+
#{$default-float}: 0;
|
|
42
|
+
width: 100%;
|
|
43
|
+
height: 100%;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@include exports("flex-video") {
|
|
48
|
+
@if $include-html-media-classes {
|
|
49
|
+
.flex-video { @include flex-video-container; }
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,498 @@
|
|
|
1
|
+
// Foundation by ZURB
|
|
2
|
+
// foundation.zurb.com
|
|
3
|
+
// Licensed under MIT Open Source
|
|
4
|
+
|
|
5
|
+
@import "global";
|
|
6
|
+
@import "buttons";
|
|
7
|
+
|
|
8
|
+
//
|
|
9
|
+
// @variables
|
|
10
|
+
//
|
|
11
|
+
$include-html-form-classes: $include-html-classes !default;
|
|
12
|
+
|
|
13
|
+
// We use this to set the base for lots of form spacing and positioning styles
|
|
14
|
+
$form-spacing: rem-calc(16) !default;
|
|
15
|
+
|
|
16
|
+
// We use these to style the labels in different ways
|
|
17
|
+
$form-label-pointer: pointer !default;
|
|
18
|
+
$form-label-font-size: rem-calc(14) !default;
|
|
19
|
+
$form-label-font-weight: $font-weight-normal !default;
|
|
20
|
+
$form-label-line-height: 1.5 !default;
|
|
21
|
+
$form-label-font-color: scale-color(#000, $lightness: 30%) !default;
|
|
22
|
+
$form-label-small-transform: capitalize !default;
|
|
23
|
+
$form-label-bottom-margin: 0 !default;
|
|
24
|
+
$input-font-family: inherit !default;
|
|
25
|
+
$input-font-color: rgba(0,0,0,0.75) !default;
|
|
26
|
+
$input-font-size: rem-calc(14) !default;
|
|
27
|
+
$input-bg-color: #fff !default;
|
|
28
|
+
$input-focus-bg-color: scale-color(#fff, $lightness: -2%) !default;
|
|
29
|
+
$input-border-color: scale-color(#fff, $lightness: -20%) !default;
|
|
30
|
+
$input-focus-border-color: scale-color(#fff, $lightness: -40%) !default;
|
|
31
|
+
$input-border-style: solid !default;
|
|
32
|
+
$input-border-width: 1px !default;
|
|
33
|
+
$input-border-radius: $global-radius !default;
|
|
34
|
+
$input-disabled-bg: #ddd !default;
|
|
35
|
+
$input-box-shadow: inset 0 1px 2px rgba(0,0,0,0.1) !default;
|
|
36
|
+
$input-include-glowing-effect: true !default;
|
|
37
|
+
|
|
38
|
+
// We use these to style the fieldset border and spacing.
|
|
39
|
+
$fieldset-border-style: solid !default;
|
|
40
|
+
$fieldset-border-width: 1px !default;
|
|
41
|
+
$fieldset-border-color: #ddd !default;
|
|
42
|
+
$fieldset-padding: rem-calc(20) !default;
|
|
43
|
+
$fieldset-margin: rem-calc(18 0) !default;
|
|
44
|
+
|
|
45
|
+
// We use these to style the legends when you use them
|
|
46
|
+
$legend-bg: #fff !default;
|
|
47
|
+
$legend-font-weight: $font-weight-bold !default;
|
|
48
|
+
$legend-padding: rem-calc(0 3) !default;
|
|
49
|
+
|
|
50
|
+
// We use these to style the prefix and postfix input elements
|
|
51
|
+
$input-prefix-bg: scale-color(#fff, $lightness: -5%) !default;
|
|
52
|
+
$input-prefix-border-color: scale-color(#fff, $lightness: -20%) !default;
|
|
53
|
+
$input-prefix-border-size: 1px !default;
|
|
54
|
+
$input-prefix-border-type: solid !default;
|
|
55
|
+
$input-prefix-overflow: hidden !default;
|
|
56
|
+
$input-prefix-font-color: #333 !default;
|
|
57
|
+
$input-prefix-font-color-alt: #fff !default;
|
|
58
|
+
|
|
59
|
+
// We use these to style the error states for inputs and labels
|
|
60
|
+
$input-error-message-padding: rem-calc(6 9 9) !default;
|
|
61
|
+
$input-error-message-top: -1px !default;
|
|
62
|
+
$input-error-message-font-size: rem-calc(12) !default;
|
|
63
|
+
$input-error-message-font-weight: $font-weight-normal !default;
|
|
64
|
+
$input-error-message-font-style: italic !default;
|
|
65
|
+
$input-error-message-font-color: #fff !default;
|
|
66
|
+
$input-error-message-font-color-alt: #333 !default;
|
|
67
|
+
|
|
68
|
+
// We use this to style the glowing effect of inputs when focused
|
|
69
|
+
$glowing-effect-fade-time: 0.45s !default;
|
|
70
|
+
$glowing-effect-color: $input-focus-border-color !default;
|
|
71
|
+
|
|
72
|
+
// Select variables
|
|
73
|
+
$select-bg-color: #fafafa !default;
|
|
74
|
+
$select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
|
|
75
|
+
|
|
76
|
+
//
|
|
77
|
+
// @MIXINS
|
|
78
|
+
//
|
|
79
|
+
|
|
80
|
+
// We use this mixin to give us form styles for rows inside of forms
|
|
81
|
+
@mixin form-row-base {
|
|
82
|
+
.row { margin: 0 ((-$form-spacing) / 2);
|
|
83
|
+
|
|
84
|
+
.column,
|
|
85
|
+
.columns { padding: 0 $form-spacing / 2; }
|
|
86
|
+
|
|
87
|
+
// Use this to collapse the margins of a form row
|
|
88
|
+
&.collapse { margin: 0;
|
|
89
|
+
|
|
90
|
+
.column,
|
|
91
|
+
.columns { padding: 0; }
|
|
92
|
+
input {
|
|
93
|
+
@include side-radius($opposite-direction, 0);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
input.column,
|
|
99
|
+
input.columns,
|
|
100
|
+
textarea.column,
|
|
101
|
+
textarea.columns { padding-#{$default-float}: $form-spacing / 2; }
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
// @MIXIN
|
|
105
|
+
//
|
|
106
|
+
// We use this mixin to give all basic form elements their style
|
|
107
|
+
@mixin form-element {
|
|
108
|
+
background-color: $input-bg-color;
|
|
109
|
+
font-family: $input-font-family;
|
|
110
|
+
border: $input-border-width $input-border-style $input-border-color;
|
|
111
|
+
box-shadow: $input-box-shadow;
|
|
112
|
+
color: $input-font-color;
|
|
113
|
+
display: block;
|
|
114
|
+
font-size: $input-font-size;
|
|
115
|
+
margin: 0 0 $form-spacing 0;
|
|
116
|
+
padding: $form-spacing / 2;
|
|
117
|
+
height: ($input-font-size + ($form-spacing * 1.5) - rem-calc(1));
|
|
118
|
+
width: 100%;
|
|
119
|
+
@include box-sizing(border-box);
|
|
120
|
+
@if $input-include-glowing-effect {
|
|
121
|
+
@include block-glowing-effect(focus, $glowing-effect-fade-time, $glowing-effect-color);
|
|
122
|
+
}
|
|
123
|
+
// Basic focus styles
|
|
124
|
+
&:focus {
|
|
125
|
+
background: $input-focus-bg-color;
|
|
126
|
+
border-color: $input-focus-border-color;
|
|
127
|
+
outline: none;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
// Disabled background input background color
|
|
131
|
+
&[disabled], fieldset[disabled] & { background-color: $input-disabled-bg; }
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
// @MIXIN
|
|
135
|
+
//
|
|
136
|
+
// We use this mixin to create form labels
|
|
137
|
+
//
|
|
138
|
+
// $alignment - Alignment options. Default: false. Options: [right, inline, false]
|
|
139
|
+
// $base-style - Control whether or not the base styles come through. Default: true.
|
|
140
|
+
@mixin form-label($alignment:false, $base-style:true) {
|
|
141
|
+
|
|
142
|
+
// Control whether or not the base styles come through.
|
|
143
|
+
@if $base-style {
|
|
144
|
+
font-size: $form-label-font-size;
|
|
145
|
+
color: $form-label-font-color;
|
|
146
|
+
cursor: $form-label-pointer;
|
|
147
|
+
display: block;
|
|
148
|
+
font-weight: $form-label-font-weight;
|
|
149
|
+
line-height: $form-label-line-height;
|
|
150
|
+
margin-bottom: $form-label-bottom-margin;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
// Alignment options
|
|
154
|
+
@if $alignment == right {
|
|
155
|
+
float: none !important;
|
|
156
|
+
text-align: right;
|
|
157
|
+
}
|
|
158
|
+
@else if $alignment == inline {
|
|
159
|
+
margin: 0 0 $form-spacing 0;
|
|
160
|
+
padding: $form-spacing / 2 + rem-calc($input-border-width) 0;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
// We use this mixin to create postfix/prefix form Labels
|
|
165
|
+
@mixin prefix-postfix-base {
|
|
166
|
+
display: block;
|
|
167
|
+
position: relative;
|
|
168
|
+
z-index: 2;
|
|
169
|
+
text-align: center;
|
|
170
|
+
width: 100%;
|
|
171
|
+
padding-top: 0;
|
|
172
|
+
padding-bottom: 0;
|
|
173
|
+
border-style: $input-prefix-border-type;
|
|
174
|
+
border-width: $input-prefix-border-size;
|
|
175
|
+
overflow: $input-prefix-overflow;
|
|
176
|
+
font-size: $form-label-font-size;
|
|
177
|
+
height: ($input-font-size + ($form-spacing * 1.5) - rem-calc(1));
|
|
178
|
+
line-height: ($input-font-size + ($form-spacing * 1.5) - rem-calc(1));
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
// @MIXIN
|
|
182
|
+
//
|
|
183
|
+
// We use this mixin to create prefix label styles
|
|
184
|
+
// $bg - Default:$input-prefix-bg || scale-color(#fff, $lightness: -5%) !default;
|
|
185
|
+
// $is-button - Toggle position settings if prefix is a button. Default:false
|
|
186
|
+
//
|
|
187
|
+
@mixin prefix($bg:$input-prefix-bg, $border:$input-prefix-border-color, $is-button:false) {
|
|
188
|
+
|
|
189
|
+
@if $bg {
|
|
190
|
+
$bg-lightness: lightness($bg);
|
|
191
|
+
background: $bg;
|
|
192
|
+
border-#{$opposite-direction}: none;
|
|
193
|
+
|
|
194
|
+
// Control the font color based on background brightness
|
|
195
|
+
@if $bg-lightness > 70% or $bg == yellow { color: $input-prefix-font-color; }
|
|
196
|
+
@else { color: $input-prefix-font-color-alt; }
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
@if $border {
|
|
200
|
+
border-color: $border;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
@if $is-button {
|
|
204
|
+
padding-#{$default-float}: 0;
|
|
205
|
+
padding-#{$opposite-direction}: 0;
|
|
206
|
+
padding-top: 0;
|
|
207
|
+
padding-bottom: 0;
|
|
208
|
+
text-align: center;
|
|
209
|
+
line-height: rem-calc(34);
|
|
210
|
+
border: none;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
// @MIXIN
|
|
216
|
+
//
|
|
217
|
+
// We use this mixin to create postfix label styles
|
|
218
|
+
// $bg - Default:$input-prefix-bg || scale-color(#fff, $lightness: -5%) !default;
|
|
219
|
+
// $is-button - Toggle position settings if prefix is a button. Default: false
|
|
220
|
+
@mixin postfix($bg:$input-prefix-bg, $border:$input-prefix-border-color, $is-button:false) {
|
|
221
|
+
|
|
222
|
+
@if $bg {
|
|
223
|
+
$bg-lightness: lightness($bg);
|
|
224
|
+
background: $bg;
|
|
225
|
+
border-#{$default-float}: none;
|
|
226
|
+
|
|
227
|
+
// Control the font color based on background brightness
|
|
228
|
+
@if $bg-lightness > 70% or $bg == yellow { color: $input-prefix-font-color; }
|
|
229
|
+
@else { color: $input-prefix-font-color-alt; }
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
@if $border {
|
|
233
|
+
border-color: $border;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
@if $is-button {
|
|
237
|
+
padding-#{$default-float}: 0;
|
|
238
|
+
padding-#{$opposite-direction}: 0;
|
|
239
|
+
padding-top: 0;
|
|
240
|
+
padding-bottom: 0;
|
|
241
|
+
text-align: center;
|
|
242
|
+
line-height: rem-calc(34);
|
|
243
|
+
border: none;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
// We use this mixin to style fieldsets
|
|
249
|
+
@mixin fieldset {
|
|
250
|
+
border: $fieldset-border-width $fieldset-border-style $fieldset-border-color;
|
|
251
|
+
padding: $fieldset-padding;
|
|
252
|
+
margin: $fieldset-margin;
|
|
253
|
+
|
|
254
|
+
// and legend styles
|
|
255
|
+
legend {
|
|
256
|
+
font-weight: $legend-font-weight;
|
|
257
|
+
background: $legend-bg;
|
|
258
|
+
padding: $legend-padding;
|
|
259
|
+
margin: 0;
|
|
260
|
+
margin-#{$default-float}: rem-calc(-3);
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
// @MIXIN
|
|
265
|
+
//
|
|
266
|
+
// We use this mixin to control border and background color of error inputs
|
|
267
|
+
// $color - Default: $alert-color (found in settings file)
|
|
268
|
+
@mixin form-error-color($color:$alert-color) {
|
|
269
|
+
border-color: $color;
|
|
270
|
+
background-color: rgba($color, 0.1);
|
|
271
|
+
|
|
272
|
+
// Go back to normal on focus
|
|
273
|
+
&:focus {
|
|
274
|
+
background: $input-focus-bg-color;
|
|
275
|
+
border-color: $input-focus-border-color;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
// @MIXIN
|
|
280
|
+
//
|
|
281
|
+
// We use this simple mixin to style labels for error inputs
|
|
282
|
+
// $color - Default:$alert-color. Found in settings file
|
|
283
|
+
@mixin form-label-error-color($color:$alert-color) { color: $color; }
|
|
284
|
+
|
|
285
|
+
// @MIXIN
|
|
286
|
+
//
|
|
287
|
+
// We use this mixin to create error message styles
|
|
288
|
+
// $bg - Default: $alert-color (Found in settings file)
|
|
289
|
+
@mixin form-error-message($bg:$alert-color) {
|
|
290
|
+
display: block;
|
|
291
|
+
padding: $input-error-message-padding;
|
|
292
|
+
margin-top: $input-error-message-top;
|
|
293
|
+
margin-bottom: $form-spacing;
|
|
294
|
+
font-size: $input-error-message-font-size;
|
|
295
|
+
font-weight: $input-error-message-font-weight;
|
|
296
|
+
font-style: $input-error-message-font-style;
|
|
297
|
+
|
|
298
|
+
// We can control the text color based on the brightness of the background.
|
|
299
|
+
$bg-lightness: lightness($bg);
|
|
300
|
+
background: $bg;
|
|
301
|
+
@if $bg-lightness < 70% or $bg == yellow { color: $input-error-message-font-color; }
|
|
302
|
+
@else { color: $input-error-message-font-color-alt; }
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
// We use this mixin to style select elements
|
|
306
|
+
@mixin form-select {
|
|
307
|
+
-webkit-appearance: none !important;
|
|
308
|
+
background-color: $select-bg-color;
|
|
309
|
+
background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iM3B4IiB2aWV3Qm94PSIwIDAgNiAzIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA2IDMiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwb2x5Z29uIHBvaW50cz0iNS45OTIsMCAyLjk5MiwzIC0wLjAwOCwwICIvPjwvc3ZnPg==');
|
|
310
|
+
background-repeat: no-repeat;
|
|
311
|
+
background-position: if($text-direction == 'rtl', 3%, 97%) center;
|
|
312
|
+
border: $input-border-width $input-border-style $input-border-color;
|
|
313
|
+
padding: $form-spacing / 2;
|
|
314
|
+
font-size: $input-font-size;
|
|
315
|
+
color: $input-font-color;
|
|
316
|
+
line-height: normal;
|
|
317
|
+
@include radius(0);
|
|
318
|
+
&.radius { @include radius($global-radius); }
|
|
319
|
+
&:hover {
|
|
320
|
+
background-color: $select-hover-bg-color;
|
|
321
|
+
border-color: $input-focus-border-color;
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
@include exports("form") {
|
|
326
|
+
@if $include-html-form-classes {
|
|
327
|
+
/* Standard Forms */
|
|
328
|
+
form { margin: 0 0 $form-spacing; }
|
|
329
|
+
|
|
330
|
+
/* Using forms within rows, we need to set some defaults */
|
|
331
|
+
form .row { @include form-row-base; }
|
|
332
|
+
|
|
333
|
+
/* Label Styles */
|
|
334
|
+
label { @include form-label;
|
|
335
|
+
&.right { @include form-label(right,false); }
|
|
336
|
+
&.inline { @include form-label(inline,false); }
|
|
337
|
+
/* Styles for required inputs */
|
|
338
|
+
small {
|
|
339
|
+
text-transform: $form-label-small-transform;
|
|
340
|
+
color: scale-color($form-label-font-color, $lightness: 15%);
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
select::-ms-expand {
|
|
345
|
+
display:none;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
@-moz-document url-prefix() {
|
|
349
|
+
select { background: $select-bg-color; }
|
|
350
|
+
select:hover { background: $select-hover-bg-color }
|
|
351
|
+
}
|
|
352
|
+
/* Attach elements to the beginning or end of an input */
|
|
353
|
+
.prefix,
|
|
354
|
+
.postfix { @include prefix-postfix-base; }
|
|
355
|
+
|
|
356
|
+
/* Adjust padding, alignment and radius if pre/post element is a button */
|
|
357
|
+
.postfix.button { @include button-size(false,false); @include postfix(false, false, true); }
|
|
358
|
+
.prefix.button { @include button-size(false,false); @include prefix(false, false, true); }
|
|
359
|
+
|
|
360
|
+
.prefix.button.radius { @include radius(0); @include side-radius($default-float, $button-radius); }
|
|
361
|
+
.postfix.button.radius { @include radius(0); @include side-radius($opposite-direction, $button-radius); }
|
|
362
|
+
.prefix.button.round { @include radius(0); @include side-radius($default-float, $button-round); }
|
|
363
|
+
.postfix.button.round { @include radius(0); @include side-radius($opposite-direction, $button-round); }
|
|
364
|
+
|
|
365
|
+
/* Separate prefix and postfix styles when on span or label so buttons keep their own */
|
|
366
|
+
span.prefix,label.prefix { @include prefix();
|
|
367
|
+
&.radius { @include radius(0); @include side-radius($default-float, $global-radius); }
|
|
368
|
+
}
|
|
369
|
+
span.postfix,label.postfix { @include postfix();
|
|
370
|
+
&.radius { @include radius(0); @include side-radius($opposite-direction, $global-radius); }
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
/* We use this to get basic styling on all basic form elements */
|
|
374
|
+
input[type="text"],
|
|
375
|
+
input[type="password"],
|
|
376
|
+
input[type="date"],
|
|
377
|
+
input[type="datetime"],
|
|
378
|
+
input[type="datetime-local"],
|
|
379
|
+
input[type="month"],
|
|
380
|
+
input[type="week"],
|
|
381
|
+
input[type="email"],
|
|
382
|
+
input[type="number"],
|
|
383
|
+
input[type="search"],
|
|
384
|
+
input[type="tel"],
|
|
385
|
+
input[type="time"],
|
|
386
|
+
input[type="url"],
|
|
387
|
+
textarea {
|
|
388
|
+
-webkit-appearance: none;
|
|
389
|
+
@include form-element;
|
|
390
|
+
@if $input-include-glowing-effect == false {
|
|
391
|
+
@include single-transition(all, 0.15s, linear);
|
|
392
|
+
}
|
|
393
|
+
&.radius {
|
|
394
|
+
@include radius($input-border-radius);
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
input[type="submit"] {
|
|
399
|
+
-webkit-appearance: none;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
/* Respect enforced amount of rows for textarea */
|
|
403
|
+
textarea[rows] {
|
|
404
|
+
height: auto;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
/* Add height value for select elements to match text input height */
|
|
408
|
+
select {
|
|
409
|
+
@include form-select;
|
|
410
|
+
height: ($input-font-size + ($form-spacing * 1.5) - rem-calc(1));
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
/* Adjust margin for form elements below */
|
|
414
|
+
input[type="file"],
|
|
415
|
+
input[type="checkbox"],
|
|
416
|
+
input[type="radio"],
|
|
417
|
+
select {
|
|
418
|
+
margin: 0 0 $form-spacing 0;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
input[type="checkbox"] + label,
|
|
422
|
+
input[type="radio"] + label {
|
|
423
|
+
display: inline-block;
|
|
424
|
+
margin-#{$default-float}: $form-spacing * .5;
|
|
425
|
+
margin-#{$opposite-direction}: $form-spacing;
|
|
426
|
+
margin-bottom: 0;
|
|
427
|
+
vertical-align: baseline;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
/* Normalize file input width */
|
|
431
|
+
input[type="file"] {
|
|
432
|
+
width:100%;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
/* We add basic fieldset styling */
|
|
436
|
+
fieldset {
|
|
437
|
+
@include fieldset;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
/* Error Handling */
|
|
441
|
+
|
|
442
|
+
#{data('abide')} {
|
|
443
|
+
.error small.error, span.error, small.error {
|
|
444
|
+
@include form-error-message;
|
|
445
|
+
}
|
|
446
|
+
span.error, small.error { display: none; }
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
span.error, small.error {
|
|
450
|
+
@include form-error-message;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
.error {
|
|
454
|
+
input,
|
|
455
|
+
textarea,
|
|
456
|
+
select {
|
|
457
|
+
margin-bottom: 0;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
input[type="checkbox"],
|
|
461
|
+
input[type="radio"] {
|
|
462
|
+
margin-bottom: $form-spacing
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
label,
|
|
466
|
+
label.error {
|
|
467
|
+
@include form-label-error-color;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
small.error {
|
|
471
|
+
@include form-error-message;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
> label {
|
|
475
|
+
> small {
|
|
476
|
+
color: scale-color($form-label-font-color, $lightness: 15%);
|
|
477
|
+
background: transparent;
|
|
478
|
+
padding: 0;
|
|
479
|
+
text-transform: $form-label-small-transform;
|
|
480
|
+
font-style: normal;
|
|
481
|
+
font-size: 60%;
|
|
482
|
+
margin: 0;
|
|
483
|
+
display: inline;
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
span.error-message {
|
|
488
|
+
display: block;
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
input.error,
|
|
493
|
+
textarea.error {
|
|
494
|
+
margin-bottom: 0;
|
|
495
|
+
}
|
|
496
|
+
label.error { @include form-label-error-color; }
|
|
497
|
+
}
|
|
498
|
+
}
|