groundworkcss 0.4.4 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +63 -0
- data/README.md +90 -48
- data/app/assets/fonts/groundworkcss/museo-slab-500-webfont.eot +0 -0
- data/app/assets/fonts/groundworkcss/museo-slab-500-webfont.svg +1228 -0
- data/app/assets/fonts/groundworkcss/museo-slab-500-webfont.ttf +0 -0
- data/app/assets/fonts/groundworkcss/museo-slab-500-webfont.woff +0 -0
- data/app/assets/fonts/groundworkcss/quicksand-regular-webfont.eot +0 -0
- data/app/assets/fonts/groundworkcss/quicksand-regular-webfont.svg +1746 -0
- data/app/assets/fonts/groundworkcss/quicksand-regular-webfont.ttf +0 -0
- data/app/assets/fonts/groundworkcss/quicksand-regular-webfont.woff +0 -0
- data/app/assets/fonts/groundworkcss/redacted-regular.eot +0 -0
- data/app/assets/fonts/groundworkcss/redacted-regular.svg +242 -0
- data/app/assets/fonts/groundworkcss/redacted-regular.ttf +0 -0
- data/app/assets/fonts/groundworkcss/redacted-regular.woff +0 -0
- data/app/assets/fonts/groundworkcss/redacted-script-bold.eot +0 -0
- data/app/assets/fonts/groundworkcss/redacted-script-bold.svg +244 -0
- data/app/assets/fonts/groundworkcss/redacted-script-bold.ttf +0 -0
- data/app/assets/fonts/groundworkcss/redacted-script-bold.woff +0 -0
- data/app/assets/fonts/groundworkcss/redacted-script-light.eot +0 -0
- data/app/assets/fonts/groundworkcss/redacted-script-light.svg +244 -0
- data/app/assets/fonts/groundworkcss/redacted-script-light.ttf +0 -0
- data/app/assets/fonts/groundworkcss/redacted-script-light.woff +0 -0
- data/app/assets/fonts/groundworkcss/redacted-script-regular.eot +0 -0
- data/app/assets/fonts/groundworkcss/redacted-script-regular.svg +244 -0
- data/app/assets/fonts/groundworkcss/redacted-script-regular.ttf +0 -0
- data/app/assets/fonts/groundworkcss/redacted-script-regular.woff +0 -0
- data/app/assets/fonts/groundworkcss/sourcesanspro-regular-webfont.eot +0 -0
- data/app/assets/fonts/groundworkcss/sourcesanspro-regular-webfont.svg +978 -0
- data/app/assets/fonts/groundworkcss/sourcesanspro-regular-webfont.ttf +0 -0
- data/app/assets/fonts/groundworkcss/sourcesanspro-regular-webfont.woff +0 -0
- data/app/assets/images/groundworkcss/black_linen_v2.png +0 -0
- data/app/assets/images/groundworkcss/diag6-black.png +0 -0
- data/app/assets/images/groundworkcss/example-usage.png +0 -0
- data/app/assets/images/groundworkcss/favicon.ico +0 -0
- data/app/assets/images/groundworkcss/groundwork-logo.png +0 -0
- data/app/assets/images/groundworkcss/groundwork-logo.svg +1 -0
- data/app/assets/images/groundworkcss/layout-a.png +0 -0
- data/app/assets/images/groundworkcss/layout-b.png +0 -0
- data/app/assets/images/groundworkcss/layout-c.png +0 -0
- data/app/assets/javascripts/groundworkcss/all.js +4 -0
- data/app/assets/javascripts/groundworkcss/components/checklists.coffee +8 -0
- data/app/assets/javascripts/groundworkcss/components/dismissible.coffee +7 -3
- data/app/assets/javascripts/groundworkcss/components/equalizeColumns.coffee +3 -4
- data/app/assets/javascripts/groundworkcss/components/menus.coffee +22 -156
- data/app/assets/javascripts/groundworkcss/components/navigation.coffee +90 -0
- data/app/assets/javascripts/groundworkcss/components/tabs.coffee +83 -18
- data/app/assets/javascripts/groundworkcss/demo/ZeroClipboard.swf +0 -0
- data/app/assets/javascripts/groundworkcss/demo/jquery.snippet.min.js +12 -0
- data/app/assets/javascripts/groundworkcss/libs/boxsizing.htc +6 -3
- data/app/assets/javascripts/groundworkcss/plugins/jquery-placeholderText.coffee +90 -0
- data/app/assets/javascripts/groundworkcss/plugins/jquery-responsiveTables.coffee +0 -1
- data/app/assets/stylesheets/groundworkcss/_settings-rails3.scss +298 -262
- data/app/assets/stylesheets/groundworkcss/_settings-rails4.scss +298 -262
- data/app/assets/stylesheets/groundworkcss/_settings.scss +306 -268
- data/app/assets/stylesheets/groundworkcss/anim/_all-animations.scss +37 -0
- data/app/assets/stylesheets/groundworkcss/anim/_bounce.scss +253 -0
- data/app/assets/stylesheets/groundworkcss/anim/_fade.scss +279 -0
- data/app/assets/stylesheets/groundworkcss/anim/_flash.scss +14 -0
- data/app/assets/stylesheets/groundworkcss/anim/_flip.scss +115 -0
- data/app/assets/stylesheets/groundworkcss/anim/_hinge.scss +21 -0
- data/app/assets/stylesheets/groundworkcss/anim/_lightspeed.scss +28 -0
- data/app/assets/stylesheets/groundworkcss/anim/_pulse.scss +15 -0
- data/app/assets/stylesheets/groundworkcss/anim/_roll.scss +37 -0
- data/app/assets/stylesheets/groundworkcss/anim/_rotate.scss +171 -0
- data/app/assets/stylesheets/groundworkcss/anim/_shake.scss +15 -0
- data/app/assets/stylesheets/groundworkcss/anim/_spin.scss +57 -0
- data/app/assets/stylesheets/groundworkcss/anim/_swing.scss +18 -0
- data/app/assets/stylesheets/groundworkcss/anim/_tada.scss +17 -0
- data/app/assets/stylesheets/groundworkcss/anim/_wiggle.scss +28 -0
- data/app/assets/stylesheets/groundworkcss/anim/_wobble.scss +19 -0
- data/app/assets/stylesheets/groundworkcss/base/_all-base.scss +4 -1
- data/app/assets/stylesheets/groundworkcss/base/_flex-box.scss +8 -23
- data/app/assets/stylesheets/groundworkcss/base/_global.scss +25 -19
- data/app/assets/stylesheets/groundworkcss/base/_grid.scss +140 -52
- data/app/assets/stylesheets/groundworkcss/base/_hbox-vbox.scss +101 -0
- data/app/assets/stylesheets/groundworkcss/base/_helpers.scss +80 -47
- data/app/assets/stylesheets/groundworkcss/base/_reset.scss +13 -1
- data/app/assets/stylesheets/groundworkcss/core/_all-core.scss +10 -6
- data/app/assets/stylesheets/groundworkcss/core/_constants.scss +1 -11
- data/app/assets/stylesheets/groundworkcss/core/_defaults.scss +2 -295
- data/app/assets/stylesheets/groundworkcss/core/_mixins-core.scss +16 -42
- data/app/assets/stylesheets/groundworkcss/core/_palette.scss +123 -0
- data/app/assets/stylesheets/groundworkcss/demo/_jquery.snippet.groundwork.scss +145 -0
- data/app/assets/stylesheets/groundworkcss/demo/groundworkdocs.scss +102 -0
- data/app/assets/stylesheets/groundworkcss/demo/jquery.snippet.scss +35 -0
- data/app/assets/stylesheets/groundworkcss/groundwork-ie.scss +30 -63
- data/app/assets/stylesheets/groundworkcss/groundwork.scss +10 -11
- data/app/assets/stylesheets/groundworkcss/icons/_all-icons.scss +5 -2
- data/app/assets/stylesheets/groundworkcss/icons/font-awesome/_extras.scss +0 -39
- data/app/assets/stylesheets/groundworkcss/{libs/placeholder_polyfill.css → placeholder_polyfill.css} +0 -0
- data/app/assets/stylesheets/groundworkcss/responsive/_all-responsive.scss +2 -2
- data/app/assets/stylesheets/groundworkcss/responsive/_desktop.scss +138 -13
- data/app/assets/stylesheets/groundworkcss/responsive/_helpers-responsive.scss +21 -15
- data/app/assets/stylesheets/groundworkcss/responsive/_ipad.scss +144 -16
- data/app/assets/stylesheets/groundworkcss/responsive/_mobile.scss +148 -34
- data/app/assets/stylesheets/groundworkcss/responsive/_small-tablet.scss +133 -176
- data/app/assets/stylesheets/groundworkcss/type/_all-type.scss +8 -4
- data/app/assets/stylesheets/groundworkcss/type/_link-type-icons.scss +404 -0
- data/app/assets/stylesheets/groundworkcss/type/_typography.scss +291 -84
- data/app/assets/stylesheets/groundworkcss/type/_webfonts.scss +48 -5
- data/app/assets/stylesheets/groundworkcss/ui/_all-ui.scss +6 -4
- data/app/assets/stylesheets/groundworkcss/ui/_boxes.scss +102 -0
- data/app/assets/stylesheets/groundworkcss/ui/_buttons.scss +389 -0
- data/app/assets/stylesheets/groundworkcss/{form → ui}/_forms.scss +49 -33
- data/app/assets/stylesheets/groundworkcss/ui/_messages.scss +76 -32
- data/app/assets/stylesheets/groundworkcss/ui/_nav.scss +346 -0
- data/app/assets/stylesheets/groundworkcss/ui/_tables.scss +83 -29
- data/app/assets/stylesheets/groundworkcss/ui/_tabs.scss +192 -0
- data/app/views/groundworkdocs/animations.html.erb +156 -0
- data/app/views/groundworkdocs/boxes.html.erb +131 -0
- data/app/views/groundworkdocs/breakpoints.html.erb +143 -0
- data/app/views/groundworkdocs/buttons.html.erb +369 -0
- data/app/views/groundworkdocs/forms.html.erb +399 -0
- data/app/views/groundworkdocs/grid.html.erb +582 -0
- data/app/views/groundworkdocs/helpers.html.erb +326 -0
- data/app/views/groundworkdocs/home.html.erb +88 -0
- data/app/views/groundworkdocs/icons.html.erb +1428 -0
- data/app/views/groundworkdocs/layout_a.html.erb +122 -0
- data/app/views/groundworkdocs/layout_b.html.erb +37 -0
- data/app/views/groundworkdocs/layout_c.html.erb +116 -0
- data/app/views/groundworkdocs/media_queries.html.erb +75 -0
- data/app/views/groundworkdocs/messages.html.erb +92 -0
- data/app/views/groundworkdocs/navigation.html.erb +500 -0
- data/app/views/groundworkdocs/placeholder_text.html.erb +86 -0
- data/app/views/groundworkdocs/responsive_text.html.erb +90 -0
- data/app/views/groundworkdocs/tables.html.erb +554 -0
- data/app/views/groundworkdocs/tabs.html.erb +216 -0
- data/app/views/groundworkdocs/typography.html.erb +656 -0
- data/app/views/layouts/groundworkdocs.html.erb +126 -0
- data/groundworkcss.gemspec +2 -2
- data/lib/groundworkcss/generators/USAGE.md +24 -0
- data/lib/groundworkcss/generators/docs_generator.rb +61 -0
- data/lib/groundworkcss/generators/install_generator.rb +25 -8
- data/lib/groundworkcss/version.rb +1 -1
- data/lib/groundworkcss.rb +1 -1
- metadata +105 -292
- data/app/assets/fonts/groundworkcss/FontAwesome.otf +0 -0
- data/app/assets/fonts/groundworkcss/americantypewriterstd-bold.eot +0 -0
- data/app/assets/fonts/groundworkcss/americantypewriterstd-bold.svg +0 -128
- data/app/assets/fonts/groundworkcss/americantypewriterstd-bold.ttf +0 -0
- data/app/assets/fonts/groundworkcss/americantypewriterstd-bold.woff +0 -0
- data/app/assets/fonts/groundworkcss/average-sans-webfont.eot +0 -0
- data/app/assets/fonts/groundworkcss/average-sans-webfont.ttf +0 -0
- data/app/assets/fonts/groundworkcss/average-sans-webfont.woff +0 -0
- data/app/assets/images/groundworkcss/social-icons/500px-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/500px-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/500px.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/500px.svg +0 -62
- data/app/assets/images/groundworkcss/social-icons/aboutme-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/aboutme-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/aboutme.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/aboutme.svg +0 -42
- data/app/assets/images/groundworkcss/social-icons/adn-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/adn-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/adn.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/adn.svg +0 -14
- data/app/assets/images/groundworkcss/social-icons/android-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/android-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/android.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/android.svg +0 -30
- data/app/assets/images/groundworkcss/social-icons/apple-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/apple-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/apple.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/apple.svg +0 -19
- data/app/assets/images/groundworkcss/social-icons/behance-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/behance-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/behance.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/behance.svg +0 -48
- data/app/assets/images/groundworkcss/social-icons/bitbucket-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/bitbucket-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/bitbucket.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/bitbucket.svg +0 -36
- data/app/assets/images/groundworkcss/social-icons/blogger-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/blogger-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/blogger.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/blogger.svg +0 -22
- data/app/assets/images/groundworkcss/social-icons/coderwall-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/coderwall-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/coderwall.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/coderwall.svg +0 -21
- data/app/assets/images/groundworkcss/social-icons/creativecloud-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/creativecloud-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/creativecloud.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/creativecloud.svg +0 -48
- data/app/assets/images/groundworkcss/social-icons/dribbble-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/dribbble-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/dribbble.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/dribbble.svg +0 -28
- data/app/assets/images/groundworkcss/social-icons/dropbox-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/dropbox-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/dropbox.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/dropbox.svg +0 -73
- data/app/assets/images/groundworkcss/social-icons/evernote-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/evernote-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/evernote.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/evernote.svg +0 -62
- data/app/assets/images/groundworkcss/social-icons/facebook-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/facebook-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/facebook.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/facebook.svg +0 -15
- data/app/assets/images/groundworkcss/social-icons/fairheadcreative-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/fairheadcreative-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/fairheadcreative.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/fairheadcreative.svg +0 -24
- data/app/assets/images/groundworkcss/social-icons/flickr-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/flickr-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/flickr.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/flickr.svg +0 -14
- data/app/assets/images/groundworkcss/social-icons/foursquare-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/foursquare-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/foursquare.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/foursquare.svg +0 -43
- data/app/assets/images/groundworkcss/social-icons/git-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/git-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/git.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/git.svg +0 -22
- data/app/assets/images/groundworkcss/social-icons/github-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/github-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/github.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/github.svg +0 -38
- data/app/assets/images/groundworkcss/social-icons/goodreads-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/goodreads-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/goodreads.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/goodreads.svg +0 -38
- data/app/assets/images/groundworkcss/social-icons/googleplay-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/googleplay-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/googleplay.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/googleplay.svg +0 -24
- data/app/assets/images/groundworkcss/social-icons/googleplus-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/googleplus-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/googleplus.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/googleplus.svg +0 -52
- data/app/assets/images/groundworkcss/social-icons/html5-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/html5-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/html5.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/html5.svg +0 -29
- data/app/assets/images/groundworkcss/social-icons/icloud-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/icloud-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/icloud.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/icloud.svg +0 -26
- data/app/assets/images/groundworkcss/social-icons/instagram-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/instagram-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/instagram.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/instagram.svg +0 -166
- data/app/assets/images/groundworkcss/social-icons/lastfm-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/lastfm-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/lastfm.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/lastfm.svg +0 -44
- data/app/assets/images/groundworkcss/social-icons/linkedin-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/linkedin-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/linkedin.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/linkedin.svg +0 -28
- data/app/assets/images/groundworkcss/social-icons/mail-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/mail-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/mail.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/mail.svg +0 -27
- data/app/assets/images/groundworkcss/social-icons/mercurial-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/mercurial-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/mercurial.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/mercurial.svg +0 -22
- data/app/assets/images/groundworkcss/social-icons/mixi-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/mixi-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/mixi.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/mixi.svg +0 -32
- data/app/assets/images/groundworkcss/social-icons/msn-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/msn-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/msn.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/msn.svg +0 -44
- data/app/assets/images/groundworkcss/social-icons/orkut-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/orkut-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/orkut.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/orkut.svg +0 -23
- data/app/assets/images/groundworkcss/social-icons/picasa-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/picasa-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/picasa.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/picasa.svg +0 -48
- data/app/assets/images/groundworkcss/social-icons/pinterest-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/pinterest-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/pinterest.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/pinterest.svg +0 -42
- data/app/assets/images/groundworkcss/social-icons/pocketapp-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/pocketapp-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/pocketapp.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/pocketapp.svg +0 -38
- data/app/assets/images/groundworkcss/social-icons/quora-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/quora-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/quora.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/quora.svg +0 -20
- data/app/assets/images/groundworkcss/social-icons/rdio-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/rdio-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/rdio.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/rdio.svg +0 -18
- data/app/assets/images/groundworkcss/social-icons/renren-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/renren-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/renren.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/renren.svg +0 -79
- data/app/assets/images/groundworkcss/social-icons/rss-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/rss-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/rss.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/rss.svg +0 -18
- data/app/assets/images/groundworkcss/social-icons/skitch-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/skitch-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/skitch.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/skitch.svg +0 -24
- data/app/assets/images/groundworkcss/social-icons/skype-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/skype-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/skype.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/skype.svg +0 -25
- data/app/assets/images/groundworkcss/social-icons/soundcloud-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/soundcloud-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/soundcloud.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/soundcloud.svg +0 -60
- data/app/assets/images/groundworkcss/social-icons/spotify-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/spotify-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/spotify.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/spotify.svg +0 -38
- data/app/assets/images/groundworkcss/social-icons/stackoverflow-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/stackoverflow-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/stackoverflow.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/stackoverflow.svg +0 -32
- data/app/assets/images/groundworkcss/social-icons/stumbleupon-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/stumbleupon-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/stumbleupon.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/stumbleupon.svg +0 -22
- data/app/assets/images/groundworkcss/social-icons/svn-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/svn-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/svn.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/svn.svg +0 -25
- data/app/assets/images/groundworkcss/social-icons/tent-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/tent-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/tent.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/tent.svg +0 -16
- data/app/assets/images/groundworkcss/social-icons/tripadvisor-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/tripadvisor-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/tripadvisor.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/tripadvisor.svg +0 -30
- data/app/assets/images/groundworkcss/social-icons/tumblr-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/tumblr-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/tumblr.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/tumblr.svg +0 -16
- data/app/assets/images/groundworkcss/social-icons/twitter-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/twitter-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/twitter.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/twitter.svg +0 -24
- data/app/assets/images/groundworkcss/social-icons/vimeo-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/vimeo-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/vimeo.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/vimeo.svg +0 -20
- data/app/assets/images/groundworkcss/social-icons/weibo-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/weibo-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/weibo.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/weibo.svg +0 -54
- data/app/assets/images/groundworkcss/social-icons/windows-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/windows-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/windows.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/windows.svg +0 -26
- data/app/assets/images/groundworkcss/social-icons/wordpress-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/wordpress-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/wordpress.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/wordpress.svg +0 -50
- data/app/assets/images/groundworkcss/social-icons/xing-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/xing-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/xing.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/xing.svg +0 -16
- data/app/assets/images/groundworkcss/social-icons/yelp-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/yelp-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/yelp.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/yelp.svg +0 -54
- data/app/assets/images/groundworkcss/social-icons/youtube-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/youtube-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/youtube.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/youtube.svg +0 -106
- data/app/assets/images/groundworkcss/social-icons/youversion-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/youversion-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/youversion.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/youversion.svg +0 -54
- data/app/assets/images/groundworkcss/social-icons/zerply-m.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/zerply-s.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/zerply.png +0 -0
- data/app/assets/images/groundworkcss/social-icons/zerply.svg +0 -20
- data/app/assets/javascripts/groundworkcss/components/disabled.coffee +0 -18
- data/app/assets/javascripts/groundworkcss/components/modals.coffee +0 -46
- data/app/assets/javascripts/groundworkcss/components/pagination.coffee +0 -128
- data/app/assets/javascripts/groundworkcss/components/tiles.coffee +0 -32
- data/app/assets/javascripts/groundworkcss/index.js +0 -17
- data/app/assets/javascripts/groundworkcss/plugins/cycle/jquery.cycle2.caption2.js +0 -67
- data/app/assets/javascripts/groundworkcss/plugins/cycle/jquery.cycle2.carousel.js +0 -265
- data/app/assets/javascripts/groundworkcss/plugins/cycle/jquery.cycle2.center.js +0 -63
- data/app/assets/javascripts/groundworkcss/plugins/cycle/jquery.cycle2.ie-fade.js +0 -46
- data/app/assets/javascripts/groundworkcss/plugins/cycle/jquery.cycle2.scrollVert.js +0 -15
- data/app/assets/javascripts/groundworkcss/plugins/cycle/jquery.cycle2.shuffle.js +0 -62
- data/app/assets/javascripts/groundworkcss/plugins/cycle/jquery.cycle2.swipe.js +0 -70
- data/app/assets/javascripts/groundworkcss/plugins/cycle/jquery.cycle2.tile.js +0 -131
- data/app/assets/javascripts/groundworkcss/plugins/cycle/jquery.cycle2.video.js +0 -66
- data/app/assets/javascripts/groundworkcss/plugins/jquery-tooltip.coffee +0 -127
- data/app/assets/javascripts/groundworkcss/plugins/jquery.cycle2.js +0 -1426
- data/app/assets/javascripts/groundworkcss/plugins/jquery.magnific-popup.js +0 -1760
- data/app/assets/stylesheets/groundworkcss/base/_animations.scss +0 -29
- data/app/assets/stylesheets/groundworkcss/form/_all-form.scss +0 -11
- data/app/assets/stylesheets/groundworkcss/form/_tiles.scss +0 -98
- data/app/assets/stylesheets/groundworkcss/nav/_all-nav.scss +0 -12
- data/app/assets/stylesheets/groundworkcss/nav/_buttons.scss +0 -341
- data/app/assets/stylesheets/groundworkcss/nav/_navigation.scss +0 -409
- data/app/assets/stylesheets/groundworkcss/nav/_tabs.scss +0 -232
- data/app/assets/stylesheets/groundworkcss/social-icons-png.scss +0 -295
- data/app/assets/stylesheets/groundworkcss/social-icons-svg.scss +0 -99
- data/app/assets/stylesheets/groundworkcss/ui/_callouts.scss +0 -143
- data/app/assets/stylesheets/groundworkcss/ui/_modals.scss +0 -556
- data/app/assets/stylesheets/groundworkcss/ui/_tooltips.scss +0 -197
- data/groundworkcss-0.4.3.gem +0 -0
- data/lib/groundworkcss/railties.rb +0 -8
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
<?xml version="1.0" standalone="no"?>
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,8 @@
|
|
1
|
+
$ ->
|
2
|
+
|
3
|
+
$('body').on 'click', '.checklist:not([readonly]) li:not([readonly])', ->
|
4
|
+
if $(@).attr('aria-checked') == "true" or $(@).attr('data-checked') == "true" or $(@).attr('checked') == "checked" or $(@).hasClass('checked') or $(@).hasClass('completed')
|
5
|
+
$(@).attr('aria-checked', "false")
|
6
|
+
else
|
7
|
+
$(@).attr('aria-checked', "true")
|
8
|
+
$(@).removeClass('checked completed').removeAttr('data-checked').removeAttr('checked')
|
@@ -8,7 +8,7 @@ equalizeColumns = ->
|
|
8
8
|
tallest = 0
|
9
9
|
collapsed = false
|
10
10
|
|
11
|
-
$row.children(
|
11
|
+
$row.children().each (i) ->
|
12
12
|
$this = $ this
|
13
13
|
$this.css('minHeight','1px')
|
14
14
|
collapsed = ($this.outerWidth() == $row.outerWidth())
|
@@ -16,7 +16,6 @@ equalizeColumns = ->
|
|
16
16
|
$this.addClass('equal') unless $this.hasClass('equal')
|
17
17
|
if $this.outerHeight() > tallest
|
18
18
|
tallest = $this.outerHeight()
|
19
|
-
|
20
19
|
return
|
21
|
-
|
22
|
-
$row.children(
|
20
|
+
|
21
|
+
$row.children().css('min-height', tallest) unless collapsed
|
@@ -1,174 +1,40 @@
|
|
1
|
-
navSelector = if $('.nav').length > 0 then '.nav' else 'nav'
|
2
|
-
|
3
|
-
$window = $(window)
|
4
|
-
|
5
1
|
$ ->
|
6
|
-
# navigation menus
|
7
|
-
$body = $('body')
|
8
|
-
|
9
|
-
delay = undefined
|
10
|
-
|
11
|
-
# open submenu function
|
12
|
-
openMenu = ($target) ->
|
13
|
-
$target.parents('li.menu').toggleClass('on')
|
14
|
-
|
15
|
-
return
|
16
|
-
|
17
|
-
# hover on
|
18
|
-
$body.on 'mouseenter', navSelector + ' > ul > li.menu:not(.disabled)', (e) ->
|
19
|
-
if $window.width() >= 768
|
20
|
-
clearTimeout(delay)
|
21
|
-
$(navSelector + ' > ul > li.menu.on').removeClass('on')
|
22
|
-
$(this).addClass('on')
|
23
2
|
|
24
|
-
|
25
|
-
|
26
|
-
# hover off
|
27
|
-
$body.on 'mouseleave', navSelector + ' > ul > li.menu:not(.disabled)', (e) ->
|
28
|
-
if $window.width() >= 768
|
29
|
-
delay = setTimeout (->
|
30
|
-
$(navSelector + ' > ul > li.menu.on').removeClass('on')
|
31
|
-
), 350
|
32
|
-
|
33
|
-
return
|
34
|
-
|
35
|
-
# click/touch
|
36
|
-
$body.on 'click', navSelector + ' > ul > li.menu:not(.disabled) > a', (e) =>
|
37
|
-
$target = $(e.target)
|
38
|
-
|
39
|
-
if !$target.hasClass('focused')
|
40
|
-
if Modernizr.touch || $window.width() < 768
|
41
|
-
openMenu($target)
|
42
|
-
else
|
43
|
-
$(navSelector + ' > ul > li.menu.on').removeClass('on')
|
44
|
-
$target.parents('li.menu').addClass('on')
|
45
|
-
else
|
46
|
-
$target.removeClass('focused')
|
47
|
-
|
48
|
-
e.stopImmediatePropagation()
|
49
|
-
|
50
|
-
return false
|
51
|
-
|
52
|
-
# keyboard accessibility
|
53
|
-
$body.on 'focusin', navSelector + ' > ul > li.menu > a', (e) ->
|
54
|
-
$target = $(e.currentTarget)
|
55
|
-
|
56
|
-
$target.addClass('focused')
|
57
|
-
openMenu($target)
|
58
|
-
|
59
|
-
e.stopImmediatePropagation()
|
3
|
+
$body = $('body')
|
60
4
|
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
5
|
+
# init
|
6
|
+
$('.dropdown').each ->
|
7
|
+
unless $(@).attr('aria-pressed') == 'true'
|
8
|
+
$(@).attr('aria-pressed', 'false')
|
9
|
+
$(@).children('ul').attr
|
10
|
+
'aria-expanded': 'false'
|
11
|
+
'aria-hidden': 'true'
|
12
|
+
'role': 'menu'
|
67
13
|
|
68
|
-
# dropdown buttons
|
69
14
|
$body.on 'dropdown', (e) ->
|
70
15
|
$target = $(e.target)
|
71
|
-
|
72
|
-
$('.dropdown').
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
16
|
+
$('.dropdown').not($target).attr('aria-pressed', 'false')
|
17
|
+
$('.dropdown').children('ul').attr
|
18
|
+
'aria-expanded': 'false'
|
19
|
+
'aria-hidden': 'true'
|
20
|
+
$target.attr('aria-pressed', (if $target.attr('aria-pressed') == 'true' then 'false' else 'true'))
|
21
|
+
$target.children('ul').attr
|
22
|
+
'aria-expanded': (if $target.attr('aria-pressed') == 'true' then 'true' else 'false')
|
23
|
+
'aria-hidden': (if $target.attr('aria-pressed') == 'true' then 'false' else 'true')
|
77
24
|
|
78
25
|
$body.on 'click', '.dropdown', (e) ->
|
79
26
|
$target = $(e.currentTarget)
|
80
|
-
|
81
|
-
if !$target.is('a')
|
27
|
+
if not ($target.is('a') || $target.is('button'))
|
82
28
|
e.stopPropagation()
|
83
|
-
|
84
29
|
if !$target.hasClass('focused')
|
85
30
|
$target.trigger('dropdown')
|
86
31
|
else
|
87
32
|
$target.removeClass('focused')
|
88
33
|
|
89
|
-
return
|
90
|
-
|
91
34
|
$body.on 'click', ->
|
92
|
-
$dropdown = $('.dropdown
|
35
|
+
$dropdown = $('.dropdown[aria-pressed="true"]')
|
93
36
|
if $dropdown.length
|
94
|
-
$dropdown.
|
95
|
-
|
96
|
-
$menu = $(navSelector + '.menu.on')
|
97
|
-
if $menu.length
|
98
|
-
$menu.removeClass('on')
|
99
|
-
|
100
|
-
return
|
101
|
-
|
102
|
-
# keyboard accessibility
|
103
|
-
$body.on 'focus', '.dropdown', (e) ->
|
104
|
-
$target = $(e.currentTarget)
|
105
|
-
|
106
|
-
if not $(e.target).is('a')
|
107
|
-
if $target.hasClass('dropdown')
|
108
|
-
$target.addClass('focused').trigger('dropdown')
|
109
|
-
else
|
110
|
-
e.stopPropagation()
|
111
|
-
|
112
|
-
return
|
113
|
-
|
114
|
-
$body.on 'focusout', '.dropdown li:last-child a', (e) ->
|
115
|
-
$('.dropdown.on').removeClass('on')
|
116
|
-
|
117
|
-
return
|
118
|
-
|
119
|
-
# hamburger menus
|
120
|
-
$body.on 'menu-toggle', (e) ->
|
121
|
-
$target = $(e.target).parents(navSelector + '.menu')
|
122
|
-
|
123
|
-
$target[if $target.hasClass('on') then 'removeClass' else 'addClass']('on')
|
124
|
-
|
125
|
-
return
|
126
|
-
|
127
|
-
$(navSelector + '.menu').each ->
|
128
|
-
$this = $(this)
|
129
|
-
$this.attr('data-label','Menu') unless $this.attr('data-label')
|
130
|
-
$this.prepend('<a href="#" class="menu-toggle"><i class="icon-reorder"></i></a>') unless $this.find('.menu-toggle').length > 0
|
131
|
-
|
132
|
-
return
|
133
|
-
|
134
|
-
$body.on 'click', navSelector + '.menu .menu-toggle', (e) ->
|
135
|
-
$target = $(e.target)
|
136
|
-
|
137
|
-
e.stopPropagation()
|
138
|
-
e.preventDefault()
|
139
|
-
|
140
|
-
if $target.parents('.menu-toggle').length
|
141
|
-
$parent = $target.parents('.menu-toggle')
|
142
|
-
if !$parent.hasClass('focused')
|
143
|
-
$parent.trigger('menu-toggle')
|
144
|
-
else
|
145
|
-
$parent.removeClass('focused')
|
146
|
-
else if !$target.hasClass('focused')
|
147
|
-
$target.trigger('menu-toggle')
|
148
|
-
else
|
149
|
-
$target.removeClass('focused')
|
150
|
-
|
151
|
-
return
|
152
|
-
|
153
|
-
# keyboard accessibility
|
154
|
-
$body.on 'focusin', navSelector + '.menu .menu-toggle', (e) ->
|
155
|
-
$target = $(e.target)
|
156
|
-
|
157
|
-
if $target.hasClass('menu-toggle')
|
158
|
-
$target.addClass('focused').trigger('menu-toggle')
|
159
|
-
else if ($parent = $target.parents('.menu-toggle')).length
|
160
|
-
$parent.addClass('focused').trigger('menu-toggle')
|
161
|
-
|
162
|
-
return
|
163
|
-
|
164
|
-
$body.on 'focusout', navSelector + '.menu > ul > li:last-child a', (e) ->
|
165
|
-
$(navSelector + '.menu.on').removeClass('on')
|
166
|
-
|
167
|
-
return
|
168
|
-
|
169
|
-
return
|
37
|
+
$dropdown.attr('aria-pressed', 'false')
|
170
38
|
|
171
|
-
$
|
172
|
-
|
173
|
-
if selector.length > 1
|
174
|
-
selector.removeClass('on').first().addClass('on')
|
39
|
+
$body.on 'focusout', '.dropdown li:last-child a, .dropdown li:last-child button', (e) ->
|
40
|
+
$('.dropdown[aria-pressed="true"]').attr('aria-pressed', 'false')
|
@@ -0,0 +1,90 @@
|
|
1
|
+
###
|
2
|
+
*
|
3
|
+
* Responsive Navigation by Gary Hepting
|
4
|
+
*
|
5
|
+
* Open source under the MIT License.
|
6
|
+
*
|
7
|
+
* Copyright © 2013 Gary Hepting. All rights reserved.
|
8
|
+
*
|
9
|
+
###
|
10
|
+
|
11
|
+
responsiveNavigationIndex = 0
|
12
|
+
window.delayMenuClose = ''
|
13
|
+
window.delayNavigationClose = ''
|
14
|
+
|
15
|
+
class ResponsiveNavigation
|
16
|
+
|
17
|
+
constructor: (el) ->
|
18
|
+
@index = responsiveNavigationIndex++
|
19
|
+
@el = $(el)
|
20
|
+
@init()
|
21
|
+
|
22
|
+
init: ->
|
23
|
+
@defaultLabel()
|
24
|
+
@setupMarkers()
|
25
|
+
@hamburgerHelper()
|
26
|
+
|
27
|
+
defaultLabel: ->
|
28
|
+
if @el.attr('title') == undefined
|
29
|
+
@el.attr('title', 'Menu')
|
30
|
+
|
31
|
+
setupMarkers: ->
|
32
|
+
@el.find('li').each ->
|
33
|
+
if $(@).find('ul').length
|
34
|
+
$(@).attr('role', 'menu')
|
35
|
+
|
36
|
+
hamburgerHelper: ->
|
37
|
+
@el.prepend('<button class="hamburger"></button>')
|
38
|
+
|
39
|
+
$ ->
|
40
|
+
|
41
|
+
mouseBindings = -> # needs more <3
|
42
|
+
$('body').on 'mouseenter', '.nav li[role="menu"]', (e) ->
|
43
|
+
unless $(@).parents('.nav').find('button.hamburger').is(':visible')
|
44
|
+
clearTimeout(window.delayMenuClose)
|
45
|
+
$(@).siblings().find('ul[aria-expanded="true"]').attr('aria-expanded', 'false')
|
46
|
+
# $(@).children('ul').attr('aria-expanded', 'true')
|
47
|
+
$(e.target).parents('li[role="menu"]').children('ul').attr('aria-expanded', 'true')
|
48
|
+
|
49
|
+
$('body').on 'mouseleave', '.nav li[role="menu"]', (e) ->
|
50
|
+
unless $(@).parents('.nav').find('button.hamburger').is(':visible')
|
51
|
+
window.delayMenuClose = setTimeout( =>
|
52
|
+
$(@).find('ul[aria-expanded="true"]').attr('aria-expanded', 'false')
|
53
|
+
, 500)
|
54
|
+
|
55
|
+
touchBindings = ->
|
56
|
+
$('body').on 'click', '.nav li[role="menu"] > a, .nav li[role="menu"] > button', (e) ->
|
57
|
+
list = $(@).siblings('ul')
|
58
|
+
menu = $(@).parent('[role="menu"]')
|
59
|
+
if list.attr('aria-expanded') != 'true'
|
60
|
+
list.attr('aria-expanded', 'true')
|
61
|
+
else
|
62
|
+
list.attr('aria-expanded', 'false')
|
63
|
+
list.find('[aria-expanded="true"]').attr('aria-expanded', 'false')
|
64
|
+
if menu.attr('aria-pressed') != 'true'
|
65
|
+
menu.attr('aria-pressed', 'true')
|
66
|
+
else
|
67
|
+
menu.attr('aria-pressed', 'false')
|
68
|
+
menu.find('[aria-pressed="true"]').attr('aria-pressed', 'false')
|
69
|
+
menu.find('[aria-expanded="true"]').attr('aria-expanded', 'false')
|
70
|
+
e.preventDefault()
|
71
|
+
|
72
|
+
$('body').on 'click', '.nav button.hamburger', (e) ->
|
73
|
+
list = $(@).siblings('ul')
|
74
|
+
if list.attr('aria-expanded') != 'true'
|
75
|
+
list.attr('aria-expanded', 'true')
|
76
|
+
else
|
77
|
+
list.attr('aria-expanded', 'false')
|
78
|
+
list.find('[aria-pressed="true"]').attr('aria-pressed', 'false')
|
79
|
+
list.find('[aria-expanded="true"]').attr('aria-expanded', 'false')
|
80
|
+
e.preventDefault()
|
81
|
+
|
82
|
+
responsiveNavigationElements = []
|
83
|
+
|
84
|
+
$('.nav').each ->
|
85
|
+
responsiveNavigationElements.push( new ResponsiveNavigation(@) )
|
86
|
+
|
87
|
+
# initialize bindings
|
88
|
+
touchBindings()
|
89
|
+
unless Modernizr.touch
|
90
|
+
mouseBindings()
|
@@ -1,20 +1,85 @@
|
|
1
1
|
$ ->
|
2
|
-
|
3
|
-
$('
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
2
|
+
|
3
|
+
$('.tabs').each ->
|
4
|
+
activeTab = $(@).children('ul').children('li.active')
|
5
|
+
if activeTab.length
|
6
|
+
tabs = activeTab.parents('.tabs')
|
7
|
+
tabs.find(activeTab.attr('aria-controls')).addClass('active')
|
8
|
+
else
|
9
|
+
$(@).children('ul').children('li').first().addClass('active')
|
10
|
+
$(@).children('div').first().addClass('active')
|
11
|
+
|
12
|
+
$('body').on 'click', '.tabs > ul li', (e) ->
|
13
|
+
tab = $(@).addClass('active')
|
14
|
+
tabs = tab.parents('.tabs')
|
15
|
+
tab.siblings('li').removeClass('active')
|
16
|
+
tabs.find('> div, > ul > div').hide()
|
17
|
+
tabs.find(tab.attr('aria-controls')).show()
|
17
18
|
e.preventDefault()
|
18
|
-
|
19
|
-
|
20
|
-
|
19
|
+
|
20
|
+
transformTabs = ->
|
21
|
+
viewport = $(window).width()
|
22
|
+
if viewport <= 480
|
23
|
+
restoreTabStructure('.tabs.accordion.mobile')
|
24
|
+
convertToAccordion('.tabs:not(.accordion):not(.mobile)')
|
25
|
+
else if viewport < 768
|
26
|
+
restoreTabStructure('.tabs.accordion.mobile, .tabs.accordion.small-tablet')
|
27
|
+
convertToAccordion('.tabs:not(.accordion):not(.mobile):not(.small-tablet)')
|
28
|
+
else if viewport <= 1024
|
29
|
+
restoreTabStructure('.tabs.accordion.mobile, .tabs.accordion.small-tablet, .tabs.accordion.ipad')
|
30
|
+
convertToAccordion('.tabs:not(.accordion):not(.mobile):not(.small-tablet):not(.ipad)')
|
31
|
+
else if viewport > 1024
|
32
|
+
restoreTabStructure('.tabs.accordion')
|
33
|
+
|
34
|
+
convertToAccordion = (tabTypes) ->
|
35
|
+
tabTypes = $(tabTypes)
|
36
|
+
tabTypes.each ->
|
37
|
+
tabs = $(@)
|
38
|
+
tabs.addClass('accordion')
|
39
|
+
tabs.find('> div').each ->
|
40
|
+
tabpanel = $(@).clone()
|
41
|
+
tabs.find('li[aria-controls="#'+tabpanel.attr('id')+'"]').after(tabpanel)
|
42
|
+
$(@).remove()
|
43
|
+
|
44
|
+
restoreTabStructure = (tabTypes) ->
|
45
|
+
$(tabTypes).each ->
|
46
|
+
tabs = $(@)
|
47
|
+
tabs.removeClass('accordion')
|
48
|
+
if tabs.hasClass('vertical')
|
49
|
+
adjustVerticalTabs(tabs)
|
50
|
+
tabs.children('ul').children('div').each ->
|
51
|
+
tabpanel = $(@).clone()
|
52
|
+
tabs.append(tabpanel)
|
53
|
+
$(@).remove()
|
54
|
+
|
55
|
+
# adjustHorizontalTabs = (tabs) ->
|
56
|
+
# tabs = $(tabs)
|
57
|
+
# unless tabs.length
|
58
|
+
# tabs = $('.tabs:not(.vertical)')
|
59
|
+
# tabs.each ->
|
60
|
+
|
61
|
+
adjustVerticalTabs = (tabs) ->
|
62
|
+
tabs = $(tabs)
|
63
|
+
unless tabs.length
|
64
|
+
tabs = $('.tabs.vertical')
|
65
|
+
tabs.each ->
|
66
|
+
if $(@).hasClass('vertical')
|
67
|
+
$(@).children('ul').css
|
68
|
+
'min-height': '0px'
|
69
|
+
unless $(@).hasClass('accordion')
|
70
|
+
$(@).children('[role="tabpanel"]').css
|
71
|
+
'padding-left': $(@).children('ul').width() + 10 + 'px'
|
72
|
+
$(@).children('ul').css
|
73
|
+
'min-height': $(@).height() + 'px'
|
74
|
+
|
75
|
+
$(window).resize ->
|
76
|
+
clearTimeout(window.delayedAdjustTabs)
|
77
|
+
window.delayedAdjustTabs = setTimeout( ->
|
78
|
+
transformTabs()
|
79
|
+
adjustVerticalTabs()
|
80
|
+
, 50)
|
81
|
+
|
82
|
+
$(window).load ->
|
83
|
+
transformTabs()
|
84
|
+
adjustVerticalTabs()
|
85
|
+
|
Binary file
|