leather 0.2.14 → 0.2.15

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2f6dadc089497ff6bab703659d5e631dc81a4d6b
4
- data.tar.gz: 78f59e1f0a3a359426062f6d08fe3fffd3d476f7
3
+ metadata.gz: 0f582b7ad6013b73321c0ad7afed274f6a298072
4
+ data.tar.gz: 5ebd06028b2d71620935e0aeb67ab328de0c87b2
5
5
  SHA512:
6
- metadata.gz: e72991ffda11b4d6bcd70a8484263133771b4402fbde776430b1b973833cdcf990a0e5da5d2513221842d72347850e972fd56296649e17a95ed61d6b49ab3884
7
- data.tar.gz: 6d4321fabd13a2fc7a8ed338abd66107f622c9acb4056339893a203ee82dfa67761ad7c0b242f00cac4915ec77d0f31f8b459fbb560dfe565583d46ade49a6b1
6
+ metadata.gz: 8f5d3a1484f5b9f99f785cba371a23258192c06e3afb4436c87c27cbeea4eb333d0a9c6c109f3b152fea1fae17a5f07382583f9e5592ca7427dd81d5d5d671f5
7
+ data.tar.gz: b652a39d787362407ccc6cdfc482fa6f2f8fa491e8e409a3ac60e201e3e2fc64f21df0d2a787b5422c31b25da5bb5a8b9a3777312526052db5aad50438986b83
@@ -1,19 +1,20 @@
1
1
  - container_mode = html_options[:container_mode]
2
2
  - html_options[:container_mode] = nil
3
+ - id = SecureRandom.hex(10)
3
4
 
4
5
  - case container_mode
5
6
  - when :with
6
7
  %nav.navbar{ class: html_options[:class] }
7
8
  .container
8
9
  .navbar-header
9
- %button.navbar-toggle{data:{toggle:'collapse', target:'#navbar-to-collapse'},type:'button'}
10
+ %button.navbar-toggle{ data: { toggle:'collapse', target:"#navbar-#{id}" }, type: 'button'}
10
11
  %span.sr-only
11
12
  Toggle navigation
12
13
  %span.icon-bar
13
14
  %span.icon-bar
14
15
  %span.icon-bar
15
16
  = link_to title, brand_link, :class => 'navbar-brand'
16
- .collapse.navbar-collapse#navbar-to-collapse
17
+ .collapse.navbar-collapse{ id: "navbar-#{id}" }
17
18
  = block
18
19
  - when :in
19
20
  .container
@@ -21,24 +22,24 @@
21
22
  .column.col-md-12
22
23
  %nav.navbar{ class: html_options[:class] }
23
24
  .navbar-header
24
- %button.navbar-toggle{data:{toggle:'collapse', target:'#navbar-to-collapse'},type:'button'}
25
+ %button.navbar-toggle{ data: { toggle:'collapse', target:"#navbar-#{id}" }, type: 'button'}
25
26
  %span.sr-only
26
27
  Toggle navigation
27
28
  %span.icon-bar
28
29
  %span.icon-bar
29
30
  %span.icon-bar
30
31
  = link_to title, brand_link, :class => 'navbar-brand'
31
- .collapse.navbar-collapse#navbar-to-collapse
32
+ .collapse.navbar-collapse{ id: "navbar-#{id}" }
32
33
  = block
33
34
  - else
34
35
  %nav.navbar{ class: html_options[:class] }
35
36
  .navbar-header
36
- %button.navbar-toggle{data:{toggle:'collapse', target:'#navbar-to-collapse'},type:'button'}
37
+ %button.navbar-toggle{ data: { toggle:'collapse', target:"#navbar-#{id}" }, type: 'button'}
37
38
  %span.sr-only
38
39
  Toggle navigation
39
40
  %span.icon-bar
40
41
  %span.icon-bar
41
42
  %span.icon-bar
42
43
  = link_to title, brand_link, :class => 'navbar-brand'
43
- .collapse.navbar-collapse#navbar-to-collapse
44
+ .collapse.navbar-collapse{ id: "navbar-#{id}" }
44
45
  = block
@@ -1,3 +1,3 @@
1
1
  module Leather
2
- VERSION = "0.2.14"
2
+ VERSION = "0.2.15"
3
3
  end
@@ -1,4 +1,4 @@
1
- = navbar "Brand", root_url, container_mode: :with, class: "navbar-default" do
1
+ = navbar "Brand", root_url, container_mode: :with, class: "navbar-default navbar-static-top" do
2
2
  = nav_list do
3
3
  = nav_item 'Link', '#'
4
4
  = nav_item 'Link', '#'
@@ -21,7 +21,7 @@
21
21
  %li.divider
22
22
  = nav_item 'Separated link', '#'
23
23
 
24
- = navbar "Brand", root_url, container_mode: :with, class: "navbar-inverse" do
24
+ = navbar "Brand", root_url, container_mode: :with, class: "navbar-inverse navbar-static-top" do
25
25
  = nav_list do
26
26
  = nav_item 'Link', '#'
27
27
  = nav_item 'Link', '#'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: leather
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.14
4
+ version: 0.2.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Van Der Beek