Advertisement
Guest User

Untitled

a guest
Aug 28th, 2015
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.36 KB | None | 0 0
  1. /*
  2. Formal.css
  3. Default Styles for Forms
  4. */
  5.  
  6. @import url('//fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,900,300italic,400italic,600italic,700italic,900italic');
  7.  
  8. input,
  9. button,
  10. selext,
  11. textarea,
  12. [contenteditable],
  13. .input,
  14. .button,
  15. .submit {
  16. box-sizing: border-box;
  17. -moz-box-sizing: border-box;
  18. -webkit-box-sizing: border-box;
  19. text-rendering: optimizeLegibility;
  20. -webkit-font-smoothing: antialiased;
  21. -moz-osx-font-smoothing: grayscale;
  22. font-kerning: auto;
  23. font-size: 12pt;
  24. font-family: 'Source Sans Pro', 'Open Sans', Roboto, 'HelveticaNeue-Light', 'Helvetica Neue Light', 'Helvetica Neue', 'Myriad Pro', 'Segoe UI', Myriad, Helvetica, 'Lucida Grande', 'DejaVu Sans Condensed', 'Liberation Sans', 'Nimbus Sans L', Tahoma, Geneva, Arial, sans-serif;
  25. -webkit-transition: all .2s ease-in-out;
  26. transition: all .1s ease-in-out;
  27. }
  28.  
  29. .input,
  30. textarea,
  31. [contenteditable],
  32. input:not([type=submit]):not([type=button]) {
  33. display: inline-block;
  34. width: auto;
  35. margin: 0 auto;
  36. padding: .3em .5em .3em .5em;
  37. font-size: 12pt;
  38. line-height: 1;
  39. -webkit-appearance: none;
  40. appearance: none;
  41. outline: none;
  42. background: white;
  43. border-radius: 3px;
  44. outline: none;
  45. cursor: pointer;
  46. text-decoration: none;
  47. border: 1px solid #ccc;
  48. border-bottom-color: #aaa;
  49. box-shadow: inset rgba(0,0,0,.1) 0 -5px 15px, inset rgba(0,0,0,.05) 0 1px 1px, rgba(0,0,0,.15) 0px 1px 1px;
  50. }
  51.  
  52. .input:hover,
  53. .input:focus,
  54. textarea:hover,
  55. textarea:focus,
  56. [contenteditable]:hover,
  57. [contenteditable]:focus,
  58. input:not([type=submit]):not([type=button]):hover,
  59. input:not([type=submit]):not([type=button]):focus {
  60. border: 1px solid #00ccff;
  61. box-shadow: inset rgba(0,0,0,.05) 0 -5px 15px, inset rgba(0,0,0,.025) 0 1px 1px, rgba(0,0,0,.15) 0px 1px 1px;
  62. }
  63.  
  64. .input:active,
  65. textarea:active,
  66. [contenteditable]:active,
  67. input:not([type=submit]):not([type=button]):active {
  68. border: 1px solid #0077ff;
  69. }
  70.  
  71. select {
  72. position: relative;
  73. padding: .3em .5em .3em .5em;
  74. font-size: 12pt;
  75. line-height: 1;
  76. }
  77.  
  78. button,
  79. .button,
  80. .submit,
  81. input[type=submit],
  82. input[type=button] {
  83. display: inline-block;
  84. width: auto;
  85. margin: 0 auto;
  86. padding: .4em .6em .5em .6em;
  87. -webkit-appearance: none;
  88. appearance: none;
  89. outline: none;
  90. cursor: pointer;
  91. font-weight: 600;
  92. text-decoration: none;
  93. text-align: center;
  94. font-size: 12pt;
  95. line-height: 1;
  96. color: #fff;
  97. border-radius: 3px;
  98. -webkit-user-select: none;
  99. -moz-user-select: none;
  100. -ms-user-select: none;
  101. -o-user-select: none;
  102. user-select: none;
  103. background: #00ccff;
  104. background: -moz-linear-gradient(top, #00ccff 0%, #0080ff 100%);
  105. background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#00ccff), color-stop(100%,#0080ff));
  106. background: -webkit-linear-gradient(top, #00ccff 0%,#0080ff 100%);
  107. background: -o-linear-gradient(top, #00ccff 0%,#0080ff 100%);
  108. background: -mr-linear-gradient(top, #00ccff 0%,#0080ff 100%);
  109. background: linear-gradient(to bottom, #00ccff 0%,#0080ff 100%);
  110. filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ccff', endColorstr='#0080ff',GradientType=0 );
  111. text-shadow: #06e 1px 1px 0;
  112. border: 1px solid #07f;
  113. border-bottom-color: #02e;
  114. box-shadow: inset #0065ff 0 -5px 15px, inset #99ffff 0 1px 1px, rgba(0,0,0,.15) 0px 1px 1px;
  115. }
  116.  
  117. button:hover,
  118. button:focus,
  119. .button:hover,
  120. .button:focus,
  121. input[type=button]:hover,
  122. input[type=button]:focus {
  123. background: #7df;
  124. background: -moz-linear-gradient(top, #7df 0%, #07f 100%);
  125. background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#7df), color-stop(100%,#07f));
  126. background: -webkit-linear-gradient(top, #7df 0%,#07f 100%);
  127. background: -o-linear-gradient(top, #7df 0%,#07f 100%);
  128. background: -mr-linear-gradient(top, #7df 0%,#07f 100%);
  129. background: linear-gradient(to bottom, #7df 0%,#07f 100%);
  130. filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#7df', endColorstr='#07f',GradientType=0 );
  131. box-shadow: inset #08f 0 -5px 15px, inset #cef 0 1px 1px, rgba(0,0,0,.15) 0px 1px 1px, rgba(0,200,255,.5) 0 0 10px;
  132. }
  133.  
  134. button:active,
  135. .button:active,
  136. input[type=button]:active {
  137. background: #05f;
  138. background: -moz-linear-gradient(top, #05f 0%, #07f 100%);
  139. background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#05f), color-stop(100%,#07f));
  140. background: -webkit-linear-gradient(top, #05f 0%,#07f 100%);
  141. background: -o-linear-gradient(top, #05f 0%,#07f 100%);
  142. background: -mr-linear-gradient(top, #05f 0%,#07f 100%);
  143. background: linear-gradient(to bottom, #05f 0%,#07f 100%);
  144. filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#7df', endColorstr='#07f',GradientType=0 );
  145. border: 1px solid #00f;
  146. box-shadow: inset #04f 0 -5px 15px, inset #8ad2ff 0 1px 1px;
  147. border-bottom-color: #01d;
  148. }
  149.  
  150. .submit,
  151. input[type=submit] {
  152. background: #ff8900;
  153. background: -moz-linear-gradient(top, #ff8900 0%, #ff3d00 100%);
  154. background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ff8900), color-stop(100%,#ff3d00));
  155. background: -webkit-linear-gradient(top, #ff8900 0%,#ff3d00 100%);
  156. background: -o-linear-gradient(top, #ff8900 0%,#ff3d00 100%);
  157. background: -ms-linear-gradient(top, #ff8900 0%,#ff3d00 100%);
  158. background: linear-gradient(to bottom, #ff8900 0%,#ff3d00 100%);
  159. filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff8900', endColorstr='#ff3d00',GradientType=0 );
  160. text-shadow: #e20 1px 1px 0;
  161. border: 1px solid #f60;
  162. border-bottom-color: #e20;
  163. box-shadow: inset #f20 0 -5px 15px, inset #fc6 0 1px 1px, rgba(0,0,0,.15) 0px 1px 1px;
  164. }
  165.  
  166. .submit:hover,
  167. .submit:focus,
  168. input[type=submit]:hover,
  169. input[type=submit]:focus {
  170. background: #fa3;
  171. background: -moz-linear-gradient(top, #fa3 0%, #f30 100%);
  172. background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fa3), color-stop(100%,#f30));
  173. background: -webkit-linear-gradient(top, #fa3 0%,#f30 100%);
  174. background: -o-linear-gradient(top, #fa3 0%,#f30 100%);
  175. background: -ms-linear-gradient(top, #fa3 0%,#f30 100%);
  176. background: linear-gradient(to bottom, #fa3 0%,#f30 100%);
  177. filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fa3', endColorstr='#f30',GradientType=0 );
  178. box-shadow: inset #f40 0 -5px 15px, inset #ffd28a 0 1px 1px, rgba(0,0,0,.15) 0px 1px 1px, rgba(255,200,0,.5) 0 0 10px;
  179. }
  180.  
  181. .submit:active,
  182. input[type=submit] {
  183. background: #f50;
  184. border: 1px solid #f00;
  185. box-shadow: inset #f40 0 -5px 15px, inset #ffd28a 0 1px 1px;
  186. border-bottom-color: #d10;
  187. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement