Advertisement
agir

Yalow cform CSS

Feb 25th, 2015
541
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.76 KB | None | 0 0
  1. div.wpcf7 {
  2. margin: 0;
  3. padding: 0;
  4. }
  5.  
  6. div.wpcf7-response-output {
  7. margin: 2em 0.5em 1em;
  8. padding: 0.2em 1em;
  9. }
  10.  
  11. div.wpcf7 .screen-reader-response {
  12. position: absolute;
  13. overflow: hidden;
  14. clip: rect(1px, 1px, 1px, 1px);
  15. height: 1px;
  16. width: 1px;
  17. margin: 0;
  18. padding: 0;
  19. border: 0;
  20. }
  21.  
  22. div.wpcf7-mail-sent-ok {
  23. border: 2px solid #398f14;
  24. }
  25.  
  26. div.wpcf7-mail-sent-ng {
  27. border: 2px solid #ff0000;
  28. }
  29.  
  30. div.wpcf7-spam-blocked {
  31. border: 2px solid #ffa500;
  32. }
  33.  
  34. div.wpcf7-validation-errors {
  35. border: 2px solid #f7e700;
  36. }
  37.  
  38. span.wpcf7-form-control-wrap {
  39. position: relative;
  40. }
  41.  
  42. span.wpcf7-not-valid-tip {
  43. color: #f00;
  44. font-size: 1em;
  45. display: block;
  46. }
  47.  
  48. .use-floating-validation-tip span.wpcf7-not-valid-tip {
  49. position: absolute;
  50. top: 20%;
  51. left: 20%;
  52. z-index: 100;
  53. border: 1px solid #ff0000;
  54. background: #fff;
  55. padding: .2em .8em;
  56. }
  57.  
  58. span.wpcf7-list-item {
  59. margin-left: 0.5em;
  60. }
  61.  
  62. .wpcf7-display-none {
  63. display: none;
  64. }
  65.  
  66. div.wpcf7 img.ajax-loader {
  67. border: none;
  68. vertical-align: middle;
  69. margin-left: 4px;
  70. }
  71.  
  72. div.wpcf7 div.ajax-error {
  73. display: none;
  74. }
  75.  
  76. div.wpcf7 .placeheld {
  77. color: #888;
  78. }
  79.  
  80.  
  81. /*
  82. Here is the modified CSS for the form:
  83. */
  84.  
  85. #responsive-form{
  86. max-width:600px /*-- change this to get your desired form width --*/;
  87. margin:0 auto;
  88. width:100%;
  89. }
  90. .form-row{
  91. width: 100%;
  92. }
  93. .column-half, .column-full{
  94. float: left;
  95. position: relative;
  96. padding: 0.65rem;
  97. width:100%;
  98. -webkit-box-sizing: border-box;
  99. -moz-box-sizing: border-box;
  100. box-sizing: border-box
  101. }
  102. .clearfix:after {
  103. content: "";
  104. display: table;
  105. clear: both;
  106. }
  107.  
  108. /**---------------- Media query ----------------**/
  109. @media only screen and (min-width: 48em) {
  110. .column-half{
  111. width: 50%;
  112. }
  113. }
  114.  
  115. .wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 textarea {
  116. width: 100%;
  117. padding: 8px;
  118. border: 1px solid #ccc;
  119. border-radius: 3px;
  120. -webkit-box-sizing: border-box;
  121. -moz-box-sizing: border-box;
  122. box-sizing: border-box
  123. }
  124. .wpcf7 input[type="text"]:focus{
  125. background: #fff;
  126. }
  127. .wpcf7-submit{
  128. float: right;
  129. background: #CA0002;
  130. color: #fff;
  131. text-transform: uppercase;
  132. border: none;
  133. padding: 8px 20px;
  134. cursor: pointer;
  135. }
  136. .wpcf7-submit:hover{
  137. background: #ff0000;
  138. }
  139. span.wpcf7-not-valid-tip{
  140. text-shadow: none;
  141. font-size: 12px;
  142. color: #fff;
  143. background: #ff0000;
  144. padding: 5px;
  145. }
  146. div.wpcf7-validation-errors {
  147. text-shadow: none;
  148. border: transparent;
  149. background: #f9cd00;
  150. padding: 5px;
  151. color: #9C6533;
  152. text-align: center;
  153. margin: 0;
  154. font-size: 12px;
  155. }
  156. div.wpcf7-mail-sent-ok{
  157. text-align: center;
  158. text-shadow: none;
  159. padding: 5px;
  160. font-size: 12px;
  161. background: #59a80f;
  162. border-color: #59a80f;
  163. color: #fff;
  164. margin: 0;
  165. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement