material_design 0.4.0 → 0.4.1

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: 4a029393b64a427515e8fd7a43e20ac3a1d3dab82cc683c79ebac6c79c160a51
4
- data.tar.gz: 724754cc148f9de7348a2c829cbc67479c138cc7cf1bafd8368c37d1ca4d423d
3
+ metadata.gz: fdedbd46913c96dafad6153c39682d265f54bd969524574446f54834b4ad8bc0
4
+ data.tar.gz: 042470e092e0decd4413fff66558aabae30f4cedd07de0e659c9925eb3ac1800
5
5
  SHA512:
6
- metadata.gz: 0e193ffa19cfd6920c5f5ecb359ad18fbc7d90c2715604b98f845a8bd940a101db62c41506139b6c78fcce175ed61e06c2a69269beff2ea19cea5220450de412
7
- data.tar.gz: c9ae55ab78644567f8b81da7a912c95c16c28fc03129eba103fc24b6389a713825cf4f2961794d55c36a3295f30e718ed7fbff337ac9e043884db7473a76238f
6
+ metadata.gz: 2757f26718e5598c341343779f273562e55a2ebfdb1c46d09f8f639ea9a1f85a4a93d501aa3d80109e8bd13fff7d0b6004067b15d530c1e041e5c600961bd348
7
+ data.tar.gz: 68f7e5d1628b69ec2fc644dfed2ef18a34f58c83b3d1b5e26dfa1de0eb6d376ad97f93aec5214e758c35d0c0d3c720912d913363a382a898f73a5df6f2301bbd
@@ -1,10 +1,18 @@
1
1
  .top-bar--container {
2
+ position: sticky;
3
+ top: 0px;
2
4
  display: flex;
3
5
  align-items: center;
4
6
  gap: 16px;
5
7
  padding: 20px 16px 24px 16px;
6
8
  width: 100%;
7
9
  height: 112px;
10
+ @media (prefers-color-scheme: light) {
11
+ background: rgb(var(--md-sys-light-surface));
12
+ }
13
+ @media (prefers-color-scheme: dark) {
14
+ background: rgb(var(--md-sys-dark-surface));
15
+ }
8
16
  }
9
17
 
10
18
  .top-bar--container > .typography--title-large {
@@ -0,0 +1,4 @@
1
+ .icon-button--container {
2
+ height: 40px;
3
+ width: 40px;
4
+ }
@@ -0,0 +1,14 @@
1
+ .card--container {
2
+ border-radius: 12px;
3
+ }
4
+
5
+ .card--container__outlined {
6
+ @media (prefers-color-scheme: light) {
7
+ background: rgb(var(--md-sys-light-surface-container));
8
+ border: 1px solid rgb(var(--md-sys-light-outline-variant));
9
+ }
10
+ @media (prefers-color-scheme: dark) {
11
+ background: rgb(var(--md-sys-dark-surface-container));
12
+ border: 1px solid rgb(var(--md-sys-dark-outline-variant));
13
+ }
14
+ }
File without changes
@@ -0,0 +1,3 @@
1
+ <div class="icon-button--container">
2
+ <%= render "material_design/icons/icon", locals: { icon: locals[:icon], size: 40 } %>
3
+ </div>
@@ -0,0 +1,3 @@
1
+ <div class="card--container card--container__outlined">
2
+ <%= yield %>
3
+ </div>
@@ -1,6 +1,8 @@
1
- <div class="list-item list-item__one-line">
2
- <div class="list-item--content">
3
- <%= render "material_design/typography/body_large", locals: { body: locals[:headline] } %>
4
- <%= render "material_design/typography/body_medium", locals: { body: locals[:supporting_text] } %>
1
+ <%= link_to locals[:path], target: "_top" do %>
2
+ <div class="list-item list-item__one-line">
3
+ <div class="list-item--content">
4
+ <%= render "material_design/typography/body_large", locals: { body: locals[:headline] } %>
5
+ <%= render "material_design/typography/body_medium", locals: { body: locals[:supporting_text] } %>
6
+ </div>
5
7
  </div>
6
- </div>
8
+ <% end %>
@@ -1,3 +1,3 @@
1
1
  module MaterialDesign
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
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.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eduardo Yutaka Nakanishi
@@ -37,6 +37,8 @@ files:
37
37
  - Rakefile
38
38
  - app/assets/stylesheets/material_design/app_bars.css
39
39
  - app/assets/stylesheets/material_design/application.css
40
+ - app/assets/stylesheets/material_design/buttons.css
41
+ - app/assets/stylesheets/material_design/cards.css
40
42
  - app/assets/stylesheets/material_design/dividers.css
41
43
  - app/assets/stylesheets/material_design/icons.css
42
44
  - app/assets/stylesheets/material_design/lists.css
@@ -50,6 +52,9 @@ files:
50
52
  - app/models/material_design/application_record.rb
51
53
  - app/views/layouts/material_design/application.html.erb
52
54
  - app/views/material_design/app_bars/_top_bar.html.erb
55
+ - app/views/material_design/buttons/_fab.html.erb
56
+ - app/views/material_design/buttons/icon_button.html.erb
57
+ - app/views/material_design/cards/_outlined.html.erb
53
58
  - app/views/material_design/dividers/_horizontal.html.erb
54
59
  - app/views/material_design/icons/_arrow_back.html.erb
55
60
  - app/views/material_design/icons/_icon.html.erb