material_design 0.1.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 +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +28 -0
- data/Rakefile +8 -0
- data/app/assets/stylesheets/material_design/application.css +0 -0
- data/app/assets/stylesheets/material_design/navigation.css +50 -0
- data/app/assets/stylesheets/material_design/typography.css +24 -0
- data/app/controllers/material_design/application_controller.rb +4 -0
- data/app/helpers/material_design/application_helper.rb +4 -0
- data/app/jobs/material_design/application_job.rb +4 -0
- data/app/mailers/material_design/application_mailer.rb +6 -0
- data/app/models/material_design/application_record.rb +5 -0
- data/app/views/layouts/material_design/application.html.erb +15 -0
- data/app/views/material_design/navigation/_navigation_drawer.html.erb +19 -0
- data/app/views/material_design/navigation/navigation_drawer/_headline.html.erb +3 -0
- data/app/views/material_design/navigation/navigation_drawer/_section_header.html.erb +3 -0
- data/app/views/material_design/typography/_label_large.html.erb +3 -0
- data/app/views/material_design/typography/_title_small.html.erb +3 -0
- data/config/routes.rb +2 -0
- data/lib/material_design/engine.rb +5 -0
- data/lib/material_design/version.rb +3 -0
- data/lib/material_design.rb +6 -0
- data/lib/tasks/material_design_tasks.rake +4 -0
- metadata +81 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: '08b6933115e1ed651b243ec4280e8e45fa7f6004e9b38a24850fe943ed42fdaa'
|
4
|
+
data.tar.gz: 58901870541717a96d002e2b506a9e394d34d3892fbe1507e7db65426d0666f4
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 0d67a57eddf24d6bc024c0ec5741f0b45807ea46556948cf36b03390e7b4f6a7a01befcedcd6fc3bc61a904233c64204e29cc422804ab1a7e09b4eb5ded21233
|
7
|
+
data.tar.gz: 10db02028025bb732d91e13707870bf49fa986b5352597167bf7cc96e256c24c6eb941ed735747302554dfcb7ec02b0a787712bd51164d897621f9202f300f27
|
data/MIT-LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright Eduardo Yutaka Nakanishi
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# MaterialDesign
|
2
|
+
Short description and motivation.
|
3
|
+
|
4
|
+
## Usage
|
5
|
+
How to use my plugin.
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
Add this line to your application's Gemfile:
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
gem "material_design"
|
12
|
+
```
|
13
|
+
|
14
|
+
And then execute:
|
15
|
+
```bash
|
16
|
+
$ bundle
|
17
|
+
```
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
```bash
|
21
|
+
$ gem install material_design
|
22
|
+
```
|
23
|
+
|
24
|
+
## Contributing
|
25
|
+
Contribution directions go here.
|
26
|
+
|
27
|
+
## License
|
28
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
File without changes
|
@@ -0,0 +1,50 @@
|
|
1
|
+
.navigation-drawer {
|
2
|
+
display: flex;
|
3
|
+
width: 360px;
|
4
|
+
padding: 12px;
|
5
|
+
flex-direction: column;
|
6
|
+
align-items: flex-start;
|
7
|
+
border-radius: 16px;
|
8
|
+
background: var(--M3-sys-light-surface-container-low, #F7F2FA);
|
9
|
+
}
|
10
|
+
|
11
|
+
.navigation-drawer__headline {
|
12
|
+
display: flex;
|
13
|
+
height: 56px;
|
14
|
+
padding: 8px 8px 8px 16px;
|
15
|
+
flex-direction: column;
|
16
|
+
justify-content: center;
|
17
|
+
align-items: flex-start;
|
18
|
+
gap: 10px;
|
19
|
+
align-self: stretch;
|
20
|
+
}
|
21
|
+
|
22
|
+
.navigation-drawer__secion-header {
|
23
|
+
display: flex;
|
24
|
+
padding: 18px 16px;
|
25
|
+
align-items: center;
|
26
|
+
gap: 10px;
|
27
|
+
align-self: stretch;
|
28
|
+
}
|
29
|
+
|
30
|
+
.navigation-drawer__nav_item {
|
31
|
+
display: flex;
|
32
|
+
height: 56px;
|
33
|
+
align-items: center;
|
34
|
+
gap: 12px;
|
35
|
+
align-self: stretch;
|
36
|
+
border-radius: 100px;
|
37
|
+
}
|
38
|
+
|
39
|
+
.navigation-drawer__nav_item:hover {
|
40
|
+
background: var(--M3-state-layers-light-on-surface-opacity, #1D1B2014);
|
41
|
+
}
|
42
|
+
|
43
|
+
.navigation-drawer__state-layer {
|
44
|
+
display: flex;
|
45
|
+
padding: 16px 24px 16px 16px;
|
46
|
+
align-items: center;
|
47
|
+
gap: 12px;
|
48
|
+
flex: 1 0 0;
|
49
|
+
align-self: stretch;
|
50
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
.typography__title--small {
|
2
|
+
/* Typography */
|
3
|
+
color: var(--M3-sys-light-on-surface-variant, #49454F);
|
4
|
+
|
5
|
+
/* M3/title/small */
|
6
|
+
/* font-family: Roboto; */
|
7
|
+
font-size: 14px;
|
8
|
+
font-style: normal;
|
9
|
+
font-weight: 500;
|
10
|
+
line-height: 20px; /* 142.857% */
|
11
|
+
letter-spacing: 0.1px;
|
12
|
+
}
|
13
|
+
|
14
|
+
.typography__label--large {
|
15
|
+
color: var(--M3-sys-light-on-secondary-container, #1D192B);
|
16
|
+
|
17
|
+
/* M3/label/large - prominent */
|
18
|
+
/* font-family: Roboto; */
|
19
|
+
font-size: 14px;
|
20
|
+
font-style: normal;
|
21
|
+
font-weight: 600;
|
22
|
+
line-height: 20px; /* 142.857% */
|
23
|
+
letter-spacing: 0.1px;
|
24
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>Material design</title>
|
5
|
+
<%= csrf_meta_tags %>
|
6
|
+
<%= csp_meta_tag %>
|
7
|
+
|
8
|
+
<%= stylesheet_link_tag "material_design/application", media: "all" %>
|
9
|
+
</head>
|
10
|
+
<body>
|
11
|
+
|
12
|
+
<%= yield %>
|
13
|
+
|
14
|
+
</body>
|
15
|
+
</html>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<div class="navigation-drawer">
|
2
|
+
<%= render "material_design/navigation/navigation_drawer/headline", locals: { headline: locals[:headline] } %>
|
3
|
+
<% locals[:sections].each do |section| %>
|
4
|
+
<%= render "material_design/navigation/navigation_drawer/section_header", locals: { section_header: section[:header] } %>
|
5
|
+
<% section[:nav_items].each do |nav_item| %>
|
6
|
+
<%= link_to nav_item[:href], class: "navigation-drawer__nav_item" do %>
|
7
|
+
<div class="navigation-drawer__state-layer">
|
8
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
9
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 18C15.3137 18 18 15.3137 18 12C18 8.68629 15.3137 6 12 6C8.68629 6 6 8.68629 6 12C6 15.3137 8.68629 18 12 18Z" fill="#1D192B"/>
|
10
|
+
</svg>
|
11
|
+
<div style="flex: 1 0 0;">
|
12
|
+
<%= render "material_design/typography/label_large", locals: { label: nav_item[:label] } %>
|
13
|
+
</div>
|
14
|
+
<%= render "material_design/typography/label_large", locals: { label: nav_item[:badge_label] } %>
|
15
|
+
</div>
|
16
|
+
<% end %>
|
17
|
+
<% end %>
|
18
|
+
<% end %>
|
19
|
+
</div>
|
data/config/routes.rb
ADDED
metadata
ADDED
@@ -0,0 +1,81 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: material_design
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Eduardo Yutaka Nakanishi
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2024-01-22 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 7.1.3
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 7.1.3
|
27
|
+
description: Material is Google’s open-source design system. Design and build beautiful,
|
28
|
+
usable products with Material.
|
29
|
+
email:
|
30
|
+
- eduardo.nakanishi@gmail.com
|
31
|
+
executables: []
|
32
|
+
extensions: []
|
33
|
+
extra_rdoc_files: []
|
34
|
+
files:
|
35
|
+
- MIT-LICENSE
|
36
|
+
- README.md
|
37
|
+
- Rakefile
|
38
|
+
- app/assets/stylesheets/material_design/application.css
|
39
|
+
- app/assets/stylesheets/material_design/navigation.css
|
40
|
+
- app/assets/stylesheets/material_design/typography.css
|
41
|
+
- app/controllers/material_design/application_controller.rb
|
42
|
+
- app/helpers/material_design/application_helper.rb
|
43
|
+
- app/jobs/material_design/application_job.rb
|
44
|
+
- app/mailers/material_design/application_mailer.rb
|
45
|
+
- app/models/material_design/application_record.rb
|
46
|
+
- app/views/layouts/material_design/application.html.erb
|
47
|
+
- app/views/material_design/navigation/_navigation_drawer.html.erb
|
48
|
+
- app/views/material_design/navigation/navigation_drawer/_headline.html.erb
|
49
|
+
- app/views/material_design/navigation/navigation_drawer/_section_header.html.erb
|
50
|
+
- app/views/material_design/typography/_label_large.html.erb
|
51
|
+
- app/views/material_design/typography/_title_small.html.erb
|
52
|
+
- config/routes.rb
|
53
|
+
- lib/material_design.rb
|
54
|
+
- lib/material_design/engine.rb
|
55
|
+
- lib/material_design/version.rb
|
56
|
+
- lib/tasks/material_design_tasks.rake
|
57
|
+
homepage: https://rubygems.org/gems/material_design
|
58
|
+
licenses:
|
59
|
+
- MIT
|
60
|
+
metadata:
|
61
|
+
homepage_uri: https://rubygems.org/gems/material_design
|
62
|
+
post_install_message:
|
63
|
+
rdoc_options: []
|
64
|
+
require_paths:
|
65
|
+
- lib
|
66
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - ">="
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '0'
|
71
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
requirements: []
|
77
|
+
rubygems_version: 3.5.3
|
78
|
+
signing_key:
|
79
|
+
specification_version: 4
|
80
|
+
summary: Material Design
|
81
|
+
test_files: []
|