spina-conferences-primer_theme 0.2.0 → 0.2.1

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
  SHA256:
3
- metadata.gz: 62666bdc7b0e62a032379e36423bcaa40f42abb02b6760b386ee8cfd168ed0d5
4
- data.tar.gz: 11fcc65db823cdbfdc02b908e3d8d9a57ee963d8c8ed13e6a2be30bf124c13be
3
+ metadata.gz: 156c5b1b40b3e0303fd92de0e04a6a62fb146698d85ddd59ed801ab2c78eab4f
4
+ data.tar.gz: 55f7bd8092847e2f43a4859355c2eb0c24511a4f524bb202adc9276a32bbe5f3
5
5
  SHA512:
6
- metadata.gz: e6c1f15ab5688680a43e5fe876928fa1b5dc9e7345468fca565aa13245e84ee8529f620d322edd2dce1b169921a0d313da8b07a0f1a07b09c99394f30e83717c
7
- data.tar.gz: 05aec9a6d349c73c01bfeff02a677339564b2d36720b79e34663facdfb602a845d877395992b2e8bb83560faaf63c3d3e7bb90e9d59d3f3c1e2b5710c925d6dd
6
+ metadata.gz: c32c1e6944e047252b8b87a56a6fab462d66959d9e6b76ff64b6bafbe59ef9b679823a8ad7cf1389316ee3869a4c08641af42d173025a8d5b89d0ddd5a2d8e62
7
+ data.tar.gz: 46d2fe6eb4b871aed7b220851bc0c70b327db56721ef72b86578fa35383152e85e7bb3738aeea05ed07ddcaf59d8dd2333d2b24182d4c311a1e18785eaa022f0
@@ -0,0 +1,12 @@
1
+ .Header-item.mr-0.border-top.border-white-fade-15.flex-column.flex-items-stretch
2
+ - if navigation_item.has_children?
3
+ %details.details-reset
4
+ %summary.Header-link.py-2
5
+ = navigation_item.menu_title
6
+ = render Primer::OcticonComponent.new('chevron-down')
7
+ %ul.list-style-none
8
+ - navigation_item.children.each do |child|
9
+ %li= link_to child.menu_title, child.materialized_path, class: %w[d-block py-2 pl-3 border-top border-white-fade text-white]
10
+ - elsif navigation_item.is_root?
11
+ = link_to navigation_item.menu_title, navigation_item.materialized_path,
12
+ class: %w[Header-link py-2]
@@ -0,0 +1,3 @@
1
+ %nav.d-flex.flex-column.flex-self-stretch
2
+ = render partial: 'mobile_navigation_item', collection: main_navigation_items, cached: true, as: :navigation_item
3
+ .Header-item.mr-0.border-top.border-white-fade-15= link_to 'Conferences', frontend_conferences_url, class: %w[Header-link py-2 py-lg-0]
@@ -5,6 +5,6 @@
5
5
  %button.Header-link.btn-link{ type: 'button' }
6
6
  = render Primer::OcticonComponent.new('three-bars', height: 24)
7
7
  .Header-item.Header-item--full.flex-column.width-full.flex-order-1.mr-0.mt-3
8
- = render partial: 'navigation_items'
9
- .Header-item.Header-item--full.flex-row.width-full.d-none.d-lg-flex
10
- = render partial: 'navigation_items'
8
+ = render partial: 'mobile_navigation_items'
9
+ = render partial: 'navigation_item', collection: main_navigation_items, cached: true
10
+ .Header-item.d-none.d-lg-flex= link_to 'Conferences', frontend_conferences_url, class: %w[Header-link]
@@ -1,11 +1,11 @@
1
- - if navigation_item.has_children?
2
- %details.details-reset
3
- %summary.btn-link.d-block.py-2.border-top.border-white-fade.text-white
4
- = navigation_item.menu_title
5
- = render Primer::OcticonComponent.new('chevron-down')
6
- %ul.list-style-none
7
- - navigation_item.children.each do |child|
8
- %li= link_to child.menu_title, child.materialized_path, class: %w[d-block py-2 pl-3 border-top border-white-fade text-white]
9
- - elsif navigation_item.is_root?
10
- = link_to navigation_item.menu_title, navigation_item.materialized_path,
11
- class: %w[Header-link mt-lg-n3 mb-lg-n3 py-2 py-lg-3 mr-0 mr-lg-3 border-top border-lg-top-0 border-white-fade-15]
1
+ .Header-item.position-relative.d-none.d-lg-flex
2
+ - if navigation_item.has_children?
3
+ %details.details-reset.details-overlay
4
+ %summary.Header-link{ role: 'button', aria: { haspopup: 'menu' } }
5
+ = navigation_item.menu_title
6
+ = render Primer::OcticonComponent.new('chevron-down')
7
+ %ul.dropdown-menu.dropdown-menu-sw
8
+ - navigation_item.children.each do |child|
9
+ %li= link_to child.menu_title, child.materialized_path, class: 'dropdown-item'
10
+ - elsif navigation_item.is_root?
11
+ = link_to navigation_item.menu_title, navigation_item.materialized_path, class: %w[Header-link]
@@ -4,7 +4,7 @@
4
4
  - content_for(:header) { render 'header' }
5
5
 
6
6
  = turbo_frame_tag 'conference_tabs' do
7
- = render Primer::UnderlineNavComponent.new(label: t(:'.conference_navigationcle')) do |component|
7
+ = render Primer::UnderlineNavComponent.new(label: t(:'.conference_navigation')) do |component|
8
8
  - component.tab(href: frontend_conference_url(@conference, tab: 'information', presentation_type: @presentation_type&.id),
9
9
  aria: { selected: (@tab == 'information').to_s }, classes: 'UnderlineNav-item', role: 'tab') do
10
10
  = t(:'.tabs.information')
@@ -3,7 +3,7 @@
3
3
  module Spina
4
4
  module Conferences
5
5
  module PrimerTheme
6
- VERSION = '0.2.0'
6
+ VERSION = '0.2.1'
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spina-conferences-primer_theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Malčić
@@ -314,9 +314,10 @@ files:
314
314
  - app/views/spina/application/_footer_content.html.haml
315
315
  - app/views/spina/application/_list_item.html.haml
316
316
  - app/views/spina/application/_logo.html.haml
317
+ - app/views/spina/application/_mobile_navigation_item.html.haml
318
+ - app/views/spina/application/_mobile_navigation_items.html.haml
317
319
  - app/views/spina/application/_navigation.html.haml
318
320
  - app/views/spina/application/_navigation_item.html.haml
319
- - app/views/spina/application/_navigation_items.html.haml
320
321
  - app/views/spina/application/_text.html.haml
321
322
  - app/views/spina/conferences/primer_theme/conferences/_conference.html.haml
322
323
  - app/views/spina/conferences/primer_theme/conferences/_conference.ics.erb
@@ -1,3 +0,0 @@
1
- %nav.d-flex.flex-column.flex-lg-row.flex-self-stretch.flex-lg-self-auto
2
- = render partial: 'navigation_item', collection: main_navigation_items, cached: true
3
- = link_to 'Conferences', frontend_conferences_url, class: %w[Header-link mt-lg-n3 mb-lg-n3 py-2 py-lg-3 mr-0 mr-lg-3 border-top border-lg-top-0 border-white-fade-15]