ADDCSS.css 4.7 KB

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