forms.css 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. /* =Forms
  2. ----------------------------------------------- */
  3. button,
  4. input[type='button'],
  5. input[type='reset'],
  6. input[type='submit'],
  7. .button,
  8. .button:visited {
  9. font-family: "Roboto Slab", Georgia, Times, serif;
  10. box-sizing: border-box;
  11. padding: 10px 14px;
  12. -webkit-transition: all .3s ease-in-out;
  13. transition: all .3s ease-in-out;
  14. letter-spacing: 1px;
  15. text-transform: uppercase;
  16. color: #999;
  17. border: 3px solid #eee;
  18. background: white;
  19. box-shadow: none;
  20. text-shadow: none;
  21. }
  22. button:hover,
  23. button:focus,
  24. button:active,
  25. input[type='button']:hover,
  26. input[type='button']:focus,
  27. input[type='button']:active,
  28. input[type='reset']:hover,
  29. input[type='reset']:focus,
  30. input[type='reset']:active,
  31. input[type='submit']:hover,
  32. input[type='submit']:focus,
  33. input[type='submit']:active,
  34. .button:hover,
  35. .button:focus,
  36. .button:active {
  37. -webkit-transition: all .3s ease-in-out;
  38. transition: all .3s ease-in-out;
  39. color: #1c7c7c;
  40. border-color: #1c7c7c;
  41. box-shadow: none;
  42. }
  43. input[type='text'],
  44. input[type='email'],
  45. input[type='url'],
  46. input[type='password'],
  47. input[type='search'] {
  48. -webkit-box-sizing: border-box;
  49. -moz-box-sizing: border-box;
  50. box-sizing: border-box;
  51. max-width: 100%;
  52. padding: 12px;
  53. border: 1px solid #eee;
  54. }
  55. input[type='text']:active,
  56. input[type='text']:focus,
  57. input[type='email']:active,
  58. input[type='email']:focus,
  59. input[type='url']:active,
  60. input[type='url']:focus,
  61. input[type='password']:active,
  62. input[type='password']:focus,
  63. input[type='search']:active,
  64. input[type='search']:focus {
  65. border-color: #d4d4d4;
  66. outline: none;
  67. background: white;
  68. }
  69. textarea {
  70. -webkit-box-sizing: border-box;
  71. -moz-box-sizing: border-box;
  72. box-sizing: border-box;
  73. max-width: 100%;
  74. padding: 12px;
  75. border: 1px solid #eee;
  76. }
  77. textarea:active,
  78. textarea:focus {
  79. border-color: #d4d4d4;
  80. outline: none;
  81. }
  82. button,
  83. input,
  84. select,
  85. textarea {
  86. margin: 0;
  87. /* Addresses margins set differently in IE6/7, F3, S5, Chrome */
  88. vertical-align: baseline;
  89. /* Improves appearance and consistency in all browsers */
  90. *vertical-align: middle;
  91. /* Improves appearance and consistency in all browsers */
  92. }
  93. button,
  94. input[type='button'],
  95. input[type='reset'],
  96. input[type='submit'] {
  97. cursor: pointer;
  98. color: rgba(0, 0, 0, .8);
  99. border: 1px solid #ccc;
  100. border-color: #ccc #ccc #bbb #ccc;
  101. border-radius: 3px;
  102. background: #e6e6e6;
  103. box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 15px 17px rgba(255, 255, 255, .5), inset 0 -5px 12px rgba(0, 0, 0, .05);
  104. /* Corrects inability to style clickable 'input' types in iOS */
  105. text-shadow: 0 1px 0 rgba(255, 255, 255, .8);
  106. /* Improves usability and consistency of cursor style between image-type 'input' and others */
  107. -webkit-appearance: button;
  108. }
  109. button:hover,
  110. input[type='button']:hover,
  111. input[type='reset']:hover,
  112. input[type='submit']:hover {
  113. border-color: #ccc #bbb #aaa #bbb;
  114. box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 15px 17px rgba(255, 255, 255, .8), inset 0 -5px 12px rgba(0, 0, 0, .02);
  115. }
  116. button:focus,
  117. input[type='button']:focus,
  118. input[type='reset']:focus,
  119. input[type='submit']:focus,
  120. button:active,
  121. input[type='button']:active,
  122. input[type='reset']:active,
  123. input[type='submit']:active {
  124. border-color: #aaa #bbb #bbb #bbb;
  125. box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .5), inset 0 2px 5px rgba(0, 0, 0, .15);
  126. }
  127. input[type='checkbox'],
  128. input[type='radio'] {
  129. padding: 0;
  130. /* Addresses excess padding in IE8/9 */
  131. }
  132. input[type='search'] {
  133. /* Addresses appearance set to searchfield in S5, Chrome */
  134. -webkit-box-sizing: content-box;
  135. /* Addresses box sizing set to border-box in S5, Chrome (include -moz to future-proof) */
  136. -moz-box-sizing: content-box;
  137. box-sizing: content-box;
  138. -webkit-appearance: textfield;
  139. }
  140. input[type='search']::-webkit-search-decoration {
  141. /* Corrects inner padding displayed oddly in S5, Chrome on OSX */
  142. -webkit-appearance: none;
  143. }
  144. button::-moz-focus-inner,
  145. input::-moz-focus-inner {
  146. padding: 0;
  147. /* Corrects inner padding and border displayed oddly in FF3 www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/ */
  148. border: 0;
  149. }
  150. input[type='text'],
  151. input[type='email'],
  152. input[type='url'],
  153. input[type='password'],
  154. input[type='search'],
  155. textarea {
  156. color: #666;
  157. border: 1px solid #ccc;
  158. border-radius: 3px;
  159. }
  160. input[type='text']:focus,
  161. input[type='email']:focus,
  162. input[type='url']:focus,
  163. input[type='password']:focus,
  164. input[type='search']:focus,
  165. textarea:focus {
  166. color: #111;
  167. }
  168. input[type='text'],
  169. input[type='email'],
  170. input[type='url'],
  171. input[type='password'],
  172. input[type='search'] {
  173. padding: 3px;
  174. }
  175. textarea {
  176. overflow: auto;
  177. /* Improves readability and alignment in all browsers */
  178. width: 98%;
  179. /* Removes default vertical scrollbar in IE6/7/8/9 */
  180. padding-left: 3px;
  181. vertical-align: top;
  182. }