breezeblocks 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +8 -0
- data/.ruby-version +1 -0
- data/Gemfile +11 -0
- data/README.md +55 -0
- data/Rakefile +22 -0
- data/bin/deploy +12 -0
- data/bin/setup +13 -0
- data/breezeblocks.gemspec +22 -0
- data/config.rb +24 -0
- data/lib/breezeblocks.rb +2 -0
- data/lib/breezeblocks/import_generator.rb +80 -0
- data/lib/breezeblocks/list_generator.rb +22 -0
- data/lib/breezeblocks/version.rb +3 -0
- data/lib/snippet_helpers.rb +89 -0
- data/source/_accordion.html.haml +15 -0
- data/source/_accordion_tabs.html.haml +17 -0
- data/source/_accordion_tabs_minimal.html.haml +17 -0
- data/source/_animate.html.haml +3 -0
- data/source/_animate_info.html.haml +7 -0
- data/source/_badges.html.haml +6 -0
- data/source/_breadcrumbs.html.haml +6 -0
- data/source/_button_group.html.haml +13 -0
- data/source/_cards.html.haml +23 -0
- data/source/_centered_navigation.html.haml +42 -0
- data/source/_code.html.haml +6 -0
- data/source/_comment.html.haml +14 -0
- data/source/_device.html.haml +7 -0
- data/source/_dropdown.html.haml +9 -0
- data/source/_expander.html.haml +4 -0
- data/source/_fade_in.html.haml +10 -0
- data/source/_flashes.html.haml +16 -0
- data/source/_flex_boxes.html.haml +25 -0
- data/source/_footer.html.haml +31 -0
- data/source/_footer_2.html.haml +30 -0
- data/source/_grid_items.html.haml +29 -0
- data/source/_grid_items_lines.html.haml +35 -0
- data/source/_hero.html.haml +8 -0
- data/source/_hover_tile_animation.html.haml +6 -0
- data/source/_icon_bullet_points.html.haml +19 -0
- data/source/_image_gradient_dynamic.html.haml +5 -0
- data/source/_maps.html.haml +70 -0
- data/source/_modal.html.haml +10 -0
- data/source/_navigation.html.haml +42 -0
- data/source/_pagination.html.haml +22 -0
- data/source/_parallax.html.haml +4 -0
- data/source/_progress_bar.html.haml +2 -0
- data/source/_progress_bar_indication.html.haml +3 -0
- data/source/_ribbon.html.haml +3 -0
- data/source/_scroll_on_page.html.haml +17 -0
- data/source/_search_bar.html.haml +4 -0
- data/source/_search_tools.html.haml +39 -0
- data/source/_side_image.html.haml +9 -0
- data/source/_sliding_menu.html.haml +11 -0
- data/source/_snippet.html.haml +11 -0
- data/source/_stats.html.haml +14 -0
- data/source/_switch.html.haml +3 -0
- data/source/_tables.html.haml +31 -0
- data/source/_tables_minimal.html.haml +31 -0
- data/source/_texture-legend.html.haml +20 -0
- data/source/_textures.html.haml +3 -0
- data/source/_tooltip.html.haml +4 -0
- data/source/_type_system_geometric.html.haml +30 -0
- data/source/_type_system_rounded.html.haml +30 -0
- data/source/_type_system_sans.html.haml +30 -0
- data/source/_type_system_serif.html.haml +31 -0
- data/source/_type_system_slab.html.haml +30 -0
- data/source/_type_system_traditional.html.haml +30 -0
- data/source/_vertical_tabs.html.haml +19 -0
- data/source/_video.html.haml +3 -0
- data/source/components.html.haml +162 -0
- data/source/images/EmeraldLake.jpg +0 -0
- data/source/images/ZeroClipboard.swf +0 -0
- data/source/images/bourbon-nav/bitters.png +0 -0
- data/source/images/bourbon-nav/bitters@2x.png +0 -0
- data/source/images/bourbon-nav/bourbon.png +0 -0
- data/source/images/bourbon-nav/bourbon@2x.png +0 -0
- data/source/images/bourbon-nav/neat.png +0 -0
- data/source/images/bourbon-nav/neat@2x.png +0 -0
- data/source/images/bourbon-nav/refills.png +0 -0
- data/source/images/bourbon-nav/refills@2x.png +0 -0
- data/source/images/cat.png +0 -0
- data/source/images/cosmin_capitanu_screen.jpg +0 -0
- data/source/images/facebook-logo-circle-dark.png +0 -0
- data/source/images/facebook-logo-circle.png +0 -0
- data/source/images/indesign-logo-circle.png +0 -0
- data/source/images/lake-transparent.png +0 -0
- data/source/images/menu-white.png +0 -0
- data/source/images/menu.png +0 -0
- data/source/images/mountain-thin.png +0 -0
- data/source/images/mountains-2.png +0 -0
- data/source/images/mountains-3.png +0 -0
- data/source/images/mountains-4.png +0 -0
- data/source/images/mountains.png +0 -0
- data/source/images/placeholder_logo_1.png +0 -0
- data/source/images/placeholder_logo_1_dark.png +0 -0
- data/source/images/placeholder_logo_2.png +0 -0
- data/source/images/placeholder_logo_2_dark.png +0 -0
- data/source/images/placeholder_logo_3.png +0 -0
- data/source/images/placeholder_logo_3_dark.png +0 -0
- data/source/images/placeholder_logo_4.png +0 -0
- data/source/images/placeholder_logo_4_dark.png +0 -0
- data/source/images/ralph-gray.png +0 -0
- data/source/images/ralph.png +0 -0
- data/source/images/refills-logo.svg +18 -0
- data/source/images/refills-screenshot1.png +0 -0
- data/source/images/refills-screenshot2.jpg +0 -0
- data/source/images/refills-screenshot3.png +0 -0
- data/source/images/search-icon-black.png +0 -0
- data/source/images/search-icon.png +0 -0
- data/source/images/sliding-menu.png +0 -0
- data/source/images/textures/45degreee_fabric.png +0 -0
- data/source/images/textures/45degreee_fabric_@2X.png +0 -0
- data/source/images/textures/absurdidad.png +0 -0
- data/source/images/textures/absurdidad_@2X.png +0 -0
- data/source/images/textures/az_subtle.png +0 -0
- data/source/images/textures/az_subtle_@2X.png +0 -0
- data/source/images/textures/bgnoise_lg.png +0 -0
- data/source/images/textures/bgnoise_lg_@2X.png +0 -0
- data/source/images/textures/binding_light.png +0 -0
- data/source/images/textures/binding_light@2x.png +0 -0
- data/source/images/textures/brillant.png +0 -0
- data/source/images/textures/brillant_@2X.png +0 -0
- data/source/images/textures/brushed.png +0 -0
- data/source/images/textures/brushed_@2X.png +0 -0
- data/source/images/textures/brushed_alu.png +0 -0
- data/source/images/textures/brushed_alu_@2X.png +0 -0
- data/source/images/textures/chruch.png +0 -0
- data/source/images/textures/chruch_@2X.png +0 -0
- data/source/images/textures/circles.png +0 -0
- data/source/images/textures/circles_@2X.png +0 -0
- data/source/images/textures/concrete_wall_2.png +0 -0
- data/source/images/textures/concrete_wall_2_@2X.png +0 -0
- data/source/images/textures/concrete_wall_3.png +0 -0
- data/source/images/textures/concrete_wall_3_@2X.png +0 -0
- data/source/images/textures/corrugation.png +0 -0
- data/source/images/textures/corrugation_@2X.png +0 -0
- data/source/images/textures/cream_pixels.png +0 -0
- data/source/images/textures/cream_pixels@2x.png +0 -0
- data/source/images/textures/cross_scratches.png +0 -0
- data/source/images/textures/cross_scratches_@2X.png +0 -0
- data/source/images/textures/crosses.png +0 -0
- data/source/images/textures/crosses_@2X.png +0 -0
- data/source/images/textures/debut_light.png +0 -0
- data/source/images/textures/debut_light_@2X.png +0 -0
- data/source/images/textures/diagonal-noise.png +0 -0
- data/source/images/textures/diagonal-noise_@2X.png +0 -0
- data/source/images/textures/diagonal_waves.png +0 -0
- data/source/images/textures/diagonal_waves_@2X.png +0 -0
- data/source/images/textures/double_lined.png +0 -0
- data/source/images/textures/double_lined_@2X.png +0 -0
- data/source/images/textures/dust.png +0 -0
- data/source/images/textures/dust@2x.png +0 -0
- data/source/images/textures/dust_@2X.png +0 -0
- data/source/images/textures/fabric_plaid.png +0 -0
- data/source/images/textures/fabric_plaid_@2X.png +0 -0
- data/source/images/textures/fancy_deboss.png +0 -0
- data/source/images/textures/fancy_deboss_@2X.png +0 -0
- data/source/images/textures/farmer.png +0 -0
- data/source/images/textures/farmer_@2X.png +0 -0
- data/source/images/textures/first_aid_kit.png +0 -0
- data/source/images/textures/first_aid_kit_@2X.png +0 -0
- data/source/images/textures/graphy.png +0 -0
- data/source/images/textures/graphy_@2X.png +0 -0
- data/source/images/textures/grey.png +0 -0
- data/source/images/textures/grey_@2X.png +0 -0
- data/source/images/textures/grid.png +0 -0
- data/source/images/textures/grid_@2X.png +0 -0
- data/source/images/textures/grid_noise.png +0 -0
- data/source/images/textures/grid_noise_@2X.png +0 -0
- data/source/images/textures/gridme.png +0 -0
- data/source/images/textures/gridme_@2X.png +0 -0
- data/source/images/textures/grilled.png +0 -0
- data/source/images/textures/grilled_@2X.png +0 -0
- data/source/images/textures/groovepaper.png +0 -0
- data/source/images/textures/groovepaper_@2X.png +0 -0
- data/source/images/textures/honey_im_subtle.png +0 -0
- data/source/images/textures/honey_im_subtle_@2X.png +0 -0
- data/source/images/textures/husk.png +0 -0
- data/source/images/textures/husk_@2X.png +0 -0
- data/source/images/textures/inverted/45degreee_fabric.png +0 -0
- data/source/images/textures/inverted/45degreee_fabric_@2X.png +0 -0
- data/source/images/textures/inverted/absurdidad.png +0 -0
- data/source/images/textures/inverted/absurdidad_@2X.png +0 -0
- data/source/images/textures/inverted/az_subtle.png +0 -0
- data/source/images/textures/inverted/az_subtle_@2X.png +0 -0
- data/source/images/textures/inverted/bgnoise_lg.png +0 -0
- data/source/images/textures/inverted/bgnoise_lg_@2X.png +0 -0
- data/source/images/textures/inverted/binding_light.png +0 -0
- data/source/images/textures/inverted/binding_light@2x.png +0 -0
- data/source/images/textures/inverted/brillant.png +0 -0
- data/source/images/textures/inverted/brillant_@2X.png +0 -0
- data/source/images/textures/inverted/brushed.png +0 -0
- data/source/images/textures/inverted/brushed_@2X.png +0 -0
- data/source/images/textures/inverted/brushed_alu.png +0 -0
- data/source/images/textures/inverted/brushed_alu_@2X.png +0 -0
- data/source/images/textures/inverted/chruch.png +0 -0
- data/source/images/textures/inverted/chruch_@2X.png +0 -0
- data/source/images/textures/inverted/circles.png +0 -0
- data/source/images/textures/inverted/circles_@2X.png +0 -0
- data/source/images/textures/inverted/concrete_wall_2.png +0 -0
- data/source/images/textures/inverted/concrete_wall_2_@2X.png +0 -0
- data/source/images/textures/inverted/concrete_wall_3.png +0 -0
- data/source/images/textures/inverted/concrete_wall_3_@2X.png +0 -0
- data/source/images/textures/inverted/corrugation.png +0 -0
- data/source/images/textures/inverted/corrugation_@2X.png +0 -0
- data/source/images/textures/inverted/cream_pixels.png +0 -0
- data/source/images/textures/inverted/cream_pixels@2x.png +0 -0
- data/source/images/textures/inverted/cross_scratches.png +0 -0
- data/source/images/textures/inverted/cross_scratches_@2X.png +0 -0
- data/source/images/textures/inverted/crosses.png +0 -0
- data/source/images/textures/inverted/crosses_@2X.png +0 -0
- data/source/images/textures/inverted/debut_light.png +0 -0
- data/source/images/textures/inverted/debut_light_@2X.png +0 -0
- data/source/images/textures/inverted/diagonal-noise.png +0 -0
- data/source/images/textures/inverted/diagonal-noise_@2X.png +0 -0
- data/source/images/textures/inverted/diagonal_waves.png +0 -0
- data/source/images/textures/inverted/diagonal_waves_@2X.png +0 -0
- data/source/images/textures/inverted/double_lined.png +0 -0
- data/source/images/textures/inverted/double_lined_@2X.png +0 -0
- data/source/images/textures/inverted/dust.png +0 -0
- data/source/images/textures/inverted/dust@2x.png +0 -0
- data/source/images/textures/inverted/dust_@2X.png +0 -0
- data/source/images/textures/inverted/fabric_plaid.png +0 -0
- data/source/images/textures/inverted/fabric_plaid_@2X.png +0 -0
- data/source/images/textures/inverted/fancy_deboss.png +0 -0
- data/source/images/textures/inverted/fancy_deboss_@2X.png +0 -0
- data/source/images/textures/inverted/farmer.png +0 -0
- data/source/images/textures/inverted/farmer_@2X.png +0 -0
- data/source/images/textures/inverted/first_aid_kit.png +0 -0
- data/source/images/textures/inverted/first_aid_kit_@2X.png +0 -0
- data/source/images/textures/inverted/graphy.png +0 -0
- data/source/images/textures/inverted/graphy_@2X.png +0 -0
- data/source/images/textures/inverted/grey.png +0 -0
- data/source/images/textures/inverted/grey_@2X.png +0 -0
- data/source/images/textures/inverted/grid.png +0 -0
- data/source/images/textures/inverted/grid_@2X.png +0 -0
- data/source/images/textures/inverted/grid_noise.png +0 -0
- data/source/images/textures/inverted/grid_noise_@2X.png +0 -0
- data/source/images/textures/inverted/gridme.png +0 -0
- data/source/images/textures/inverted/gridme_@2X.png +0 -0
- data/source/images/textures/inverted/grilled.png +0 -0
- data/source/images/textures/inverted/grilled_@2X.png +0 -0
- data/source/images/textures/inverted/groovepaper.png +0 -0
- data/source/images/textures/inverted/groovepaper_@2X.png +0 -0
- data/source/images/textures/inverted/honey_im_subtle.png +0 -0
- data/source/images/textures/inverted/honey_im_subtle_@2X.png +0 -0
- data/source/images/textures/inverted/husk.png +0 -0
- data/source/images/textures/inverted/husk_@2X.png +0 -0
- data/source/images/textures/inverted/kindajean.png +0 -0
- data/source/images/textures/inverted/kindajean_@2X.png +0 -0
- data/source/images/textures/inverted/lghtmesh.png +0 -0
- data/source/images/textures/inverted/lghtmesh_@2X.png +0 -0
- data/source/images/textures/inverted/light_alu.png +0 -0
- data/source/images/textures/inverted/light_alu_@2X.png +0 -0
- data/source/images/textures/inverted/light_noise_diagonal.png +0 -0
- data/source/images/textures/inverted/light_noise_diagonal_@2X.png +0 -0
- data/source/images/textures/inverted/lil_fiber.png +0 -0
- data/source/images/textures/inverted/lil_fiber_@2X.png +0 -0
- data/source/images/textures/inverted/line_diagonal1.png +0 -0
- data/source/images/textures/inverted/line_diagonal2.png +0 -0
- data/source/images/textures/inverted/line_horizontal1.png +0 -0
- data/source/images/textures/inverted/line_horizontal2.png +0 -0
- data/source/images/textures/inverted/linen.png +0 -0
- data/source/images/textures/inverted/linen_@2X.png +0 -0
- data/source/images/textures/inverted/little_pluses.png +0 -0
- data/source/images/textures/inverted/little_pluses_@2X.png +0 -0
- data/source/images/textures/inverted/mooning.png +0 -0
- data/source/images/textures/inverted/mooning@2x.png +0 -0
- data/source/images/textures/inverted/noise_lines.png +0 -0
- data/source/images/textures/inverted/noise_lines_@2X.png +0 -0
- data/source/images/textures/inverted/noise_pattern_with_crosslines.png +0 -0
- data/source/images/textures/inverted/noise_pattern_with_crosslines_@2X.png +0 -0
- data/source/images/textures/inverted/noisy.png +0 -0
- data/source/images/textures/inverted/noisy_@2X.png +0 -0
- data/source/images/textures/inverted/noisy_grid.png +0 -0
- data/source/images/textures/inverted/noisy_grid_@2X.png +0 -0
- data/source/images/textures/inverted/noisy_grid_simple.png +0 -0
- data/source/images/textures/inverted/old_mathematics.png +0 -0
- data/source/images/textures/inverted/old_mathematics_@2X.png +0 -0
- data/source/images/textures/inverted/old_wall.png +0 -0
- data/source/images/textures/inverted/old_wall_@2X.png +0 -0
- data/source/images/textures/inverted/p5.png +0 -0
- data/source/images/textures/inverted/p5_@2X.png +0 -0
- data/source/images/textures/inverted/paper.png +0 -0
- data/source/images/textures/inverted/paper_@2X.png +0 -0
- data/source/images/textures/inverted/pinstripe.png +0 -0
- data/source/images/textures/inverted/pinstripe_@2X.png +0 -0
- data/source/images/textures/inverted/ps_neutral.png +0 -0
- data/source/images/textures/inverted/ps_neutral_@2X.png +0 -0
- data/source/images/textures/inverted/pw_maze_white.png +0 -0
- data/source/images/textures/inverted/pw_maze_white_@2X.png +0 -0
- data/source/images/textures/inverted/pw_pattern.png +0 -0
- data/source/images/textures/inverted/pw_pattern_@2X.png +0 -0
- data/source/images/textures/inverted/retina_dust.png +0 -0
- data/source/images/textures/inverted/retina_dust_@2X.png +0 -0
- data/source/images/textures/inverted/rice_paper.png +0 -0
- data/source/images/textures/inverted/rice_paper@2x.png +0 -0
- data/source/images/textures/inverted/rough_diagonal.png +0 -0
- data/source/images/textures/inverted/rough_diagonal_@2X.png +0 -0
- data/source/images/textures/inverted/shinedotted.png +0 -0
- data/source/images/textures/inverted/shinedotted_@2X.png +0 -0
- data/source/images/textures/inverted/skin_side_up.png +0 -0
- data/source/images/textures/inverted/skin_side_up_@2X.png +0 -0
- data/source/images/textures/inverted/squairy_light.png +0 -0
- data/source/images/textures/inverted/squairy_light_@2X.png +0 -0
- data/source/images/textures/inverted/stacked_circles.png +0 -0
- data/source/images/textures/inverted/stacked_circles_@2X.png +0 -0
- data/source/images/textures/inverted/striped_lens.png +0 -0
- data/source/images/textures/inverted/striped_lens_@2X.png +0 -0
- data/source/images/textures/inverted/struckaxiom.png +0 -0
- data/source/images/textures/inverted/struckaxiom_@2X.png +0 -0
- data/source/images/textures/inverted/stucco.png +0 -0
- data/source/images/textures/inverted/stucco_@2X.png +0 -0
- data/source/images/textures/inverted/subtle_dots.png +0 -0
- data/source/images/textures/inverted/subtle_dots_@2X.png +0 -0
- data/source/images/textures/inverted/subtle_freckles.png +0 -0
- data/source/images/textures/inverted/subtle_freckles_@2X.png +0 -0
- data/source/images/textures/inverted/subtle_grunge.png +0 -0
- data/source/images/textures/inverted/subtle_grunge_@2X.png +0 -0
- data/source/images/textures/inverted/subtle_surface.png +0 -0
- data/source/images/textures/inverted/subtle_surface_@2X.png +0 -0
- data/source/images/textures/inverted/subtle_zebra_3d.png +0 -0
- data/source/images/textures/inverted/subtle_zebra_3d_@2X.png +0 -0
- data/source/images/textures/inverted/subtlenet2.png +0 -0
- data/source/images/textures/inverted/subtlenet2_@2X.png +0 -0
- data/source/images/textures/inverted/tex2res5.png +0 -0
- data/source/images/textures/inverted/tex2res5_@2X.png +0 -0
- data/source/images/textures/inverted/texturetastic_gray.png +0 -0
- data/source/images/textures/inverted/texturetastic_gray_@2X.png +0 -0
- data/source/images/textures/inverted/tiny_grid.png +0 -0
- data/source/images/textures/inverted/tiny_grid_@2X.png +0 -0
- data/source/images/textures/inverted/vichy.png +0 -0
- data/source/images/textures/inverted/vichy_@2X.png +0 -0
- data/source/images/textures/inverted/vintage_speckles.png +0 -0
- data/source/images/textures/inverted/vintage_speckles_@2X.png +0 -0
- data/source/images/textures/inverted/wavecut.png +0 -0
- data/source/images/textures/inverted/wavecut_@2X.png +0 -0
- data/source/images/textures/inverted/wavegrid.png +0 -0
- data/source/images/textures/inverted/wavegrid_@2X.png +0 -0
- data/source/images/textures/inverted/white_carbon.png +0 -0
- data/source/images/textures/inverted/white_carbon_@2X.png +0 -0
- data/source/images/textures/inverted/white_texture.png +0 -0
- data/source/images/textures/inverted/white_texture_@2X.png +0 -0
- data/source/images/textures/inverted/white_wave.png +0 -0
- data/source/images/textures/inverted/white_wave_@2X.png +0 -0
- data/source/images/textures/inverted/whitey.png +0 -0
- data/source/images/textures/inverted/whitey_@2X.png +0 -0
- data/source/images/textures/inverted/worn_dots.png +0 -0
- data/source/images/textures/inverted/worn_dots_@2X.png +0 -0
- data/source/images/textures/kindajean.png +0 -0
- data/source/images/textures/kindajean_@2X.png +0 -0
- data/source/images/textures/lghtmesh.png +0 -0
- data/source/images/textures/lghtmesh_@2X.png +0 -0
- data/source/images/textures/light_alu.png +0 -0
- data/source/images/textures/light_alu_@2X.png +0 -0
- data/source/images/textures/light_noise_diagonal.png +0 -0
- data/source/images/textures/light_noise_diagonal_@2X.png +0 -0
- data/source/images/textures/lil_fiber.png +0 -0
- data/source/images/textures/lil_fiber_@2X.png +0 -0
- data/source/images/textures/line_diagonal1.png +0 -0
- data/source/images/textures/line_diagonal2.png +0 -0
- data/source/images/textures/line_horizontal1.png +0 -0
- data/source/images/textures/line_horizontal2.png +0 -0
- data/source/images/textures/linen.png +0 -0
- data/source/images/textures/linen_@2X.png +0 -0
- data/source/images/textures/little_pluses.png +0 -0
- data/source/images/textures/little_pluses_@2X.png +0 -0
- data/source/images/textures/mooning.png +0 -0
- data/source/images/textures/mooning@2x.png +0 -0
- data/source/images/textures/noise_lines.png +0 -0
- data/source/images/textures/noise_lines_@2X.png +0 -0
- data/source/images/textures/noise_pattern_with_crosslines.png +0 -0
- data/source/images/textures/noise_pattern_with_crosslines_@2X.png +0 -0
- data/source/images/textures/noisy.png +0 -0
- data/source/images/textures/noisy_@2X.png +0 -0
- data/source/images/textures/noisy_grid.png +0 -0
- data/source/images/textures/noisy_grid_@2X.png +0 -0
- data/source/images/textures/noisy_grid_simple.png +0 -0
- data/source/images/textures/old_mathematics.png +0 -0
- data/source/images/textures/old_mathematics_@2X.png +0 -0
- data/source/images/textures/old_wall.png +0 -0
- data/source/images/textures/old_wall_@2X.png +0 -0
- data/source/images/textures/p5.png +0 -0
- data/source/images/textures/p5_@2X.png +0 -0
- data/source/images/textures/paper.png +0 -0
- data/source/images/textures/paper_@2X.png +0 -0
- data/source/images/textures/pinstripe.png +0 -0
- data/source/images/textures/pinstripe_@2X.png +0 -0
- data/source/images/textures/ps_neutral.png +0 -0
- data/source/images/textures/ps_neutral_@2X.png +0 -0
- data/source/images/textures/pw_maze_white.png +0 -0
- data/source/images/textures/pw_maze_white_@2X.png +0 -0
- data/source/images/textures/pw_pattern.png +0 -0
- data/source/images/textures/pw_pattern_@2X.png +0 -0
- data/source/images/textures/retina_dust.png +0 -0
- data/source/images/textures/retina_dust_@2X.png +0 -0
- data/source/images/textures/rice_paper.png +0 -0
- data/source/images/textures/rice_paper@2x.png +0 -0
- data/source/images/textures/rough_diagonal.png +0 -0
- data/source/images/textures/rough_diagonal_@2X.png +0 -0
- data/source/images/textures/shinedotted.png +0 -0
- data/source/images/textures/shinedotted_@2X.png +0 -0
- data/source/images/textures/skin_side_up.png +0 -0
- data/source/images/textures/skin_side_up_@2X.png +0 -0
- data/source/images/textures/squairy_light.png +0 -0
- data/source/images/textures/squairy_light_@2X.png +0 -0
- data/source/images/textures/stacked_circles.png +0 -0
- data/source/images/textures/stacked_circles_@2X.png +0 -0
- data/source/images/textures/striped_lens.png +0 -0
- data/source/images/textures/striped_lens_@2X.png +0 -0
- data/source/images/textures/struckaxiom.png +0 -0
- data/source/images/textures/struckaxiom_@2X.png +0 -0
- data/source/images/textures/stucco.png +0 -0
- data/source/images/textures/stucco_@2X.png +0 -0
- data/source/images/textures/subtle_dots.png +0 -0
- data/source/images/textures/subtle_dots_@2X.png +0 -0
- data/source/images/textures/subtle_freckles.png +0 -0
- data/source/images/textures/subtle_freckles_@2X.png +0 -0
- data/source/images/textures/subtle_grunge.png +0 -0
- data/source/images/textures/subtle_grunge_@2X.png +0 -0
- data/source/images/textures/subtle_surface.png +0 -0
- data/source/images/textures/subtle_surface_@2X.png +0 -0
- data/source/images/textures/subtle_zebra_3d.png +0 -0
- data/source/images/textures/subtle_zebra_3d_@2X.png +0 -0
- data/source/images/textures/subtlenet2.png +0 -0
- data/source/images/textures/subtlenet2_@2X.png +0 -0
- data/source/images/textures/tex2res5.png +0 -0
- data/source/images/textures/tex2res5_@2X.png +0 -0
- data/source/images/textures/texturetastic_gray.png +0 -0
- data/source/images/textures/texturetastic_gray_@2X.png +0 -0
- data/source/images/textures/tiny_grid.png +0 -0
- data/source/images/textures/tiny_grid_@2X.png +0 -0
- data/source/images/textures/vichy.png +0 -0
- data/source/images/textures/vichy_@2X.png +0 -0
- data/source/images/textures/vintage_speckles.png +0 -0
- data/source/images/textures/vintage_speckles_@2X.png +0 -0
- data/source/images/textures/wavecut.png +0 -0
- data/source/images/textures/wavecut_@2X.png +0 -0
- data/source/images/textures/wavegrid.png +0 -0
- data/source/images/textures/wavegrid_@2X.png +0 -0
- data/source/images/textures/white_carbon.png +0 -0
- data/source/images/textures/white_carbon_@2X.png +0 -0
- data/source/images/textures/white_texture.png +0 -0
- data/source/images/textures/white_texture_@2X.png +0 -0
- data/source/images/textures/white_wave.png +0 -0
- data/source/images/textures/white_wave_@2X.png +0 -0
- data/source/images/textures/whitey.png +0 -0
- data/source/images/textures/whitey_@2X.png +0 -0
- data/source/images/textures/worn_dots.png +0 -0
- data/source/images/textures/worn_dots_@2X.png +0 -0
- data/source/images/twitter-logo-circle-dark.png +0 -0
- data/source/images/twitter-logo-circle.png +0 -0
- data/source/images/youtube-logo-circle-dark.png +0 -0
- data/source/images/youtube-logo-circle.png +0 -0
- data/source/index.html.haml +127 -0
- data/source/javascripts/all.js +10 -0
- data/source/javascripts/breezeblocks/accordion.js +5 -0
- data/source/javascripts/breezeblocks/accordion_tabs.js +19 -0
- data/source/javascripts/breezeblocks/accordion_tabs_minimal.js +19 -0
- data/source/javascripts/breezeblocks/animate.js +10 -0
- data/source/javascripts/breezeblocks/centered_navigation.js +13 -0
- data/source/javascripts/breezeblocks/coffeescript/accordion.coffee +6 -0
- data/source/javascripts/breezeblocks/coffeescript/accordion_tabs.coffee +19 -0
- data/source/javascripts/breezeblocks/coffeescript/accordion_tabs_minimal.coffee +19 -0
- data/source/javascripts/breezeblocks/coffeescript/animate.coffee +12 -0
- data/source/javascripts/breezeblocks/coffeescript/centered_navigation.coffee +13 -0
- data/source/javascripts/breezeblocks/coffeescript/dropdown.coffee +15 -0
- data/source/javascripts/breezeblocks/coffeescript/expander.coffee +9 -0
- data/source/javascripts/breezeblocks/coffeescript/fade_in.coffee +20 -0
- data/source/javascripts/breezeblocks/coffeescript/modal.coffee +18 -0
- data/source/javascripts/breezeblocks/coffeescript/navigation.coffee +13 -0
- data/source/javascripts/breezeblocks/coffeescript/parallax.coffee +22 -0
- data/source/javascripts/breezeblocks/coffeescript/scroll_on_page.coffee +23 -0
- data/source/javascripts/breezeblocks/coffeescript/search_tools.coffee +85 -0
- data/source/javascripts/breezeblocks/coffeescript/sliding_menu.coffee +8 -0
- data/source/javascripts/breezeblocks/coffeescript/vertical_tabs.coffee +28 -0
- data/source/javascripts/breezeblocks/dropdown.js +12 -0
- data/source/javascripts/breezeblocks/expander.js +8 -0
- data/source/javascripts/breezeblocks/fade_in.js +23 -0
- data/source/javascripts/breezeblocks/modal.js +17 -0
- data/source/javascripts/breezeblocks/navigation.js +13 -0
- data/source/javascripts/breezeblocks/parallax.js +30 -0
- data/source/javascripts/breezeblocks/scroll_on_page.js +26 -0
- data/source/javascripts/breezeblocks/search_tools.js +110 -0
- data/source/javascripts/breezeblocks/sliding_menu.js +6 -0
- data/source/javascripts/breezeblocks/vertical_tabs.js +32 -0
- data/source/javascripts/jquery.erToc.js +477 -0
- data/source/javascripts/jquery.glide.js +941 -0
- data/source/javascripts/menuAnchorAnimation.js +11 -0
- data/source/javascripts/vendor/ZeroClipboard.min.js +9 -0
- data/source/javascripts/vendor/fixedsticky.js +185 -0
- data/source/javascripts/vendor/prism.js +13 -0
- data/source/javascripts/vendor/smooth-scroll.js +125 -0
- data/source/layouts/layout.haml +108 -0
- data/source/refills-hero.html.haml +15 -0
- data/source/refills-menu.html.haml +4 -0
- data/source/refills-page-scripts.html.haml +65 -0
- data/source/stylesheets/_bourbon-nav.sass +57 -0
- data/source/stylesheets/_refills-nav.sass +80 -0
- data/source/stylesheets/_refills-styles.sass +483 -0
- data/source/stylesheets/all.sass +66 -0
- data/source/stylesheets/breezeblocks/_accordion-tabs-minimal.sass +52 -0
- data/source/stylesheets/breezeblocks/_accordion-tabs.sass +76 -0
- data/source/stylesheets/breezeblocks/_accordion.sass +56 -0
- data/source/stylesheets/breezeblocks/_animate-info.sass +10 -0
- data/source/stylesheets/breezeblocks/_animate.sass +58 -0
- data/source/stylesheets/breezeblocks/_badges.sass +31 -0
- data/source/stylesheets/breezeblocks/_breadcrumbs.sass +74 -0
- data/source/stylesheets/breezeblocks/_button-group.sass +74 -0
- data/source/stylesheets/breezeblocks/_cards.sass +69 -0
- data/source/stylesheets/breezeblocks/_centered-navigation.sass +182 -0
- data/source/stylesheets/breezeblocks/_comment.sass +49 -0
- data/source/stylesheets/breezeblocks/_device.sass +67 -0
- data/source/stylesheets/breezeblocks/_dropdown.sass +112 -0
- data/source/stylesheets/breezeblocks/_expander.sass +40 -0
- data/source/stylesheets/breezeblocks/_fade-in.sass +30 -0
- data/source/stylesheets/breezeblocks/_flashes.sass +32 -0
- data/source/stylesheets/breezeblocks/_flex-boxes.sass +59 -0
- data/source/stylesheets/breezeblocks/_footer-2.sass +102 -0
- data/source/stylesheets/breezeblocks/_footer.sass +62 -0
- data/source/stylesheets/breezeblocks/_grid-items-lines.sass +76 -0
- data/source/stylesheets/breezeblocks/_grid-items.sass +80 -0
- data/source/stylesheets/breezeblocks/_hero.sass +44 -0
- data/source/stylesheets/breezeblocks/_hover-tile-animation.sass +40 -0
- data/source/stylesheets/breezeblocks/_icon-bullet-points.sass +49 -0
- data/source/stylesheets/breezeblocks/_image-gradient-dynamic.sass +43 -0
- data/source/stylesheets/breezeblocks/_maps.sass +20 -0
- data/source/stylesheets/breezeblocks/_modal.sass +119 -0
- data/source/stylesheets/breezeblocks/_navigation.sass +247 -0
- data/source/stylesheets/breezeblocks/_pagination.sass +51 -0
- data/source/stylesheets/breezeblocks/_parallax.sass +28 -0
- data/source/stylesheets/breezeblocks/_progress-bar-indication.sass +42 -0
- data/source/stylesheets/breezeblocks/_progress-bar.sass +70 -0
- data/source/stylesheets/breezeblocks/_ribbon.sass +28 -0
- data/source/stylesheets/breezeblocks/_scroll-on-page.sass +37 -0
- data/source/stylesheets/breezeblocks/_search-bar.sass +37 -0
- data/source/stylesheets/breezeblocks/_search-tools.sass +79 -0
- data/source/stylesheets/breezeblocks/_side-image.sass +58 -0
- data/source/stylesheets/breezeblocks/_sliding-menu.sass +63 -0
- data/source/stylesheets/breezeblocks/_stats.sass +27 -0
- data/source/stylesheets/breezeblocks/_switch.sass +61 -0
- data/source/stylesheets/breezeblocks/_tables-minimal.sass +59 -0
- data/source/stylesheets/breezeblocks/_tables.sass +78 -0
- data/source/stylesheets/breezeblocks/_texture-legend.sass +78 -0
- data/source/stylesheets/breezeblocks/_textures.sass +26 -0
- data/source/stylesheets/breezeblocks/_tooltip.sass +60 -0
- data/source/stylesheets/breezeblocks/_type-system-geometric.sass +100 -0
- data/source/stylesheets/breezeblocks/_type-system-rounded.sass +101 -0
- data/source/stylesheets/breezeblocks/_type-system-sans.sass +105 -0
- data/source/stylesheets/breezeblocks/_type-system-serif.sass +106 -0
- data/source/stylesheets/breezeblocks/_type-system-slab.sass +102 -0
- data/source/stylesheets/breezeblocks/_type-system-traditional.sass +107 -0
- data/source/stylesheets/breezeblocks/_vertical-tabs.sass +91 -0
- data/source/stylesheets/breezeblocks/_video.sass +11 -0
- data/source/stylesheets/vendor/fixedsticky.css +22 -0
- data/source/stylesheets/vendor/normalize.css +427 -0
- data/source/stylesheets/vendor/prism.css +126 -0
- data/source/type-systems.html.haml +54 -0
- data/spec/breezeblocks/import_generator_spec.rb +106 -0
- data/spec/spec_helper.rb +2 -0
- metadata +633 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: f38653a7a235bab2810dd76c7204236d1ee32a3f
|
4
|
+
data.tar.gz: b93301e2e41d9a8c06d106cae93654ee4bc89fcc
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 14cf416486c0ceb5a8b7d2995c65e9b56e1edf988201d1cf3344e2e9b840b3dfdcdfdc9c5f31154a69fb92a38636beacad1fd8366beb5f5786b256cfac8b0817
|
7
|
+
data.tar.gz: f8b686284d52b90378dd5069b95a183d1bf701542a6de0d815f5451212925e86126bf40a6dba1faf067ba055adc46314c9bb9113bcb163ff4ac952284c679785
|
data/.gitignore
ADDED
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.1
|
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
# Breezeblocks
|
2
|
+
|
3
|
+
## Prepackaged patterns and components built with Bourbon and Neat, based on Refills
|
4
|
+
|
5
|
+
## Requirements
|
6
|
+
|
7
|
+
- [Sass](https://github.com/sass/sass) 3.3+
|
8
|
+
- [Bourbon](https://github.com/thoughtbot/bourbon) 4.0+
|
9
|
+
- [Neat](https://github.com/thoughtbot/neat) 1.6+
|
10
|
+
|
11
|
+
## Installation for Ruby on Rails
|
12
|
+
|
13
|
+
1. Add Breezeblocks to your Gemfile:
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
gem 'breezeblocks'
|
17
|
+
```
|
18
|
+
|
19
|
+
2. Then run:
|
20
|
+
|
21
|
+
```bash
|
22
|
+
bundle install
|
23
|
+
```
|
24
|
+
|
25
|
+
3. Use the following Rails generators:
|
26
|
+
|
27
|
+
List all available snippets:
|
28
|
+
|
29
|
+
```bash
|
30
|
+
rails generate breezeblocks:list
|
31
|
+
```
|
32
|
+
|
33
|
+
Add a snippet:
|
34
|
+
|
35
|
+
```bash
|
36
|
+
rails generate breezeblocks:import SNIPPET
|
37
|
+
```
|
38
|
+
|
39
|
+
If you want to generate coffeescript instead of javascript, simply add `--coffee`
|
40
|
+
|
41
|
+
```bash
|
42
|
+
rails generate breezeblocks:import SNIPPET --coffee
|
43
|
+
```
|
44
|
+
|
45
|
+
This copies the snippet’s partial to `app/views/breezeblocks`, the stylesheet to `app/assets/stylesheets/breezeblocks` and the JavaScript to `app/assets/javascripts/breezeblocks`
|
46
|
+
|
47
|
+
## Contributing
|
48
|
+
|
49
|
+
If you want to improve or add a snippet, please do so via pull request. If you rename/remove/add any files to the repository, please make sure that the build reflects that change. Add your changed file to the `SNIPPETS` constant in the [test][spec_file] to have it tested.
|
50
|
+
|
51
|
+
[spec_file]: https://github.com/thoughtbot/breezeblocks/blob/master/spec/breezeblocks/import_generator_spec.rb
|
52
|
+
|
53
|
+
## Credits
|
54
|
+
|
55
|
+
Breezeblocks owes everything to Refills, which is maintained and funded by [thoughtbot, inc](http://thoughtbot.com).
|
data/Rakefile
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'bundler/gem_tasks'
|
2
|
+
# require 'middleman-gh-pages'
|
3
|
+
|
4
|
+
require 'rspec/core/rake_task'
|
5
|
+
RSpec::Core::RakeTask.new(:spec)
|
6
|
+
|
7
|
+
# desc "Compile javascript -> coffeescript"
|
8
|
+
# task :coffee do
|
9
|
+
# destination = "source/javascripts/breezeblocks/coffeescript"
|
10
|
+
# Dir["source/javascripts/breezeblocks/**/*.js"].each do |source|
|
11
|
+
# filename = File.basename(source.gsub(/.js/, ".coffee"))
|
12
|
+
|
13
|
+
# `$(npm bin)/js2coffee #{source} > #{destination}/#{filename}`
|
14
|
+
# end
|
15
|
+
|
16
|
+
# puts "Please make sure that all generated coffeescript files are correct"
|
17
|
+
# puts "before committing the changes\n"
|
18
|
+
# puts `git status`
|
19
|
+
# end
|
20
|
+
|
21
|
+
task default: :spec
|
22
|
+
task publish: :spec
|
data/bin/deploy
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
|
3
|
+
sha=`git rev-parse --short HEAD`
|
4
|
+
user_name=`git config user.name | \
|
5
|
+
cut -d ' ' -f 1 | \
|
6
|
+
tr '[:upper:]' '[:lower:]'`
|
7
|
+
branch_name="staging-$sha-$user_name"
|
8
|
+
|
9
|
+
git checkout -b $branch_name
|
10
|
+
git add -f Gemfile.lock
|
11
|
+
git commit -m "Deploying $sha"
|
12
|
+
git push --force staging $branch_name:master
|
data/bin/setup
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
#!/usr/bin/env sh
|
2
|
+
|
3
|
+
# Exit if any subcommand fails
|
4
|
+
set -e
|
5
|
+
|
6
|
+
# Set up Ruby dependencies via Bundler
|
7
|
+
bundle install
|
8
|
+
|
9
|
+
# Add binstubs to PATH via export PATH=".git/safe/../../bin:$PATH" in ~/.zshenv
|
10
|
+
mkdir -p .git/safe
|
11
|
+
|
12
|
+
# Install js2coffee
|
13
|
+
npm install --save-dev js2coffee
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'breezeblocks/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = 'breezeblocks'
|
8
|
+
s.version = Breezeblocks::VERSION
|
9
|
+
s.authors = ['Gaz Aston']
|
10
|
+
s.email = 'spiritbased@gmail.com'
|
11
|
+
s.description = 'Prepackaged patterns and components built with Bourbon, Neat and Bitters.'
|
12
|
+
s.summary = 'Prepackaged patterns and components built with Bourbon, Neat and Bitters.'
|
13
|
+
s.homepage = 'http://gaz.is'
|
14
|
+
s.license = 'MIT'
|
15
|
+
|
16
|
+
s.files = `git ls-files`.split($/)
|
17
|
+
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
18
|
+
s.require_paths = ['lib']
|
19
|
+
|
20
|
+
s.add_development_dependency 'bundler', '~> 1.3'
|
21
|
+
s.add_development_dependency 'rake'
|
22
|
+
end
|
data/config.rb
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
require 'erubis'
|
2
|
+
require 'lib/snippet_helpers'
|
3
|
+
|
4
|
+
activate :directory_indexes
|
5
|
+
|
6
|
+
set :css_dir, 'stylesheets'
|
7
|
+
set :images_dir, 'images'
|
8
|
+
set :js_dir, 'javascripts'
|
9
|
+
|
10
|
+
helpers SnippetHelpers
|
11
|
+
|
12
|
+
ready do
|
13
|
+
sprockets.append_path 'vendor/stylesheets'
|
14
|
+
sprockets.append_path 'vendor/javascripts'
|
15
|
+
end
|
16
|
+
|
17
|
+
configure :development do
|
18
|
+
activate :livereload
|
19
|
+
end
|
20
|
+
|
21
|
+
configure :build do
|
22
|
+
activate :relative_assets
|
23
|
+
set :relative_links, true
|
24
|
+
end
|
data/lib/breezeblocks.rb
ADDED
@@ -0,0 +1,80 @@
|
|
1
|
+
require 'rails/generators'
|
2
|
+
|
3
|
+
module Breezeblocks
|
4
|
+
class ImportGenerator < Rails::Generators::Base
|
5
|
+
desc 'Copy breezeblocks'
|
6
|
+
source_root File.expand_path("../../../source", __FILE__)
|
7
|
+
argument :snippet, type: :string, required: true
|
8
|
+
class_option :coffee, type: :boolean, default: false
|
9
|
+
|
10
|
+
def copy_html
|
11
|
+
copy_file_if_exists(
|
12
|
+
partial_name,
|
13
|
+
File.join('app', 'views', 'breezeblocks', partial_name),
|
14
|
+
)
|
15
|
+
end
|
16
|
+
|
17
|
+
def copy_styles
|
18
|
+
copy_file_if_exists(
|
19
|
+
File.join('stylesheets', 'breezeblocks', stylesheet_name),
|
20
|
+
File.join('app', 'assets', 'stylesheets', 'breezeblocks', stylesheet_name),
|
21
|
+
)
|
22
|
+
end
|
23
|
+
|
24
|
+
def copy_javascripts
|
25
|
+
copy_file_if_exists(
|
26
|
+
javascript_path,
|
27
|
+
File.join('app', 'assets', 'javascripts', 'breezeblocks', javascript_name),
|
28
|
+
)
|
29
|
+
end
|
30
|
+
|
31
|
+
private
|
32
|
+
|
33
|
+
def copy_file_if_exists(source, destination)
|
34
|
+
if File.exists?(File.join(self.class.source_root, source))
|
35
|
+
copy_file source, destination
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
def partial_name
|
40
|
+
"_#{snippet.underscore}.html.haml"
|
41
|
+
end
|
42
|
+
|
43
|
+
def stylesheet_name
|
44
|
+
"_#{snippet.dasherize}.sass"
|
45
|
+
end
|
46
|
+
|
47
|
+
def javascript_name
|
48
|
+
"#{snippet.underscore}.#{javascript_extension}"
|
49
|
+
end
|
50
|
+
|
51
|
+
def javascript_extension
|
52
|
+
if coffee?
|
53
|
+
"coffee"
|
54
|
+
else
|
55
|
+
"js"
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
def javascript_path
|
60
|
+
if coffee?
|
61
|
+
File.join(
|
62
|
+
"javascripts",
|
63
|
+
"breezeblocks",
|
64
|
+
"coffeescript",
|
65
|
+
javascript_name
|
66
|
+
)
|
67
|
+
else
|
68
|
+
File.join(
|
69
|
+
"javascripts",
|
70
|
+
"breezeblocks",
|
71
|
+
javascript_name
|
72
|
+
)
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
def coffee?
|
77
|
+
options[:coffee]
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'rails/generators'
|
2
|
+
|
3
|
+
module Breezeblocks
|
4
|
+
class ListGenerator < Rails::Generators::Base
|
5
|
+
desc 'List breezeblocks'
|
6
|
+
|
7
|
+
def list
|
8
|
+
puts 'Available Breezeblocks'
|
9
|
+
puts '================='
|
10
|
+
stylesheets.each do |file_name|
|
11
|
+
puts '- ' + file_name.gsub(/_|\.sass/, '')
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
private
|
16
|
+
def stylesheets
|
17
|
+
breezeblocks_dir = File.expand_path('../../../source/stylesheets/breezeblocks', __FILE__)
|
18
|
+
stylesheets = Dir.entries(breezeblocks_dir)
|
19
|
+
stylesheets.reject {|f| f == '.' || f == '..' }
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,89 @@
|
|
1
|
+
module SnippetHelpers
|
2
|
+
SOURCE_DIR = File.expand_path('../../source', __FILE__)
|
3
|
+
|
4
|
+
class Snippet
|
5
|
+
def initialize(name)
|
6
|
+
@name = name
|
7
|
+
end
|
8
|
+
|
9
|
+
def path
|
10
|
+
File.join(*path_segments)
|
11
|
+
end
|
12
|
+
|
13
|
+
private
|
14
|
+
|
15
|
+
attr_reader :name
|
16
|
+
end
|
17
|
+
|
18
|
+
class HtmlSnippet < Snippet
|
19
|
+
def path_segments
|
20
|
+
[SOURCE_DIR, "_#{name.underscore}.html.haml"]
|
21
|
+
end
|
22
|
+
|
23
|
+
def language
|
24
|
+
:markup
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
class SassSnippet < Snippet
|
29
|
+
def path_segments
|
30
|
+
[SOURCE_DIR, 'stylesheets', 'breezeblocks', "_#{name.dasherize}.sass"]
|
31
|
+
end
|
32
|
+
|
33
|
+
def language
|
34
|
+
:sass
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
class JavaScriptSnippet < Snippet
|
39
|
+
def path_segments
|
40
|
+
[SOURCE_DIR, 'javascripts', 'breezeblocks', "#{name.underscore}.js"]
|
41
|
+
end
|
42
|
+
|
43
|
+
def language
|
44
|
+
:javascript
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
class CoffeeScriptSnippet < Snippet
|
49
|
+
def path_segments
|
50
|
+
[
|
51
|
+
SOURCE_DIR,
|
52
|
+
"javascripts",
|
53
|
+
"breezeblocks",
|
54
|
+
"coffeescript",
|
55
|
+
"#{name.underscore}.coffee"
|
56
|
+
]
|
57
|
+
end
|
58
|
+
|
59
|
+
def language
|
60
|
+
:javascript
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
def code_for(snippet_name)
|
65
|
+
partial 'code', locals: { snippets: snippets_for(snippet_name) }
|
66
|
+
end
|
67
|
+
|
68
|
+
private
|
69
|
+
|
70
|
+
def snippets_for(name)
|
71
|
+
[
|
72
|
+
HtmlSnippet,
|
73
|
+
SassSnippet,
|
74
|
+
JavaScriptSnippet,
|
75
|
+
CoffeeScriptSnippet,
|
76
|
+
].map do |snippet_factory|
|
77
|
+
render_snippet snippet_factory.new(name)
|
78
|
+
end.join("\n")
|
79
|
+
end
|
80
|
+
|
81
|
+
def render_snippet(snippet)
|
82
|
+
if File.exists?(snippet.path)
|
83
|
+
partial 'snippet', locals: {
|
84
|
+
snippet: File.read(snippet.path),
|
85
|
+
language: snippet.language
|
86
|
+
}
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
%ul.accordion
|
2
|
+
%li
|
3
|
+
%a.js-accordion-trigger{href: "javascript:void(0)"} Accordion Item
|
4
|
+
%ul.submenu
|
5
|
+
%li
|
6
|
+
%a{href: "javascript:void(0)"} Sub Item 1
|
7
|
+
%li
|
8
|
+
%a{href: "javascript:void(0)"} Sub Item 2
|
9
|
+
%li
|
10
|
+
%a.js-accordion-trigger{href: "javascript:void(0)"} Another Item
|
11
|
+
%ul.submenu
|
12
|
+
%li
|
13
|
+
%a{href: "javascript:void(0)"} Sub Item 1
|
14
|
+
%li
|
15
|
+
%a{href: "javascript:void(0)"} Sub Item 2
|
@@ -0,0 +1,17 @@
|
|
1
|
+
%ul.accordion-tabs
|
2
|
+
%li.tab-header-and-content
|
3
|
+
%a.is-active.tab-link{href: "javascript:void(0)"} Tab Item
|
4
|
+
.tab-content
|
5
|
+
%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.
|
6
|
+
%li.tab-header-and-content
|
7
|
+
%a.tab-link{href: "javascript:void(0)"} Another Tab
|
8
|
+
.tab-content
|
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.
|
10
|
+
%li.tab-header-and-content
|
11
|
+
%a.tab-link{href: "javascript:void(0)"} Third
|
12
|
+
.tab-content
|
13
|
+
%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.
|
14
|
+
%li.tab-header-and-content
|
15
|
+
%a.tab-link{href: "javascript:void(0)"} Last Item
|
16
|
+
.tab-content
|
17
|
+
%p Sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Phasellus dui urna.
|
@@ -0,0 +1,17 @@
|
|
1
|
+
%ul.accordion-tabs-minimal
|
2
|
+
%li.tab-header-and-content
|
3
|
+
%a.tab-link.is-active{href: "#"} Tab Item
|
4
|
+
.tab-content
|
5
|
+
%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.
|
6
|
+
%li.tab-header-and-content
|
7
|
+
%a.tab-link{href: "#"} Another Tab
|
8
|
+
.tab-content
|
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.
|
10
|
+
%li.tab-header-and-content
|
11
|
+
%a.tab-link{href: "#"} Third
|
12
|
+
.tab-content
|
13
|
+
%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.
|
14
|
+
%li.tab-header-and-content
|
15
|
+
%a.tab-link{href: "#"} Last Item
|
16
|
+
.tab-content
|
17
|
+
%p Sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Phasellus dui urna.
|