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
@@ -1,9 +1,7 @@
|
|
1
1
|
$(document).ready ->
|
2
|
-
expanderTrigger = document.getElementById(
|
3
|
-
expanderContent = document.getElementById(
|
4
|
-
$(
|
5
|
-
$(this).toggleClass
|
2
|
+
expanderTrigger = document.getElementById('js-expander-trigger')
|
3
|
+
expanderContent = document.getElementById('js-expander-content')
|
4
|
+
$('#js-expander-trigger').click ->
|
5
|
+
$(this).toggleClass 'expander-hidden'
|
6
6
|
return
|
7
|
-
|
8
7
|
return
|
9
|
-
|
@@ -1,8 +1,8 @@
|
|
1
1
|
$(document).ready ->
|
2
|
-
element = document.getElementById(
|
3
|
-
$(element).addClass
|
2
|
+
element = document.getElementById('js-fadeInElement')
|
3
|
+
$(element).addClass 'js-fade-element-hide'
|
4
4
|
$(window).scroll ->
|
5
|
-
if $(
|
5
|
+
if $('#js-fadeInElement').length > 0
|
6
6
|
elementTopToPageTop = $(element).offset().top
|
7
7
|
windowTopToPageTop = $(window).scrollTop()
|
8
8
|
windowInnerHeight = window.innerHeight
|
@@ -10,11 +10,9 @@ $(document).ready ->
|
|
10
10
|
elementTopToWindowBottom = windowInnerHeight - elementTopToWindowTop
|
11
11
|
distanceFromBottomToAppear = 300
|
12
12
|
if elementTopToWindowBottom > distanceFromBottomToAppear
|
13
|
-
$(element).addClass
|
13
|
+
$(element).addClass 'js-fade-element-show'
|
14
14
|
else if elementTopToWindowBottom < 0
|
15
|
-
$(element).removeClass
|
16
|
-
$(element).addClass
|
15
|
+
$(element).removeClass 'js-fade-element-show'
|
16
|
+
$(element).addClass 'js-fade-element-hide'
|
17
17
|
return
|
18
|
-
|
19
18
|
return
|
20
|
-
|
@@ -1,18 +1,14 @@
|
|
1
1
|
$ ->
|
2
|
-
$(
|
3
|
-
if $(this).is(
|
4
|
-
$(
|
2
|
+
$('#modal-1').on 'change', ->
|
3
|
+
if $(this).is(':checked')
|
4
|
+
$('body').addClass 'modal-open'
|
5
5
|
else
|
6
|
-
$(
|
6
|
+
$('body').removeClass 'modal-open'
|
7
7
|
return
|
8
|
-
|
9
|
-
|
10
|
-
$(".modal-state:checked").prop("checked", false).change()
|
8
|
+
$('.modal-fade-screen, .modal-close').on 'click', ->
|
9
|
+
$('.modal-state:checked').prop('checked', false).change()
|
11
10
|
return
|
12
|
-
|
13
|
-
$(".modal-inner").on "click", (e) ->
|
11
|
+
$('.modal-inner').on 'click', (e) ->
|
14
12
|
e.stopPropagation()
|
15
13
|
return
|
16
|
-
|
17
14
|
return
|
18
|
-
|
@@ -1,13 +1,11 @@
|
|
1
1
|
$(document).ready ->
|
2
|
-
menuToggle = $(
|
3
|
-
$(
|
4
|
-
menuToggle.on
|
2
|
+
menuToggle = $('#js-mobile-menu').unbind()
|
3
|
+
$('#js-navigation-menu').removeClass 'show'
|
4
|
+
menuToggle.on 'click', (e) ->
|
5
5
|
e.preventDefault()
|
6
|
-
$(
|
7
|
-
|
6
|
+
$('#js-navigation-menu').slideToggle ->
|
7
|
+
if $('#js-navigation-menu').is(':hidden')
|
8
|
+
$('#js-navigation-menu').removeAttr 'style'
|
8
9
|
return
|
9
|
-
|
10
10
|
return
|
11
|
-
|
12
11
|
return
|
13
|
-
|
@@ -1,7 +1,7 @@
|
|
1
1
|
parallax = ->
|
2
|
-
if $(
|
3
|
-
plxBackground = $(
|
4
|
-
plxWindow = $(
|
2
|
+
if $('#js-parallax-window').length > 0
|
3
|
+
plxBackground = $('#js-parallax-background')
|
4
|
+
plxWindow = $('#js-parallax-window')
|
5
5
|
plxWindowTopToPageTop = $(plxWindow).offset().top
|
6
6
|
windowTopToPageTop = $(window).scrollTop()
|
7
7
|
plxWindowTopToWindowTop = plxWindowTopToPageTop - windowTopToPageTop
|
@@ -10,13 +10,14 @@ parallax = ->
|
|
10
10
|
plxBackgroundTopToWindowTop = plxBackgroundTopToPageTop - windowTopToPageTop
|
11
11
|
plxBackgroundTopToWindowBottom = windowInnerHeight - plxBackgroundTopToWindowTop
|
12
12
|
plxSpeed = 0.35
|
13
|
-
plxBackground.css
|
13
|
+
plxBackground.css 'top', -(plxWindowTopToWindowTop * plxSpeed) + 'px'
|
14
14
|
return
|
15
|
+
|
15
16
|
$(document).ready ->
|
16
|
-
|
17
|
+
if $('#js-parallax-window').length
|
18
|
+
parallax()
|
17
19
|
return
|
18
|
-
|
19
20
|
$(window).scroll (e) ->
|
20
|
-
|
21
|
+
if $('#js-parallax-window').length
|
22
|
+
parallax()
|
21
23
|
return
|
22
|
-
|
@@ -1,23 +1,18 @@
|
|
1
|
-
(
|
1
|
+
do (jQuery) ->
|
2
2
|
jQuery.mark = jump: (options) ->
|
3
|
-
defaults = selector:
|
4
|
-
|
3
|
+
defaults = selector: 'a.scroll-on-page-link'
|
4
|
+
if typeof options == 'string'
|
5
|
+
defaults.selector = options
|
5
6
|
options = jQuery.extend(defaults, options)
|
6
7
|
jQuery(options.selector).click (e) ->
|
7
8
|
jumpobj = jQuery(this)
|
8
|
-
target = jumpobj.attr(
|
9
|
+
target = jumpobj.attr('href')
|
9
10
|
thespeed = 1000
|
10
11
|
offset = jQuery(target).offset().top
|
11
|
-
jQuery(
|
12
|
-
scrollTop: offset
|
13
|
-
, thespeed, "swing"
|
12
|
+
jQuery('html,body').animate { scrollTop: offset }, thespeed, 'swing'
|
14
13
|
e.preventDefault()
|
15
14
|
return
|
16
|
-
|
17
|
-
|
18
15
|
return
|
19
|
-
) jQuery
|
20
16
|
jQuery ->
|
21
17
|
jQuery.mark.jump()
|
22
18
|
return
|
23
|
-
|
@@ -1,85 +0,0 @@
|
|
1
|
-
Filter = (->
|
2
|
-
Filter = (element) ->
|
3
|
-
@_element = $(element)
|
4
|
-
@_optionsContainer = @_element.find(@constructor.optionsContainerSelector)
|
5
|
-
return
|
6
|
-
Filter.selector = ".filter"
|
7
|
-
Filter.optionsContainerSelector = "> div"
|
8
|
-
Filter.hideOptionsClass = "hide-options"
|
9
|
-
Filter.enhance = ->
|
10
|
-
klass = this
|
11
|
-
$(klass.selector).each ->
|
12
|
-
new klass(this).enhance()
|
13
|
-
|
14
|
-
|
15
|
-
Filter::enhance = ->
|
16
|
-
@_buildUI()
|
17
|
-
@_bindEvents()
|
18
|
-
return
|
19
|
-
|
20
|
-
Filter::_buildUI = ->
|
21
|
-
@_summaryElement = $("<label></label>").addClass("summary").attr("data-role", "summary").prependTo(@_optionsContainer)
|
22
|
-
@_clearSelectionButton = $("<button></button>").text("Clear").attr("type", "button").insertAfter(@_summaryElement)
|
23
|
-
@_optionsContainer.addClass @constructor.hideOptionsClass
|
24
|
-
@_updateSummary()
|
25
|
-
return
|
26
|
-
|
27
|
-
Filter::_bindEvents = ->
|
28
|
-
self = this
|
29
|
-
@_summaryElement.click ->
|
30
|
-
self._toggleOptions()
|
31
|
-
return
|
32
|
-
|
33
|
-
@_clearSelectionButton.click ->
|
34
|
-
self._clearSelection()
|
35
|
-
return
|
36
|
-
|
37
|
-
@_checkboxes().change ->
|
38
|
-
self._updateSummary()
|
39
|
-
return
|
40
|
-
|
41
|
-
$("body").click (e) ->
|
42
|
-
inFilter = $(e.target).closest(self.constructor.selector).length > 0
|
43
|
-
self._allOptionsContainers().addClass self.constructor.hideOptionsClass unless inFilter
|
44
|
-
return
|
45
|
-
|
46
|
-
return
|
47
|
-
|
48
|
-
Filter::_toggleOptions = ->
|
49
|
-
@_allOptionsContainers().not(@_optionsContainer).addClass @constructor.hideOptionsClass
|
50
|
-
@_optionsContainer.toggleClass @constructor.hideOptionsClass
|
51
|
-
return
|
52
|
-
|
53
|
-
Filter::_updateSummary = ->
|
54
|
-
summary = "All"
|
55
|
-
checked = @_checkboxes().filter(":checked")
|
56
|
-
summary = @_labelsFor(checked).join(", ") if checked.length > 0
|
57
|
-
@_summaryElement.text summary
|
58
|
-
return
|
59
|
-
|
60
|
-
Filter::_clearSelection = ->
|
61
|
-
@_checkboxes().each ->
|
62
|
-
$(this).prop "checked", false
|
63
|
-
return
|
64
|
-
|
65
|
-
@_updateSummary()
|
66
|
-
return
|
67
|
-
|
68
|
-
Filter::_checkboxes = ->
|
69
|
-
@_element.find ":checkbox"
|
70
|
-
|
71
|
-
Filter::_labelsFor = (inputs) ->
|
72
|
-
inputs.map(->
|
73
|
-
id = $(this).attr("id")
|
74
|
-
$("label[for='" + id + "']").text()
|
75
|
-
).get()
|
76
|
-
|
77
|
-
Filter::_allOptionsContainers = ->
|
78
|
-
$ @constructor.selector + " " + @constructor.optionsContainerSelector
|
79
|
-
|
80
|
-
Filter
|
81
|
-
)()
|
82
|
-
$ ->
|
83
|
-
Filter.enhance()
|
84
|
-
return
|
85
|
-
|
@@ -1,28 +1,28 @@
|
|
1
|
-
$(
|
2
|
-
$(
|
1
|
+
$('.js-vertical-tab-content').hide()
|
2
|
+
$('.js-vertical-tab-content:first').show()
|
3
3
|
|
4
|
-
|
5
|
-
|
4
|
+
### if in tab mode ###
|
5
|
+
|
6
|
+
$('.js-vertical-tab').click (event) ->
|
6
7
|
event.preventDefault()
|
7
|
-
$(
|
8
|
-
activeTab = $(this).attr(
|
9
|
-
$(
|
10
|
-
$(
|
11
|
-
$(this).addClass
|
12
|
-
$(
|
13
|
-
$(
|
8
|
+
$('.js-vertical-tab-content').hide()
|
9
|
+
activeTab = $(this).attr('rel')
|
10
|
+
$('#' + activeTab).show()
|
11
|
+
$('.js-vertical-tab').removeClass 'is-active'
|
12
|
+
$(this).addClass 'is-active'
|
13
|
+
$('.js-vertical-tab-accordion-heading').removeClass 'is-active'
|
14
|
+
$('.js-vertical-tab-accordion-heading[rel^=\'' + activeTab + '\']').addClass 'is-active'
|
14
15
|
return
|
15
16
|
|
17
|
+
### if in accordion mode ###
|
16
18
|
|
17
|
-
|
18
|
-
$(".js-vertical-tab-accordion-heading").click (event) ->
|
19
|
+
$('.js-vertical-tab-accordion-heading').click (event) ->
|
19
20
|
event.preventDefault()
|
20
|
-
$(
|
21
|
-
accordion_activeTab = $(this).attr(
|
22
|
-
$(
|
23
|
-
$(
|
24
|
-
$(this).addClass
|
25
|
-
$(
|
26
|
-
$(
|
21
|
+
$('.js-vertical-tab-content').hide()
|
22
|
+
accordion_activeTab = $(this).attr('rel')
|
23
|
+
$('#' + accordion_activeTab).show()
|
24
|
+
$('.js-vertical-tab-accordion-heading').removeClass 'is-active'
|
25
|
+
$(this).addClass 'is-active'
|
26
|
+
$('.js-vertical-tab').removeClass 'is-active'
|
27
|
+
$('.js-vertical-tab[rel^=\'' + accordion_activeTab + '\']').addClass 'is-active'
|
27
28
|
return
|
28
|
-
|
@@ -1,12 +1,12 @@
|
|
1
|
-
$(document).ready(function(){
|
1
|
+
$(document).ready(function() {
|
2
2
|
$(".dropdown-button").click(function() {
|
3
|
-
$
|
4
|
-
$
|
5
|
-
|
6
|
-
|
7
|
-
$("
|
8
|
-
$("
|
3
|
+
var $button, $menu;
|
4
|
+
$button = $(this);
|
5
|
+
$menu = $button.siblings(".dropdown-menu");
|
6
|
+
$menu.toggleClass("show-menu");
|
7
|
+
$menu.children("li").click(function() {
|
8
|
+
$menu.removeClass("show-menu");
|
9
|
+
$button.html($(this).html());
|
9
10
|
});
|
10
11
|
});
|
11
12
|
});
|
12
|
-
|
@@ -1,8 +1,5 @@
|
|
1
1
|
$(document).ready(function() {
|
2
|
-
|
3
|
-
var expanderContent = document.getElementById("js-expander-content");
|
4
|
-
|
5
|
-
$('#js-expander-trigger').click(function(){
|
2
|
+
$('.expander-trigger').click(function(){
|
6
3
|
$(this).toggleClass("expander-hidden");
|
7
4
|
});
|
8
5
|
});
|
@@ -1,13 +1,32 @@
|
|
1
|
+
$(window).resize(function() {
|
2
|
+
var more = document.getElementById("js-navigation-more");
|
3
|
+
if ($(more).length > 0) {
|
4
|
+
var windowWidth = $(window).width();
|
5
|
+
var moreLeftSideToPageLeftSide = $(more).offset().left;
|
6
|
+
var moreLeftSideToPageRightSide = windowWidth - moreLeftSideToPageLeftSide;
|
7
|
+
|
8
|
+
if (moreLeftSideToPageRightSide < 330) {
|
9
|
+
$("#js-navigation-more .submenu .submenu").removeClass("fly-out-right");
|
10
|
+
$("#js-navigation-more .submenu .submenu").addClass("fly-out-left");
|
11
|
+
}
|
12
|
+
|
13
|
+
if (moreLeftSideToPageRightSide > 330) {
|
14
|
+
$("#js-navigation-more .submenu .submenu").removeClass("fly-out-left");
|
15
|
+
$("#js-navigation-more .submenu .submenu").addClass("fly-out-right");
|
16
|
+
}
|
17
|
+
}
|
18
|
+
});
|
19
|
+
|
1
20
|
$(document).ready(function() {
|
2
|
-
var menuToggle = $(
|
3
|
-
$(
|
21
|
+
var menuToggle = $("#js-mobile-menu").unbind();
|
22
|
+
$("#js-navigation-menu").removeClass("show");
|
4
23
|
|
5
|
-
menuToggle.on(
|
24
|
+
menuToggle.on("click", function(e) {
|
6
25
|
e.preventDefault();
|
7
|
-
$(
|
8
|
-
if($(
|
9
|
-
$(
|
26
|
+
$("#js-navigation-menu").slideToggle(function(){
|
27
|
+
if($("#js-navigation-menu").is(":hidden")) {
|
28
|
+
$("#js-navigation-menu").removeAttr("style");
|
10
29
|
}
|
11
30
|
});
|
12
31
|
});
|
13
|
-
});
|
32
|
+
});
|
@@ -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
|
+
});
|
@@ -4,8 +4,11 @@
|
|
4
4
|
var defaults = {
|
5
5
|
selector: 'a.scroll-on-page-link'
|
6
6
|
};
|
7
|
-
if (typeof options == 'string')
|
8
|
-
|
7
|
+
if (typeof options == 'string') {
|
8
|
+
defaults.selector = options;
|
9
|
+
}
|
10
|
+
|
11
|
+
options = jQuery.extend(defaults, options);
|
9
12
|
return jQuery(options.selector).click(function (e) {
|
10
13
|
var jumpobj = jQuery(this);
|
11
14
|
var target = jumpobj.attr('href');
|
@@ -13,11 +16,11 @@
|
|
13
16
|
var offset = jQuery(target).offset().top;
|
14
17
|
jQuery('html,body').animate({
|
15
18
|
scrollTop: offset
|
16
|
-
}, thespeed, 'swing')
|
19
|
+
}, thespeed, 'swing');
|
17
20
|
e.preventDefault();
|
18
|
-
})
|
21
|
+
});
|
19
22
|
}
|
20
|
-
}
|
23
|
+
};
|
21
24
|
})(jQuery);
|
22
25
|
|
23
26
|
|
@@ -27,7 +27,7 @@ var Filter = (function() {
|
|
27
27
|
attr('data-role', 'summary').
|
28
28
|
prependTo(this._optionsContainer);
|
29
29
|
|
30
|
-
this._clearSelectionButton = $('<button></button>').
|
30
|
+
this._clearSelectionButton = $('<button class=clear></button>').
|
31
31
|
text('Clear').
|
32
32
|
attr('type', 'button').
|
33
33
|
insertAfter(this._summaryElement);
|
@@ -72,7 +72,7 @@ var Filter = (function() {
|
|
72
72
|
var summary = 'All';
|
73
73
|
var checked = this._checkboxes().filter(':checked');
|
74
74
|
|
75
|
-
if (checked.length > 0) {
|
75
|
+
if (checked.length > 0 && checked.length < this._checkboxes().length) {
|
76
76
|
summary = this._labelsFor(checked).join(', ');
|
77
77
|
}
|
78
78
|
|