Moin2 CSS Style Guide

/!\ None of this is implemented yet, so it is easy to add your ideas now.

Major changes in CSS from Moin 1.x.

Format of CSS rules

Use a dense, one-line style with comments or blank lines to separate unrelated items and create visual white space. Break long lists of attributes into multiple lines and indent the second line with four spaces. Lists of selectors with common attributes should be broken with new lines so selectors are always on the left margin.

Minimize the length of selectors to increase speed and simplify code:

Use color names and 3 or 6 digit hex notation. Use shorthand notations as described here:

Alphabetize lists of attributes. Use spaces to separate attributes and attribute names and values (e.g. spaces after : and ;)

.rcpagelink {width: 33%; }
.rctime,
.rceditor {font-size: 0.88em; white-space: nowrap; }


/* admonition start */
div.caution, 
div.important, 
div.note, 
div.tip, 
div.warning {background-color: #F9F9FF; border: 1pt solid #E5E5E5; color: black; 
    margin: 10pt 30pt; min-height: 64px; padding-right: 64px; }

Changes to work on

Discussion

Another idea is maybe keeping content and theme/ui css apart.

MoinMoin: Moin2CSSStyleGuide (last edited 2010-09-20 04:53:44 by RogerHaase)