Skip to content

Commit

Permalink
Fixes issue formtastic#209, which hidden fields were not always hidde…
Browse files Browse the repository at this point in the history
…n (Chrome for example). The dual declarations are required because of our clearfix display hack on the LIs, which is more

specific than the more general rule below.

Thanks to adurity for testing.
  • Loading branch information
justinfrench committed Mar 10, 2010
1 parent fea95cf commit 33262f4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions generators/formtastic/templates/formtastic.css
Expand Up @@ -100,9 +100,11 @@ form.formtastic fieldset > ol > li.text textarea { width:74%; }


/* HIDDEN OVERRIDES
The dual declarations are required because of our clearfix display hack on the LIs, which is more
specific than the more general rule below. TODO: Revist the clearing hack and this rule.
--------------------------------------------------------------------------------------------------*/
form.formtastic fieldset > ol > li.hidden { display:none; }

form.formtastic fieldset ol li.hidden,
html[xmlns] form.formtastic fieldset ol li.hidden { display:none; }

/* BOOLEAN OVERRIDES
--------------------------------------------------------------------------------------------------*/
Expand Down

0 comments on commit 33262f4

Please sign in to comment.