administrate-materialize-theme 0.2.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +1 -1
- data/README.md +41 -6
- data/Rakefile +15 -0
- data/app/assets/javascripts/administrate-materialize-theme/theme.js +3 -2
- data/app/assets/stylesheets/administrate-materialize-theme/base.scss +2 -1
- data/app/assets/stylesheets/administrate-materialize-theme/form.scss +9 -7
- data/app/assets/stylesheets/administrate-materialize-theme/layout-index.scss +2 -3
- data/app/assets/stylesheets/administrate-materialize-theme/sidebar.scss +17 -0
- data/app/assets/stylesheets/administrate-materialize-theme/theme.scss +1 -0
- data/lib/administrate-materialize-theme/version.rb +1 -1
- metadata +14 -122
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 050c2d5a8d08959c9399acbc98b39d263805ceced55674f409a3c756ac85da2e
|
4
|
+
data.tar.gz: 2c072d4b8fd729ee34eced7b7ecbb042688d77e153a0a30ddb9622241bd8cba2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d06d3e6444a3014e85f27021b4a9f9a04bcd239244ac6e781a2daf2f23a239972995ebd612c4cf1ce83a1cbb14e17d51d550db42a362c070b46ba9e883219531
|
7
|
+
data.tar.gz: 75a39c8930ae8e18c31102383a03bdf4287c268bc9b47b3cafabda29a5e30accadc480797aa86c7784a333c8c4dc98abfb4d8922b6919d4f0e14b7ec4f489d03
|
data/MIT-LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,15 +1,25 @@
|
|
1
|
-
# Administrate Materialize Theme
|
2
|
-
|
1
|
+
# Administrate Materialize Theme
|
2
|
+
[![gem version](https://badge.fury.io/rb/administrate-materialize-theme.svg)](https://badge.fury.io/rb/administrate-materialize-theme)
|
3
|
+
[![gem downloads](https://badgen.net/rubygems/dt/administrate-materialize-theme)](https://rubygems.org/gems/administrate-materialize-theme)
|
4
|
+
[![linters](https://github.com/blocknotes/administrate-materialize-theme/actions/workflows/linters.yml/badge.svg)](https://github.com/blocknotes/administrate-materialize-theme/actions/workflows/linters.yml)
|
5
|
+
[![specs](https://github.com/blocknotes/administrate-materialize-theme/actions/workflows/specs.yml/badge.svg)](https://github.com/blocknotes/administrate-materialize-theme/actions/workflows/specs.yml)
|
6
|
+
|
7
|
+
A Material theme for [Administrate](https://github.com/thoughtbot/administrate), based on [Materialize](https://materializecss.com) framework.
|
3
8
|
|
4
9
|
Features:
|
5
|
-
|
10
|
+
|
11
|
+
- easy to install, just include CSS/JS to apply the theme to a default Administrate structure;
|
6
12
|
- Material Design responsive theme;
|
7
13
|
- customizable via SASS variables;
|
8
14
|
- allow to use *Materialize* components in the admin.
|
9
15
|
|
10
|
-
![screenshot](screenshot.png)
|
16
|
+
![screenshot](extra/screenshot.png)
|
17
|
+
|
18
|
+
Please :star: if you like it.
|
11
19
|
|
12
20
|
## Installation
|
21
|
+
|
22
|
+
- Add a SASS/SCSS gem to your Gemfile (ex. `gem 'sassc'`)
|
13
23
|
- After installing Administrate, add to *Gemfile*: `gem 'administrate-materialize-theme'` (and execute `bundle`)
|
14
24
|
- Edit *app/assets/config/manifest.js*, adding at the end:
|
15
25
|
|
@@ -26,6 +36,7 @@ Features:
|
|
26
36
|
```
|
27
37
|
|
28
38
|
## Customizations
|
39
|
+
|
29
40
|
To change Materialize variables it's necessary to create a new *.scss* (or *.sass*) file like this one (ex. *admin.scss*):
|
30
41
|
|
31
42
|
```scss
|
@@ -38,12 +49,36 @@ And replace the link tag in the *application.html.erb* with: `<%= stylesheet_lin
|
|
38
49
|
|
39
50
|
For the complete list of options take a look [here](app/assets/stylesheets/administrate-materialize-theme/components/_variables.scss).
|
40
51
|
|
52
|
+
## Extra features
|
53
|
+
|
54
|
+
- Sidebar example:
|
55
|
+
|
56
|
+
```html
|
57
|
+
<div class="row">
|
58
|
+
<div class="col s3">
|
59
|
+
<section class="mt-sidebar z-depth-1">
|
60
|
+
<h3>Sidebar</h3>
|
61
|
+
<p>Some content</p>
|
62
|
+
</section>
|
63
|
+
</div>
|
64
|
+
<div class="col s9">
|
65
|
+
<section class="main-content__body main-content__body--flush">
|
66
|
+
<!-- ... -->
|
67
|
+
</section>
|
68
|
+
</div>
|
69
|
+
</div>
|
70
|
+
```
|
71
|
+
|
41
72
|
## Do you like it? Star it!
|
42
|
-
|
43
|
-
is some interest.
|
73
|
+
|
74
|
+
If you use this component just star it. A developer is more motivated to improve a project when there is some interest.
|
75
|
+
|
76
|
+
Or consider offering me a coffee, it's a small thing but it is greatly appreciated: [about me](https://www.blocknot.es/about-me).
|
44
77
|
|
45
78
|
## Contributors
|
79
|
+
|
46
80
|
- [Mattia Roccoberton](https://blocknot.es/): author
|
47
81
|
|
48
82
|
## License
|
83
|
+
|
49
84
|
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/Rakefile
CHANGED
@@ -1 +1,16 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'bundler/gem_tasks'
|
4
|
+
|
5
|
+
begin
|
6
|
+
require 'rspec/core/rake_task'
|
7
|
+
|
8
|
+
RSpec::Core::RakeTask.new(:spec) do |t|
|
9
|
+
# t.ruby_opts = %w[-w]
|
10
|
+
t.rspec_opts = ['--color', '--format documentation']
|
11
|
+
end
|
12
|
+
|
13
|
+
task default: :spec
|
14
|
+
rescue LoadError
|
15
|
+
puts '! LoadError: no RSpec available'
|
16
|
+
end
|
@@ -20,12 +20,13 @@ th.cell-label {
|
|
20
20
|
|
21
21
|
.main-content {
|
22
22
|
border-radius: 0;
|
23
|
+
min-height: calc(100vh - #{$navbar-height});
|
23
24
|
padding-bottom: 0;
|
24
25
|
}
|
25
26
|
|
26
27
|
.main-content__body {
|
27
28
|
overflow-x: scroll;
|
28
|
-
padding-bottom:
|
29
|
+
padding-bottom: 0;
|
29
30
|
}
|
30
31
|
|
31
32
|
.main-content__header {
|
@@ -52,21 +52,23 @@
|
|
52
52
|
@extend h6;
|
53
53
|
@extend .center-align;
|
54
54
|
|
55
|
-
background: lighten($
|
55
|
+
background: lighten($error-color, 20%);
|
56
56
|
margin: 0;
|
57
57
|
padding: 1rem 0 0.6rem 0;
|
58
58
|
}
|
59
59
|
|
60
|
-
ul {
|
61
|
-
@extend .collection;
|
62
|
-
|
63
|
-
margin-top: 0;
|
64
|
-
}
|
65
|
-
|
66
60
|
li {
|
67
61
|
@extend .collection-item;
|
68
62
|
|
69
63
|
color: $error-color;
|
64
|
+
display: inline-block;
|
65
|
+
}
|
66
|
+
|
67
|
+
ul {
|
68
|
+
@extend .collection;
|
69
|
+
|
70
|
+
margin-top: 0;
|
71
|
+
text-align: center;
|
70
72
|
}
|
71
73
|
}
|
72
74
|
|
@@ -3,7 +3,7 @@ a.action-edit, a[data-method="delete"] {
|
|
3
3
|
}
|
4
4
|
|
5
5
|
nav.pagination {
|
6
|
-
margin-top:
|
6
|
+
margin-top: 2rem;
|
7
7
|
}
|
8
8
|
|
9
9
|
.btn-clear-filters {
|
@@ -12,13 +12,12 @@ nav.pagination {
|
|
12
12
|
}
|
13
13
|
|
14
14
|
#search {
|
15
|
-
padding: 0
|
15
|
+
padding: 0 2.5rem;
|
16
16
|
width: calc(100% - 5rem);
|
17
17
|
}
|
18
18
|
|
19
19
|
@media #{$small-and-down} {
|
20
20
|
#search {
|
21
21
|
height: 2rem;
|
22
|
-
padding-top: 0;
|
23
22
|
}
|
24
23
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: administrate-materialize-theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mattia Roccoberton
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: administrate
|
@@ -16,140 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: '0.16'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: '0.16'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: appraisal
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: '2.4'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: capybara
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: 3.33.0
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: 3.33.0
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: pry
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: 0.13.1
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: 0.13.1
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: puma
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - "~>"
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: 4.3.5
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - "~>"
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: 4.3.5
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: rspec_junit_formatter
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: 0.4.1
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - "~>"
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: 0.4.1
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: rspec-rails
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - "~>"
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: 4.0.1
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - "~>"
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: 4.0.1
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: rubocop
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - "~>"
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: 0.90.0
|
118
|
-
type: :development
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - "~>"
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: 0.90.0
|
125
|
-
- !ruby/object:Gem::Dependency
|
126
|
-
name: selenium-webdriver
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - "~>"
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: 3.142.7
|
132
|
-
type: :development
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - "~>"
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: 3.142.7
|
139
|
-
- !ruby/object:Gem::Dependency
|
140
|
-
name: sqlite3
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
142
|
-
requirements:
|
143
|
-
- - "~>"
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: 1.4.2
|
146
|
-
type: :development
|
147
|
-
prerelease: false
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
149
|
-
requirements:
|
150
|
-
- - "~>"
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: 1.4.2
|
40
|
+
version: '2.4'
|
153
41
|
description: A Material Design theme for Administrate using Materialize framework
|
154
42
|
email:
|
155
43
|
- mat@blocknot.es
|
@@ -236,6 +124,7 @@ files:
|
|
236
124
|
- app/assets/stylesheets/administrate-materialize-theme/layout-index.scss
|
237
125
|
- app/assets/stylesheets/administrate-materialize-theme/layout-show.scss
|
238
126
|
- app/assets/stylesheets/administrate-materialize-theme/materialize.scss
|
127
|
+
- app/assets/stylesheets/administrate-materialize-theme/sidebar.scss
|
239
128
|
- app/assets/stylesheets/administrate-materialize-theme/theme.scss
|
240
129
|
- lib/administrate-materialize-theme.rb
|
241
130
|
- lib/administrate-materialize-theme/engine.rb
|
@@ -243,7 +132,10 @@ files:
|
|
243
132
|
homepage: https://github.com/blocknotes/administrate-materialize-theme
|
244
133
|
licenses:
|
245
134
|
- MIT
|
246
|
-
metadata:
|
135
|
+
metadata:
|
136
|
+
homepage_uri: https://github.com/blocknotes/administrate-materialize-theme
|
137
|
+
source_code_uri: https://github.com/blocknotes/administrate-materialize-theme
|
138
|
+
rubygems_mfa_required: 'true'
|
247
139
|
post_install_message:
|
248
140
|
rdoc_options: []
|
249
141
|
require_paths:
|
@@ -252,14 +144,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
252
144
|
requirements:
|
253
145
|
- - ">="
|
254
146
|
- !ruby/object:Gem::Version
|
255
|
-
version:
|
147
|
+
version: 2.6.0
|
256
148
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
257
149
|
requirements:
|
258
150
|
- - ">="
|
259
151
|
- !ruby/object:Gem::Version
|
260
152
|
version: '0'
|
261
153
|
requirements: []
|
262
|
-
rubygems_version: 3.
|
154
|
+
rubygems_version: 3.1.6
|
263
155
|
signing_key:
|
264
156
|
specification_version: 4
|
265
157
|
summary: Administrate Materialize Theme
|