SVN: r24265 - trunk/quixote/form2
Neil Schemenauer <nascheme-fVcApmY9cLvQ3/1i3zOLAti2O/[email protected]> Tue, 18 May 2004 15:49:11 -0400
| Newsgroups | gmane.comp.web.quixote.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: nascheme
Date: 2004-05-18 13:52:40 -0400 (Tue, 18 May 2004)
New Revision: 24265
Added:
trunk/quixote/form2/css.py
Log:
Basic CSS style for form2.
Added: trunk/quixote/form2/css.py
===================================================================
--- trunk/quixote/form2/css.py 2004-05-18 17:45:21 UTC (rev 24264)
+++ trunk/quixote/form2/css.py 2004-05-18 17:52:40 UTC (rev 24265)
@@ -0,0 +1,62 @@
+
+BASIC_FORM_CSS = """\
+form div.title {
+ font-weight: bold;
+}
+
+form br.widget {
+ clear: left; /* each widget div starts on new line by default */
+}
+
+form div.widget {
+ float: left;
+ padding: 4px;
+ padding-right: 1em;
+ margin-bottom: 6px;
+}
+
+form div.widget div.widget {
+ padding: 0;
+ margin-bottom: 0;
+}
+
+form div.content {
+ margin-left: 0.6em; /* indent content */
+}
+
+form div.content div.content {
+ margin-left: 0; /* indent content only for top-level widgets */
+}
+
+form div.error {
+ color: #c00;
+ font-size: small;
+ margin-top: .1em;
+}
+
+form div.hint {
+ font-size: small;
+ font-style: italic;
+ margin-top: .1em;
+}
+
+form div.errornotice {
+ color: #c00;
+ padding: 0.5em;
+ margin: 0.5em;
+}
+
+form div.FormTokenWidget {
+ display: none;
+}
+
+form div.HiddenWidget {
+ display: none;
+}
+
+form div.submit {
+ margin-top: 0.5em;
+ margin-bottom: 1em;
+ padding: 0.5em;
+}
+"""