contact-form.css 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. .form .form-item {
  2. display: flex;
  3. justify-content: space-between;
  4. margin-bottom: 25px;
  5. }
  6. .form .form-item .form-label {
  7. font-size: 16px;
  8. color: #999;
  9. line-height: 40px;
  10. min-width: 100px;
  11. text-align: right;
  12. margin-right: 16px;
  13. }
  14. .form .form-item .form-label em {
  15. color: #ff0000;
  16. margin-right: 4px;
  17. }
  18. .form .form-item .form-control {
  19. flex: 1;
  20. color: #505050;
  21. font-size: 16px;
  22. }
  23. .form .form-item .form-control.input input {
  24. display: block;
  25. width: 100%;
  26. line-height: 40px;
  27. border: 1px solid #dedede;
  28. box-sizing: border-box;
  29. padding: 0 16px;
  30. border-radius: 4px;
  31. }
  32. .form .form-item .form-control.textarea textarea {
  33. display: block;
  34. width: 100%;
  35. line-height: 26px;
  36. border: 1px solid #dedede;
  37. box-sizing: border-box;
  38. padding: 8px 16px;
  39. border-radius: 2px;
  40. resize: none;
  41. }
  42. .form .form-item .form-control.select-group {
  43. display: flex;
  44. justify-content: space-between;
  45. }
  46. .form .form-item .form-control.select-group .select {
  47. width: 100%;
  48. flex: 1;
  49. position: relative;
  50. margin-right: 16px;
  51. border: 1px solid #e8e8e8;
  52. border-radius: 2px;
  53. }
  54. .form .form-item .form-control.select-group .select:last-child {
  55. margin-right: 0;
  56. }
  57. .form .form-item .form-control.select-group .select select {
  58. display: block;
  59. width: 100%;
  60. border: 0;
  61. line-height: 40px;
  62. padding: 0 16px;
  63. padding-right: 40px;
  64. color: #272727;
  65. appearance: none;
  66. border-radius: 2px;
  67. }
  68. .form .form-item .form-control.select-group .select::after {
  69. position: absolute;
  70. right: 0;
  71. top: 0;
  72. content: "";
  73. z-index: 1;
  74. display: block;
  75. width: 40px;
  76. height: 40px;
  77. background: url(/img/icon-arrow-down.png) no-repeat center;
  78. background-size: 24px 24px;
  79. pointer-events: none;
  80. }
  81. .form .form-item .form-control.radio {
  82. line-height: 40px;
  83. }
  84. .form .form-item .form-control.radio label {
  85. margin-right: 35px;
  86. }
  87. .form .form-item .form-control.radio input {
  88. margin-right: 10px;
  89. }
  90. .form .form-item .form-control.upload-image input {
  91. display: none;
  92. }
  93. .form .form-item .form-control.upload-image .tip {
  94. width: 120px;
  95. height: 120px;
  96. border: 1px solid #dedede;
  97. margin-top: 10px;
  98. box-sizing: border-box;
  99. padding-top: 80px;
  100. text-align: center;
  101. font-size: 14px;
  102. color: #999;
  103. cursor: pointer;
  104. position: relative;
  105. }
  106. .form .form-item .form-control.upload-image .tip::before, .form .form-item .form-control.upload-image .tip::after {
  107. content: "";
  108. display: block;
  109. position: absolute;
  110. background: #dedede;
  111. width: 2px;
  112. height: 30px;
  113. left: 50%;
  114. top: 50%;
  115. }
  116. .form .form-item .form-control.upload-image .tip::before {
  117. transform: translateX(-50%) translateY(-80%);
  118. }
  119. .form .form-item .form-control.upload-image .tip::after {
  120. transform: translateX(-50%) translateY(-80%) rotateZ(90deg);
  121. }
  122. .form .form-item .form-control.upload-file [type=file] {
  123. display: none;
  124. }
  125. .form .form-item .form-control.upload-file .button {
  126. line-height: 40px;
  127. width: 207px;
  128. background: #0688d2;
  129. color: #fff;
  130. text-align: center;
  131. margin-left: 16px;
  132. cursor: pointer;
  133. transition: all 0.4s;
  134. }
  135. .form .form-item .form-control.upload-file .button:hover {
  136. background: #077ec4;
  137. }
  138. .form .form-submit {
  139. text-align: center;
  140. margin-top: 80px;
  141. }
  142. .form .form-submit button {
  143. width: 330px;
  144. height: 48px;
  145. background: transparent;
  146. box-sizing: border-box;
  147. border: 0;
  148. cursor: pointer;
  149. margin: 0 24px;
  150. transition: all 0.4s;
  151. }
  152. .form .form-submit [type=reset] {
  153. border: 1px solid #0688d2;
  154. color: #0688d2;
  155. line-height: 46px;
  156. }
  157. .form .form-submit [type=reset]:hover {
  158. border-color: #0679b8;
  159. color: #0679b8;
  160. }
  161. .form .form-submit [type=submit] {
  162. background: #0688d2;
  163. color: #fff;
  164. line-height: 48px;
  165. }
  166. .form .form-submit [type=submit]:hover {
  167. background: #077ec4;
  168. }