Utility CSS classes for formatting

Neph
Neph
edited October 2008 in Campaign Portal Building

Comments

  • Neph
    Neph
    Posts: 10
    Given that we may often be doing repetitive formatting chores in our pages, it would be nice if we could define some utility classes for our Wiki, Adventure Log, etc.

    Textile allows you to select a class when you write something, like so: "p(someclass)".

    If we could define our own class styles that apply across our entire campaign, that would be very, very handy. That way, we could have a unified way to present, say, monster stat blocks, character sheet items, cultural notes, out-of-character asides, etc., and spend more time writing and less time formatting.

    Practically, I envision this being a textarea field in the campaign's settings page, probably hidden initially and shown with a "Show advanced options" setting. Then, this content would get pulled into each page as a block so that the classes could be accessed to do repetitive formatting chores.

    Alternatively, you could provide some pre-built utility classes for some common formatting tasks. For instance, these might be some utility classes for use in 4e campaigns:

    .monster { border: 1px solid #000; margin: 5px 15px; }
    .monster p, .monster div, .monster table { padding: 4px; }
    .monster .header { background-color: #040; color: #FFF; }
    .monster .intro { background-color: #DDB; }
    .monster .ability-title { background-color: #BB9; }
    .monster .ability-effects { background-color: #DDB; padding-left: 30px; }
    .monster .stats { background-color: #BB9; }
    .monster .equipment { background-color: #DDB; }
Sign In or Register to comment.

March 2024
Wrath of the Highborn

Read the feature post on the blog
Return to Obsidian Portal

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Discussions