Summary
Allows application of CSS style classes to arbitrary SnipSnap/Radeox content.
by Ben Coburn (
http://silicodon.net/)
Distributed under the LGPL License.
See:
http://www.opensource.org/licenses/lgpl-license.phpDownload
CSSFormatMacro.jar (The source is included in the jar.)
Changes
No longer allows quote marks in the CSS class argument. (see
javascript)
Usage
- Add this macro to your SnipSnap installation. See
http://www.snipsnap.org/ for details.
- Add custom CSS style classes to your SnipSnap theme. This can simply be done as follows.
- Edit SnipSnap/themes/<theme-name>/css by adding another file to the CSS imports:
@import url(css/format.css);
- Create a new Snip as: SnipSnap/themes/<theme-name>/css/format.css
- Edit format.css to add your own custom CSS classes. For example:
.highlight-yellow { padding: 2px; background: #ff0; }
- This CSS style class can now be used anywhere in the SnipSnap by calling out this macro as follows:
{format:highlight-yellow}some highlighted text{format}(Note that this macro uses span tags to accomplish this formatting.)