refills 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.hound.yml +3 -2
- data/.ruby-version +1 -1
- data/.scss-lint.yml +97 -24
- data/CONTRIBUTING.md +4 -3
- data/Gemfile +13 -10
- data/README.md +31 -15
- data/circle.yml +7 -0
- data/config.rb +4 -13
- data/{lib → helpers}/snippet_helpers.rb +14 -6
- data/lib/refills/version.rb +1 -1
- data/refills.gemspec +2 -2
- data/sache.json +1 -1
- data/source/_badges.html.erb +1 -1
- data/source/_cards.html.erb +1 -1
- data/source/_centered_navigation.html.erb +5 -5
- data/source/_comment.html.erb +2 -2
- data/source/_device.html.erb +0 -1
- data/source/_expander.html.erb +2 -2
- data/source/_flex_boxes.html.erb +6 -6
- data/source/_footer.html.erb +1 -1
- data/source/_footer_2.html.erb +1 -1
- data/source/_grid_items.html.erb +7 -7
- data/source/_grid_items_lines.html.erb +8 -8
- data/source/_hero.html.erb +4 -9
- data/source/_icon_bullet_points.html.erb +6 -7
- data/source/_logo_section.html.erb +8 -0
- data/source/_modal.html.erb +2 -2
- data/source/_navigation.html.erb +2 -3
- data/source/_search_bar.html.erb +1 -1
- data/source/_search_tools.html.erb +54 -52
- data/source/_side_image.html.erb +0 -1
- data/source/_sliding_panel.html.erb +13 -0
- data/source/_type_system_geometric.html.erb +4 -3
- data/source/_type_system_rounded.html.erb +3 -3
- data/source/_type_system_sans.html.erb +3 -3
- data/source/_type_system_serif.html.erb +4 -4
- data/source/_type_system_slab.html.erb +3 -3
- data/source/_type_system_traditional.html.erb +3 -3
- data/source/components.html.erb +9 -5
- data/source/images/background-image.png +0 -0
- data/source/images/cosmin_capitanu_screen.jpg +0 -0
- data/source/images/new.svg +22 -0
- data/source/images/placeholder_square.png +0 -0
- data/source/images/placeholder_wide.png +0 -0
- data/source/images/placeholder_wider.png +0 -0
- data/source/index.html.erb +10 -3
- data/source/javascripts/jquery.erToc.js +1 -6
- data/source/javascripts/refills/accordion_base.js +5 -0
- data/source/javascripts/refills/accordion_tabs.js +1 -2
- data/source/javascripts/refills/accordion_tabs_minimal.js +1 -2
- data/source/javascripts/refills/base-accordion.js +5 -0
- data/source/javascripts/refills/centered_navigation.js +27 -9
- data/source/javascripts/refills/coffeescript/accordion.coffee +3 -4
- data/source/javascripts/refills/coffeescript/accordion_base.coffee +6 -0
- data/source/javascripts/refills/coffeescript/accordion_tabs.coffee +9 -12
- data/source/javascripts/refills/coffeescript/accordion_tabs_minimal.coffee +9 -12
- data/source/javascripts/refills/coffeescript/animate.coffee +4 -7
- data/source/javascripts/refills/coffeescript/base-accordion.coffee +5 -0
- data/source/javascripts/refills/coffeescript/centered_navigation.coffee +6 -8
- data/source/javascripts/refills/coffeescript/dropdown.coffee +6 -10
- data/source/javascripts/refills/coffeescript/expander.coffee +4 -6
- data/source/javascripts/refills/coffeescript/fade_in.coffee +6 -8
- data/source/javascripts/refills/coffeescript/modal.coffee +7 -11
- data/source/javascripts/refills/coffeescript/navigation.coffee +6 -8
- data/source/javascripts/refills/coffeescript/parallax.coffee +9 -8
- data/source/javascripts/refills/coffeescript/scroll_on_page.coffee +6 -11
- data/source/javascripts/refills/coffeescript/search_tools.coffee +0 -85
- data/source/javascripts/refills/coffeescript/sliding_panel.coffee +6 -0
- data/source/javascripts/refills/coffeescript/vertical_tabs.coffee +21 -21
- data/source/javascripts/refills/dropdown.js +8 -8
- data/source/javascripts/refills/expander.js +1 -4
- data/source/javascripts/refills/modal.js +1 -1
- data/source/javascripts/refills/navigation.js +26 -7
- data/source/javascripts/refills/navigation_centered.js +13 -0
- data/source/javascripts/refills/scroll_on_page.js +8 -5
- data/source/javascripts/refills/search_tools.js +2 -2
- data/source/javascripts/refills/sliding_panel.js +6 -0
- data/source/javascripts/refills/unstyled/accordion.js +5 -0
- data/source/javascripts/refills/unstyled/accordion_tabs.js +18 -0
- data/source/javascripts/refills/unstyled/dropdown.js +12 -0
- data/source/javascripts/refills/unstyled/expander.js +8 -0
- data/source/javascripts/refills/unstyled/modal.js +17 -0
- data/source/javascripts/refills/unstyled/navigation.js +13 -0
- data/source/javascripts/refills/unstyled/navigation_centered.js +13 -0
- data/source/javascripts/refills/unstyled/scroll_on_page.js +29 -0
- data/source/javascripts/refills/unstyled/sliding_panel.js +6 -0
- data/source/javascripts/refills/unstyled/vertical_tabs.js +32 -0
- data/source/layouts/layout.erb +3 -3
- data/source/refills-hero.html.erb +6 -3
- data/source/stylesheets/_bourbon-nav.scss +14 -7
- data/source/stylesheets/_refill.scss +215 -0
- data/source/stylesheets/_refills-footer.scss +62 -0
- data/source/stylesheets/_refills-header.scss +113 -0
- data/source/stylesheets/_refills-menu.scss +91 -0
- data/source/stylesheets/_refills-nav.scss +13 -13
- data/source/stylesheets/_refills-styles.scss +8 -644
- data/source/stylesheets/_refills-variables.scss +20 -0
- data/source/stylesheets/all.css.scss +78 -0
- data/source/stylesheets/refills/_accordion-tabs-minimal.scss +9 -14
- data/source/stylesheets/refills/_accordion-tabs.scss +11 -16
- data/source/stylesheets/refills/_accordion.scss +13 -29
- data/source/stylesheets/refills/_animate.scss +9 -10
- data/source/stylesheets/refills/_badges.scss +18 -35
- data/source/stylesheets/refills/_breadcrumbs.scss +15 -19
- data/source/stylesheets/refills/_button-group.scss +6 -12
- data/source/stylesheets/refills/_cards.scss +22 -31
- data/source/stylesheets/refills/_centered-navigation.scss +16 -13
- data/source/stylesheets/refills/_comment.scss +3 -6
- data/source/stylesheets/refills/_device.scss +29 -40
- data/source/stylesheets/refills/_dropdown.scss +17 -27
- data/source/stylesheets/refills/_expander.scss +14 -21
- data/source/stylesheets/refills/_fade-in.scss +7 -11
- data/source/stylesheets/refills/_flashes.scss +21 -33
- data/source/stylesheets/refills/_flex-boxes.scss +18 -26
- data/source/stylesheets/refills/_footer-2.scss +19 -33
- data/source/stylesheets/refills/_footer.scss +15 -38
- data/source/stylesheets/refills/_grid-items-lines.scss +12 -21
- data/source/stylesheets/refills/_grid-items.scss +31 -40
- data/source/stylesheets/refills/_hero.scss +22 -55
- data/source/stylesheets/refills/_hover-tile-animation.scss +8 -17
- data/source/stylesheets/refills/_icon-bullet-points.scss +26 -35
- data/source/stylesheets/refills/_image-gradient-dynamic.scss +31 -20
- data/source/stylesheets/refills/_logo-section.scss +25 -0
- data/source/stylesheets/refills/_maps.scss +2 -2
- data/source/stylesheets/refills/_modal.scss +32 -45
- data/source/stylesheets/refills/_navigation.scss +33 -39
- data/source/stylesheets/refills/_pagination.scss +10 -23
- data/source/stylesheets/refills/_progress-bar-indication.scss +8 -15
- data/source/stylesheets/refills/_progress-bar.scss +24 -26
- data/source/stylesheets/refills/_ribbon.scss +4 -5
- data/source/stylesheets/refills/_scroll-on-page.scss +12 -15
- data/source/stylesheets/refills/_search-bar.scss +6 -13
- data/source/stylesheets/refills/_search-tools.scss +41 -42
- data/source/stylesheets/refills/_side-image.scss +8 -20
- data/source/stylesheets/refills/_sliding-panel.scss +79 -0
- data/source/stylesheets/refills/_stats.scss +2 -3
- data/source/stylesheets/refills/_switch.scss +13 -16
- data/source/stylesheets/refills/_tables-minimal.scss +12 -24
- data/source/stylesheets/refills/_tables.scss +11 -20
- data/source/stylesheets/refills/_texture-legend.scss +17 -13
- data/source/stylesheets/refills/_textures.scss +13 -9
- data/source/stylesheets/refills/_tooltip.scss +9 -16
- data/source/stylesheets/refills/_type-system-geometric.scss +14 -17
- data/source/stylesheets/refills/_type-system-rounded.scss +19 -19
- data/source/stylesheets/refills/_type-system-sans.scss +26 -26
- data/source/stylesheets/refills/_type-system-serif.scss +17 -20
- data/source/stylesheets/refills/_type-system-slab.scss +14 -17
- data/source/stylesheets/refills/_type-system-traditional.scss +18 -21
- data/source/stylesheets/refills/_vertical-tabs.scss +26 -30
- data/source/stylesheets/refills/_video.scss +1 -1
- data/source/stylesheets/refills/unstyled/_accordion-tabs.scss +36 -0
- data/source/stylesheets/refills/unstyled/_accordion.scss +17 -0
- data/source/stylesheets/refills/unstyled/_button-group.scss +30 -0
- data/source/stylesheets/refills/unstyled/_cards.scss +20 -0
- data/source/stylesheets/refills/unstyled/_comment.scss +28 -0
- data/source/stylesheets/refills/unstyled/_dropdown.scss +42 -0
- data/source/stylesheets/refills/unstyled/_expander.scss +20 -0
- data/source/stylesheets/refills/unstyled/_footer.scss +64 -0
- data/source/stylesheets/refills/unstyled/_hover-menu.scss +60 -0
- data/source/stylesheets/refills/unstyled/_modal.scss +71 -0
- data/source/stylesheets/refills/unstyled/_navigation-centered.scss +92 -0
- data/source/stylesheets/refills/unstyled/_navigation.scss +82 -0
- data/source/stylesheets/refills/unstyled/_scroll-on-page.scss +22 -0
- data/source/stylesheets/refills/unstyled/_search-bar.scss +26 -0
- data/source/stylesheets/refills/unstyled/_sliding-panel.scss +36 -0
- data/source/stylesheets/refills/unstyled/_switch.scss +50 -0
- data/source/stylesheets/refills/unstyled/_tooltip.scss +36 -0
- data/source/stylesheets/refills/unstyled/_vertical-tabs.scss +53 -0
- data/source/stylesheets/vendor/prism.css +4 -4
- data/source/svgs/_menu_icon.html.erb +6 -0
- data/source/svgs/_refills_logo.html.erb +8 -0
- data/source/type-systems.html.erb +5 -1
- data/spec/refills/import_generator_spec.rb +1 -1
- metadata +59 -19
- data/.travis.yml +0 -8
- data/source/_sliding_menu.html.erb +0 -13
- 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/javascripts/refills/sliding_menu.js +0 -6
- data/source/stylesheets/all.scss +0 -66
- data/source/stylesheets/refills/_sliding-menu.scss +0 -86
@@ -0,0 +1,18 @@
|
|
1
|
+
$(document).ready(function () {
|
2
|
+
$('.accordion-tabs').each(function() {
|
3
|
+
$(this).children('li').first().children('a').addClass('is-active').next().addClass('is-open').show();
|
4
|
+
});
|
5
|
+
$('.accordion-tabs').on('click', 'li > a.tab-link', function(event) {
|
6
|
+
if (!$(this).hasClass('is-active')) {
|
7
|
+
event.preventDefault();
|
8
|
+
var accordionTabs = $(this).closest('.accordion-tabs');
|
9
|
+
accordionTabs.find('.is-open').removeClass('is-open').hide();
|
10
|
+
|
11
|
+
$(this).next().toggleClass('is-open').toggle();
|
12
|
+
accordionTabs.find('.is-active').removeClass('is-active');
|
13
|
+
$(this).addClass('is-active');
|
14
|
+
} else {
|
15
|
+
event.preventDefault();
|
16
|
+
}
|
17
|
+
});
|
18
|
+
});
|
@@ -0,0 +1,12 @@
|
|
1
|
+
$(document).ready(function(){
|
2
|
+
$(".dropdown-button").click(function() {
|
3
|
+
$(".dropdown-menu").toggleClass("show-menu");
|
4
|
+
$(".dropdown-menu > li").click(function(){
|
5
|
+
$(".dropdown-menu").removeClass("show-menu");
|
6
|
+
});
|
7
|
+
$(".dropdown-menu.dropdown-select > li").click(function() {
|
8
|
+
$(".dropdown-button").html($(this).html());
|
9
|
+
});
|
10
|
+
});
|
11
|
+
});
|
12
|
+
|
@@ -0,0 +1,8 @@
|
|
1
|
+
$(document).ready(function() {
|
2
|
+
var expanderTrigger = document.getElementById("js-expander-trigger");
|
3
|
+
var expanderContent = document.getElementById("js-expander-content");
|
4
|
+
|
5
|
+
$('#js-expander-trigger').click(function(){
|
6
|
+
$(this).toggleClass("expander-hidden");
|
7
|
+
});
|
8
|
+
});
|
@@ -0,0 +1,17 @@
|
|
1
|
+
$(function() {
|
2
|
+
$("#modal-1").on("change", function() {
|
3
|
+
if ($(this).is(":checked")) {
|
4
|
+
$("body").addClass("modal-open");
|
5
|
+
} else {
|
6
|
+
$("body").removeClass("modal-open");
|
7
|
+
}
|
8
|
+
});
|
9
|
+
|
10
|
+
$(".modal-fade-screen, .modal-close").on("click", function() {
|
11
|
+
$(".modal-state:checked").prop("checked", false).change();
|
12
|
+
});
|
13
|
+
|
14
|
+
$(".modal-inner").on("click", function(e) {
|
15
|
+
e.stopPropagation();
|
16
|
+
});
|
17
|
+
});
|
@@ -0,0 +1,13 @@
|
|
1
|
+
$(document).ready(function() {
|
2
|
+
var menuToggle = $('#js-mobile-menu').unbind();
|
3
|
+
$('#js-navigation-menu').removeClass("show");
|
4
|
+
|
5
|
+
menuToggle.on('click', function(e) {
|
6
|
+
e.preventDefault();
|
7
|
+
$('#js-navigation-menu').slideToggle(function(){
|
8
|
+
if($('#js-navigation-menu').is(':hidden')) {
|
9
|
+
$('#js-navigation-menu').removeAttr('style');
|
10
|
+
}
|
11
|
+
});
|
12
|
+
});
|
13
|
+
});
|
@@ -0,0 +1,13 @@
|
|
1
|
+
$(document).ready(function() {
|
2
|
+
var menuToggle = $("#js-navigation-centered-mobile-menu").unbind();
|
3
|
+
$("#js-navigation-centered-menu").removeClass("show");
|
4
|
+
|
5
|
+
menuToggle.on("click", function(e) {
|
6
|
+
e.preventDefault();
|
7
|
+
$("#js-navigation-centered-menu").slideToggle(function(){
|
8
|
+
if($("#js-navigation-centered-menu").is(":hidden")) {
|
9
|
+
$("#js-navigation-centered-menu").removeAttr("style");
|
10
|
+
}
|
11
|
+
});
|
12
|
+
});
|
13
|
+
});
|
@@ -0,0 +1,29 @@
|
|
1
|
+
(function (jQuery) {
|
2
|
+
jQuery.mark = {
|
3
|
+
jump: function (options) {
|
4
|
+
var defaults = {
|
5
|
+
selector: 'a.scroll-on-page-link'
|
6
|
+
};
|
7
|
+
if (typeof options == 'string') {
|
8
|
+
defaults.selector = options;
|
9
|
+
}
|
10
|
+
|
11
|
+
options = jQuery.extend(defaults, options);
|
12
|
+
return jQuery(options.selector).click(function (e) {
|
13
|
+
var jumpobj = jQuery(this);
|
14
|
+
var target = jumpobj.attr('href');
|
15
|
+
var thespeed = 1000;
|
16
|
+
var offset = jQuery(target).offset().top;
|
17
|
+
jQuery('html,body').animate({
|
18
|
+
scrollTop: offset
|
19
|
+
}, thespeed, 'swing');
|
20
|
+
e.preventDefault();
|
21
|
+
});
|
22
|
+
}
|
23
|
+
};
|
24
|
+
})(jQuery);
|
25
|
+
|
26
|
+
|
27
|
+
jQuery(function(){
|
28
|
+
jQuery.mark.jump();
|
29
|
+
});
|
@@ -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 accordionActiveTab = $(this).attr("rel");
|
25
|
+
$("#"+accordionActiveTab).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^='"+accordionActiveTab+"']").addClass("is-active");
|
32
|
+
});
|
data/source/layouts/layout.erb
CHANGED
@@ -4,8 +4,8 @@
|
|
4
4
|
<meta charset="utf-8">
|
5
5
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
6
6
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
7
|
-
<meta name="description" content="
|
8
|
-
<title
|
7
|
+
<meta name="description" content="Components and patterns built with Bourbon and Neat.">
|
8
|
+
<title>Refills<%= " - #{ current_page.data.title}" if current_page.data.title %></title>
|
9
9
|
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Oswald:400,300,700|Lusitana:400,700|Open+Sans:400,800">
|
10
10
|
<%= stylesheet_link_tag "all" %>
|
11
11
|
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
|
@@ -44,7 +44,7 @@
|
|
44
44
|
</footer>
|
45
45
|
</section>
|
46
46
|
</section>
|
47
|
-
|
47
|
+
|
48
48
|
<script src="https://maps.googleapis.com/maps/api/js"></script>
|
49
49
|
<script>
|
50
50
|
var bittersMap = (function () {
|
@@ -1,7 +1,10 @@
|
|
1
1
|
<div class="refills-header">
|
2
2
|
<div class="refills-logo">
|
3
|
-
|
3
|
+
<%= partial "svgs/refills_logo" %>
|
4
|
+
</div>
|
5
|
+
<h2>Components and patterns built with <a href="//bourbon.io">Bourbon</a> and <a href="//neat.bourbon.io">Neat</a>.</h2>
|
6
|
+
<a href="//empties.bourbon.io" class="empties-banner">New Library! Try out Empties: the unstyled Refills.</a>
|
7
|
+
<div>
|
8
|
+
<p>Managed by <a href="http://thoughtbot.com">thoughtbot</a>, instructions at <a href="//github.com/thoughtbot/refills">GitHub</a></p>
|
4
9
|
</div>
|
5
|
-
<h2><span>Refills</span> are prepackaged patterns and components, built on top of <a href="http://www.bourbon.io">Bourbon</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
10
|
</div>
|
@@ -4,15 +4,19 @@ nav.bourbon {
|
|
4
4
|
@include clearfix;
|
5
5
|
background-color: $bourbon-nav-background-color;
|
6
6
|
padding: 0 2em 0 1em;
|
7
|
+
text-rendering: optimizeLegibility;
|
7
8
|
|
8
|
-
@include media(max-width
|
9
|
+
@include media(max-width 32em) {
|
9
10
|
padding: 0;
|
10
11
|
};
|
11
12
|
|
12
13
|
ul {
|
14
|
+
list-style-type: none;
|
15
|
+
margin: 0;
|
16
|
+
padding: 0;
|
13
17
|
text-align: center;
|
14
18
|
|
15
|
-
@include media(
|
19
|
+
@include media(56.25em) {
|
16
20
|
float: left;
|
17
21
|
text-align: left;
|
18
22
|
};
|
@@ -29,13 +33,14 @@ nav.bourbon {
|
|
29
33
|
display: inline-block;
|
30
34
|
font-weight: bold;
|
31
35
|
padding: 1em 1em 1em 3em;
|
36
|
+
text-decoration: none;
|
32
37
|
|
33
|
-
@include media(max-width
|
38
|
+
@include media(max-width 32em) {
|
34
39
|
padding: 0.75em 0.5em;
|
35
40
|
text-align: center;
|
36
41
|
};
|
37
42
|
|
38
|
-
@include media(max-width
|
43
|
+
@include media(max-width 56.25em) {
|
39
44
|
display: block;
|
40
45
|
};
|
41
46
|
|
@@ -55,12 +60,12 @@ nav.bourbon {
|
|
55
60
|
&.#{$site} {
|
56
61
|
background-image: url("/images/bourbon-nav/#{$site}.png");
|
57
62
|
|
58
|
-
@
|
63
|
+
@media only screen and (min-resolution: 125dpi) {
|
59
64
|
background-image: url("/images/bourbon-nav/#{$site}@2x.png");
|
60
65
|
background-size: 20%;
|
61
66
|
}
|
62
67
|
|
63
|
-
@include media(max-width
|
68
|
+
@include media(max-width 32em) {
|
64
69
|
background-image: none;
|
65
70
|
};
|
66
71
|
}
|
@@ -71,13 +76,15 @@ nav.bourbon {
|
|
71
76
|
color: rgba(#fff, 0.6);
|
72
77
|
float: right;
|
73
78
|
font-size: 1em;
|
79
|
+
margin: 0;
|
74
80
|
|
75
|
-
@include media(max-width
|
81
|
+
@include media(max-width 56.25em) {
|
76
82
|
display: none;
|
77
83
|
};
|
78
84
|
|
79
85
|
a {
|
80
86
|
padding: 1em 0;
|
87
|
+
text-decoration: none;
|
81
88
|
|
82
89
|
&:hover {
|
83
90
|
background-color: transparent;
|
@@ -0,0 +1,215 @@
|
|
1
|
+
section.refill {
|
2
|
+
@include clearfix;
|
3
|
+
margin-bottom: 2em;
|
4
|
+
padding-bottom: 1em;
|
5
|
+
position: relative;
|
6
|
+
|
7
|
+
> h3 {
|
8
|
+
margin-bottom: 1.3em;
|
9
|
+
margin-top: 1em;
|
10
|
+
padding-top: 0.5em;
|
11
|
+
}
|
12
|
+
}
|
13
|
+
|
14
|
+
.refills-wrapper {
|
15
|
+
@include outer-container($refills-max-width);
|
16
|
+
padding: 1em;
|
17
|
+
|
18
|
+
h1.main-header {
|
19
|
+
background-color: $refills-color;
|
20
|
+
display: inline-block;
|
21
|
+
padding: 0.5em;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
.refill-centering {
|
26
|
+
text-align: center;
|
27
|
+
|
28
|
+
& > * {
|
29
|
+
display: inline-block;
|
30
|
+
|
31
|
+
& > * {
|
32
|
+
text-align: left;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
script {
|
37
|
+
display: none;
|
38
|
+
}
|
39
|
+
}
|
40
|
+
|
41
|
+
.line-behind-text {
|
42
|
+
border-bottom: 1px solid #cacaca;
|
43
|
+
margin-bottom: 4.5em;
|
44
|
+
text-align: center;
|
45
|
+
}
|
46
|
+
|
47
|
+
.line-behind-text h6 {
|
48
|
+
background: $refills-body-background-color;
|
49
|
+
color: #808080;
|
50
|
+
display: inline-block;
|
51
|
+
font-family: $refills-narrow-sans;
|
52
|
+
font-size: 1em;
|
53
|
+
font-weight: 500;
|
54
|
+
padding: 0 10px;
|
55
|
+
position: relative;
|
56
|
+
text-transform: uppercase;
|
57
|
+
top: 34px;
|
58
|
+
}
|
59
|
+
|
60
|
+
.refill h6 {
|
61
|
+
margin-bottom: 1.5em;
|
62
|
+
}
|
63
|
+
|
64
|
+
.js-hide-code,
|
65
|
+
.js-show-code {
|
66
|
+
border-top: 1px dashed #bebcbc;
|
67
|
+
color: #7e7a7a;
|
68
|
+
font-size: 0.8em;
|
69
|
+
text-transform: uppercase;
|
70
|
+
width: 9em;
|
71
|
+
|
72
|
+
&:hover {
|
73
|
+
color: $refills-accent-color;
|
74
|
+
}
|
75
|
+
}
|
76
|
+
|
77
|
+
.js-show-code {
|
78
|
+
display: inline-block;
|
79
|
+
padding: 0.5em 1em;
|
80
|
+
}
|
81
|
+
|
82
|
+
.js-hide-code {
|
83
|
+
display: none;
|
84
|
+
padding: 0.5em 1em;
|
85
|
+
}
|
86
|
+
|
87
|
+
|
88
|
+
.refill-control {
|
89
|
+
display: block;
|
90
|
+
margin-bottom: 2em;
|
91
|
+
text-align: center;
|
92
|
+
width: 100%;
|
93
|
+
|
94
|
+
a {
|
95
|
+
line-height: 1.5em;
|
96
|
+
text-decoration: none;
|
97
|
+
}
|
98
|
+
|
99
|
+
}
|
100
|
+
|
101
|
+
.refill-snippet {
|
102
|
+
margin-top: 4.5em;
|
103
|
+
padding: 0 1em;
|
104
|
+
|
105
|
+
table {
|
106
|
+
border-collapse: collapse;
|
107
|
+
margin: (1.5em / 2) 0;
|
108
|
+
table-layout: fixed;
|
109
|
+
width: 100%;
|
110
|
+
}
|
111
|
+
|
112
|
+
th {
|
113
|
+
font-weight: bold;
|
114
|
+
padding: (1.5em / 2) 0;
|
115
|
+
text-align: left;
|
116
|
+
}
|
117
|
+
|
118
|
+
td {
|
119
|
+
padding: (1.5em / 2) 0;
|
120
|
+
}
|
121
|
+
|
122
|
+
tr,
|
123
|
+
td,
|
124
|
+
th {
|
125
|
+
vertical-align: middle;
|
126
|
+
}
|
127
|
+
}
|
128
|
+
|
129
|
+
pre[class*="language-"] {
|
130
|
+
background-color: #f8f8f8;
|
131
|
+
border-top: 2px solid silver;
|
132
|
+
height: 300px;
|
133
|
+
line-height: 1em;
|
134
|
+
}
|
135
|
+
|
136
|
+
.snippets-table {
|
137
|
+
display: none;
|
138
|
+
|
139
|
+
td {
|
140
|
+
border-bottom: 0;
|
141
|
+
}
|
142
|
+
|
143
|
+
.snippet:nth-child(4n) {
|
144
|
+
display: none;
|
145
|
+
}
|
146
|
+
}
|
147
|
+
|
148
|
+
.snippet {
|
149
|
+
@include media($refills-medium-screen) {
|
150
|
+
margin-bottom: 2em;
|
151
|
+
}
|
152
|
+
|
153
|
+
.copy-source-container {
|
154
|
+
min-height: 3.4em;
|
155
|
+
|
156
|
+
@include media($refills-medium-screen) {
|
157
|
+
min-height: 2.5em;
|
158
|
+
}
|
159
|
+
|
160
|
+
@include media($refills-large-screen) {
|
161
|
+
min-height: 1em;
|
162
|
+
}
|
163
|
+
}
|
164
|
+
|
165
|
+
&:nth-of-type(1) .copy-source {
|
166
|
+
background: #e98065;
|
167
|
+
}
|
168
|
+
|
169
|
+
&:nth-of-type(2) .copy-source {
|
170
|
+
background: #55a1d4;
|
171
|
+
}
|
172
|
+
|
173
|
+
&:nth-of-type(3) .copy-source:nth-of-type(1) {
|
174
|
+
background: #e9c05b;
|
175
|
+
}
|
176
|
+
|
177
|
+
&:nth-of-type(3) .copy-source:nth-of-type(2) {
|
178
|
+
background: #89b981;
|
179
|
+
}
|
180
|
+
|
181
|
+
.copy-source {
|
182
|
+
border-bottom-left-radius: 10px;
|
183
|
+
border-bottom-right-radius: 0;
|
184
|
+
border-top-left-radius: 10px;
|
185
|
+
border-top-right-radius: 10px;
|
186
|
+
color: #fff;
|
187
|
+
display: inline-block;
|
188
|
+
font-size: 0.5em;
|
189
|
+
font-weight: 800;
|
190
|
+
padding: 0.4em 1em;
|
191
|
+
text-transform: uppercase;
|
192
|
+
|
193
|
+
&:hover,
|
194
|
+
&:active {
|
195
|
+
background-color: lighten(#333, 20%);
|
196
|
+
color: #fff;
|
197
|
+
}
|
198
|
+
}
|
199
|
+
|
200
|
+
a {
|
201
|
+
text-decoration: none;
|
202
|
+
}
|
203
|
+
|
204
|
+
code {
|
205
|
+
font-size: 0.6em;
|
206
|
+
line-height: 1.4em;
|
207
|
+
max-height: 25em;
|
208
|
+
overflow: scroll;
|
209
|
+
}
|
210
|
+
}
|
211
|
+
|
212
|
+
.refill-smaller {
|
213
|
+
margin: auto;
|
214
|
+
width: 70%;
|
215
|
+
}
|