File tree Expand file tree Collapse file tree
app/assets/stylesheets/administrate-materialize-theme Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # Administrate Materialize Theme [ ![ 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 )
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+
24A Material theme form [ Administrate] ( https://github.com/thoughtbot/administrate ) , based on [ Materialize] ( https://materializecss.com ) framework.
35
46Features:
@@ -38,9 +40,27 @@ And replace the link tag in the *application.html.erb* with: `<%= stylesheet_lin
3840
3941For the complete list of options take a look [ here] ( app/assets/stylesheets/administrate-materialize-theme/components/_variables.scss ) .
4042
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+
4162## 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.
4464
4565## Contributors
4666- [ Mattia Roccoberton] ( https://blocknot.es/ ) : author
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change @@ -6,3 +6,4 @@ $primary-color: #1d489b !default;
66@import ' form' ;
77@import ' layout-index' ;
88@import ' layout-show' ;
9+ @import ' sidebar' ;
You can’t perform that action at this time.
0 commit comments