form-elements.css 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. input[type="text"],
  2. input[type="password"],
  3. textarea,
  4. textarea.form-control {
  5. height: 50px;
  6. margin: 0;
  7. padding: 0 20px;
  8. vertical-align: middle;
  9. background: #f8f8f8;
  10. border: 3px solid #ddd;
  11. font-family: 'Roboto', sans-serif;
  12. font-size: 16px;
  13. font-weight: 300;
  14. line-height: 50px;
  15. color: #888;
  16. -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px;
  17. -moz-box-shadow: none; -webkit-box-shadow: none; box-shadow: none;
  18. -o-transition: all .3s; -moz-transition: all .3s; -webkit-transition: all .3s; -ms-transition: all .3s; transition: all .3s;
  19. }
  20. textarea,
  21. textarea.form-control {
  22. padding-top: 10px;
  23. padding-bottom: 10px;
  24. line-height: 30px;
  25. }
  26. input[type="text"]:focus,
  27. input[type="password"]:focus,
  28. textarea:focus,
  29. textarea.form-control:focus {
  30. outline: 0;
  31. background: #fff;
  32. border: 3px solid #ccc;
  33. -moz-box-shadow: none; -webkit-box-shadow: none; box-shadow: none;
  34. }
  35. input[type="text"]:-moz-placeholder, input[type="password"]:-moz-placeholder,
  36. textarea:-moz-placeholder, textarea.form-control:-moz-placeholder { color: #888; }
  37. input[type="text"]:-ms-input-placeholder, input[type="password"]:-ms-input-placeholder,
  38. textarea:-ms-input-placeholder, textarea.form-control:-ms-input-placeholder { color: #888; }
  39. input[type="text"]::-webkit-input-placeholder, input[type="password"]::-webkit-input-placeholder,
  40. textarea::-webkit-input-placeholder, textarea.form-control::-webkit-input-placeholder { color: #888; }
  41. button.btn {
  42. height: 50px;
  43. margin: 0;
  44. padding: 0 20px;
  45. vertical-align: middle;
  46. background: #4aaf51;
  47. border: 0;
  48. font-family: 'Roboto', sans-serif;
  49. font-size: 16px;
  50. font-weight: 300;
  51. line-height: 50px;
  52. color: #fff;
  53. -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px;
  54. text-shadow: none;
  55. -moz-box-shadow: none; -webkit-box-shadow: none; box-shadow: none;
  56. -o-transition: all .3s; -moz-transition: all .3s; -webkit-transition: all .3s; -ms-transition: all .3s; transition: all .3s;
  57. }
  58. button.btn:hover { opacity: 0.6; color: #fff; }
  59. button.btn:active { outline: 0; opacity: 0.6; color: #fff; -moz-box-shadow: none; -webkit-box-shadow: none; box-shadow: none; }
  60. button.btn:focus { outline: 0; opacity: 0.6; background: #4aaf51; color: #fff; }
  61. button.btn:active:focus, button.btn.active:focus { outline: 0; opacity: 0.6; background: #4aaf51; color: #fff; }