refills 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (188) hide show
  1. checksums.yaml +4 -4
  2. data/.hound.yml +3 -2
  3. data/.ruby-version +1 -1
  4. data/.scss-lint.yml +97 -24
  5. data/CONTRIBUTING.md +4 -3
  6. data/Gemfile +13 -10
  7. data/README.md +31 -15
  8. data/circle.yml +7 -0
  9. data/config.rb +4 -13
  10. data/{lib → helpers}/snippet_helpers.rb +14 -6
  11. data/lib/refills/version.rb +1 -1
  12. data/refills.gemspec +2 -2
  13. data/sache.json +1 -1
  14. data/source/_badges.html.erb +1 -1
  15. data/source/_cards.html.erb +1 -1
  16. data/source/_centered_navigation.html.erb +5 -5
  17. data/source/_comment.html.erb +2 -2
  18. data/source/_device.html.erb +0 -1
  19. data/source/_expander.html.erb +2 -2
  20. data/source/_flex_boxes.html.erb +6 -6
  21. data/source/_footer.html.erb +1 -1
  22. data/source/_footer_2.html.erb +1 -1
  23. data/source/_grid_items.html.erb +7 -7
  24. data/source/_grid_items_lines.html.erb +8 -8
  25. data/source/_hero.html.erb +4 -9
  26. data/source/_icon_bullet_points.html.erb +6 -7
  27. data/source/_logo_section.html.erb +8 -0
  28. data/source/_modal.html.erb +2 -2
  29. data/source/_navigation.html.erb +2 -3
  30. data/source/_search_bar.html.erb +1 -1
  31. data/source/_search_tools.html.erb +54 -52
  32. data/source/_side_image.html.erb +0 -1
  33. data/source/_sliding_panel.html.erb +13 -0
  34. data/source/_type_system_geometric.html.erb +4 -3
  35. data/source/_type_system_rounded.html.erb +3 -3
  36. data/source/_type_system_sans.html.erb +3 -3
  37. data/source/_type_system_serif.html.erb +4 -4
  38. data/source/_type_system_slab.html.erb +3 -3
  39. data/source/_type_system_traditional.html.erb +3 -3
  40. data/source/components.html.erb +9 -5
  41. data/source/images/background-image.png +0 -0
  42. data/source/images/cosmin_capitanu_screen.jpg +0 -0
  43. data/source/images/new.svg +22 -0
  44. data/source/images/placeholder_square.png +0 -0
  45. data/source/images/placeholder_wide.png +0 -0
  46. data/source/images/placeholder_wider.png +0 -0
  47. data/source/index.html.erb +10 -3
  48. data/source/javascripts/jquery.erToc.js +1 -6
  49. data/source/javascripts/refills/accordion_base.js +5 -0
  50. data/source/javascripts/refills/accordion_tabs.js +1 -2
  51. data/source/javascripts/refills/accordion_tabs_minimal.js +1 -2
  52. data/source/javascripts/refills/base-accordion.js +5 -0
  53. data/source/javascripts/refills/centered_navigation.js +27 -9
  54. data/source/javascripts/refills/coffeescript/accordion.coffee +3 -4
  55. data/source/javascripts/refills/coffeescript/accordion_base.coffee +6 -0
  56. data/source/javascripts/refills/coffeescript/accordion_tabs.coffee +9 -12
  57. data/source/javascripts/refills/coffeescript/accordion_tabs_minimal.coffee +9 -12
  58. data/source/javascripts/refills/coffeescript/animate.coffee +4 -7
  59. data/source/javascripts/refills/coffeescript/base-accordion.coffee +5 -0
  60. data/source/javascripts/refills/coffeescript/centered_navigation.coffee +6 -8
  61. data/source/javascripts/refills/coffeescript/dropdown.coffee +6 -10
  62. data/source/javascripts/refills/coffeescript/expander.coffee +4 -6
  63. data/source/javascripts/refills/coffeescript/fade_in.coffee +6 -8
  64. data/source/javascripts/refills/coffeescript/modal.coffee +7 -11
  65. data/source/javascripts/refills/coffeescript/navigation.coffee +6 -8
  66. data/source/javascripts/refills/coffeescript/parallax.coffee +9 -8
  67. data/source/javascripts/refills/coffeescript/scroll_on_page.coffee +6 -11
  68. data/source/javascripts/refills/coffeescript/search_tools.coffee +0 -85
  69. data/source/javascripts/refills/coffeescript/sliding_panel.coffee +6 -0
  70. data/source/javascripts/refills/coffeescript/vertical_tabs.coffee +21 -21
  71. data/source/javascripts/refills/dropdown.js +8 -8
  72. data/source/javascripts/refills/expander.js +1 -4
  73. data/source/javascripts/refills/modal.js +1 -1
  74. data/source/javascripts/refills/navigation.js +26 -7
  75. data/source/javascripts/refills/navigation_centered.js +13 -0
  76. data/source/javascripts/refills/scroll_on_page.js +8 -5
  77. data/source/javascripts/refills/search_tools.js +2 -2
  78. data/source/javascripts/refills/sliding_panel.js +6 -0
  79. data/source/javascripts/refills/unstyled/accordion.js +5 -0
  80. data/source/javascripts/refills/unstyled/accordion_tabs.js +18 -0
  81. data/source/javascripts/refills/unstyled/dropdown.js +12 -0
  82. data/source/javascripts/refills/unstyled/expander.js +8 -0
  83. data/source/javascripts/refills/unstyled/modal.js +17 -0
  84. data/source/javascripts/refills/unstyled/navigation.js +13 -0
  85. data/source/javascripts/refills/unstyled/navigation_centered.js +13 -0
  86. data/source/javascripts/refills/unstyled/scroll_on_page.js +29 -0
  87. data/source/javascripts/refills/unstyled/sliding_panel.js +6 -0
  88. data/source/javascripts/refills/unstyled/vertical_tabs.js +32 -0
  89. data/source/layouts/layout.erb +3 -3
  90. data/source/refills-hero.html.erb +6 -3
  91. data/source/stylesheets/_bourbon-nav.scss +14 -7
  92. data/source/stylesheets/_refill.scss +215 -0
  93. data/source/stylesheets/_refills-footer.scss +62 -0
  94. data/source/stylesheets/_refills-header.scss +113 -0
  95. data/source/stylesheets/_refills-menu.scss +91 -0
  96. data/source/stylesheets/_refills-nav.scss +13 -13
  97. data/source/stylesheets/_refills-styles.scss +8 -644
  98. data/source/stylesheets/_refills-variables.scss +20 -0
  99. data/source/stylesheets/all.css.scss +78 -0
  100. data/source/stylesheets/refills/_accordion-tabs-minimal.scss +9 -14
  101. data/source/stylesheets/refills/_accordion-tabs.scss +11 -16
  102. data/source/stylesheets/refills/_accordion.scss +13 -29
  103. data/source/stylesheets/refills/_animate.scss +9 -10
  104. data/source/stylesheets/refills/_badges.scss +18 -35
  105. data/source/stylesheets/refills/_breadcrumbs.scss +15 -19
  106. data/source/stylesheets/refills/_button-group.scss +6 -12
  107. data/source/stylesheets/refills/_cards.scss +22 -31
  108. data/source/stylesheets/refills/_centered-navigation.scss +16 -13
  109. data/source/stylesheets/refills/_comment.scss +3 -6
  110. data/source/stylesheets/refills/_device.scss +29 -40
  111. data/source/stylesheets/refills/_dropdown.scss +17 -27
  112. data/source/stylesheets/refills/_expander.scss +14 -21
  113. data/source/stylesheets/refills/_fade-in.scss +7 -11
  114. data/source/stylesheets/refills/_flashes.scss +21 -33
  115. data/source/stylesheets/refills/_flex-boxes.scss +18 -26
  116. data/source/stylesheets/refills/_footer-2.scss +19 -33
  117. data/source/stylesheets/refills/_footer.scss +15 -38
  118. data/source/stylesheets/refills/_grid-items-lines.scss +12 -21
  119. data/source/stylesheets/refills/_grid-items.scss +31 -40
  120. data/source/stylesheets/refills/_hero.scss +22 -55
  121. data/source/stylesheets/refills/_hover-tile-animation.scss +8 -17
  122. data/source/stylesheets/refills/_icon-bullet-points.scss +26 -35
  123. data/source/stylesheets/refills/_image-gradient-dynamic.scss +31 -20
  124. data/source/stylesheets/refills/_logo-section.scss +25 -0
  125. data/source/stylesheets/refills/_maps.scss +2 -2
  126. data/source/stylesheets/refills/_modal.scss +32 -45
  127. data/source/stylesheets/refills/_navigation.scss +33 -39
  128. data/source/stylesheets/refills/_pagination.scss +10 -23
  129. data/source/stylesheets/refills/_progress-bar-indication.scss +8 -15
  130. data/source/stylesheets/refills/_progress-bar.scss +24 -26
  131. data/source/stylesheets/refills/_ribbon.scss +4 -5
  132. data/source/stylesheets/refills/_scroll-on-page.scss +12 -15
  133. data/source/stylesheets/refills/_search-bar.scss +6 -13
  134. data/source/stylesheets/refills/_search-tools.scss +41 -42
  135. data/source/stylesheets/refills/_side-image.scss +8 -20
  136. data/source/stylesheets/refills/_sliding-panel.scss +79 -0
  137. data/source/stylesheets/refills/_stats.scss +2 -3
  138. data/source/stylesheets/refills/_switch.scss +13 -16
  139. data/source/stylesheets/refills/_tables-minimal.scss +12 -24
  140. data/source/stylesheets/refills/_tables.scss +11 -20
  141. data/source/stylesheets/refills/_texture-legend.scss +17 -13
  142. data/source/stylesheets/refills/_textures.scss +13 -9
  143. data/source/stylesheets/refills/_tooltip.scss +9 -16
  144. data/source/stylesheets/refills/_type-system-geometric.scss +14 -17
  145. data/source/stylesheets/refills/_type-system-rounded.scss +19 -19
  146. data/source/stylesheets/refills/_type-system-sans.scss +26 -26
  147. data/source/stylesheets/refills/_type-system-serif.scss +17 -20
  148. data/source/stylesheets/refills/_type-system-slab.scss +14 -17
  149. data/source/stylesheets/refills/_type-system-traditional.scss +18 -21
  150. data/source/stylesheets/refills/_vertical-tabs.scss +26 -30
  151. data/source/stylesheets/refills/_video.scss +1 -1
  152. data/source/stylesheets/refills/unstyled/_accordion-tabs.scss +36 -0
  153. data/source/stylesheets/refills/unstyled/_accordion.scss +17 -0
  154. data/source/stylesheets/refills/unstyled/_button-group.scss +30 -0
  155. data/source/stylesheets/refills/unstyled/_cards.scss +20 -0
  156. data/source/stylesheets/refills/unstyled/_comment.scss +28 -0
  157. data/source/stylesheets/refills/unstyled/_dropdown.scss +42 -0
  158. data/source/stylesheets/refills/unstyled/_expander.scss +20 -0
  159. data/source/stylesheets/refills/unstyled/_footer.scss +64 -0
  160. data/source/stylesheets/refills/unstyled/_hover-menu.scss +60 -0
  161. data/source/stylesheets/refills/unstyled/_modal.scss +71 -0
  162. data/source/stylesheets/refills/unstyled/_navigation-centered.scss +92 -0
  163. data/source/stylesheets/refills/unstyled/_navigation.scss +82 -0
  164. data/source/stylesheets/refills/unstyled/_scroll-on-page.scss +22 -0
  165. data/source/stylesheets/refills/unstyled/_search-bar.scss +26 -0
  166. data/source/stylesheets/refills/unstyled/_sliding-panel.scss +36 -0
  167. data/source/stylesheets/refills/unstyled/_switch.scss +50 -0
  168. data/source/stylesheets/refills/unstyled/_tooltip.scss +36 -0
  169. data/source/stylesheets/refills/unstyled/_vertical-tabs.scss +53 -0
  170. data/source/stylesheets/vendor/prism.css +4 -4
  171. data/source/svgs/_menu_icon.html.erb +6 -0
  172. data/source/svgs/_refills_logo.html.erb +8 -0
  173. data/source/type-systems.html.erb +5 -1
  174. data/spec/refills/import_generator_spec.rb +1 -1
  175. metadata +59 -19
  176. data/.travis.yml +0 -8
  177. data/source/_sliding_menu.html.erb +0 -13
  178. data/source/images/placeholder_logo_1.png +0 -0
  179. data/source/images/placeholder_logo_1_dark.png +0 -0
  180. data/source/images/placeholder_logo_2.png +0 -0
  181. data/source/images/placeholder_logo_2_dark.png +0 -0
  182. data/source/images/placeholder_logo_3.png +0 -0
  183. data/source/images/placeholder_logo_3_dark.png +0 -0
  184. data/source/images/placeholder_logo_4.png +0 -0
  185. data/source/images/placeholder_logo_4_dark.png +0 -0
  186. data/source/javascripts/refills/sliding_menu.js +0 -6
  187. data/source/stylesheets/all.scss +0 -66
  188. data/source/stylesheets/refills/_sliding-menu.scss +0 -86
@@ -1,9 +1,7 @@
1
1
  $(document).ready ->
2
- expanderTrigger = document.getElementById("js-expander-trigger")
3
- expanderContent = document.getElementById("js-expander-content")
4
- $("#js-expander-trigger").click ->
5
- $(this).toggleClass "expander-hidden"
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("js-fadeInElement")
3
- $(element).addClass "js-fade-element-hide"
2
+ element = document.getElementById('js-fadeInElement')
3
+ $(element).addClass 'js-fade-element-hide'
4
4
  $(window).scroll ->
5
- if $("#js-fadeInElement").length > 0
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 "js-fade-element-show"
13
+ $(element).addClass 'js-fade-element-show'
14
14
  else if elementTopToWindowBottom < 0
15
- $(element).removeClass "js-fade-element-show"
16
- $(element).addClass "js-fade-element-hide"
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
- $("#modal-1").on "change", ->
3
- if $(this).is(":checked")
4
- $("body").addClass "modal-open"
2
+ $('#modal-1').on 'change', ->
3
+ if $(this).is(':checked')
4
+ $('body').addClass 'modal-open'
5
5
  else
6
- $("body").removeClass "modal-open"
6
+ $('body').removeClass 'modal-open'
7
7
  return
8
-
9
- $(".modal-window").on "click", ->
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 = $("#js-mobile-menu").unbind()
3
- $("#js-navigation-menu").removeClass "show"
4
- menuToggle.on "click", (e) ->
2
+ menuToggle = $('#js-mobile-menu').unbind()
3
+ $('#js-navigation-menu').removeClass 'show'
4
+ menuToggle.on 'click', (e) ->
5
5
  e.preventDefault()
6
- $("#js-navigation-menu").slideToggle ->
7
- $("#js-navigation-menu").removeAttr "style" if $("#js-navigation-menu").is(":hidden")
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 $("#js-parallax-window").length > 0
3
- plxBackground = $("#js-parallax-background")
4
- plxWindow = $("#js-parallax-window")
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 "top", -(plxWindowTopToWindowTop * plxSpeed) + "px"
13
+ plxBackground.css 'top', -(plxWindowTopToWindowTop * plxSpeed) + 'px'
14
14
  return
15
+
15
16
  $(document).ready ->
16
- parallax() if $("#js-parallax-window").length
17
+ if $('#js-parallax-window').length
18
+ parallax()
17
19
  return
18
-
19
20
  $(window).scroll (e) ->
20
- parallax() if $("#js-parallax-window").length
21
+ if $('#js-parallax-window').length
22
+ parallax()
21
23
  return
22
-
@@ -1,23 +1,18 @@
1
- ((jQuery) ->
1
+ do (jQuery) ->
2
2
  jQuery.mark = jump: (options) ->
3
- defaults = selector: "a.scroll-on-page-link"
4
- defaults.selector = options if typeof options is "string"
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("href")
9
+ target = jumpobj.attr('href')
9
10
  thespeed = 1000
10
11
  offset = jQuery(target).offset().top
11
- jQuery("html,body").animate
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
-
@@ -0,0 +1,6 @@
1
+ $(document).ready ->
2
+ $('.sliding-panel-button,.sliding-panel-fade-screen,.sliding-panel-close').on 'click touchstart', (e) ->
3
+ $('.sliding-panel-content,.sliding-panel-fade-screen').toggleClass 'is-visible'
4
+ e.preventDefault()
5
+ return
6
+ return
@@ -1,28 +1,28 @@
1
- $(".js-vertical-tab-content").hide()
2
- $(".js-vertical-tab-content:first").show()
1
+ $('.js-vertical-tab-content').hide()
2
+ $('.js-vertical-tab-content:first').show()
3
3
 
4
- # if in tab mode
5
- $(".js-vertical-tab").click (event) ->
4
+ ### if in tab mode ###
5
+
6
+ $('.js-vertical-tab').click (event) ->
6
7
  event.preventDefault()
7
- $(".js-vertical-tab-content").hide()
8
- activeTab = $(this).attr("rel")
9
- $("#" + activeTab).show()
10
- $(".js-vertical-tab").removeClass "is-active"
11
- $(this).addClass "is-active"
12
- $(".js-vertical-tab-accordion-heading").removeClass "is-active"
13
- $(".js-vertical-tab-accordion-heading[rel^='" + activeTab + "']").addClass "is-active"
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
- # if in accordion mode
18
- $(".js-vertical-tab-accordion-heading").click (event) ->
19
+ $('.js-vertical-tab-accordion-heading').click (event) ->
19
20
  event.preventDefault()
20
- $(".js-vertical-tab-content").hide()
21
- accordion_activeTab = $(this).attr("rel")
22
- $("#" + accordion_activeTab).show()
23
- $(".js-vertical-tab-accordion-heading").removeClass "is-active"
24
- $(this).addClass "is-active"
25
- $(".js-vertical-tab").removeClass "is-active"
26
- $(".js-vertical-tab[rel^='" + accordion_activeTab + "']").addClass "is-active"
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
- $(".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());
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
- var expanderTrigger = document.getElementById("js-expander-trigger");
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
  });
@@ -7,7 +7,7 @@ $(function() {
7
7
  }
8
8
  });
9
9
 
10
- $(".modal-window").on("click", function() {
10
+ $(".modal-fade-screen, .modal-close").on("click", function() {
11
11
  $(".modal-state:checked").prop("checked", false).change();
12
12
  });
13
13
 
@@ -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 = $('#js-mobile-menu').unbind();
3
- $('#js-navigation-menu').removeClass("show");
21
+ var menuToggle = $("#js-mobile-menu").unbind();
22
+ $("#js-navigation-menu").removeClass("show");
4
23
 
5
- menuToggle.on('click', function(e) {
24
+ menuToggle.on("click", function(e) {
6
25
  e.preventDefault();
7
- $('#js-navigation-menu').slideToggle(function(){
8
- if($('#js-navigation-menu').is(':hidden')) {
9
- $('#js-navigation-menu').removeAttr('style');
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') defaults.selector = options;
8
- var options = jQuery.extend(defaults, options);
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
 
@@ -0,0 +1,6 @@
1
+ $(document).ready(function(){
2
+ $('.sliding-panel-button,.sliding-panel-fade-screen,.sliding-panel-close').on('click touchstart',function (e) {
3
+ $('.sliding-panel-content,.sliding-panel-fade-screen').toggleClass('is-visible');
4
+ e.preventDefault();
5
+ });
6
+ });