Apr 27 2009

New feature: CSS in Globals

Today's code release (build 278) includes a new feature that allows a css statement in the global block. You can put any valid CSS inside the css statement and it will be added as a <style/> element at the end of the header.

This is a powerful feature that allows KRL application to manage the CSS appearance of pages. Because other rulesets might also be firing on the page, you should be a good neighbor and avoid changing the CSS on elements that you didn't create. In the case of CSS, last <style/> wins, so the last ruleset to fire is going to get it's way. See the documentation for examples.

Other changes in this build:

  • The notify action was changed to take advantage of configuration defaults. Notify now takes only two arguments, the header and the message. All other changes are controlled by adding them to the configuration via a with clause. See the documentation for details and examples.
  • A new close_notification action was added for, what else, closing notifications. See the documentation for details

No Comments

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

Back to Blog