administrate materialize theme
v1.0.0
A Material theme for Administrate, based on Materialize framework.
Features:
Please if you like it.
gem 'sassc'
)gem 'administrate-materialize-theme'
(and execute bundle
)//= link administrate-materialize-theme/theme.css
//= link administrate-materialize-theme/theme.js
rails generate administrate:views:layout
), adding before head closing tag:<%= stylesheet_link_tag 'administrate-materialize-theme/theme', media: 'all' %>
<%= javascript_include_tag 'administrate-materialize-theme/theme' %>
To change Materialize variables it's necessary to create a new .scss (or .sass) file like this one (ex. admin.scss):
// app/assets/stylesheets/admin.scss
$primary-color: #FB1;
@import 'administrate-materialize-theme/theme';
And replace the link tag in the application.html.erb with: <%= stylesheet_link_tag 'admin', media: 'all' %>
For the complete list of options take a look here.
<div class="row">
<div class="col s3">
<section class="mt-sidebar z-depth-1">
<h3>Sidebar</h3>
<p>Some content</p>
</section>
</div>
<div class="col s9">
<section class="main-content__body main-content__body--flush">
<!-- ... -->
</section>
</div>
</div>
If you use this component just star it. A developer is more motivated to improve a project when there is some interest.
Or consider offering me a coffee, it's a small thing but it is greatly appreciated: about me.
The gem is available as open source under the terms of the MIT License.