Skip to content

Commit 68cd7a2

Browse files
committed
Add simple sidebar styles
1 parent 14ce198 commit 68cd7a2

3 files changed

Lines changed: 41 additions & 3 deletions

File tree

README.md

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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) [![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+
24
A Material theme form [Administrate](https://github.com/thoughtbot/administrate), based on [Materialize](https://materializecss.com) framework.
35

46
Features:
@@ -38,9 +40,27 @@ And replace the link tag in the *application.html.erb* with: `<%= stylesheet_lin
3840

3941
For 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
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
}

app/assets/stylesheets/administrate-materialize-theme/theme.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ $primary-color: #1d489b !default;
66
@import 'form';
77
@import 'layout-index';
88
@import 'layout-show';
9+
@import 'sidebar';

0 commit comments

Comments
 (0)