breezeblocks 0.0.2 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +2 -0
  3. data/README.md +7 -1
  4. data/Rakefile +1 -1
  5. data/lib/breezeblocks/version.rb +1 -1
  6. data/source/_video.html.haml +1 -1
  7. data/source/index.html.haml +131 -127
  8. data/source/javascripts/maps_preview.js +52 -0
  9. data/source/layouts/layout.haml +3 -96
  10. data/source/stylesheets/{all.sass → all.css.sass} +4 -17
  11. data/source/stylesheets/breezeblocks-styles.css.sass +27 -0
  12. data/source/stylesheets/breezeblocks/_accordion-tabs-minimal.sass +1 -1
  13. data/source/stylesheets/breezeblocks/_accordion-tabs.sass +1 -1
  14. data/source/stylesheets/breezeblocks/_animate-info.sass +1 -1
  15. data/source/stylesheets/breezeblocks/_animate.sass +1 -1
  16. data/source/stylesheets/breezeblocks/_breadcrumbs.sass +1 -1
  17. data/source/stylesheets/breezeblocks/_button-group.sass +1 -1
  18. data/source/stylesheets/breezeblocks/_cards.sass +1 -1
  19. data/source/stylesheets/breezeblocks/_comment.sass +1 -1
  20. data/source/stylesheets/breezeblocks/_expander.sass +1 -1
  21. data/source/stylesheets/breezeblocks/_footer-2.sass +1 -1
  22. data/source/stylesheets/breezeblocks/_footer.sass +1 -1
  23. data/source/stylesheets/breezeblocks/_grid-items.sass +1 -1
  24. data/source/stylesheets/breezeblocks/_hero.sass +1 -1
  25. data/source/stylesheets/breezeblocks/_icon-bullet-points.sass +1 -1
  26. data/source/stylesheets/breezeblocks/_modal.sass +1 -1
  27. data/source/stylesheets/breezeblocks/_navigation.sass +1 -1
  28. data/source/stylesheets/breezeblocks/_pagination.sass +1 -1
  29. data/source/stylesheets/breezeblocks/_progress-bar-indication.sass +1 -1
  30. data/source/stylesheets/breezeblocks/_progress-bar.sass +1 -1
  31. data/source/stylesheets/breezeblocks/_ribbon.sass +1 -1
  32. data/source/stylesheets/breezeblocks/_scroll-on-page.sass +1 -1
  33. data/source/stylesheets/breezeblocks/_search-bar.sass +1 -1
  34. data/source/stylesheets/breezeblocks/_search-tools.sass +1 -1
  35. data/source/stylesheets/breezeblocks/_side-image.sass +1 -1
  36. data/source/stylesheets/breezeblocks/_sliding-menu.sass +2 -2
  37. data/source/stylesheets/breezeblocks/_stats.sass +1 -1
  38. data/source/stylesheets/breezeblocks/_switch.sass +1 -1
  39. data/source/stylesheets/breezeblocks/_tables-minimal.sass +1 -1
  40. data/source/stylesheets/breezeblocks/_tables.sass +1 -1
  41. data/source/stylesheets/breezeblocks/_vertical-tabs.sass +1 -1
  42. metadata +5 -9
  43. data/source/_maps.html.haml +0 -70
  44. data/source/components.html.haml +0 -162
  45. data/source/refills-hero.html.haml +0 -15
  46. data/source/refills-menu.html.haml +0 -4
  47. data/source/refills-page-scripts.html.haml +0 -65
  48. data/source/type-systems.html.haml +0 -54
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c470f31b933d38c4ec08f84d4c8e414b79fc2f93
4
- data.tar.gz: d4176514e68c88e50876414154f6b57188f62590
3
+ metadata.gz: 4e4125f3059eecb6245eecd217ccb55693b2cfa8
4
+ data.tar.gz: 10e159db77697aa5fc9e02f359bf81610d1057d9
5
5
  SHA512:
6
- metadata.gz: 61151a3c5f1a6447288d4eca2562f14ad92d09b07d1489f472ccb0dd6a3a58adafb2b8b265ea77d7e4e9f35122dad6738c34c836253d9fae3dba94b500a2868a
7
- data.tar.gz: d888b0811a8db9328e4738c877dd9f8d3c4d49be4ac84cf10d23b888153dc046117fa4db467183ef996c5ce00918eed3ca3c47fd20397626b81099a94733affe
6
+ metadata.gz: e93728691990e0244ee8af9914061768aad5941931cb409018d957da7090f11699833458e3ca24eb3e34974a9d8ca3c49cafff8a48da53d1de75afe32d5dc32e
7
+ data.tar.gz: 8d6e067beb7c5de18067c04c123147a4d875453ecb10c72cc99226488ab54888fa127ff387f67870569f6a22d0eed66fb38a06ddeb63476bf73b1b9961f4a7e0
data/Gemfile CHANGED
@@ -3,6 +3,8 @@ source 'https://rubygems.org'
3
3
  gem 'bourbon', '~> 4.1.0'
4
4
  gem 'neat', '~> 1.7.0'
5
5
  gem 'sass', '~> 3.4.0'
6
+ gem 'middleman'
7
+ gem 'middleman-gh-pages'
6
8
 
7
9
  group :test do
8
10
  gem 'rspec'
data/README.md CHANGED
@@ -4,6 +4,8 @@
4
4
 
5
5
  ## Prepackaged patterns and components built with Bourbon and Neat, based on Refills
6
6
 
7
+ Demo here: [http://gazaston.github.io/breezeblocks](http://gazaston.github.io/breezeblocks)
8
+
7
9
  ## Requirements
8
10
 
9
11
  - [Sass](https://github.com/sass/sass) 3.3+
@@ -48,12 +50,16 @@
48
50
 
49
51
  ## Contributing
50
52
 
51
- 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.
53
+ 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. And make sure you add it to source/index so it can be previewed!
52
54
 
53
55
  [spec_file]: https://github.com/thoughtbot/breezeblocks/blob/master/spec/breezeblocks/import_generator_spec.rb
54
56
 
55
57
  Run `rake` to start the spec tests.
56
58
 
59
+ ## GH Pages
60
+
61
+ Uses middleman with [middleman-gh-pages](https://github.com/neo/middleman-gh-pages) for GitHub Pages generation. Run `rake publish` to build and deploy changes.
62
+
57
63
  ## Credits
58
64
 
59
65
  Breezeblocks owes everything to Refills, which is maintained and funded by [thoughtbot, inc](http://thoughtbot.com).
data/Rakefile CHANGED
@@ -1,5 +1,5 @@
1
1
  require 'bundler/gem_tasks'
2
- # require 'middleman-gh-pages'
2
+ require 'middleman-gh-pages'
3
3
 
4
4
  require 'rspec/core/rake_task'
5
5
  RSpec::Core::RakeTask.new(:spec)
@@ -1,3 +1,3 @@
1
1
  module Breezeblocks
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -1,3 +1,3 @@
1
1
  .video
2
2
  .video-wrapper
3
- %iframe{allowfullscreen: "", frameborder: "0", src: "http://www.youtube.com/embed/8ItNE_DX6Cc?showinfo=0&iv_load_policy=3&controls=0"}
3
+ %iframe{allowfullscreen: "", frameborder: "0", src: "http://www.youtube.com/embed/xS3qabIsAIo?showinfo=0&iv_load_policy=3&controls=0"}
@@ -1,127 +1,131 @@
1
- \---
2
- title: Patterns
3
- \---
4
- .breezeblocks-patterns
5
- %a.js-menu-trigger-breezeblocks.breezeblocks-menu-anchor.fixedsticky
6
- %img{alt: "Menu icon", src: "/images/menu.png"}/
7
- .js-menu-screen-breezeblocks.breezeblocks-menu-screen
8
- = partial "breezeblocks-hero"
9
- = partial "breezeblocks-menu"
10
- #example
11
- %section#accordion-tabs.refill
12
- .breezeblocks-wrapper
13
- .line-behind-text
14
- %h6 Accordion / Tabs
15
- = partial "accordion_tabs"
16
- .refill-snippet= code_for("accordion_tabs")
17
- .breezeblocks-wrapper
18
- = partial "accordion_tabs_minimal"
19
- .refill-snippet= code_for("accordion_tabs_minimal")
20
- %section#cards.refill
21
- .breezeblocks-wrapper
22
- .line-behind-text
23
- %h6 Cards
24
- .refill-centering= partial "cards"
25
- .refill-snippet= code_for("cards")
26
- %section#centered-navigation.refill
27
- .breezeblocks-wrapper
28
- .line-behind-text
29
- %h6 Centered Navigation
30
- = partial "centered_navigation"
31
- .refill-snippet= code_for("centered_navigation")
32
- %section#comment.refill
33
- .breezeblocks-wrapper
34
- .line-behind-text
35
- %h6 Comments
36
- .refill-centering
37
- .refill-smaller= partial "comment"
38
- .refill-snippet= code_for("comment")
39
- %section#device.refill
40
- .breezeblocks-wrapper
41
- .line-behind-text
42
- %h6 Device
43
- = partial "device"
44
- .refill-snippet= code_for("device")
45
- %section#flex-boxes.refill
46
- .breezeblocks-wrapper
47
- .line-behind-text
48
- %h6 Flex Boxes
49
- = partial "flex_boxes"
50
- .refill-snippet= code_for("flex_boxes")
51
- %section#footer.refill
52
- .breezeblocks-wrapper
53
- .line-behind-text
54
- %h6 Footers
55
- .refill-centering= partial "footer"
56
- .refill-snippet= code_for("footer")
57
- .breezeblocks-wrapper
58
- .refill-centering= partial "footer_2"
59
- .refill-snippet= code_for("footer_2")
60
- %section#grid-items.refill
61
- .breezeblocks-wrapper
62
- .line-behind-text
63
- %h6 Grid Items
64
- .refill-centering= partial "grid_items"
65
- .refill-snippet= code_for("grid_items")
66
- .breezeblocks-wrapper
67
- .refill-centering= partial "grid_items_lines"
68
- .refill-snippet= code_for("grid_items_lines")
69
- %section#hero.refill
70
- .breezeblocks-wrapper
71
- .line-behind-text
72
- %h6 Hero Unit
73
- = partial "hero"
74
- .refill-snippet= code_for("hero")
75
- %section#icon-bullet-points.refill
76
- .breezeblocks-wrapper
77
- .line-behind-text
78
- %h6 Icon Bullet Points
79
- = partial "icon_bullet_points"
80
- .refill-snippet= code_for("icon_bullet_points")
81
- %section#maps.refill
82
- .breezeblocks-wrapper
83
- .line-behind-text
84
- %h6 Maps
85
- = partial "maps"
86
- .refill-snippet= code_for("maps")
87
- %section#navigation.refill
88
- .breezeblocks-wrapper
89
- .line-behind-text
90
- %h6 Navigation
91
- = partial "navigation"
92
- .refill-snippet= code_for("navigation")
93
- %section#scroll-on-page.refill
94
- .breezeblocks-wrapper
95
- .line-behind-text
96
- %h6 Scroll On Page
97
- .refill-centering
98
- .refill-smaller= partial "scroll_on_page"
99
- .refill-snippet= code_for("scroll_on_page")
100
- %section#search-tools.refill
101
- .breezeblocks-wrapper
102
- .line-behind-text
103
- %h6 Search Tools
104
- = partial "search_tools"
105
- .refill-snippet= code_for("search_tools")
106
- %section#side-image.refill
107
- .breezeblocks-wrapper
108
- .line-behind-text
109
- %h6 Side Image
110
- = partial "side_image"
111
- .refill-snippet= code_for("side_image")
112
- %section#tables.refill
113
- .breezeblocks-wrapper
114
- .line-behind-text
115
- %h6 Tables
116
- = partial "tables"
117
- .refill-snippet= code_for("tables")
118
- .breezeblocks-wrapper
119
- = partial "tables_minimal"
120
- .refill-snippet= code_for("tables_minimal")
121
- %section#vertical-tabs.refill
122
- .breezeblocks-wrapper
123
- .line-behind-text
124
- %h6 Vertical Tabs
125
- = partial "vertical_tabs"
126
- .refill-snippet= code_for("vertical_tabs")
127
- = partial "breezeblocks-page-scripts"
1
+ %section.breezeblocks
2
+ .content
3
+ .wrapper
4
+ .container.intro
5
+ %h1 Breezeblocks
6
+ %a{href: "https://github.com/gazaston/breezeblocks"} Instructions for use on GitHub
7
+ %section
8
+ %h2 Hero
9
+ =partial 'hero'
10
+ %section
11
+ %h2 Flashes
12
+ =partial 'flashes'
13
+ %section
14
+ %h2 Parallax
15
+ =partial 'parallax'
16
+ %section
17
+ %h2 Centered Nav
18
+ =partial 'centered_navigation'
19
+ %section
20
+ %h2 Footer
21
+ =partial 'footer'
22
+ %section
23
+ %h2 Small Footer
24
+ =partial 'footer_2'
25
+ %section
26
+ %h2 Navigation
27
+ =partial 'navigation'
28
+
29
+ %section.container
30
+ %h2 Accordion Tabs
31
+ =partial 'accordion_tabs'
32
+ %section.container
33
+ %h2 Accordion Tabs (minimal)
34
+ =partial 'accordion_tabs_minimal'
35
+ %section.container
36
+ %h2 Cards
37
+ =partial 'cards'
38
+ %section.container
39
+ %h2 Comments
40
+ =partial 'comment'
41
+ %section.container
42
+ %h2 Grid Items
43
+ =partial 'grid_items'
44
+ %section.container
45
+ %h2 Grid Items (lines)
46
+ =partial 'grid_items_lines'
47
+ %section.container
48
+ %h2 Icon Bullet Points
49
+ =partial 'icon_bullet_points'
50
+ %section.container
51
+ %h2 Scroll on page
52
+ =partial 'scroll_on_page'
53
+ %section.container
54
+ %h2 Search Tools
55
+ =partial 'search_tools'
56
+ %section.container
57
+ %h2 Side Image
58
+ =partial 'side_image'
59
+ %section.container
60
+ %h2 Tables
61
+ =partial 'tables'
62
+ %section.container
63
+ %h2 Tables Minimal
64
+ =partial 'tables_minimal'
65
+ %section.container
66
+ %h2 Vertical Tabs
67
+ =partial 'vertical_tabs'
68
+
69
+ %section.container
70
+ %h2 Accordion
71
+ =partial 'accordion'
72
+ %section.container
73
+ %h2 Animate
74
+ =partial 'animate'
75
+ =partial 'animate_info'
76
+ %section.container
77
+ %h2 Badges
78
+ =partial 'badges'
79
+ %section.container
80
+ %h2 Breadcrumbs
81
+ =partial 'breadcrumbs'
82
+ %section.container
83
+ %h2 Button Group
84
+ =partial 'button_group'
85
+ %section.container
86
+ %h2 Dropdown
87
+ =partial 'dropdown'
88
+ %section.container
89
+ %h2 Expander
90
+ =partial 'expander'
91
+ %section.container
92
+ %h2 Fade In
93
+ =partial 'fade_in'
94
+ %section.container
95
+ %h2 Hover Tile Animation
96
+ =partial 'hover_tile_animation'
97
+ %section.container
98
+ %h2 Image Gradient (dynamic)
99
+ =partial 'image_gradient_dynamic'
100
+ %section.container
101
+ %h2 Modal
102
+ =partial 'modal'
103
+ %section.container
104
+ %h2 Pagination
105
+ =partial 'pagination'
106
+ %section.container
107
+ %h2 Progress Bar
108
+ =partial 'progress_bar'
109
+ %section.container
110
+ =partial 'progress_bar_indication'
111
+ %section.container
112
+ %h2 Ribbon
113
+ =partial 'ribbon'
114
+ %section.container
115
+ %h2 Search Bar
116
+ =partial 'search_bar'
117
+ %section.container
118
+ %h2 Sliding Menu
119
+ =partial 'sliding_menu'
120
+ %section.container
121
+ %h2 Switch
122
+ =partial 'switch'
123
+ %section.container
124
+ %h2 Stats
125
+ =partial 'stats'
126
+ %section.container
127
+ %h2 Tooltip
128
+ =partial 'tooltip'
129
+ %section.container
130
+ %h2 Responsive Video
131
+ =partial 'video'
@@ -0,0 +1,52 @@
1
+ var bittersMap = (function () {
2
+ var myLatlng = new google.maps.LatLng(59.342457, 18.057340),
3
+ mapCenter = new google.maps.LatLng(59.340458, 18.057340),
4
+ mapCanvas = document.getElementById('map_canvas'),
5
+ mapOptions = {
6
+ center: mapCenter,
7
+ zoom: 13,
8
+ scrollwheel: false,
9
+ draggable: true,
10
+ disableDefaultUI: true,
11
+ mapTypeId: google.maps.MapTypeId.ROADMAP
12
+ },
13
+ map = new google.maps.Map(mapCanvas, mapOptions),
14
+ contentString =
15
+ '<div id="content">'+
16
+ '<div id="siteNotice">'+
17
+ '</div>'+
18
+ '<h1 id="firstHeading" class="firstHeading">thoughtbot</h1>'+
19
+ '<div id="bodyContent"'+
20
+ '<p>Sveavägen 98</p>'+
21
+ '</div>'+
22
+ '</div>',
23
+ infowindow = new google.maps.InfoWindow({
24
+ content: contentString,
25
+ maxWidth: 300
26
+ }),
27
+ marker = new google.maps.Marker({
28
+ position: myLatlng,
29
+ map: map,
30
+ title: 'thoughtbot (Sweden)'
31
+ });
32
+
33
+ return {
34
+ init: function () {
35
+ map.set('styles', [{
36
+ featureType: 'landscape',
37
+ elementType: 'geometry',
38
+ stylers: [
39
+ { hue: '#ffff00' },
40
+ { saturation: 30 },
41
+ { lightness: 10}
42
+ ]}
43
+ ]);
44
+
45
+ google.maps.event.addListener(marker, 'click', function () {
46
+ infowindow.open(map,marker);
47
+ });
48
+ }
49
+ };
50
+ }());
51
+
52
+ bittersMap.init();
@@ -6,103 +6,10 @@
6
6
  %meta{content: "IE=edge,chrome=1", "http-equiv" => "X-UA-Compatible"}/
7
7
  %meta{content: "width=device-width,initial-scale=1", name: "viewport"}/
8
8
  %meta{content: "Breezeblocks are prepackaged patterns and components built with Bourbon, Neat and Bitters.", name: "description"}/
9
- %title
10
- Breezeblocks#{" - #{ current_page.data.title}" if current_page.data.title}
11
- %link{href: "//fonts.googleapis.com/css?family=Oswald:400,300,700|Lusitana:400,700|Open+Sans:400,800", rel: "stylesheet"}/
9
+ %title Breezeblocks
12
10
  = stylesheet_link_tag "all"
13
11
  %script{src: "//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"}
14
- %script{src: "/javascripts/jquery.erToc.js"}
15
- :javascript
16
- !function(){var analytics=window.analytics=window.analytics||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","group","track","ready","alias","page","once","off","on"];analytics.factory=function(t){return function(){var e=Array.prototype.slice.call(arguments);e.unshift(t);analytics.push(e);return analytics}};for(var t=0;t<analytics.methods.length;t++){var e=analytics.methods[t];analytics[e]=analytics.factory(e)}analytics.load=function(t){var e=document.createElement("script");e.type="text/javascript";e.async=!0;e.src=("https:"===document.location.protocol?"https://":"http://")+"cdn.segment.com/analytics.js/v1/"+t+"/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(e,n)};analytics.SNIPPET_VERSION="3.0.1";
17
- analytics.load("zqKH1nPNSA5uCwV1XiBz3LvGfPH6Muq9");
18
- analytics.page()
19
- }}();
20
- %body{class: page_classes}
21
- %nav.bourbon
22
- %ul
23
- %li
24
- %a.bourbon{href: "//bourbon.io"} Bourbon
25
- %li
26
- %a.neat{href: "//neat.bourbon.io"} Neat
27
- %li
28
- %a.bitters{href: "//bitters.bourbon.io"} Bitters
29
- %li
30
- %a.breezeblocks.current{href: "//breezeblocks.bourbon.io"} Breezeblocks
31
- %h1
32
- Maintained by the design team at
33
- %a{href: "//thoughtbot.com"} thoughtbot
34
- %section.container
35
- %section.inner-content
36
- = yield
37
- %footer.breezeblocks-footer
38
- %ul.footer-links
39
- %li= link_to 'Patterns', '/index.html'
40
- %li= link_to 'Components', '/components.html'
41
- %li= link_to 'Type Systems', '/type-systems.html'
42
- .breezeblocks-footer-logo
43
- %img{alt: "thoughtbot Ralph logo mark", src: "/images/ralph-gray.png"}/
44
- %p
45
- Breezeblocks is maintained and funded by
46
- = succeed "." do
47
- %a{href: "//thoughtbot.com"} thoughtbot, inc
48
- %p
49
- Copyright © 2014–2015
50
- = succeed "." do
51
- %a{href: "//thoughtbot.com"} thoughtbot, inc
52
- = succeed "." do
53
- %a{href: "//github.com/thoughtbot/breezeblocks/blob/master/LICENSE.md"} license
54
- %script{src: "https://maps.googleapis.com/maps/api/js"}
55
- :javascript
56
- var bittersMap = (function () {
57
- var myLatlng = new google.maps.LatLng(59.342457, 18.057340),
58
- mapCenter = new google.maps.LatLng(59.340458, 18.057340),
59
- mapCanvas = document.getElementById('map_canvas'),
60
- mapOptions = {
61
- center: mapCenter,
62
- zoom: 13,
63
- scrollwheel: false,
64
- draggable: true,
65
- disableDefaultUI: true,
66
- mapTypeId: google.maps.MapTypeId.ROADMAP
67
- },
68
- map = new google.maps.Map(mapCanvas, mapOptions),
69
- contentString =
70
- '<div id="content">'+
71
- '<div id="siteNotice">'+
72
- '</div>'+
73
- '<h1 id="firstHeading" class="firstHeading">thoughtbot</h1>'+
74
- '<div id="bodyContent"'+
75
- '<p>Sveavägen 98</p>'+
76
- '</div>'+
77
- '</div>',
78
- infowindow = new google.maps.InfoWindow({
79
- content: contentString,
80
- maxWidth: 300
81
- }),
82
- marker = new google.maps.Marker({
83
- position: myLatlng,
84
- map: map,
85
- title: 'thoughtbot (Sweden)'
86
- });
87
-
88
- return {
89
- init: function () {
90
- map.set('styles', [{
91
- featureType: 'landscape',
92
- elementType: 'geometry',
93
- stylers: [
94
- { hue: '#ffff00' },
95
- { saturation: 30 },
96
- { lightness: 10}
97
- ]}
98
- ]);
99
12
 
100
- google.maps.event.addListener(marker, 'click', function () {
101
- infowindow.open(map,marker);
102
- });
103
- }
104
- };
105
- }());
106
-
107
- bittersMap.init();
13
+ %body{class: page_classes}
14
+ = yield
108
15
  = javascript_include_tag "all"