style.css 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. /* Add some margin to the page and set a default font */
  2. body {
  3. margin: 30px;
  4. font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
  5. font-size:12px;
  6. }
  7. /* Style the form with a coloured background (and a gradient for Gecko/WebKit browsers), along with curved corners and a drop shadow */
  8. form {
  9. width: 92%;
  10. margin: 0 auto;
  11. padding: 20px;
  12. overflow: auto;
  13. color: #3e4a49;
  14. background-color: #f5eedb;
  15. background: -webkit-gradient( linear, left bottom, left top, color-stop(0,#f5eedb), color-stop(1, #faf8f1) );
  16. background: -moz-linear-gradient( center bottom, #f5eedb 0%, #faf8f1 100% );
  17. border-radius: 10px;
  18. -moz-border-radius: 10px;
  19. -webkit-border-radius: 10px;
  20. box-shadow: 0 0 .5em rgba(0, 0, 0, .8);
  21. -moz-box-shadow: 0 0 .5em rgba(0, 0, 0, .8);
  22. -webkit-box-shadow: 0 0 .5em rgba(0, 0, 0, .8);
  23. }
  24. /* Give form elements consistent margin, padding and line height */
  25. form ul {
  26. list-style: none;
  27. margin: 0;
  28. padding: 0;
  29. }
  30. form ul li {
  31. margin: .9em 0 0 0;
  32. padding: 0;
  33. }
  34. form * {
  35. line-height: 1em;
  36. }
  37. /* Form heading */
  38. form h2 {
  39. margin: 0 0 1.5em 0;
  40. padding: 0;
  41. text-align: center;
  42. }
  43. /* Give each fieldset a darker background, dark curved border and plenty of space */
  44. /*<!--
  45. fieldset {
  46. padding: 0 20px 20px;
  47. margin: 0 0 20px;
  48. border: 2px solid #593131;
  49. background: #eae1c0;
  50. border-radius: 10px;
  51. -moz-border-radius: 10px;
  52. -webkit-border-radius: 10px;
  53. }
  54. -->*/
  55. fieldset
  56. {
  57. text-align:center;
  58. height:auto;
  59. border:#06F 1px groove;
  60. margin:0 auto;
  61. margin-top:10px;
  62. border-radius:15px;
  63. box-shadow:#CCC 6px 6px;
  64. padding:10px;
  65. font-size:12px;
  66. background-color:White;
  67. }
  68. /* Give each fieldset legend a nice curvy green box with white text */
  69. legend {
  70. color: #fff;
  71. background: #8fb98b;
  72. font-family: Arial, Helvetica, sans-serif;
  73. font-size: 0.9em;
  74. font-weight: bold;
  75. text-align: center;
  76. padding: 5px;
  77. margin: 0;
  78. width: AUTO;
  79. border: 2px solid #593131;
  80. border-radius: 5px;
  81. -moz-border-radius: 5px;
  82. -webkit-border-radius: 5px;
  83. }
  84. /* The field labels */
  85. label {
  86. display: block;
  87. float: left;
  88. clear: left;
  89. text-align: right;
  90. width: 30%;
  91. padding: .4em 0 0 0;
  92. margin: .15em .5em 0 0;
  93. }
  94. /* Style the fields */
  95. input, select, textarea, #DropDownList1,#UserType{
  96. display: block;
  97. margin: 0;
  98. padding: .4em;
  99. width: 56%;
  100. }
  101. input, textarea, .date , #DropDownList1,#UserType{
  102. border: 2px solid #eae1c0;
  103. border-radius: 5px;
  104. -moz-border-radius: 5px;
  105. -webkit-border-radius: 5px;
  106. box-shadow: rgba(0,0,0,.5) 1px 1px 1px 1px inset;
  107. -moz-box-shadow: rgba(0,0,0,.5) 1px 1px 1px 1px inset;
  108. -webkit-box-shadow: rgba(0,0,0,.5) 1px 1px 1px 1px inset;
  109. background: #fff;
  110. }
  111. input , #DropDownList1,#UserType{
  112. font-size: .9em;
  113. }
  114. select,.date, #DropDownList1,#UserType{
  115. padding: 0;
  116. margin-bottom: 2.5em;
  117. position: relative;
  118. top: .7em;
  119. }
  120. textarea {
  121. font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
  122. font-size: .9em;
  123. height: 5em;
  124. }
  125. /* Place a border around focused fields, and hide the inner shadow */
  126. form *:focus {
  127. border: 2px solid #593131;
  128. outline: none;
  129. box-shadow: none;
  130. -moz-box-shadow: none;
  131. -webkit-box-shadow: none;
  132. }
  133. /* Display correctly filled-in fields with a green background */
  134. input:valid, textarea:valid {
  135. background: #efe;
  136. }
  137. /* Submit button */
  138. input[type="submit"] {
  139. margin: 50px auto 0 auto;
  140. width: 12em;
  141. padding: 10px;
  142. border: 2px solid #593131;
  143. border-radius: 10px;
  144. -moz-border-radius: 10px;
  145. -webkit-border-radius: 10px;
  146. box-shadow: 0 0 .5em rgba(0, 0, 0, .8);
  147. -moz-box-shadow: 0 0 .5em rgba(0, 0, 0, .8);
  148. -webkit-box-shadow: 0 0 .5em rgba(0, 0, 0, .8);
  149. color: #fff;
  150. background: #593131;
  151. font-size: 1.2em;
  152. font-weight: bold;
  153. -webkit-appearance: none;
  154. }
  155. input[type="submit"]:hover, input[type="submit"]:active {
  156. cursor: pointer;
  157. background: #fff;
  158. color: #593131;
  159. }
  160. input[type="submit"]:active {
  161. background: #eee;
  162. box-shadow: 0 0 .5em rgba(0, 0, 0, .8) inset;
  163. -moz-box-shadow: 0 0 .5em rgba(0, 0, 0, .8) inset;
  164. -webkit-box-shadow: 0 0 .5em rgba(0, 0, 0, .8) inset;
  165. }
  166. /* Header/footer boxes */
  167. .wideBox {
  168. clear: both;
  169. text-align: center;
  170. margin: 70px;
  171. padding: 10px;
  172. background: #ebedf2;
  173. border: 1px solid #333;
  174. line-height: 80%;
  175. }
  176. .wideBox h1 {
  177. font-weight: bold;
  178. margin: 20px;
  179. color: #666;
  180. font-size: 1.5em;
  181. }
  182. /* Validator error boxes */
  183. .error {
  184. background-color: #fffe36;
  185. border: 1px solid #e1e16d;
  186. font-size: .8em;
  187. color: #000;
  188. padding: .3em;
  189. margin-left: 5px;
  190. border-radius: 5px;
  191. -moz-border-radius: 5px;
  192. -webkit-border-radius: 5px;
  193. -box-shadow: 0 0 .5em rgba(0, 0, 0, .8);
  194. -moz-box-shadow: 0 0 .5em rgba(0, 0, 0, .8);
  195. -webkit-box-shadow: 0 0 .5em rgba(0, 0, 0, .8);
  196. }