material_design 0.4.3 → 0.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 65a3ebcd48a84aad27b7457dfad4124991b4a6d2240788a3e56b80a6bf5d66ee
4
- data.tar.gz: 235f8b0ff3d2bb15217cd756e85eeeb32a206fca692beb03d0e6690ddd76b389
3
+ metadata.gz: 0ec4144c982eca6e0688bc95f23fc70d5bf16a1c6e513d64e6310e66103c5723
4
+ data.tar.gz: 8f89b40f1ccd2e6e53fc81f40b1ae5c1db287e322b6df9d06f43b954ede915da
5
5
  SHA512:
6
- metadata.gz: 31e5da84c10963d405d310ca874f738a5550a8591b48b5aecc8b9f1fd43ccdc961854dba24711f1309335037505f9a5cf406a44cbe3144b89881d2fe5f3ea6cc
7
- data.tar.gz: 7376373faceba17c98e31e6d9db5a76f5bf8d0517d2431ed7b93128354c26108fa8d3c000b1a05b656358ce687280a845dba4e56f13624984f2e35fc057b0440
6
+ metadata.gz: 677119ec73f7d5846ecffaf8282aff8ea99a98202ffced6c9da6ed75a4ac9ae8048018709befde0dff656367f22deb27eea4e26ac3ab67579a56c253d7a33c15
7
+ data.tar.gz: 39ad22871b8ec16144f643d310f65101d9abfa24aaa47bec34a1b9d915aeee892baf22879bdd74c852634c1387b7442e9aa19f5088b44dd1b3305d52aba691b9
@@ -25,3 +25,10 @@
25
25
  color: rgb(var(--md-sys-dark-on-surface));
26
26
  }
27
27
  }
28
+
29
+ .top-bar--menu-button {
30
+ display: none;
31
+ @media (max-width: 840px) {
32
+ display: block;
33
+ }
34
+ }
@@ -1,4 +1,7 @@
1
1
  <div class="top-bar--container">
2
+ <div class="top-bar--menu-button" data-action="click->navigation#toggle">
3
+ <%= render "material_design/buttons/icon_button", locals: { icon: "menu" } %>
4
+ </div>
2
5
  <% if locals[:back_path] %>
3
6
  <%= link_to locals[:back_path] do %>
4
7
  <%= render "material_design/icons/icon", locals: { icon: "arrow_back", size: "40" } %>
@@ -0,0 +1,5 @@
1
+ <div class="icon-button--container">
2
+ <button>
3
+ <%= render "material_design/icons/icon", locals: { icon: locals[:icon], size: 40 } %>
4
+ </button>
5
+ </div>
@@ -1,4 +1,4 @@
1
- <div class="navigation-drawer">
1
+ <div class="navigation-drawer" data-navigation-target="navigationDrawer">
2
2
  <%= render "material_design/navigation/navigation_drawer/headline", locals: { headline: locals[:headline] } %>
3
3
  <% locals[:sections].each do |section| %>
4
4
  <%= render "material_design/navigation/navigation_drawer/section_header", locals: { section_header: section[:header] } %>
@@ -1,3 +1,3 @@
1
1
  module MaterialDesign
2
- VERSION = "0.4.3"
2
+ VERSION = "0.4.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: material_design
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eduardo Yutaka Nakanishi
@@ -54,7 +54,7 @@ files:
54
54
  - app/views/layouts/material_design/application.html.erb
55
55
  - app/views/material_design/app_bars/_top_bar.html.erb
56
56
  - app/views/material_design/buttons/_fab.html.erb
57
- - app/views/material_design/buttons/icon_button.html.erb
57
+ - app/views/material_design/buttons/_icon_button.html.erb
58
58
  - app/views/material_design/cards/_outlined.html.erb
59
59
  - app/views/material_design/dividers/_horizontal.html.erb
60
60
  - app/views/material_design/icons/_10k.html.erb
@@ -1,3 +0,0 @@
1
- <div class="icon-button--container">
2
- <%= render "material_design/icons/icon", locals: { icon: locals[:icon], size: 40 } %>
3
- </div>