maxim / bootswatch-rails

Bootswatches converted to SCSS ready to use in Rails asset pipeline.
MIT License
489 stars 84 forks source link

rails_admin integration? #23

Closed ejmm320 closed 11 years ago

ejmm320 commented 11 years ago

Hi all, we were wondering if it's possible to change the look & feel of rails_admin using this gem?

We use SpaceLab theme for the rest of our app and we like to change the admin interface (which still uses the default bootstrap theme).

The rails_admin wiki https://github.com/sferik/rails_admin/wiki/Theming-and-customization says that we have to override some files (mixins.css.scss, variables.css.scss and theming.css.scss).

Inside the spacelab folder (https://github.com/maxim/bootswatch-rails/tree/master/vendor/assets/stylesheets/bootswatch/spacelab) i found this two files: _variables.scss and _bootswatch.scss

So, what we can do? It's possible? Please point us in the right direction.

Thanks in advance.

ejmm320 commented 11 years ago

I found the solution for this, overriding the file theming.css.scss, including the same code that is needed to change the default bootstrap theme for the entire app.

In my case (using spacelab theme) i just put the following code into theming.css.scss:

@import "bootswatch/spacelab/variables";
@import "bootstrap";
body { padding-top: 60px; }
@import "bootstrap-responsive";
@import "bootswatch/spacelab/bootswatch";

That did the trick! I have rails_admin interface working with the beautiful SpaceLab theme.

Sorry for put this as an issue (because it's not) but is the only way i found to make the question, i suggest to create a google group for this kind of situations.

Greetings.