refills 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.gitignore +17 -0
- data/Gemfile +13 -0
- data/Gemfile.lock +103 -0
- data/LICENSE.txt +22 -0
- data/README.md +26 -0
- data/Rakefile +2 -0
- data/config.rb +101 -0
- data/lib/refills.rb +2 -0
- data/lib/refills/import_generator.rb +15 -0
- data/lib/refills/list_generator.rb +20 -0
- data/lib/refills/version.rb +3 -0
- data/refills.gemspec +23 -0
- data/source/_accordion-tabs.html.erb +48 -0
- data/source/_accordion.html.erb +33 -0
- data/source/_badges.html.erb +5 -0
- data/source/_breadcrumbs.html.erb +8 -0
- data/source/_button-group.html.erb +7 -0
- data/source/_cards.html.erb +26 -0
- data/source/_dashboard.html.erb +18 -0
- data/source/_dropdown-menu.html.erb +45 -0
- data/source/_footer.html.erb +29 -0
- data/source/_hero.html.erb +11 -0
- data/source/_html_snippet.html.erb +5 -0
- data/source/_image-cards.html.erb +28 -0
- data/source/_info-section.html.erb +25 -0
- data/source/_item-list.html.erb +25 -0
- data/source/_master-detail.html.erb +35 -0
- data/source/_modal.html.erb +34 -0
- data/source/_navigation.html.erb +36 -0
- data/source/_overlap.html.erb +9 -0
- data/source/_progress-bar.html.erb +3 -0
- data/source/_search-bar.html.erb +8 -0
- data/source/_sidebar-layout.html.erb +28 -0
- data/source/_sliding-menu.html.erb +20 -0
- data/source/_snippet.html.erb +5 -0
- data/source/_stylesheet_snippet.html.erb +7 -0
- data/source/_switch-toggle.html.erb +15 -0
- data/source/_tables.html.erb +31 -0
- data/source/_toggle-cards.html.erb +64 -0
- data/source/_tooltip.html.erb +4 -0
- data/source/_vertical-tabs.html.erb +66 -0
- data/source/favicon.ico +0 -0
- data/source/favicon.png +0 -0
- data/source/images/background.png +0 -0
- data/source/images/middleman.png +0 -0
- data/source/index.html.erb +202 -0
- data/source/javascripts/all.js +2 -0
- data/source/layouts/layout.erb +19 -0
- data/source/stylesheets/.sass-cache/0d88bab3f6439409671efc65a29de3058595a20c/_deprecated-webkit-gradient.scssc +0 -0
- data/source/stylesheets/.sass-cache/0d88bab3f6439409671efc65a29de3058595a20c/_gradient-positions-parser.scssc +0 -0
- data/source/stylesheets/.sass-cache/0d88bab3f6439409671efc65a29de3058595a20c/_linear-positions-parser.scssc +0 -0
- data/source/stylesheets/.sass-cache/0d88bab3f6439409671efc65a29de3058595a20c/_radial-arg-parser.scssc +0 -0
- data/source/stylesheets/.sass-cache/0d88bab3f6439409671efc65a29de3058595a20c/_radial-positions-parser.scssc +0 -0
- data/source/stylesheets/.sass-cache/0d88bab3f6439409671efc65a29de3058595a20c/_render-gradients.scssc +0 -0
- data/source/stylesheets/.sass-cache/0d88bab3f6439409671efc65a29de3058595a20c/_shape-size-stripper.scssc +0 -0
- data/source/stylesheets/.sass-cache/2356a63beb71504ccf2fa539939afe219243ac3f/_fill-parent.scssc +0 -0
- data/source/stylesheets/.sass-cache/2356a63beb71504ccf2fa539939afe219243ac3f/_grid.scssc +0 -0
- data/source/stylesheets/.sass-cache/2356a63beb71504ccf2fa539939afe219243ac3f/_media.scssc +0 -0
- data/source/stylesheets/.sass-cache/2356a63beb71504ccf2fa539939afe219243ac3f/_omega.scssc +0 -0
- data/source/stylesheets/.sass-cache/2356a63beb71504ccf2fa539939afe219243ac3f/_outer-container.scssc +0 -0
- data/source/stylesheets/.sass-cache/2356a63beb71504ccf2fa539939afe219243ac3f/_pad.scssc +0 -0
- data/source/stylesheets/.sass-cache/2356a63beb71504ccf2fa539939afe219243ac3f/_private.scssc +0 -0
- data/source/stylesheets/.sass-cache/2356a63beb71504ccf2fa539939afe219243ac3f/_reset.scssc +0 -0
- data/source/stylesheets/.sass-cache/2356a63beb71504ccf2fa539939afe219243ac3f/_row.scssc +0 -0
- data/source/stylesheets/.sass-cache/2356a63beb71504ccf2fa539939afe219243ac3f/_shift.scssc +0 -0
- data/source/stylesheets/.sass-cache/2356a63beb71504ccf2fa539939afe219243ac3f/_span-columns.scssc +0 -0
- data/source/stylesheets/.sass-cache/2356a63beb71504ccf2fa539939afe219243ac3f/_to-deprecate.scssc +0 -0
- data/source/stylesheets/.sass-cache/2356a63beb71504ccf2fa539939afe219243ac3f/_visual-grid.scssc +0 -0
- data/source/stylesheets/.sass-cache/3c5af5c36664454ea95f8284b8f46c4539020663/_neat-helpers.scssc +0 -0
- data/source/stylesheets/.sass-cache/3c5af5c36664454ea95f8284b8f46c4539020663/_neat.scssc +0 -0
- data/source/stylesheets/.sass-cache/5d5301b1b4de0f4b931a707c7390ccdbbf02bc5c/_bourbon-deprecated-upcoming.scssc +0 -0
- data/source/stylesheets/.sass-cache/5d5301b1b4de0f4b931a707c7390ccdbbf02bc5c/_bourbon.scssc +0 -0
- data/source/stylesheets/.sass-cache/6e4f3bf0a0a6393f142470646a965aa11120b82c/_bitters.scssc +0 -0
- data/source/stylesheets/.sass-cache/6e4f3bf0a0a6393f142470646a965aa11120b82c/_flashes.scssc +0 -0
- data/source/stylesheets/.sass-cache/6e4f3bf0a0a6393f142470646a965aa11120b82c/_forms.scssc +0 -0
- data/source/stylesheets/.sass-cache/6e4f3bf0a0a6393f142470646a965aa11120b82c/_grid-settings.scssc +0 -0
- data/source/stylesheets/.sass-cache/6e4f3bf0a0a6393f142470646a965aa11120b82c/_lists.scssc +0 -0
- data/source/stylesheets/.sass-cache/6e4f3bf0a0a6393f142470646a965aa11120b82c/_tables.scssc +0 -0
- data/source/stylesheets/.sass-cache/6e4f3bf0a0a6393f142470646a965aa11120b82c/_typography.scssc +0 -0
- data/source/stylesheets/.sass-cache/6e4f3bf0a0a6393f142470646a965aa11120b82c/_variables.scssc +0 -0
- data/source/stylesheets/.sass-cache/7b963f7f4dc44c7eaad58bd6c1897da558e16f47/_accordion-tabs.scssc +0 -0
- data/source/stylesheets/.sass-cache/7b963f7f4dc44c7eaad58bd6c1897da558e16f47/_breadcrumbs.scssc +0 -0
- data/source/stylesheets/.sass-cache/7b963f7f4dc44c7eaad58bd6c1897da558e16f47/_button-group.scssc +0 -0
- data/source/stylesheets/.sass-cache/7b963f7f4dc44c7eaad58bd6c1897da558e16f47/_buttons.scssc +0 -0
- data/source/stylesheets/.sass-cache/7b963f7f4dc44c7eaad58bd6c1897da558e16f47/_cards.scssc +0 -0
- data/source/stylesheets/.sass-cache/7b963f7f4dc44c7eaad58bd6c1897da558e16f47/_dashboard.scssc +0 -0
- data/source/stylesheets/.sass-cache/7b963f7f4dc44c7eaad58bd6c1897da558e16f47/_dropdown-menu.scssc +0 -0
- data/source/stylesheets/.sass-cache/7b963f7f4dc44c7eaad58bd6c1897da558e16f47/_footer.scssc +0 -0
- data/source/stylesheets/.sass-cache/7b963f7f4dc44c7eaad58bd6c1897da558e16f47/_header-nav.scssc +0 -0
- data/source/stylesheets/.sass-cache/7b963f7f4dc44c7eaad58bd6c1897da558e16f47/_hero.scssc +0 -0
- data/source/stylesheets/.sass-cache/7b963f7f4dc44c7eaad58bd6c1897da558e16f47/_image-cards.scssc +0 -0
- data/source/stylesheets/.sass-cache/7b963f7f4dc44c7eaad58bd6c1897da558e16f47/_info-section.scssc +0 -0
- data/source/stylesheets/.sass-cache/7b963f7f4dc44c7eaad58bd6c1897da558e16f47/_item-list.scssc +0 -0
- data/source/stylesheets/.sass-cache/7b963f7f4dc44c7eaad58bd6c1897da558e16f47/_master-detail.scssc +0 -0
- data/source/stylesheets/.sass-cache/7b963f7f4dc44c7eaad58bd6c1897da558e16f47/_modal.scssc +0 -0
- data/source/stylesheets/.sass-cache/7b963f7f4dc44c7eaad58bd6c1897da558e16f47/_navigation.scssc +0 -0
- data/source/stylesheets/.sass-cache/7b963f7f4dc44c7eaad58bd6c1897da558e16f47/_overlap.scssc +0 -0
- data/source/stylesheets/.sass-cache/7b963f7f4dc44c7eaad58bd6c1897da558e16f47/_progress-bar.scssc +0 -0
- data/source/stylesheets/.sass-cache/7b963f7f4dc44c7eaad58bd6c1897da558e16f47/_search-bar.scssc +0 -0
- data/source/stylesheets/.sass-cache/7b963f7f4dc44c7eaad58bd6c1897da558e16f47/_sidebar-layout.scssc +0 -0
- data/source/stylesheets/.sass-cache/7b963f7f4dc44c7eaad58bd6c1897da558e16f47/_sliding-menu.scssc +0 -0
- data/source/stylesheets/.sass-cache/7b963f7f4dc44c7eaad58bd6c1897da558e16f47/_table-borders.scssc +0 -0
- data/source/stylesheets/.sass-cache/7b963f7f4dc44c7eaad58bd6c1897da558e16f47/_table.scssc +0 -0
- data/source/stylesheets/.sass-cache/7b963f7f4dc44c7eaad58bd6c1897da558e16f47/_tables.scssc +0 -0
- data/source/stylesheets/.sass-cache/7b963f7f4dc44c7eaad58bd6c1897da558e16f47/_tabs.scssc +0 -0
- data/source/stylesheets/.sass-cache/7b963f7f4dc44c7eaad58bd6c1897da558e16f47/_toggle-cards.scssc +0 -0
- data/source/stylesheets/.sass-cache/7b963f7f4dc44c7eaad58bd6c1897da558e16f47/_tooltip.scssc +0 -0
- data/source/stylesheets/.sass-cache/7b963f7f4dc44c7eaad58bd6c1897da558e16f47/_vertical-tabs.scssc +0 -0
- data/source/stylesheets/.sass-cache/7b963f7f4dc44c7eaad58bd6c1897da558e16f47/vertical-tabs.scssc +0 -0
- data/source/stylesheets/.sass-cache/949f49000f6a509c8c1d8b10cc864f41440f4640/_new-breakpoint.scssc +0 -0
- data/source/stylesheets/.sass-cache/949f49000f6a509c8c1d8b10cc864f41440f4640/_private.scssc +0 -0
- data/source/stylesheets/.sass-cache/949f49000f6a509c8c1d8b10cc864f41440f4640/_px-to-em.scssc +0 -0
- data/source/stylesheets/.sass-cache/9c3cd587ffeef0d147804cf4a2177df69c325021/_grid.scssc +0 -0
- data/source/stylesheets/.sass-cache/9c3cd587ffeef0d147804cf4a2177df69c325021/_visual-grid.scssc +0 -0
- data/source/stylesheets/.sass-cache/c6006dae2021685cda21dbc1d56c98b49b399e89/_button.scssc +820 -0
- data/source/stylesheets/.sass-cache/c6006dae2021685cda21dbc1d56c98b49b399e89/_clearfix.scssc +0 -0
- data/source/stylesheets/.sass-cache/c6006dae2021685cda21dbc1d56c98b49b399e89/_font-family.scssc +0 -0
- data/source/stylesheets/.sass-cache/c6006dae2021685cda21dbc1d56c98b49b399e89/_hide-text.scssc +0 -0
- data/source/stylesheets/.sass-cache/c6006dae2021685cda21dbc1d56c98b49b399e89/_html5-input-types.scssc +0 -0
- data/source/stylesheets/.sass-cache/c6006dae2021685cda21dbc1d56c98b49b399e89/_position.scssc +0 -0
- data/source/stylesheets/.sass-cache/c6006dae2021685cda21dbc1d56c98b49b399e89/_prefixer.scssc +0 -0
- data/source/stylesheets/.sass-cache/c6006dae2021685cda21dbc1d56c98b49b399e89/_retina-image.scssc +0 -0
- data/source/stylesheets/.sass-cache/c6006dae2021685cda21dbc1d56c98b49b399e89/_size.scssc +0 -0
- data/source/stylesheets/.sass-cache/c6006dae2021685cda21dbc1d56c98b49b399e89/_timing-functions.scssc +0 -0
- data/source/stylesheets/.sass-cache/c6006dae2021685cda21dbc1d56c98b49b399e89/_triangle.scssc +0 -0
- data/source/stylesheets/.sass-cache/d215ab98db0764a70113a4b69eb12099c4a4b951/_normalize.scssc +0 -0
- data/source/stylesheets/.sass-cache/d215ab98db0764a70113a4b69eb12099c4a4b951/_refills-styles.scssc +0 -0
- data/source/stylesheets/.sass-cache/d215ab98db0764a70113a4b69eb12099c4a4b951/all.scssc +0 -0
- data/source/stylesheets/.sass-cache/d834f47169fec4be6d5fa92ad35541754895d07f/_animation.scssc +0 -0
- data/source/stylesheets/.sass-cache/d834f47169fec4be6d5fa92ad35541754895d07f/_appearance.scssc +0 -0
- data/source/stylesheets/.sass-cache/d834f47169fec4be6d5fa92ad35541754895d07f/_backface-visibility.scssc +0 -0
- data/source/stylesheets/.sass-cache/d834f47169fec4be6d5fa92ad35541754895d07f/_background-image.scssc +0 -0
- data/source/stylesheets/.sass-cache/d834f47169fec4be6d5fa92ad35541754895d07f/_background.scssc +0 -0
- data/source/stylesheets/.sass-cache/d834f47169fec4be6d5fa92ad35541754895d07f/_border-image.scssc +0 -0
- data/source/stylesheets/.sass-cache/d834f47169fec4be6d5fa92ad35541754895d07f/_border-radius.scssc +0 -0
- data/source/stylesheets/.sass-cache/d834f47169fec4be6d5fa92ad35541754895d07f/_box-sizing.scssc +0 -0
- data/source/stylesheets/.sass-cache/d834f47169fec4be6d5fa92ad35541754895d07f/_columns.scssc +0 -0
- data/source/stylesheets/.sass-cache/d834f47169fec4be6d5fa92ad35541754895d07f/_flex-box.scssc +0 -0
- data/source/stylesheets/.sass-cache/d834f47169fec4be6d5fa92ad35541754895d07f/_font-face.scssc +0 -0
- data/source/stylesheets/.sass-cache/d834f47169fec4be6d5fa92ad35541754895d07f/_hidpi-media-query.scssc +0 -0
- data/source/stylesheets/.sass-cache/d834f47169fec4be6d5fa92ad35541754895d07f/_image-rendering.scssc +0 -0
- data/source/stylesheets/.sass-cache/d834f47169fec4be6d5fa92ad35541754895d07f/_inline-block.scssc +0 -0
- data/source/stylesheets/.sass-cache/d834f47169fec4be6d5fa92ad35541754895d07f/_keyframes.scssc +0 -0
- data/source/stylesheets/.sass-cache/d834f47169fec4be6d5fa92ad35541754895d07f/_linear-gradient.scssc +0 -0
- data/source/stylesheets/.sass-cache/d834f47169fec4be6d5fa92ad35541754895d07f/_perspective.scssc +0 -0
- data/source/stylesheets/.sass-cache/d834f47169fec4be6d5fa92ad35541754895d07f/_placeholder.scssc +0 -0
- data/source/stylesheets/.sass-cache/d834f47169fec4be6d5fa92ad35541754895d07f/_radial-gradient.scssc +0 -0
- data/source/stylesheets/.sass-cache/d834f47169fec4be6d5fa92ad35541754895d07f/_transform.scssc +0 -0
- data/source/stylesheets/.sass-cache/d834f47169fec4be6d5fa92ad35541754895d07f/_transition.scssc +0 -0
- data/source/stylesheets/.sass-cache/d834f47169fec4be6d5fa92ad35541754895d07f/_user-select.scssc +0 -0
- data/source/stylesheets/.sass-cache/e04a546d656fd6d36e1f48c3953beece343e5456/_base.scssc +0 -0
- data/source/stylesheets/.sass-cache/e04a546d656fd6d36e1f48c3953beece343e5456/_button.scssc +0 -0
- data/source/stylesheets/.sass-cache/f42b2997d6b9b825e31277de8bd0911929c9e03c/_compact.scssc +0 -0
- data/source/stylesheets/.sass-cache/f42b2997d6b9b825e31277de8bd0911929c9e03c/_flex-grid.scssc +0 -0
- data/source/stylesheets/.sass-cache/f42b2997d6b9b825e31277de8bd0911929c9e03c/_grid-width.scssc +0 -0
- data/source/stylesheets/.sass-cache/f42b2997d6b9b825e31277de8bd0911929c9e03c/_linear-gradient.scssc +0 -0
- data/source/stylesheets/.sass-cache/f42b2997d6b9b825e31277de8bd0911929c9e03c/_modular-scale.scssc +0 -0
- data/source/stylesheets/.sass-cache/f42b2997d6b9b825e31277de8bd0911929c9e03c/_px-to-em.scssc +0 -0
- data/source/stylesheets/.sass-cache/f42b2997d6b9b825e31277de8bd0911929c9e03c/_radial-gradient.scssc +0 -0
- data/source/stylesheets/.sass-cache/f42b2997d6b9b825e31277de8bd0911929c9e03c/_tint-shade.scssc +0 -0
- data/source/stylesheets/.sass-cache/f42b2997d6b9b825e31277de8bd0911929c9e03c/_transition-property-name.scssc +0 -0
- data/source/stylesheets/_normalize.scss +402 -0
- data/source/stylesheets/_refills-styles.scss +269 -0
- data/source/stylesheets/all.scss +36 -0
- data/source/stylesheets/bitters/_bitters.scss +7 -0
- data/source/stylesheets/bitters/_flashes.scss +50 -0
- data/source/stylesheets/bitters/_forms.scss +87 -0
- data/source/stylesheets/bitters/_grid-settings.scss +14 -0
- data/source/stylesheets/bitters/_lists.scss +31 -0
- data/source/stylesheets/bitters/_tables.scss +22 -0
- data/source/stylesheets/bitters/_typography.scss +103 -0
- data/source/stylesheets/bitters/_variables.scss +47 -0
- data/source/stylesheets/bitters/extends/_base.scss +1 -0
- data/source/stylesheets/bitters/extends/_button.scss +5 -0
- data/source/stylesheets/bourbon/_bourbon-deprecated-upcoming.scss +13 -0
- data/source/stylesheets/bourbon/_bourbon.scss +59 -0
- data/source/stylesheets/bourbon/addons/_button.scss +343 -0
- data/source/stylesheets/bourbon/addons/_clearfix.scss +29 -0
- data/source/stylesheets/bourbon/addons/_font-family.scss +5 -0
- data/source/stylesheets/bourbon/addons/_hide-text.scss +5 -0
- data/source/stylesheets/bourbon/addons/_html5-input-types.scss +56 -0
- data/source/stylesheets/bourbon/addons/_position.scss +42 -0
- data/source/stylesheets/bourbon/addons/_prefixer.scss +49 -0
- data/source/stylesheets/bourbon/addons/_retina-image.scss +32 -0
- data/source/stylesheets/bourbon/addons/_size.scss +44 -0
- data/source/stylesheets/bourbon/addons/_timing-functions.scss +32 -0
- data/source/stylesheets/bourbon/addons/_triangle.scss +45 -0
- data/source/stylesheets/bourbon/css3/_animation.scss +52 -0
- data/source/stylesheets/bourbon/css3/_appearance.scss +3 -0
- data/source/stylesheets/bourbon/css3/_backface-visibility.scss +6 -0
- data/source/stylesheets/bourbon/css3/_background-image.scss +48 -0
- data/source/stylesheets/bourbon/css3/_background.scss +103 -0
- data/source/stylesheets/bourbon/css3/_border-image.scss +55 -0
- data/source/stylesheets/bourbon/css3/_border-radius.scss +22 -0
- data/source/stylesheets/bourbon/css3/_box-sizing.scss +4 -0
- data/source/stylesheets/bourbon/css3/_columns.scss +47 -0
- data/source/stylesheets/bourbon/css3/_flex-box.scss +52 -0
- data/source/stylesheets/bourbon/css3/_font-face.scss +23 -0
- data/source/stylesheets/bourbon/css3/_hidpi-media-query.scss +10 -0
- data/source/stylesheets/bourbon/css3/_image-rendering.scss +13 -0
- data/source/stylesheets/bourbon/css3/_inline-block.scss +8 -0
- data/source/stylesheets/bourbon/css3/_keyframes.scss +43 -0
- data/source/stylesheets/bourbon/css3/_linear-gradient.scss +41 -0
- data/source/stylesheets/bourbon/css3/_perspective.scss +8 -0
- data/source/stylesheets/bourbon/css3/_placeholder.scss +29 -0
- data/source/stylesheets/bourbon/css3/_radial-gradient.scss +44 -0
- data/source/stylesheets/bourbon/css3/_transform.scss +15 -0
- data/source/stylesheets/bourbon/css3/_transition.scss +34 -0
- data/source/stylesheets/bourbon/css3/_user-select.scss +3 -0
- data/source/stylesheets/bourbon/functions/_compact.scss +11 -0
- data/source/stylesheets/bourbon/functions/_flex-grid.scss +39 -0
- data/source/stylesheets/bourbon/functions/_grid-width.scss +13 -0
- data/source/stylesheets/bourbon/functions/_linear-gradient.scss +13 -0
- data/source/stylesheets/bourbon/functions/_modular-scale.scss +40 -0
- data/source/stylesheets/bourbon/functions/_px-to-em.scss +8 -0
- data/source/stylesheets/bourbon/functions/_radial-gradient.scss +23 -0
- data/source/stylesheets/bourbon/functions/_tint-shade.scss +9 -0
- data/source/stylesheets/bourbon/functions/_transition-property-name.scss +22 -0
- data/source/stylesheets/bourbon/helpers/_deprecated-webkit-gradient.scss +39 -0
- data/source/stylesheets/bourbon/helpers/_gradient-positions-parser.scss +13 -0
- data/source/stylesheets/bourbon/helpers/_linear-positions-parser.scss +61 -0
- data/source/stylesheets/bourbon/helpers/_radial-arg-parser.scss +69 -0
- data/source/stylesheets/bourbon/helpers/_radial-positions-parser.scss +18 -0
- data/source/stylesheets/bourbon/helpers/_render-gradients.scss +26 -0
- data/source/stylesheets/bourbon/helpers/_shape-size-stripper.scss +10 -0
- data/source/stylesheets/neat/_neat-helpers.scss +7 -0
- data/source/stylesheets/neat/_neat.scss +21 -0
- data/source/stylesheets/neat/functions/_new-breakpoint.scss +16 -0
- data/source/stylesheets/neat/functions/_private.scss +125 -0
- data/source/stylesheets/neat/grid/_fill-parent.scss +7 -0
- data/source/stylesheets/neat/grid/_grid.scss +5 -0
- data/source/stylesheets/neat/grid/_media.scss +51 -0
- data/source/stylesheets/neat/grid/_omega.scss +79 -0
- data/source/stylesheets/neat/grid/_outer-container.scss +8 -0
- data/source/stylesheets/neat/grid/_pad.scss +8 -0
- data/source/stylesheets/neat/grid/_private.scss +50 -0
- data/source/stylesheets/neat/grid/_reset.scss +12 -0
- data/source/stylesheets/neat/grid/_row.scss +17 -0
- data/source/stylesheets/neat/grid/_shift.scss +16 -0
- data/source/stylesheets/neat/grid/_span-columns.scss +45 -0
- data/source/stylesheets/neat/grid/_to-deprecate.scss +57 -0
- data/source/stylesheets/neat/grid/_visual-grid.scss +41 -0
- data/source/stylesheets/neat/settings/_grid.scss +7 -0
- data/source/stylesheets/neat/settings/_visual-grid.scss +5 -0
- data/source/stylesheets/normalize.css +375 -0
- data/source/stylesheets/refills/_accordion-tabs.scss +101 -0
- data/source/stylesheets/refills/_accordion.scss +51 -0
- data/source/stylesheets/refills/_badges.scss +37 -0
- data/source/stylesheets/refills/_breadcrumbs.scss +77 -0
- data/source/stylesheets/refills/_button-group.scss +33 -0
- data/source/stylesheets/refills/_cards.scss +64 -0
- data/source/stylesheets/refills/_dashboard.scss +33 -0
- data/source/stylesheets/refills/_dropdown-menu.scss +65 -0
- data/source/stylesheets/refills/_footer.scss +55 -0
- data/source/stylesheets/refills/_hero.scss +35 -0
- data/source/stylesheets/refills/_image-cards.scss +102 -0
- data/source/stylesheets/refills/_info-section.scss +49 -0
- data/source/stylesheets/refills/_item-list.scss +37 -0
- data/source/stylesheets/refills/_master-detail.scss +54 -0
- data/source/stylesheets/refills/_modal.scss +160 -0
- data/source/stylesheets/refills/_navigation.scss +168 -0
- data/source/stylesheets/refills/_overlap.scss +42 -0
- data/source/stylesheets/refills/_progress-bar.scss +83 -0
- data/source/stylesheets/refills/_search-bar.scss +43 -0
- data/source/stylesheets/refills/_sidebar-layout.scss +56 -0
- data/source/stylesheets/refills/_sliding-menu.scss +58 -0
- data/source/stylesheets/refills/_switch-toggle.scss +73 -0
- data/source/stylesheets/refills/_tables.scss +80 -0
- data/source/stylesheets/refills/_toggle-cards.scss +104 -0
- data/source/stylesheets/refills/_tooltip.scss +81 -0
- data/source/stylesheets/refills/_vertical-tabs.scss +113 -0
- data/source/vendor/javascripts/prism.js +13 -0
- data/source/vendor/stylesheets/prism.css +126 -0
- metadata +349 -0
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
ZDAzN2Y2ZjUyZTYxNTU3NmI0MDY4OTQ1MzQwMDhjNGUyNjE5ODFmOA==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
NjA4ODg4NDAwMTk0MjZmNWZiZDhhNGVmNmYxM2U5MzEzZDA5N2M4MA==
|
7
|
+
!binary "U0hBNTEy":
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
YzZhYmMzMjI1MjU2ZGExMGY1MzhhOWJkNTI1ZGU1MGIxZTU2YzQ3OWZmMzY2
|
10
|
+
NjVjNGE4YWYzNGU5MGExZjNiOTNlY2I3NmQ5MDg4MGMxOTA5NTk1NDk5ODRi
|
11
|
+
YTQ5ZTE5MDE5M2ViYWQ4ZDg0NTkwYTRhNzJkYzZiM2VhNWMwYWU=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
ZThmMThiY2M5NmJkMDI1YmQxZmJlODVkMWYzYjVhYTIzMTNlN2VlYmNiZDg0
|
14
|
+
MzZjNTRlMDkxZWU2MDAyM2VmYzEwMGVlNjIwMDAyNGUzZGE3ODcxN2FiYTg0
|
15
|
+
MGY3M2IwMGNkOWYyYzVlZDNhOGI4NjRiZWU2MDQwNWU1NjBlNjU=
|
data/.gitignore
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# See http://help.github.com/ignore-files/ for more about ignoring files.
|
2
|
+
#
|
3
|
+
# If you find yourself ignoring temporary files generated by your text editor
|
4
|
+
# or operating system, you probably want to add a global ignore instead:
|
5
|
+
# git config --global core.excludesfile ~/.gitignore_global
|
6
|
+
|
7
|
+
# Ignore bundler config
|
8
|
+
/.bundle
|
9
|
+
|
10
|
+
# Ignore the build directory
|
11
|
+
/build
|
12
|
+
|
13
|
+
# Ignore Sass' cache
|
14
|
+
/.sass-cache
|
15
|
+
|
16
|
+
# Ignore .DS_store file
|
17
|
+
.DS_Store
|
data/Gemfile
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# If you have OpenSSL installed, we recommend updating
|
2
|
+
# the following line to use "https"
|
3
|
+
source 'http://rubygems.org'
|
4
|
+
|
5
|
+
gem "middleman", "~>3.2.0"
|
6
|
+
gem 'middleman-gh-pages'
|
7
|
+
gem 'erubis'
|
8
|
+
|
9
|
+
# Live-reloading plugin
|
10
|
+
gem "middleman-livereload", "~> 3.1.0"
|
11
|
+
|
12
|
+
# For faster file watcher updates on Windows:
|
13
|
+
gem "wdm", "~> 0.1.0", :platforms => [:mswin, :mingw]
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,103 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
activesupport (3.2.15)
|
5
|
+
i18n (~> 0.6, >= 0.6.4)
|
6
|
+
multi_json (~> 1.0)
|
7
|
+
chunky_png (1.2.9)
|
8
|
+
coffee-script (2.2.0)
|
9
|
+
coffee-script-source
|
10
|
+
execjs
|
11
|
+
coffee-script-source (1.6.3)
|
12
|
+
compass (0.12.2)
|
13
|
+
chunky_png (~> 1.2)
|
14
|
+
fssm (>= 0.2.7)
|
15
|
+
sass (~> 3.1)
|
16
|
+
em-websocket (0.5.0)
|
17
|
+
eventmachine (>= 0.12.9)
|
18
|
+
http_parser.rb (~> 0.5.3)
|
19
|
+
erubis (2.7.0)
|
20
|
+
eventmachine (1.0.3)
|
21
|
+
execjs (1.4.0)
|
22
|
+
multi_json (~> 1.0)
|
23
|
+
ffi (1.9.3)
|
24
|
+
fssm (0.2.10)
|
25
|
+
haml (4.0.4)
|
26
|
+
tilt
|
27
|
+
hike (1.2.3)
|
28
|
+
http_parser.rb (0.5.3)
|
29
|
+
i18n (0.6.5)
|
30
|
+
kramdown (1.2.0)
|
31
|
+
listen (1.3.1)
|
32
|
+
rb-fsevent (>= 0.9.3)
|
33
|
+
rb-inotify (>= 0.9)
|
34
|
+
rb-kqueue (>= 0.2)
|
35
|
+
middleman (3.2.0)
|
36
|
+
coffee-script (~> 2.2.0)
|
37
|
+
compass (>= 0.12.2)
|
38
|
+
execjs (~> 1.4.0)
|
39
|
+
haml (>= 3.1.6)
|
40
|
+
kramdown (~> 1.2)
|
41
|
+
middleman-core (= 3.2.0)
|
42
|
+
middleman-sprockets (>= 3.1.2)
|
43
|
+
sass (>= 3.1.20)
|
44
|
+
uglifier (~> 2.1.0)
|
45
|
+
middleman-core (3.2.0)
|
46
|
+
activesupport (~> 3.2.6)
|
47
|
+
bundler (~> 1.1)
|
48
|
+
i18n (~> 0.6.1)
|
49
|
+
listen (~> 1.1)
|
50
|
+
rack (>= 1.4.5)
|
51
|
+
rack-test (~> 0.6.1)
|
52
|
+
thor (>= 0.15.2, < 2.0)
|
53
|
+
tilt (~> 1.3.6)
|
54
|
+
middleman-gh-pages (0.0.2)
|
55
|
+
rake (> 0.9.3)
|
56
|
+
middleman-livereload (3.1.0)
|
57
|
+
em-websocket (>= 0.2.0)
|
58
|
+
middleman-core (>= 3.0.2)
|
59
|
+
multi_json (~> 1.0)
|
60
|
+
rack-livereload
|
61
|
+
middleman-sprockets (3.2.0)
|
62
|
+
middleman-core (~> 3.2)
|
63
|
+
sprockets (~> 2.1)
|
64
|
+
sprockets-helpers (~> 1.0.0)
|
65
|
+
sprockets-sass (~> 1.0.0)
|
66
|
+
multi_json (1.8.2)
|
67
|
+
rack (1.5.2)
|
68
|
+
rack-livereload (0.3.15)
|
69
|
+
rack
|
70
|
+
rack-test (0.6.2)
|
71
|
+
rack (>= 1.0)
|
72
|
+
rake (10.1.0)
|
73
|
+
rb-fsevent (0.9.3)
|
74
|
+
rb-inotify (0.9.2)
|
75
|
+
ffi (>= 0.5.0)
|
76
|
+
rb-kqueue (0.2.0)
|
77
|
+
ffi (>= 0.5.0)
|
78
|
+
sass (3.2.12)
|
79
|
+
sprockets (2.10.0)
|
80
|
+
hike (~> 1.2)
|
81
|
+
multi_json (~> 1.0)
|
82
|
+
rack (~> 1.0)
|
83
|
+
tilt (~> 1.1, != 1.3.0)
|
84
|
+
sprockets-helpers (1.0.1)
|
85
|
+
sprockets (~> 2.0)
|
86
|
+
sprockets-sass (1.0.2)
|
87
|
+
sprockets (~> 2.0)
|
88
|
+
tilt (~> 1.1)
|
89
|
+
thor (0.18.1)
|
90
|
+
tilt (1.3.7)
|
91
|
+
uglifier (2.1.2)
|
92
|
+
execjs (>= 0.3.0)
|
93
|
+
multi_json (~> 1.0, >= 1.0.2)
|
94
|
+
|
95
|
+
PLATFORMS
|
96
|
+
ruby
|
97
|
+
|
98
|
+
DEPENDENCIES
|
99
|
+
erubis
|
100
|
+
middleman (~> 3.2.0)
|
101
|
+
middleman-gh-pages
|
102
|
+
middleman-livereload (~> 3.1.0)
|
103
|
+
wdm (~> 0.1.0)
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2013 Joël Quenneville
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
Refills
|
2
|
+
-------
|
3
|
+
|
4
|
+
Copy-paste style components for any Bourbon/Neat/Bitters project.
|
5
|
+
|
6
|
+
See examples and get the code snippets [here](http://thoughtbot.github.io/refills/)
|
7
|
+
|
8
|
+
## Using with a Rails project
|
9
|
+
|
10
|
+
Add gem to your Gemfile
|
11
|
+
|
12
|
+
gem 'refills'
|
13
|
+
|
14
|
+
The gem provides the following Rails generators
|
15
|
+
|
16
|
+
* `rails generate refills:list`
|
17
|
+
Lists all the available snippets
|
18
|
+
|
19
|
+
* `rails generate refills:import SNIPPET`
|
20
|
+
Copies partials to `app/views/refills` and stylesheets to
|
21
|
+
`app/assets/stylesheets/refills`
|
22
|
+
|
23
|
+
|
24
|
+
## Other projects
|
25
|
+
|
26
|
+
You will need to copy-paste from the [website](http://thoughtbot.github.io/refills/)
|
data/Rakefile
ADDED
data/config.rb
ADDED
@@ -0,0 +1,101 @@
|
|
1
|
+
require 'erubis'
|
2
|
+
###
|
3
|
+
# Compass
|
4
|
+
###
|
5
|
+
|
6
|
+
# Change Compass configuration
|
7
|
+
# compass_config do |config|
|
8
|
+
# config.output_style = :compact
|
9
|
+
# end
|
10
|
+
|
11
|
+
###
|
12
|
+
# Page options, layouts, aliases and proxies
|
13
|
+
###
|
14
|
+
|
15
|
+
# Per-page layout changes:
|
16
|
+
#
|
17
|
+
# With no layout
|
18
|
+
# page "/path/to/file.html", :layout => false
|
19
|
+
#
|
20
|
+
# With alternative layout
|
21
|
+
# page "/path/to/file.html", :layout => :otherlayout
|
22
|
+
#
|
23
|
+
# A path which all have the same layout
|
24
|
+
# with_layout :admin do
|
25
|
+
# page "/admin/*"
|
26
|
+
# end
|
27
|
+
|
28
|
+
# Proxy pages (http://middlemanapp.com/dynamic-pages/)
|
29
|
+
# proxy "/this-page-has-no-template.html", "/template-file.html", :locals => {
|
30
|
+
# :which_fake_page => "Rendering a fake page with a local variable" }
|
31
|
+
|
32
|
+
###
|
33
|
+
# Helpers
|
34
|
+
###
|
35
|
+
|
36
|
+
# Automatic image dimensions on image_tag helper
|
37
|
+
# activate :automatic_image_sizes
|
38
|
+
|
39
|
+
# Reload the browser automatically whenever files change
|
40
|
+
# activate :livereload
|
41
|
+
|
42
|
+
# Methods defined in the helpers block are available in templates
|
43
|
+
# helpers do
|
44
|
+
# def some_helper
|
45
|
+
# "Helping"
|
46
|
+
# end
|
47
|
+
# end
|
48
|
+
|
49
|
+
activate :directory_indexes
|
50
|
+
|
51
|
+
# set :build_dir, "tmp"
|
52
|
+
|
53
|
+
set :css_dir, 'stylesheets'
|
54
|
+
|
55
|
+
set :js_dir, 'javascripts'
|
56
|
+
|
57
|
+
set :images_dir, 'images'
|
58
|
+
|
59
|
+
helpers do
|
60
|
+
def snippet(snippet_name)
|
61
|
+
partial 'snippet', locals: { snippet: snippet_name }
|
62
|
+
end
|
63
|
+
|
64
|
+
def html_snippet(partial_name)
|
65
|
+
partial 'html_snippet', locals: { snippet: partial_name }
|
66
|
+
end
|
67
|
+
|
68
|
+
def stylesheet_snippet(snippet)
|
69
|
+
source_dir = File.expand_path('../source', __FILE__)
|
70
|
+
snippet_filename = "_#{snippet}.scss"
|
71
|
+
snippet_path = File.join(source_dir, 'stylesheets', 'refills', snippet_filename)
|
72
|
+
partial 'stylesheet_snippet', locals: { file_path: snippet_path }
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
ready do
|
77
|
+
sprockets.append_path 'vendor/stylesheets'
|
78
|
+
sprockets.append_path 'vendor/javascripts'
|
79
|
+
end
|
80
|
+
|
81
|
+
# Build-specific configuration
|
82
|
+
configure :build do
|
83
|
+
|
84
|
+
activate :relative_assets
|
85
|
+
set :relative_links, true
|
86
|
+
|
87
|
+
# For example, change the Compass output style for deployment
|
88
|
+
# activate :minify_css
|
89
|
+
|
90
|
+
# Minify Javascript on build
|
91
|
+
# activate :minify_javascript
|
92
|
+
|
93
|
+
# Enable cache buster
|
94
|
+
# activate :asset_hash
|
95
|
+
|
96
|
+
# Use relative URLs
|
97
|
+
# activate :relative_assets
|
98
|
+
|
99
|
+
# Or use a different image path
|
100
|
+
# set :http_prefix, "/Content/images/"
|
101
|
+
end
|
data/lib/refills.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
module Refills
|
2
|
+
class ImportGenerator < Rails::Generators::Base
|
3
|
+
desc 'Copy refills'
|
4
|
+
source_root File.expand_path("../../../source", __FILE__)
|
5
|
+
argument :snippet, type: :string, required: true
|
6
|
+
|
7
|
+
def copy_html
|
8
|
+
copy_file "_#{snippet}.html.erb", "app/views/refills/_#{snippet}.html.erb"
|
9
|
+
end
|
10
|
+
|
11
|
+
def copy_styles
|
12
|
+
copy_file "stylesheets/refills/_#{snippet}.scss", "app/assets/stylesheets/refills/_#{snippet}.scss"
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
module Refills
|
2
|
+
class ListGenerator < Rails::Generators::Base
|
3
|
+
desc 'List refills'
|
4
|
+
|
5
|
+
def list
|
6
|
+
puts 'Available Refills'
|
7
|
+
puts '================='
|
8
|
+
stylesheets.each do |file_name|
|
9
|
+
puts '- ' + file_name.gsub(/_|\.scss/, '')
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
private
|
14
|
+
def stylesheets
|
15
|
+
refills_dir = File.expand_path('../../../source/stylesheets/refills', __FILE__)
|
16
|
+
stylesheets = Dir.entries(refills_dir)
|
17
|
+
stylesheets.reject {|f| f == '.' || f == '..' }
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
data/refills.gemspec
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'refills/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "refills"
|
8
|
+
spec.version = Refills::VERSION
|
9
|
+
spec.authors = ["Joël Quenneville", "Magnus Gyllensward", "Christian Reuter", "Lisa Sy", "Paul Smith"]
|
10
|
+
spec.email = ["magnus@thoughtbot.com"]
|
11
|
+
spec.description = %q{Refills}
|
12
|
+
spec.summary = %q{Refills}
|
13
|
+
spec.homepage = ""
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split($/)
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.3"
|
22
|
+
spec.add_development_dependency "rake"
|
23
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
<ul class="accordion-tabs">
|
2
|
+
<li><a href="#" class="active">Item 1</a>
|
3
|
+
<section>
|
4
|
+
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras tincidunt pellentesque lorem, id suscipit dolor rutrum id. Morbi facilisis porta volutpat. Fusce adipiscing, mauris quis congue tincidunt, sapien purus suscipit odio, quis dictum odio tortor in sem. Ut sit amet libero nec orci mattis fringilla. Praesent eu ipsum in sapien tincidunt molestie sed ut magna. Nam accumsan dui at orci rhoncus pharetra tincidunt elit ullamcorper. Sed ac mauris ipsum. Nullam imperdiet sapien id purus pretium id aliquam mi ullamcorper.</p>
|
5
|
+
</section>
|
6
|
+
</li>
|
7
|
+
<li><a href="#">Item 2</a>
|
8
|
+
<section>
|
9
|
+
<p>Ut laoreet augue et neque pretium non sagittis nibh pulvinar. Etiam ornare tincidunt orci quis ultrices. Pellentesque ac sapien ac purus gravida ullamcorper. Duis rhoncus sodales lacus, vitae adipiscing tellus pharetra sed. Praesent bibendum lacus quis metus condimentum ac accumsan orci vulputate. Aenean fringilla massa vitae metus facilisis congue. Morbi placerat eros ac sapien semper pulvinar. Vestibulum facilisis, ligula a molestie venenatis, metus justo ullamcorper ipsum, congue aliquet dolor tortor eu neque. Sed imperdiet, nibh ut vestibulum tempor, nibh dui volutpat lacus, vel gravida magna justo sit amet quam. Quisque tincidunt ligula at nisl imperdiet sagittis. Morbi rutrum tempor arcu, non ultrices sem semper a. Aliquam quis sem mi.</p>
|
10
|
+
</section>
|
11
|
+
</li>
|
12
|
+
<li><a href="#">Item 3</a>
|
13
|
+
<section>
|
14
|
+
<p>Donec mattis mauris gravida metus laoreet non rutrum sem viverra. Aenean nibh libero, viverra vel vestibulum in, porttitor ut sapien. Phasellus tempor lorem id justo ornare tincidunt. Nulla faucibus, purus eu placerat fermentum, velit mi iaculis nunc, bibendum tincidunt ipsum justo eu mauris. Nulla facilisi. Vestibulum vel lectus ac purus tempus suscipit nec sit amet eros. Nullam fringilla, enim eu lobortis dapibus, quam magna tincidunt nibh, sit amet imperdiet dolor justo congue turpis.</p>
|
15
|
+
</section>
|
16
|
+
</li>
|
17
|
+
<li><a href="#">Item 4</a>
|
18
|
+
<section>
|
19
|
+
<p>Sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Phasellus dui urna, mollis vel suscipit in, pharetra at ligula. Pellentesque a est vel est fermentum pellentesque sed sit amet dolor. Nunc in dapibus nibh. Aliquam erat volutpat. Phasellus vel dui sed nibh iaculis convallis id sit amet urna. Proin nec tellus quis justo consequat accumsan. Vivamus turpis enim, auctor eget placerat eget, aliquam ut sapien.</p
|
20
|
+
</section>
|
21
|
+
</li>
|
22
|
+
</ul>
|
23
|
+
|
24
|
+
<script>
|
25
|
+
$(document).ready(function () {
|
26
|
+
|
27
|
+
$('.accordion-tabs').children('li').first().children('a').addClass('active')
|
28
|
+
.next().addClass('is-open').show();
|
29
|
+
|
30
|
+
$('.accordion-tabs').on('click', 'li > a', function() {
|
31
|
+
|
32
|
+
if (!$(this).hasClass('active')) {
|
33
|
+
|
34
|
+
event.preventDefault()
|
35
|
+
|
36
|
+
$('.accordion-tabs .is-open').removeClass('is-open').hide();
|
37
|
+
$(this).next().toggleClass('is-open').toggle();
|
38
|
+
|
39
|
+
$('.accordion-tabs').find('.active').removeClass('active');
|
40
|
+
$(this).addClass('active');
|
41
|
+
}
|
42
|
+
|
43
|
+
else {
|
44
|
+
event.preventDefault()
|
45
|
+
}
|
46
|
+
});
|
47
|
+
});
|
48
|
+
</script>
|
@@ -0,0 +1,33 @@
|
|
1
|
+
<ul class="accordion-menus">
|
2
|
+
<li>
|
3
|
+
<a href="#" class="js-accordion-trigger">Item 1</a>
|
4
|
+
<ul class="submenu">
|
5
|
+
<li>
|
6
|
+
<a href="">Sub Item 1</a>
|
7
|
+
</li>
|
8
|
+
<li>
|
9
|
+
<a href="">Sub Item 2</a>
|
10
|
+
</li>
|
11
|
+
</ul>
|
12
|
+
</li>
|
13
|
+
<li>
|
14
|
+
<a href="#" class="js-accordion-trigger">Item 2</a>
|
15
|
+
<ul class="submenu">
|
16
|
+
<li>
|
17
|
+
<a href="">Sub Item 1</a>
|
18
|
+
</li>
|
19
|
+
<li>
|
20
|
+
<a href="">Sub Item 2</a>
|
21
|
+
</li>
|
22
|
+
</ul>
|
23
|
+
</li>
|
24
|
+
</ul>
|
25
|
+
|
26
|
+
<script>
|
27
|
+
jQuery('.js-accordion-trigger') // find the trigger
|
28
|
+
.bind('click focus', function(){
|
29
|
+
jQuery(this).parent().find('ul').slideToggle('fast'); // apply the toggle to the ul
|
30
|
+
jQuery(this).parent().toggleClass('is-expanded');
|
31
|
+
event.preventDefault();
|
32
|
+
});
|
33
|
+
</script>
|