form.css 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /* --------------------------------------------------------------
  2. form.css
  3. Base pour formulaires
  4. Cf.: http://contrib.spip.net/3820
  5. -------------------------------------------------------------- */
  6. input,textarea,select,button { font-family: inherit; font-size: 100%; font-weight: inherit; line-height: inherit; }
  7. legend { font-weight: bold; }
  8. /* Hand cursor on clickable input elements */
  9. input[type="submit"],input.submit,
  10. input[type="button"],input.button,
  11. input[type="image"],input.image,
  12. button { cursor: pointer; }
  13. textarea { overflow: auto; } /* www.sitepoint.com/blogs/2010/08/20/ie-remove-textarea-scrollbars/ */
  14. .ie fieldset { padding-top: 0; }
  15. .ie6 legend,
  16. .ie7 legend { margin-left: -7px; } /* Preciser la couleur des legend et du fond pour IE/Win */
  17. .ie button,
  18. .ie input.submit,
  19. .ie input.button { position: relative; }
  20. button { width: auto; overflow: visible; } /* Make buttons play nice in IE: www.viget.com/inspire/styling-the-button-element-in-internet-explorer/ */
  21. /* Success, info, notice and error/alert boxes (from BluePrint) */
  22. .reponse,
  23. .error,
  24. .alert,
  25. .notice,
  26. .success,
  27. .info { padding: .8em; margin-bottom: 1.5em; border: 2px solid #ddd; }
  28. .error,
  29. .alert { background: #fbe3e4; color: #8a1f11; border-color: #fbc2c4; }
  30. .notice { background: #fff6bf; color: #514721; border-color: #ffd324; }
  31. .success { background: #e6efc2; color: #264409; border-color: #c6d880; }
  32. .info { background: #d5edf8; color: #205791; border-color: #92cae4; }
  33. .error a,
  34. .alert a { color: #8a1f11; }
  35. .notice a { color: #514721; }
  36. .success a { color: #264409; }
  37. .info a { color: #205791; }
  38. /* Print */
  39. @media print {
  40. form { display: none; }
  41. }
  42. /* end */