Cascade Judo with StyleCatcher CSS

| 0 Comments | 1 TrackBack

The other day, on one of MT mailing lists, someone commented on how difficult it was for the average user to edit the CSS files that are created when a style is selected for a blog using StyleCatcher. On this site we have presented an alternative which does not involve editing the files from StyleCatcher, and makes it possible to easily refresh templates without loosing all your customizations.

From CSS2 Specification : Assigning property values, Cascading, and Inheritance

Imported style sheets also cascade and their weight depends on their import order. Rules specified in a given style sheet override rules imported from other style sheets. Imported style sheets can themselves import and override other style sheets, recursively, and the same precedence rules apply.

On our site, we create a new template, and name the output file kinetix.css.

Custom Style Template - Edit

Then in the Style Sheet template we add a line to include our own styles. Since we import our style sheet after the StyleCatcher style sheets, any property values we define will over ride the values from the StyleCatcher files.

@import "/mt_static/themes_base/blog.css";
@import "//universal_black/screen.css";
@import "/kinetix.css";

Another advantage to making changes this way is that if we refresh templates we will only have to add one line to have all our customizations replaced.

1 TrackBack

TrackBack URL: http://www.kinetixhosting.com/mtpro/mt-tb.cgi/8

Our company is dedicated to providing a variety of well supported web hosting services to your small business. We made this new site with Movable Type and the Universal template set to demonstrate that a small business can easily make a simple web site... Read More

Leave a comment

Recent Entries

Putting Movable Type Keywords in the Head of the HTML file
When a user creates an entry or a page in MT, they are given the possibility of entering keywords in…
A small "new web site" gift for you
Today marks the launch of the new KinetixHosting site. Our company is dedicated to providing a variety of well supported…
Cascade Judo with StyleCatcher CSS
The other day, on one of MT mailing lists, someone commented on how difficult it was for the average user…