Kate usually does this via adding/removing classes instead of hard-coding styles.  You might get her take on this.