staple 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (141) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +8 -0
  3. data/Gemfile +13 -0
  4. data/LICENSE.md +23 -0
  5. data/README.md +51 -0
  6. data/Rakefile +0 -0
  7. data/config.rb +24 -0
  8. data/lib/snippet_helpers.rb +69 -0
  9. data/lib/staple/import_generator.rb +50 -0
  10. data/lib/staple/list_generator.rb +22 -0
  11. data/lib/staple.rb +2 -0
  12. data/source/CNAME +1 -0
  13. data/source/_accordion.html.erb +24 -0
  14. data/source/_accordion_tabs.html.erb +26 -0
  15. data/source/_accordion_tabs_minimal.html.erb +26 -0
  16. data/source/_badges.html.erb +7 -0
  17. data/source/_breadcrumbs.html.erb +7 -0
  18. data/source/_browser.html.erb +29 -0
  19. data/source/_button_group.html.erb +18 -0
  20. data/source/_cards.html.erb +59 -0
  21. data/source/_centered_navigation.html.erb +38 -0
  22. data/source/_code.html.erb +10 -0
  23. data/source/_comment.html.erb +21 -0
  24. data/source/_device.html.erb +10 -0
  25. data/source/_dropdown.html.erb +12 -0
  26. data/source/_expander.html.erb +6 -0
  27. data/source/_flashes.html.erb +15 -0
  28. data/source/_footer.html.erb +28 -0
  29. data/source/_footer_2.html.erb +33 -0
  30. data/source/_grid_items.html.erb +37 -0
  31. data/source/_grid_items_lines.html.erb +44 -0
  32. data/source/_hero.html.erb +11 -0
  33. data/source/_hover_tile_animation.html.erb +11 -0
  34. data/source/_icon_bullet_points.html.erb +30 -0
  35. data/source/_image_gradient_dynamic.html.erb +7 -0
  36. data/source/_intro_text.html.erb +6 -0
  37. data/source/_label_alerts.html.erb +5 -0
  38. data/source/_modal.html.erb +14 -0
  39. data/source/_navigation.html.erb +44 -0
  40. data/source/_pagination.html.erb +17 -0
  41. data/source/_progress_bar.html.erb +3 -0
  42. data/source/_progress_bar_indication.html.erb +5 -0
  43. data/source/_search_bar.html.erb +8 -0
  44. data/source/_search_tools.html.erb +58 -0
  45. data/source/_side_image.html.erb +10 -0
  46. data/source/_sliding_menu.html.erb +13 -0
  47. data/source/_snippet.html.erb +4 -0
  48. data/source/_switch.html.erb +4 -0
  49. data/source/_tables.html.erb +31 -0
  50. data/source/_tables_minimal.html.erb +31 -0
  51. data/source/_texture-legend.html.erb +24 -0
  52. data/source/_textures.html.erb +4 -0
  53. data/source/_tooltip.html.erb +6 -0
  54. data/source/_type_system_geometric.html.erb +18 -0
  55. data/source/_type_system_rounded.html.erb +18 -0
  56. data/source/_type_system_sans.html.erb +18 -0
  57. data/source/_type_system_serif.html.erb +19 -0
  58. data/source/_type_system_slab.html.erb +18 -0
  59. data/source/_type_system_traditional.html.erb +18 -0
  60. data/source/_vertical_tabs.html.erb +30 -0
  61. data/source/_video.html.erb +5 -0
  62. data/source/components.html.erb +174 -0
  63. data/source/index.html.erb +162 -0
  64. data/source/javascripts/all.js +11 -0
  65. data/source/javascripts/jquery.erToc.js +477 -0
  66. data/source/javascripts/jquery.glide.js +941 -0
  67. data/source/javascripts/staple/accordion.js +5 -0
  68. data/source/javascripts/staple/accordion_tabs.js +19 -0
  69. data/source/javascripts/staple/accordion_tabs_minimal.js +19 -0
  70. data/source/javascripts/staple/centered_navigation.js +14 -0
  71. data/source/javascripts/staple/dropdown.js +9 -0
  72. data/source/javascripts/staple/expander.js +53 -0
  73. data/source/javascripts/staple/navigation.js +23 -0
  74. data/source/javascripts/staple/search_tools.js +110 -0
  75. data/source/javascripts/staple/sliding_menu.js +13 -0
  76. data/source/javascripts/staple/vertical_tabs.js +32 -0
  77. data/source/layouts/layout.erb +1 -0
  78. data/source/refills-hero.html.erb +7 -0
  79. data/source/refills-menu.html.erb +5 -0
  80. data/source/refills-page-scripts.html.erb +66 -0
  81. data/source/stylesheets/_bourbon-nav.scss +86 -0
  82. data/source/stylesheets/_normalize.scss +425 -0
  83. data/source/stylesheets/_refills-nav.scss +102 -0
  84. data/source/stylesheets/_refills-styles.scss +543 -0
  85. data/source/stylesheets/all.scss +61 -0
  86. data/source/stylesheets/staple/_accordion-tabs-minimal.scss +60 -0
  87. data/source/stylesheets/staple/_accordion-tabs.scss +88 -0
  88. data/source/stylesheets/staple/_accordion.scss +55 -0
  89. data/source/stylesheets/staple/_badges.scss +44 -0
  90. data/source/stylesheets/staple/_breadcrumbs.scss +84 -0
  91. data/source/stylesheets/staple/_browser.scss +141 -0
  92. data/source/stylesheets/staple/_button-group.scss +81 -0
  93. data/source/stylesheets/staple/_cards.scss +132 -0
  94. data/source/stylesheets/staple/_centered-navigation.scss +251 -0
  95. data/source/stylesheets/staple/_comment.scss +60 -0
  96. data/source/stylesheets/staple/_device.scss +83 -0
  97. data/source/stylesheets/staple/_dropdown.scss +127 -0
  98. data/source/stylesheets/staple/_expander.scss +30 -0
  99. data/source/stylesheets/staple/_flashes.scss +29 -0
  100. data/source/stylesheets/staple/_footer-2.scss +117 -0
  101. data/source/stylesheets/staple/_footer.scss +76 -0
  102. data/source/stylesheets/staple/_grid-items-lines.scss +86 -0
  103. data/source/stylesheets/staple/_grid-items.scss +97 -0
  104. data/source/stylesheets/staple/_hero.scss +54 -0
  105. data/source/stylesheets/staple/_hover-tile-animation.scss +52 -0
  106. data/source/stylesheets/staple/_icon-bullet-points.scss +63 -0
  107. data/source/stylesheets/staple/_image-gradient-dynamic.scss +59 -0
  108. data/source/stylesheets/staple/_intro-text.scss +67 -0
  109. data/source/stylesheets/staple/_label-alerts.scss +11 -0
  110. data/source/stylesheets/staple/_modal.scss +147 -0
  111. data/source/stylesheets/staple/_navigation.scss +329 -0
  112. data/source/stylesheets/staple/_pagination.scss +51 -0
  113. data/source/stylesheets/staple/_progress-bar-indication.scss +39 -0
  114. data/source/stylesheets/staple/_progress-bar.scss +83 -0
  115. data/source/stylesheets/staple/_search-bar.scss +40 -0
  116. data/source/stylesheets/staple/_search-tools.scss +67 -0
  117. data/source/stylesheets/staple/_side-image.scss +59 -0
  118. data/source/stylesheets/staple/_sliding-menu.scss +63 -0
  119. data/source/stylesheets/staple/_switch.scss +77 -0
  120. data/source/stylesheets/staple/_tables-minimal.scss +60 -0
  121. data/source/stylesheets/staple/_tables.scss +88 -0
  122. data/source/stylesheets/staple/_texture-legend.scss +182 -0
  123. data/source/stylesheets/staple/_textures.scss +119 -0
  124. data/source/stylesheets/staple/_tooltip.scss +57 -0
  125. data/source/stylesheets/staple/_type-system-geometric.scss +103 -0
  126. data/source/stylesheets/staple/_type-system-rounded.scss +107 -0
  127. data/source/stylesheets/staple/_type-system-sans.scss +110 -0
  128. data/source/stylesheets/staple/_type-system-serif.scss +111 -0
  129. data/source/stylesheets/staple/_type-system-slab.scss +107 -0
  130. data/source/stylesheets/staple/_type-system-traditional.scss +114 -0
  131. data/source/stylesheets/staple/_vertical-tabs.scss +105 -0
  132. data/source/stylesheets/staple/_video.scss +21 -0
  133. data/source/type-systems.html.erb +67 -0
  134. data/source/vendor/javascripts/ZeroClipboard.min.js +9 -0
  135. data/source/vendor/javascripts/fixedsticky.js +185 -0
  136. data/source/vendor/javascripts/prism.js +13 -0
  137. data/source/vendor/javascripts/smooth-scroll.js +125 -0
  138. data/source/vendor/stylesheets/fixedsticky.css +22 -0
  139. data/source/vendor/stylesheets/prism.css +126 -0
  140. data/staple.gemspec +19 -0
  141. metadata +184 -0
@@ -0,0 +1,5 @@
1
+ $('.js-accordion-trigger').bind('click', function(e){
2
+ jQuery(this).parent().find('.submenu').slideToggle('fast'); // apply the toggle to the ul
3
+ jQuery(this).parent().toggleClass('is-expanded');
4
+ e.preventDefault();
5
+ });
@@ -0,0 +1,19 @@
1
+ $(document).ready(function () {
2
+ $('.accordion-tabs').each(function(index) {
3
+ $(this).children('li').first().children('a').addClass('is-active').next().addClass('is-open').show();
4
+ });
5
+
6
+ $('.accordion-tabs').on('click', 'li > a', function(event) {
7
+ if (!$(this).hasClass('is-active')) {
8
+ event.preventDefault();
9
+ var accordionTabs = $(this).closest('.accordion-tabs');
10
+ accordionTabs.find('.is-open').removeClass('is-open').hide();
11
+
12
+ $(this).next().toggleClass('is-open').toggle();
13
+ accordionTabs.find('.is-active').removeClass('is-active');
14
+ $(this).addClass('is-active');
15
+ } else {
16
+ event.preventDefault();
17
+ }
18
+ });
19
+ });
@@ -0,0 +1,19 @@
1
+ $(document).ready(function () {
2
+ $('.accordion-tabs-minimal').each(function(index) {
3
+ $(this).children('li').first().children('a').addClass('is-active').next().addClass('is-open').show();
4
+ });
5
+
6
+ $('.accordion-tabs-minimal').on('click', 'li > a', function(event) {
7
+ if (!$(this).hasClass('is-active')) {
8
+ event.preventDefault();
9
+ var accordionTabs = $(this).closest('.accordion-tabs-minimal')
10
+ accordionTabs.find('.is-open').removeClass('is-open').hide();
11
+
12
+ $(this).next().toggleClass('is-open').toggle();
13
+ accordionTabs.find('.is-active').removeClass('is-active');
14
+ $(this).addClass('is-active');
15
+ } else {
16
+ event.preventDefault();
17
+ }
18
+ });
19
+ });
@@ -0,0 +1,14 @@
1
+ $(document).ready(function() {
2
+ var menu = $('.centered-navigation-menu');
3
+ var menuToggle = $('.centered-navigation-menu-button');
4
+ var signUp = $('.sign-up');
5
+
6
+ $(menuToggle).on('click', function(e) {
7
+ e.preventDefault();
8
+ menu.slideToggle(function(){
9
+ if(menu.is(':hidden')) {
10
+ menu.removeAttr('style');
11
+ }
12
+ });
13
+ });
14
+ });
@@ -0,0 +1,9 @@
1
+ $(document).ready(function(){
2
+ $(".dropdown-button").click(function(){
3
+ $(".menu").toggleClass("show-menu");
4
+ $(".menu > li").click(function(){
5
+ $(".dropdown-button").html($(this).html());
6
+ $(".menu").removeClass("show-menu");
7
+ });
8
+ });
9
+ });
@@ -0,0 +1,53 @@
1
+ var Expander;
2
+
3
+ Expander = (function() {
4
+ Expander.selector = '.expander';
5
+ Expander.toggleSelector = '.expander-toggle';
6
+ Expander.contentSelector = '.expander-content';
7
+ Expander.enhancedClass = 'js-expander';
8
+ Expander.expandedClass = 'expanded';
9
+
10
+ Expander.enhance = function() {
11
+ var thisClass;
12
+ thisClass = this;
13
+ return $(this.selector).each(function() {
14
+ return new thisClass(this).enhance();
15
+ });
16
+ };
17
+
18
+ function Expander(element) {
19
+ this._element = $(element);
20
+ this._toggleElement = this._element.find(this.constructor.toggleSelector);
21
+ this._contentElement = this._element.find(this.constructor.contentSelector);
22
+ }
23
+
24
+ Expander.prototype.enhance = function() {
25
+ this._element.addClass(this.constructor.enhancedClass);
26
+ this._buildUI();
27
+ return this._bindEvents();
28
+ };
29
+
30
+ Expander.prototype._buildUI = function() {
31
+ return this._contentElement.hide();
32
+ };
33
+
34
+ Expander.prototype._bindEvents = function() {
35
+ return this._toggleElement.click((function(_this) {
36
+ return function() {
37
+ return _this._toggleContent();
38
+ };
39
+ })(this));
40
+ };
41
+
42
+ Expander.prototype._toggleContent = function() {
43
+ this._contentElement.toggle();
44
+ return this._element.toggleClass(this.constructor.expandedClass);
45
+ };
46
+
47
+ return Expander;
48
+
49
+ })();
50
+
51
+ $(function() {
52
+ return Expander.enhance();
53
+ });
@@ -0,0 +1,23 @@
1
+ $(document).ready(function() {
2
+ var menu = $('#navigation-menu');
3
+ var menuToggle = $('#js-mobile-menu');
4
+ var signUp = $('.sign-up');
5
+
6
+ $(menuToggle).on('click', function(e) {
7
+ e.preventDefault();
8
+ menu.slideToggle(function(){
9
+ if(menu.is(':hidden')) {
10
+ menu.removeAttr('style');
11
+ }
12
+ });
13
+ });
14
+
15
+ // underline under the active nav item
16
+ $(".nav .nav-link").click(function() {
17
+ $(".nav .nav-link").each(function() {
18
+ $(this).removeClass("active-nav-item");
19
+ });
20
+ $(this).addClass("active-nav-item");
21
+ $(".nav .more").removeClass("active-nav-item");
22
+ });
23
+ });
@@ -0,0 +1,110 @@
1
+ var Filter = (function() {
2
+ function Filter(element) {
3
+ this._element = $(element);
4
+ this._optionsContainer = this._element.find(this.constructor.optionsContainerSelector);
5
+ }
6
+
7
+ Filter.selector = '.filter';
8
+ Filter.optionsContainerSelector = '> div';
9
+ Filter.hideOptionsClass = 'hide-options';
10
+
11
+ Filter.enhance = function() {
12
+ var klass = this;
13
+
14
+ return $(klass.selector).each(function() {
15
+ return new klass(this).enhance();
16
+ });
17
+ };
18
+
19
+ Filter.prototype.enhance = function() {
20
+ this._buildUI();
21
+ this._bindEvents();
22
+ };
23
+
24
+ Filter.prototype._buildUI = function() {
25
+ this._summaryElement = $('<label></label>').
26
+ addClass('summary').
27
+ attr('data-role', 'summary').
28
+ prependTo(this._optionsContainer);
29
+
30
+ this._clearSelectionButton = $('<button></button>').
31
+ text('Clear').
32
+ attr('type', 'button').
33
+ insertAfter(this._summaryElement);
34
+
35
+ this._optionsContainer.addClass(this.constructor.hideOptionsClass);
36
+ this._updateSummary();
37
+ };
38
+
39
+ Filter.prototype._bindEvents = function() {
40
+ var self = this;
41
+
42
+ this._summaryElement.click(function() {
43
+ self._toggleOptions();
44
+ });
45
+
46
+ this._clearSelectionButton.click(function() {
47
+ self._clearSelection();
48
+ });
49
+
50
+ this._checkboxes().change(function() {
51
+ self._updateSummary();
52
+ });
53
+
54
+ $('body').click(function(e) {
55
+ var inFilter = $(e.target).closest(self.constructor.selector).length > 0;
56
+
57
+ if (!inFilter) {
58
+ self._allOptionsContainers().addClass(self.constructor.hideOptionsClass);
59
+ }
60
+ });
61
+ };
62
+
63
+ Filter.prototype._toggleOptions = function() {
64
+ this._allOptionsContainers().
65
+ not(this._optionsContainer).
66
+ addClass(this.constructor.hideOptionsClass);
67
+
68
+ this._optionsContainer.toggleClass(this.constructor.hideOptionsClass);
69
+ };
70
+
71
+ Filter.prototype._updateSummary = function() {
72
+ var summary = 'All';
73
+ var checked = this._checkboxes().filter(':checked');
74
+
75
+ if (checked.length > 0) {
76
+ summary = this._labelsFor(checked).join(', ');
77
+ }
78
+
79
+ this._summaryElement.text(summary);
80
+ };
81
+
82
+ Filter.prototype._clearSelection = function() {
83
+ this._checkboxes().each(function() {
84
+ $(this).prop('checked', false);
85
+ });
86
+
87
+ this._updateSummary();
88
+ };
89
+
90
+ Filter.prototype._checkboxes = function() {
91
+ return this._element.find(':checkbox');
92
+ };
93
+
94
+ Filter.prototype._labelsFor = function(inputs) {
95
+ return inputs.map(function() {
96
+ var id = $(this).attr('id');
97
+ return $("label[for='" + id + "']").text();
98
+ }).get();
99
+ };
100
+
101
+ Filter.prototype._allOptionsContainers = function() {
102
+ return $(this.constructor.selector + " " + this.constructor.optionsContainerSelector);
103
+ };
104
+
105
+ return Filter;
106
+ })();
107
+
108
+ $(function() {
109
+ Filter.enhance();
110
+ });
@@ -0,0 +1,13 @@
1
+ $(document).ready(function(){
2
+ $('.js-menu-trigger').on('click touchstart', function(e){
3
+ $('.js-menu').toggleClass('is-visible');
4
+ $('.js-menu-screen').toggleClass('is-visible');
5
+ e.preventDefault();
6
+ });
7
+
8
+ $('.js-menu-screen').on('click touchstart', function(e){
9
+ $('.js-menu').toggleClass('is-visible');
10
+ $('.js-menu-screen').toggleClass('is-visible');
11
+ e.preventDefault();
12
+ });
13
+ });
@@ -0,0 +1,32 @@
1
+ $(".js-vertical-tab-content").hide();
2
+ $(".js-vertical-tab-content:first").show();
3
+
4
+ /* if in tab mode */
5
+ $(".js-vertical-tab").click(function(event) {
6
+ event.preventDefault();
7
+
8
+ $(".js-vertical-tab-content").hide();
9
+ var activeTab = $(this).attr("rel");
10
+ $("#"+activeTab).show();
11
+
12
+ $(".js-vertical-tab").removeClass("is-active");
13
+ $(this).addClass("is-active");
14
+
15
+ $(".js-vertical-tab-accordion-heading").removeClass("is-active");
16
+ $(".js-vertical-tab-accordion-heading[rel^='"+activeTab+"']").addClass("is-active");
17
+ });
18
+
19
+ /* if in accordion mode */
20
+ $(".js-vertical-tab-accordion-heading").click(function(event) {
21
+ event.preventDefault();
22
+
23
+ $(".js-vertical-tab-content").hide();
24
+ var accordion_activeTab = $(this).attr("rel");
25
+ $("#"+accordion_activeTab).show();
26
+
27
+ $(".js-vertical-tab-accordion-heading").removeClass("is-active");
28
+ $(this).addClass("is-active");
29
+
30
+ $(".js-vertical-tab").removeClass("is-active");
31
+ $(".js-vertical-tab[rel^='"+accordion_activeTab+"']").addClass("is-active");
32
+ });
@@ -0,0 +1 @@
1
+ <%= yield %>
@@ -0,0 +1,7 @@
1
+ <div class="refills-header">
2
+ <div class="refills-logo">
3
+ <img src="/images/refills-logo.svg" alt="Refills logo">
4
+ </div>
5
+ <h2><span>Refills</span> are prepackaged patterns and components, built on top of <a href="http://www.bourbon.io">Bourbon</a>, <a href="http://bitters.bourbon.io/">Bitters</a>, and <a href="http://neat.bourbon.io/">Neat</a>.</h2>
6
+ <p>Managed by <a href="http://www.thoughtbot.com">thoughtbot</a>, instructions at <a href="https://github.com/thoughtbot/refills">GitHub</a></p>
7
+ </div>
@@ -0,0 +1,5 @@
1
+ <ul class="refills-menu">
2
+ <li class="menu-item patterns"><%= link_to 'Patterns', '/index.html' %></li>
3
+ <li class="menu-item components"><%= link_to 'Components', '/components.html' %></li>
4
+ <li class="menu-item type-systems"><%= link_to 'Type Systems', '/type-systems.html' %></li>
5
+ </ul>
@@ -0,0 +1,66 @@
1
+ <!-- Type System tabs -->
2
+ <script>
3
+ var $tabs, $toggles, ACTIVE_CLASS;
4
+
5
+ ACTIVE_CLASS = 'js-is-active';
6
+
7
+ $tabs = $("[data-role='tab']");
8
+
9
+ $toggles = $tabs.find("[data-role='link']");
10
+
11
+ $toggles.on('click', function(event) {
12
+ var $tab, $toggle;
13
+ event.preventDefault();
14
+ $toggle = $(this);
15
+ $tab = $toggle.closest($tabs);
16
+ if (!$tab.hasClass(ACTIVE_CLASS)) {
17
+ $tabs.removeClass(ACTIVE_CLASS);
18
+ return $tab.addClass(ACTIVE_CLASS);
19
+ }
20
+ });
21
+ </script>
22
+
23
+ <!-- Show Code -->
24
+ <script>
25
+ $('a.js-show-code').on('click', function(e){
26
+ $(this).hide();
27
+ $(this).siblings('.js-hide-code').css('display', 'inline-block');
28
+ $(this).parent().siblings('.snippets-table').show();
29
+ e.preventDefault();
30
+ })
31
+
32
+ $('a.js-hide-code').on('click', function(e) {
33
+ $(this).hide();
34
+ $(this).siblings('.js-show-code').css("display", "inline-block");
35
+ $(this).parent().siblings('.snippets-table').hide();
36
+ e.preventDefault();
37
+ });
38
+ </script>
39
+
40
+ <!-- Copy Code -->
41
+ <script>
42
+ $(document).ready( function() {
43
+ client = new ZeroClipboard($('.copy-source'), {moviePath: '/images/ZeroClipboard.swf'})
44
+ client.on('dataRequested', function(client, args) {
45
+ code = $(this).siblings('pre').text();
46
+ client.setText(code);
47
+ });
48
+ });
49
+ </script>
50
+
51
+ <script>
52
+ $(document).ready(function(){
53
+
54
+ $('.js-menu-trigger-refills').on('click touchstart', function(e){
55
+ $('.er_toc').toggleClass('is-visible');
56
+ $('.js-menu-screen-refills').toggleClass('is-visible');
57
+ e.preventDefault();
58
+ });
59
+
60
+ $('.js-menu-screen-refills').on('click touchstart', function(e){
61
+ $('.er_toc').toggleClass('is-visible');
62
+ $('.js-menu-screen-refills').toggleClass('is-visible');
63
+ e.preventDefault();
64
+ });
65
+ });
66
+ </script>
@@ -0,0 +1,86 @@
1
+ $bourbon-nav-background-color: #5B5E63;
2
+
3
+ nav.bourbon {
4
+ @include clearfix;
5
+ background-color: $bourbon-nav-background-color;
6
+ padding: 0 2em 0 1em;
7
+
8
+ @include media(max-width em(510)){
9
+ padding: 0;
10
+ };
11
+
12
+ ul {
13
+ text-align: center;
14
+
15
+ @include media(em(901)) {
16
+ float: left;
17
+ text-align: left;
18
+ };
19
+ }
20
+
21
+ li {
22
+ display: inline-block;
23
+ }
24
+
25
+ a {
26
+ background-position: 1em center;
27
+ background-repeat: no-repeat;
28
+ color: #fff;
29
+ display: inline-block;
30
+ font-weight: bold;
31
+ padding: 1em 1em 1em 3em;
32
+
33
+ @include media(max-width em(515)) {
34
+ padding: .75em .5em;
35
+ text-align: center;
36
+ };
37
+
38
+ @include media(max-width em(900)){
39
+ display: block;
40
+ };
41
+
42
+ &:hover {
43
+ background-color: darken($bourbon-nav-background-color, 10);
44
+ color: #fff;
45
+ }
46
+
47
+ &.current {
48
+ background-color: darken($bourbon-nav-background-color, 5);
49
+ }
50
+
51
+ $sites: bourbon, neat, bitters, refills;
52
+
53
+ @each $site in $sites {
54
+ &.#{$site} {
55
+ background-image: url('/images/bourbon-nav/#{$site}.png');
56
+
57
+ @include hidpi {
58
+ background-image: url('/images/bourbon-nav/#{$site}@2x.png');
59
+ background-size: 20%;
60
+ }
61
+
62
+ @include media(max-width em(515)) {
63
+ background-image: none;
64
+ };
65
+ }
66
+ }
67
+ }
68
+
69
+ h1 {
70
+ color: rgba(#fff, .6);
71
+ float: right;
72
+ font-size: 1em;
73
+
74
+ @include media(max-width em(900)){
75
+ display: none;
76
+ };
77
+
78
+ a {
79
+ padding: 1em 0;
80
+
81
+ &:hover {
82
+ background-color: transparent;
83
+ }
84
+ }
85
+ }
86
+ }