staple 0.0.9 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -7
- data/Rakefile +1 -0
- data/lib/staple/install_generator.rb +11 -1
- data/source/stylesheets/after.scss +5 -0
- data/source/stylesheets/before.scss +9 -0
- data/source/stylesheets/buttons.scss +0 -0
- data/source/stylesheets/color.scss +0 -0
- data/source/stylesheets/forms.scss +0 -0
- data/source/stylesheets/foundation_and_overrides.scss +3 -0
- data/source/stylesheets/sizing.scss +0 -0
- data/source/stylesheets/typography.scss +0 -0
- data/source/stylesheets/utilities.scss +0 -0
- data/staple.gemspec +6 -6
- metadata +12 -190
- data/config.rb +0 -24
- data/source/CNAME +0 -1
- data/source/_accordion.html.erb +0 -24
- data/source/_accordion_tabs.html.erb +0 -26
- data/source/_accordion_tabs_minimal.html.erb +0 -26
- data/source/_badges.html.erb +0 -7
- data/source/_breadcrumbs.html.erb +0 -7
- data/source/_browser.html.erb +0 -29
- data/source/_button_group.html.erb +0 -18
- data/source/_cards.html.erb +0 -59
- data/source/_centered_navigation.html.erb +0 -38
- data/source/_code.html.erb +0 -10
- data/source/_comment.html.erb +0 -21
- data/source/_device.html.erb +0 -10
- data/source/_dropdown.html.erb +0 -12
- data/source/_expander.html.erb +0 -6
- data/source/_flashes.html.erb +0 -15
- data/source/_footer.html.erb +0 -28
- data/source/_footer_2.html.erb +0 -33
- data/source/_grid_items.html.erb +0 -37
- data/source/_grid_items_lines.html.erb +0 -44
- data/source/_hero.html.erb +0 -11
- data/source/_hover_tile_animation.html.erb +0 -11
- data/source/_icon_bullet_points.html.erb +0 -30
- data/source/_image_gradient_dynamic.html.erb +0 -7
- data/source/_intro_text.html.erb +0 -6
- data/source/_label_alerts.html.erb +0 -5
- data/source/_modal.html.erb +0 -14
- data/source/_navigation.html.erb +0 -44
- data/source/_pagination.html.erb +0 -17
- data/source/_progress_bar.html.erb +0 -3
- data/source/_progress_bar_indication.html.erb +0 -5
- data/source/_search_bar.html.erb +0 -8
- data/source/_search_tools.html.erb +0 -58
- data/source/_side_image.html.erb +0 -10
- data/source/_sliding_menu.html.erb +0 -13
- data/source/_snippet.html.erb +0 -4
- data/source/_switch.html.erb +0 -4
- data/source/_tables.html.erb +0 -31
- data/source/_tables_minimal.html.erb +0 -31
- data/source/_texture-legend.html.erb +0 -24
- data/source/_textures.html.erb +0 -4
- data/source/_tooltip.html.erb +0 -6
- data/source/_type_system_geometric.html.erb +0 -18
- data/source/_type_system_rounded.html.erb +0 -18
- data/source/_type_system_sans.html.erb +0 -18
- data/source/_type_system_serif.html.erb +0 -19
- data/source/_type_system_slab.html.erb +0 -18
- data/source/_type_system_traditional.html.erb +0 -18
- data/source/_vertical_tabs.html.erb +0 -30
- data/source/_video.html.erb +0 -5
- data/source/components.html.erb +0 -174
- data/source/foundation/application.html.slim +0 -17
- data/source/foundation/foundation_and_overrides.scss +0 -4
- data/source/index.html.erb +0 -162
- data/source/javascripts/all.js +0 -11
- data/source/javascripts/jquery.erToc.js +0 -477
- data/source/javascripts/jquery.glide.js +0 -941
- data/source/javascripts/staple/accordion.js +0 -5
- data/source/javascripts/staple/accordion_tabs.js +0 -19
- data/source/javascripts/staple/accordion_tabs_minimal.js +0 -19
- data/source/javascripts/staple/centered_navigation.js +0 -14
- data/source/javascripts/staple/dropdown.js +0 -9
- data/source/javascripts/staple/expander.js +0 -53
- data/source/javascripts/staple/navigation.js +0 -23
- data/source/javascripts/staple/search_tools.js +0 -110
- data/source/javascripts/staple/sliding_menu.js +0 -13
- data/source/javascripts/staple/vertical_tabs.js +0 -32
- data/source/layouts/layout.erb +0 -1
- data/source/refills-hero.html.erb +0 -7
- data/source/refills-menu.html.erb +0 -5
- data/source/refills-page-scripts.html.erb +0 -66
- data/source/stylesheets/_bourbon-nav.scss +0 -86
- data/source/stylesheets/_normalize.scss +0 -425
- data/source/stylesheets/_refills-nav.scss +0 -102
- data/source/stylesheets/_refills-styles.scss +0 -543
- data/source/stylesheets/all.scss +0 -61
- data/source/stylesheets/staple/_accordion-tabs-minimal.scss +0 -60
- data/source/stylesheets/staple/_accordion-tabs.scss +0 -88
- data/source/stylesheets/staple/_accordion.scss +0 -55
- data/source/stylesheets/staple/_badges.scss +0 -44
- data/source/stylesheets/staple/_breadcrumbs.scss +0 -84
- data/source/stylesheets/staple/_browser.scss +0 -141
- data/source/stylesheets/staple/_button-group.scss +0 -81
- data/source/stylesheets/staple/_cards.scss +0 -132
- data/source/stylesheets/staple/_centered-navigation.scss +0 -251
- data/source/stylesheets/staple/_comment.scss +0 -60
- data/source/stylesheets/staple/_device.scss +0 -83
- data/source/stylesheets/staple/_dropdown.scss +0 -127
- data/source/stylesheets/staple/_expander.scss +0 -30
- data/source/stylesheets/staple/_flashes.scss +0 -29
- data/source/stylesheets/staple/_footer-2.scss +0 -117
- data/source/stylesheets/staple/_footer.scss +0 -76
- data/source/stylesheets/staple/_grid-items-lines.scss +0 -86
- data/source/stylesheets/staple/_grid-items.scss +0 -97
- data/source/stylesheets/staple/_hero.scss +0 -54
- data/source/stylesheets/staple/_hover-tile-animation.scss +0 -52
- data/source/stylesheets/staple/_icon-bullet-points.scss +0 -63
- data/source/stylesheets/staple/_image-gradient-dynamic.scss +0 -59
- data/source/stylesheets/staple/_intro-text.scss +0 -67
- data/source/stylesheets/staple/_label-alerts.scss +0 -11
- data/source/stylesheets/staple/_modal.scss +0 -147
- data/source/stylesheets/staple/_navigation.scss +0 -329
- data/source/stylesheets/staple/_pagination.scss +0 -51
- data/source/stylesheets/staple/_progress-bar-indication.scss +0 -39
- data/source/stylesheets/staple/_progress-bar.scss +0 -83
- data/source/stylesheets/staple/_search-bar.scss +0 -40
- data/source/stylesheets/staple/_search-tools.scss +0 -67
- data/source/stylesheets/staple/_side-image.scss +0 -59
- data/source/stylesheets/staple/_sliding-menu.scss +0 -63
- data/source/stylesheets/staple/_switch.scss +0 -77
- data/source/stylesheets/staple/_tables-minimal.scss +0 -60
- data/source/stylesheets/staple/_tables.scss +0 -88
- data/source/stylesheets/staple/_texture-legend.scss +0 -182
- data/source/stylesheets/staple/_textures.scss +0 -119
- data/source/stylesheets/staple/_tooltip.scss +0 -57
- data/source/stylesheets/staple/_type-system-geometric.scss +0 -103
- data/source/stylesheets/staple/_type-system-rounded.scss +0 -107
- data/source/stylesheets/staple/_type-system-sans.scss +0 -110
- data/source/stylesheets/staple/_type-system-serif.scss +0 -111
- data/source/stylesheets/staple/_type-system-slab.scss +0 -107
- data/source/stylesheets/staple/_type-system-traditional.scss +0 -114
- data/source/stylesheets/staple/_vertical-tabs.scss +0 -105
- data/source/stylesheets/staple/_video.scss +0 -21
- data/source/type-systems.html.erb +0 -67
- data/source/vendor/javascripts/ZeroClipboard.min.js +0 -9
- data/source/vendor/javascripts/fixedsticky.js +0 -185
- data/source/vendor/javascripts/prism.js +0 -13
- data/source/vendor/javascripts/smooth-scroll.js +0 -125
- data/source/vendor/stylesheets/fixedsticky.css +0 -22
- data/source/vendor/stylesheets/prism.css +0 -126
@@ -1,19 +0,0 @@
|
|
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
|
-
});
|
@@ -1,19 +0,0 @@
|
|
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
|
-
});
|
@@ -1,14 +0,0 @@
|
|
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
|
-
});
|
@@ -1,53 +0,0 @@
|
|
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
|
-
});
|
@@ -1,23 +0,0 @@
|
|
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
|
-
});
|
@@ -1,110 +0,0 @@
|
|
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
|
-
});
|
@@ -1,13 +0,0 @@
|
|
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
|
-
});
|
@@ -1,32 +0,0 @@
|
|
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
|
-
});
|
data/source/layouts/layout.erb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
<%= yield %>
|
@@ -1,7 +0,0 @@
|
|
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>
|
@@ -1,5 +0,0 @@
|
|
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>
|
@@ -1,66 +0,0 @@
|
|
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>
|
@@ -1,86 +0,0 @@
|
|
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
|
-
}
|