administrate-materialize-theme 0.2.0 → 0.2.2

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: 633b2ca50a4749092361a29541909858e7ad0796b8f510f8e2836b2d2655d38d
4
- data.tar.gz: f5f7760d1c92c0eaf4341d33ccc4052bbf8b89402ab732182a6284bbd9b91b40
3
+ metadata.gz: d34966853b26ca2a103f0cab9d32a57a6ab65277e7a9ab61e7681baa513831c4
4
+ data.tar.gz: 3fba55fcc2dc42bda60d502a9e39dece2e61ae881107cffcb31cb33b3dbce8c1
5
5
  SHA512:
6
- metadata.gz: df29f1564ede3199933e593674c14d7505277cc300bdee975d6dd1676b2d365cddc528de9af58122a96e9a975d960519a5468ece3c15e8dd406808e3742dccbb
7
- data.tar.gz: cc768258f5accffe7c497568d97dfa4fa44ca6ba41ebfc3c559a04f54f1920eeb440a8d6ffef1d4c45e9621530204f652504f319f972704cdd3a00bae06919e9
6
+ metadata.gz: 35e10048cc91fa0197090366fb60c347d759768d59a26ac9092fc0c10ec6069468aaa4664d58165a678e077ea0d3bc2e11c25801c0b90014192d8045a5292193
7
+ data.tar.gz: 9f8d243ff5c2ceb6b5e38e03afb0387122c1fb331c5933fd26c9bee5f111a8193c9674b1e1e6fe6b159b6005a256c8e794be71b14445f8b0838c9f1bf781a4e2
data/README.md CHANGED
@@ -1,4 +1,6 @@
1
- # Administrate Materialize Theme [![Gem Version](https://badge.fury.io/rb/administrate-materialize-theme.svg)](https://badge.fury.io/rb/administrate-materialize-theme)
1
+ # Administrate Materialize Theme
2
+ [![Gem Version](https://badge.fury.io/rb/administrate-materialize-theme.svg)](https://badge.fury.io/rb/administrate-materialize-theme) [![CircleCI](https://circleci.com/gh/blocknotes/administrate-materialize-theme.svg?style=svg)](https://circleci.com/gh/blocknotes/administrate-materialize-theme)
3
+
2
4
  A Material theme form [Administrate](https://github.com/thoughtbot/administrate), based on [Materialize](https://materializecss.com) framework.
3
5
 
4
6
  Features:
@@ -38,9 +40,27 @@ And replace the link tag in the *application.html.erb* with: `<%= stylesheet_lin
38
40
 
39
41
  For the complete list of options take a look [here](app/assets/stylesheets/administrate-materialize-theme/components/_variables.scss).
40
42
 
43
+ ## Extra features
44
+ - Sidebar example:
45
+
46
+ ```html
47
+ <div class="row">
48
+ <div class="col s3">
49
+ <section class="mt-sidebar z-depth-1">
50
+ <h3>Sidebar</h3>
51
+ <p>Some content</p>
52
+ </section>
53
+ </div>
54
+ <div class="col s9">
55
+ <section class="main-content__body main-content__body--flush">
56
+ <!-- ... -->
57
+ </section>
58
+ </div>
59
+ </div>
60
+ ```
61
+
41
62
  ## Do you like it? Star it!
42
- If you use this component just star it. A developer is more motivated to improve a project when there
43
- is some interest.
63
+ If you use this component just star it. A developer is more motivated to improve a project when there is some interest.
44
64
 
45
65
  ## Contributors
46
66
  - [Mattia Roccoberton](https://blocknot.es/): author
@@ -2,5 +2,6 @@
2
2
 
3
3
  // --- on ready ----------------------------------------------------------------
4
4
  document.addEventListener('DOMContentLoaded', () => {
5
- M.AutoInit();
6
- });
5
+ M.AutoInit()
6
+ document.querySelector('body').classList.add('administrate-materialize-theme')
7
+ })
@@ -0,0 +1,17 @@
1
+ .mt-sidebar {
2
+ @extend .z-depth-1;
3
+
4
+ font-size: 0.9rem;
5
+ padding: 0.8rem 0.8rem 0.4rem 0.8rem;
6
+ margin-top: 0.7rem;
7
+
8
+ h2 {
9
+ font-size: 1.5rem;
10
+ margin: 0.7rem 0;
11
+ }
12
+
13
+ h3 {
14
+ font-size: 1.3rem;
15
+ margin: 0.5rem 0;
16
+ }
17
+ }
@@ -6,3 +6,4 @@ $primary-color: #1d489b !default;
6
6
  @import 'form';
7
7
  @import 'layout-index';
8
8
  @import 'layout-show';
9
+ @import 'sidebar';
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AdministrateMaterializeTheme
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.2'
5
5
  end
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.2.0
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mattia Roccoberton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-03 00:00:00.000000000 Z
11
+ date: 2020-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: administrate
@@ -236,6 +236,7 @@ files:
236
236
  - app/assets/stylesheets/administrate-materialize-theme/layout-index.scss
237
237
  - app/assets/stylesheets/administrate-materialize-theme/layout-show.scss
238
238
  - app/assets/stylesheets/administrate-materialize-theme/materialize.scss
239
+ - app/assets/stylesheets/administrate-materialize-theme/sidebar.scss
239
240
  - app/assets/stylesheets/administrate-materialize-theme/theme.scss
240
241
  - lib/administrate-materialize-theme.rb
241
242
  - lib/administrate-materialize-theme/engine.rb