summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2011-06-14 17:47:57 +0200
committerLeif Johansson <leifj@sunet.se>2011-06-14 17:47:57 +0200
commit6282eb19b4611f756613e59a352063d175a33ba9 (patch)
tree79b65cbf9f3e4ebe9038722927c99a6e78719eb8
parentc1f586f093e6ab3a37df1d3ea3e2f9c0185f9f62 (diff)
generalize fieldset into class
-rw-r--r--site-media/css/style.css15
-rw-r--r--templates/edit_fieldsets.html4
2 files changed, 9 insertions, 10 deletions
diff --git a/site-media/css/style.css b/site-media/css/style.css
index beeb481..2de5324 100644
--- a/site-media/css/style.css
+++ b/site-media/css/style.css
@@ -47,15 +47,15 @@ div.toolbar{ padding: 4px; float: right; margin-right: 30px; margin-bottom: 20px
.code{font: 110% "Courier", fixed}
.infopanel { padding: 1em 2.2em; }
div .hidden {visibility:hidden;}
-form fieldset ul,ol { list-style: none inside; padding: 0; margin: 0; }
-form fieldset legend { font-size: 120%; font-weight: bold; padding: 5px; }
-form fieldset { margin-left: 20px; }
-form fieldset input[type=text] { height: 25px; }
-form fieldset label { font-weight: bold;}
-.fieldinput ul { list-style: none inside; padding: 0; margin: 0; }
+form .fieldset ul,ol { list-style: none inside; padding: 0; margin: 0; }
+form .fieldset legend { font-size: 120%; font-weight: bold; }
+form .fieldset { }
+form .fieldset input[type=text] { height: 25px; }
+form .fieldset label { font-weight: bold; }
+ul.fieldinput { list-style: none inside; padding: 0; margin: 0; }
.fieldinput li { padding: 0; margin: 0; display: inline; float: left; }
ul.inputs { list-style: none inside; padding: 0; margin: 0; }
-li.inputs { padding: 0; margin: 0; margin-top: 10px;}
+.inputs li { padding: 0; margin: 0; margin-top: 10px;}
.error { padding: 5px; }
ul.links { list-style: none inside; padding: 0; margin: 0; }
@@ -68,7 +68,6 @@ li.links { padding: 0; margin: 0; }
.left { float: left; }
a, a:hover, a:visited {
color: #E37424;
- text-decoration: none;
}
h1, h1 a {
color: #E37424;
diff --git a/templates/edit_fieldsets.html b/templates/edit_fieldsets.html
index f0ab8cb..54ab744 100644
--- a/templates/edit_fieldsets.html
+++ b/templates/edit_fieldsets.html
@@ -3,11 +3,11 @@
{% block content %}
{% block beforeform %}
{% endblock %}
+ <h2>{{formtitle}}</h2>
<form method="POST" id="wizard" class="bbq infopanel">
- <h1>{{formtitle}}</h1>
{% if form.non_field_errors %}{{ form.non_field_errors }}{% endif %}
{% for fieldset in form.fieldsets %}
- <fieldset id="{{fieldset.name}}" class="{{ fieldset.classes }}">
+ <fieldset id="{{fieldset.name}}" class="fieldset {{ fieldset.classes }}">
{% if fieldset.legend %}
<legend class="ui-state-highlight ui-corner-all">{{ fieldset.legend }}</legend>
{% endif %}