spina-conferences-primer_theme 0.4.0 → 0.4.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: 44982318279af43da48830b7b35b8560608f21e5b55a6032e7b33e79bfb30cde
4
- data.tar.gz: 965ac7a1dc323d5bf0edc8f4e3a2055629c7493382e30ffd63f81056170d9ded
3
+ metadata.gz: 1b9528fd8e1cc3cf184a9c71fa6f6b0d2143c9183c42362b7a7732893034e6da
4
+ data.tar.gz: 79363b5660333000d20a5f494ae09b825e690f3c441ba9c4d25bb42f5870a8ed
5
5
  SHA512:
6
- metadata.gz: 9589f32bcfa583311c9dd6f74c2803f5f8097467b9ff10ae383e853d8d93c5c9d3763dd476b4c9a32555be6a2a842de81521f72fd1aedaa2c194ea16faa3492e
7
- data.tar.gz: 3c87d3ccab22659858b55597e29d1b16352bc0fdfb8f862ff3dc5e54477aa7896550ea71bbbbb88e207a7b1d41ee4128f2f6facb4e29bef972ded0120db46292
6
+ metadata.gz: e2231d684dadd3e378ae4d72f773dbebd73ef1f6833b05965cfeb57ae4cfe589cd9525558412b57a573c6f2ca4827617462a1c023e6d1a583636f2e39ae13979
7
+ data.tar.gz: 9733679208c4a62f9328f141d29ae06868f44254410ec7ae37d83d5bbaf47f014b4787fbaeb2cacb58386e4449d3a1736cc67db888fa43582d25147801dc4774
@@ -1,15 +1,17 @@
1
- = render Primer::FlexComponent.new(direction: [:column, nil, :row_reverse, nil], align_items: :center) do
2
- = render Primer::FlexComponent.new(direction: [:column, :row, nil, nil], mb: [4, nil, 0, nil], flex: :auto) do
3
- %ul.list-style-none.flex-auto.mb-2.mb-sm-0.mr-sm-2
4
- - footer_navigation_items.each do |item|
5
- - cache item do
6
- %li
7
- = render Primer::ButtonComponent.new(tag: :a, href: item.materialized_path, variant: :small) { item.menu_title }
8
- = render 'footer_content'
9
- - if current_account.has_content? :github_url
10
- = render Primer::ButtonComponent.new(tag: :a, href: current_account.content(:github_url), button_type: :outline, variant: :small,
11
- display: :inline_block) do
12
- = render Primer::OcticonComponent.new('mark-github')
13
- = t :'.find_on_github'
14
- = render(Primer::TextComponent.new(tag: :small, color: :text_secondary, mr: [nil, 2, nil, nil], font_size: 6, flex_grow: 0)) do
15
- = t :'.copyright', name: Spina::Account.first.name, year: Date.today.year
1
+ - cache [footer_navigation_items, current_account] do
2
+ = render Primer::FlexComponent.new(direction: [:column, nil, :row_reverse, nil], align_items: :center) do
3
+ = render Primer::FlexComponent.new(direction: [:column, :row, nil, nil], mb: [4, nil, 0, nil], flex: :auto) do
4
+ - cache footer_navigation_items do
5
+ %ul.list-style-none.flex-auto.mb-2.mb-sm-0.mr-sm-2
6
+ - footer_navigation_items.each do |item|
7
+ - cache item do
8
+ %li
9
+ = render Primer::ButtonComponent.new(tag: :a, href: item.materialized_path, variant: :small) { item.menu_title }
10
+ = render 'footer_content'
11
+ - if current_account.has_content? :github_url
12
+ = render Primer::ButtonComponent.new(tag: :a, href: current_account.content(:github_url), button_type: :outline, variant: :small,
13
+ display: :inline_block) do
14
+ = render Primer::OcticonComponent.new('mark-github')
15
+ = t :'.find_on_github'
16
+ = render(Primer::TextComponent.new(tag: :small, color: :text_secondary, mr: [nil, 2, nil, nil], font_size: 6, flex_grow: 0)) do
17
+ = t :'.copyright', name: current_account.name, year: Date.today.year
@@ -1,12 +1,13 @@
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 color-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]
1
+ - cache navigation_item do
2
+ .Header-item.mr-0.border-top.border-white-fade-15.flex-column.flex-items-stretch
3
+ - if navigation_item.has_children?
4
+ %details.details-reset
5
+ %summary.Header-link.py-2
6
+ = navigation_item.menu_title
7
+ = render Primer::OcticonComponent.new('chevron-down')
8
+ %ul.list-style-none
9
+ - navigation_item.children.each do |child|
10
+ %li= link_to child.menu_title, child.materialized_path, class: %w[d-block py-2 pl-3 border-top border-white-fade color-text-white]
11
+ - elsif navigation_item.is_root?
12
+ = link_to navigation_item.menu_title, navigation_item.materialized_path,
13
+ class: %w[Header-link py-2]
@@ -1,9 +1,10 @@
1
- .Header.px-3.px-md-4.px-lg-5.flex-wrap.flex-lg-nowrap
2
- .Header-item.mt-n1.mb-n1= link_to render('logo'), root_path, class: 'Header-link'
3
- %details.details-reset.d-lg-none{ style: 'display: contents' }
4
- %summary.Header-item.Header-link.btn-link
5
- = render Primer::OcticonComponent.new('three-bars', height: 24)
6
- .Header-item.Header-item--full.flex-column.width-full.flex-order-1.mr-0.mt-3
7
- = render partial: 'mobile_navigation_items'
8
- = render partial: 'navigation_item', collection: main_navigation_items, cached: true
9
- .Header-item.d-none.d-lg-flex= link_to 'Conferences', frontend_conferences_url, class: %w[Header-link]
1
+ - cache main_navigation_items do
2
+ .Header.px-3.px-md-4.px-lg-5.flex-wrap.flex-lg-nowrap
3
+ .Header-item.mt-n1.mb-n1= link_to render('logo'), root_path, class: 'Header-link'
4
+ %details.details-reset.d-lg-none{ style: 'display: contents' }
5
+ %summary.Header-item.Header-link.btn-link
6
+ = render Primer::OcticonComponent.new('three-bars', height: 24)
7
+ .Header-item.Header-item--full.flex-column.width-full.flex-order-1.mr-0.mt-3
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,12 @@
1
- .Header-item.position-relative.d-none.d-lg-flex
2
- - if navigation_item.has_children? && navigation_item.children.regular_pages.in_menu.live.sorted.any?
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.regular_pages.in_menu.live.sorted.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]
1
+ - cache navigation_item do
2
+ .Header-item.position-relative.d-none.d-lg-flex
3
+ - if navigation_item.has_children? && navigation_item.children.regular_pages.in_menu.live.sorted.any?
4
+ %details.details-reset.details-overlay
5
+ %summary.Header-link{ role: 'button', aria: { haspopup: 'menu' } }
6
+ = navigation_item.menu_title
7
+ = render Primer::OcticonComponent.new('chevron-down')
8
+ %ul.dropdown-menu.dropdown-menu-sw
9
+ - navigation_item.children.regular_pages.in_menu.live.sorted.each do |child|
10
+ %li= link_to child.menu_title, child.materialized_path, class: 'dropdown-item'
11
+ - elsif navigation_item.is_root?
12
+ = link_to navigation_item.menu_title, navigation_item.materialized_path, class: %w[Header-link]
@@ -3,7 +3,7 @@
3
3
  module Spina
4
4
  module Conferences
5
5
  module PrimerTheme
6
- VERSION = '0.4.0'
6
+ VERSION = '0.4.1'
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spina-conferences-primer_theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Malčić
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-24 00:00:00.000000000 Z
11
+ date: 2021-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: babel-transpiler