Ana Badescu has proposed merging lp:~anabee-emacs/postorius/admin-settings into
lp:postorius.
Requested reviews:
Florian Fuchs (flo-fuchs)
For more details, see:
https://code.launchpad.net/~anabee-emacs/postorius/admin-settings/+merge/253903
I investigated how Django forms can be customised but I found this solution far
more cleaner. Attributes (such as classes, ids), can be indeed added to forms
from within Django while composing the form.
However, by default, input elements, such radio buttons are stacked vertically,
not horizontally. So I inspected the style elements on some of the radio
buttons, found that it boiled down to some styling properties that we could do
without.
--
Your team Mailman Coders is subscribed to branch lp:postorius.
=== modified file 'src/postorius/static/postorius/css/style.css'
--- src/postorius/static/postorius/css/style.css 2015-02-06 15:50:56 +0000
+++ src/postorius/static/postorius/css/style.css 2015-03-24 01:08:49 +0000
@@ -212,17 +212,24 @@
}
/* auto-generated forms made a bit cleaner */
-.well label {
- display: inline;
+.well td {
+ vertical-align: middle;
+ padding-left: 15px;
+ padding-right: 15px;
+}
+.well ul {
+ display: table-cell;
+}
+.well li {
+ list-style: none;
}
.well input {
- display: inline;
-}
-.well li {
- display: inline;
- list-style: none;
- padding-right: 1em;
-}
+ margin-top: 0px;
+}
+.well select{
+ margin-bottom: 0px;
+}
+
.errorlist {
color: #A22630;
}
_______________________________________________
Mailman-coders mailing list
[email protected]
https://mail.python.org/mailman/listinfo/mailman-coders