Commits

David Chambers committed 20096d0

Added rules to hide the textual feedback provided following invalid form submission and to visually distinguish the offending field(s).

  • Participants
  • Parent commits 5dfe662

Comments (0)

Files changed (1)

File static/default.css

               #comment fieldset input           { display: block; margin: 0 0 6px; border: 1px solid #999; padding: 3px 6px; font-size: inherit; font-family: inherit; color: inherit; }
             #contact input.placeholder,
               #comment input.placeholder        { color: #a9a9a9; }
+            #contact .errorlist,
+              #comment .errorlist               { position: absolute; left: -9999px; }
+            #contact .errorlist~input,
+              #comment .errorlist~input         { border-color: #c00; }
             #sender_name,
               #author_name                      { width: 203px; }
             #sender_email,
           #comment>div                          { position: relative; }
           label[for="message"]                  { position: absolute; left: -9999px; }
           #message                              { display: block; margin: 0; width: 426px; border: 1px solid #999; padding: 3px 6px; font-size: inherit; line-height: 1.5em; font-family: inherit; color: inherit; }
+          .errorlist~#message                   { border-color: #c00; }
           label[for="cc_sender"],
             label[for="subscribe"]              { display: block; margin: 0.5em 0 0 1.5em; }
           #cc_sender,