gregbell/active_admin — pull request #1343 by ronen (2012-05-19 23:11:44+00:00)
Title: encapsulate css rules to affect only active_admin pages

This addresses the discussion in Issue #825.

In rails 3, the common pattern is to include all css files together. In which case the default active_admin css rules end up defining/overriding styles for the entire app.

The propsed patch wraps a selector
body.admin_namespace {
...
}
around all the active_admin css rules, so that they only affect admin pages.

(This will unfortunately have backwards-compatibility issues for anyone who, intentionally or not, relies on the active_admin css rules for the styling of the rest of their app.)