override.css
Only $9.95 for a Limited time only! Usually $19.95.
AUD $9.95 Requires EE2
Version 1.2.2
- Overview
- User guide
- Support
- Release Notes
- License
Requirements
override.css
only has a few technical requirements:
- ExpressionEngine 2.4+ w/ default CP theme.
- A modern browser: Firefox, Safari, Google Chrome or IE9+ (graceful degradation)
Installation
- Copy
/themes/cp_themes/nsm_override
to/themes/cp_themes/
- Check that the file
/themes/cp_themes/default/css/override.css
exists in your ExpressionEngine install. If it doesn't then create the file. - Add the following to
/themes/cp_themes/default/css/override.css
:@import url("../../nsm_override/css/screen.css");
- Login to the CP… ahhh pretty!
Upgrading
Upgrading to v1.2.0
v1.2.0 introduced folder structure changes. Override.css is now @import
ed into ExpressionEngines override.css file rather than replacing it. This allows you to add more than one override.css or even add your own rules.
- Empty the old override.css file
- Follow the installation instructions above
Customising CP colors
Override.css comes with 10 pre-defined colour themes. They can be found in /themes/cp_themes/nsm_override
. To choose a different colour theme update /themes/cp_themes/default/css/override.css
and replace
@import url("../../nsm_override/css/screen.css");
with @import url("../../nsm_override/css/screen_color.css");
Recompiling the .scss source with Compass
Compass is an open-source CSS Authoring Framework that uses SASS to generate CSS files.
To create a new colour theme:
- Create a new file in
/themes/cp_themes/nsm_override/src/
and paste in the following:@import '_lib/copyright.scss'; $color-accent: red; $color-accent-light: lighten($color-accent, 10%); $color-accent-dark: darken($color-accent, 10%); $color-accent-text: #fff; // when $color-accent is used as a background $color-link: red; $color-link-light: lighten($color-link, 10%); $color-link-dark: darken($color-link, 10%); $color-link-text: #fff; // When $color-link is used as a background @import '_lib/screen.scss';
- In the pasted code above define both
$color-accent
and$color-link
variables. - Compile your new CSS files.
- Update
/themes/cp_themes/default/css/override.css