Improve styling and extensibility for the My Account page.
Review Request #5585 — Created March 4, 2014 and submitted
The My Account page's styling was less than optimal when trying to put
<p>
tags on the form. They were too large, had bad margins, and the
black text stood out too much. Now<p>
tags have the same size and color
as labels, and have a good margin between elements, helping them to
blend in and feel natural.Checkboxes also now have a sane style when not using the
checkbox-row
class. This is particularly handy forMultipleChoiceFields
. Previously,
the checkbox portion was taking21em
, which made no sense.There's also some better extensibility for custom templates for the
page. Templates can inherit fromprefs_page_form.html
and overrie the
pre_fields
andpost_fields
blocks to inject custom HTML before or
after the fields. Useful for explanatory text.
Made use of all of this in the new RBCommons My Account page. Things
were broken before, style-wise, but look fine now.