Posted By

discipolo on 10/05/10


Tagged

drupal Stylecss


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

seanpowell
geldora


usable drupal contact form


 / Published in: CSS
 

highlights on active state. uses css gradients

  1. input[type="text"] { width: 400px; }
  2. textarea { width: 600px; height: 275px; }
  3. label { color: #989898; }
  4. input, textarea { background-color: rgba(115, 115, 115, 1); border: 5px solid rgba(122, 192, 0, 0.15); padding: 10px; color: #4b4b4b; -webkit-border-radius: 5px; }
  5.  
  6.  
  7.  
  8.  
  9. input:focus, textarea:focus { border: 5px solid #9E36F2; background-color: rgba(255, 255, 255, 1); }
  10.  
  11.  
  12.  
  13.  
  14. input[type="submit"] { border: none; cursor: pointer; color: #fff; padding: 5px 36px 8px 36px; -webkit-border-radius: 10px; -moz-border-radius: 10px; -webkit-box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4); -moz-box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6); border-bottom: 1px solid rgba(0, 0, 0, 0.4); border-top: 1px solid rgba(255, 255, 255, 0.6);
  15. background: -webkit-gradient(
  16. linear,
  17. left bottom,
  18. left top,
  19. color-stop(0.23, #989898),
  20. color-stop(0.62, #dddddd)
  21. );
  22. background: -moz-linear-gradient(
  23. center bottom,
  24. #989898 23%,
  25. #dddddd 62%
  26. );
  27. }
  28.  
  29.  
  30.  
  31.  
  32. input[type="submit"]:hover { color: #fff; border-bottom: 1px solid rgba(0, 0, 0, 0.4); background-color: #9E36F2;
  33. background: -webkit-gradient(
  34. linear,
  35. left bottom,
  36. left top,
  37. color-stop(0.23, #521C7C),
  38. color-stop(0.62, #9E36F2)
  39. );
  40. background: -moz-linear-gradient(
  41. center bottom,
  42. #521C7C 23%,
  43. #9E36F2 62%
  44. );
  45. }
  46. input[type="submit"]:active { top: 1px; }

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: discipolo on March 4, 2012

updated version!

input[type="text"] { width: 400px; } textarea { width: 600px; height: 275px; } label { color: #989898; } input, textarea { background-color: rgba(115, 115, 115, 1); border: 5px solid rgba(122, 192, 0, 0.15); padding: 10px; color: #4b4b4b; -webkit-border-radius: 5px; }

input:focus, textarea:focus { border: 5px solid #9E36F2; background-color: rgba(255, 255, 255, 1); }

input[type="submit"] { border: none; cursor: pointer; color: #fff; padding: 5px 36px 8px 36px; -webkit-border-radius: 10px; -moz-border-radius: 10px; -webkit-box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4); -moz-box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6); border-bottom: 1px solid rgba(0, 0, 0, 0.4); border-top: 1px solid rgba(255, 255, 255, 0.6); background: -webkit-gradient( linear, left bottom, left top, color-stop(0.23, #989898), color-stop(0.62, #dddddd) ); background: -moz-linear-gradient( center bottom,

989898 23%,

dddddd 62%

); }

input[type="submit"]:hover { color: #fff; border-bottom: 1px solid rgba(0, 0, 0, 0.4); background-color: #9E36F2; background: -webkit-gradient( linear, left bottom, left top, color-stop(0.23, #521C7C), color-stop(0.62, #9E36F2) ); background: -moz-linear-gradient( center bottom,

521C7C 23%,

9E36F2 62%

); } input[type="submit"]:active { top: 1px; }

You need to login to post a comment.