Nessuna descrizione

grunion.css 4.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. .contact-form .clear-form {
  2. clear: both;
  3. }
  4. .contact-form input::placeholder {
  5. transition: opacity 0.3s ease-out;
  6. }
  7. .contact-form input:hover::placeholder {
  8. opacity: 0.5;
  9. }
  10. .contact-form input:focus::placeholder {
  11. opacity: 0.3;
  12. }
  13. .contact-form input[type='text'],
  14. .contact-form input[type='email'],
  15. .contact-form input[type='tel'],
  16. .contact-form input[type='url'] {
  17. box-sizing: border-box;
  18. margin-bottom: 1.5em;
  19. width: 100%;
  20. padding: 14px 7px;
  21. }
  22. .contact-form select {
  23. margin-bottom: 1.5em;
  24. padding: 14px 7px;
  25. min-width: 150px;
  26. }
  27. .contact-form textarea {
  28. box-sizing: border-box;
  29. float: none;
  30. height: 200px;
  31. margin-bottom: 1.5em;
  32. width: 100%;
  33. padding: 7px;
  34. font: inherit;
  35. }
  36. .contact-form input[type='radio'],
  37. .contact-form input[type='checkbox'] {
  38. float: none;
  39. margin: 0 0.75rem 0 5px;
  40. }
  41. .contact-form input[type='checkbox'] {
  42. top: 0;
  43. margin-left: 0;
  44. }
  45. .contact-form label {
  46. margin-bottom: 0.25em;
  47. float: none;
  48. font-weight: bold;
  49. display: block;
  50. }
  51. .contact-form label.consent-implicit input {
  52. display: none;
  53. }
  54. .contact-form label.checkbox,
  55. .contact-form label.checkbox-multiple,
  56. .contact-form label.radio {
  57. margin-bottom: 0.25em;
  58. float: none;
  59. font-weight: normal;
  60. display: inline-flex;
  61. align-items: center;
  62. }
  63. .contact-form .grunion-field-checkbox-wrap,
  64. .contact-form .grunion-field-consent-wrap,
  65. .contact-form .grunion-field-checkbox-multiple-wrap,
  66. .contact-form .grunion-field-radio-wrap {
  67. margin-bottom: 1em;
  68. }
  69. .contact-form label span {
  70. font-size: 85%;
  71. margin-left: 0.25em;
  72. font-weight: normal;
  73. }
  74. .contact-form-submission {
  75. margin-bottom: 4em;
  76. padding: 1.5em 1em;
  77. }
  78. .contact-form-submission p {
  79. margin: 0 auto;
  80. word-wrap: break-word;
  81. }
  82. .form-errors .form-error-message {
  83. color: red;
  84. }
  85. .textwidget .contact-form input[type='text'],
  86. .textwidget .contact-form input[type='email'],
  87. .textwidget .contact-form input[type='tel'],
  88. .textwidget .contact-form input[type='url'],
  89. .textwidget .contact-form textarea,
  90. .wp-block-column .contact-form input[type='text'],
  91. .wp-block-column .contact-form input[type='email'],
  92. .wp-block-column .contact-form input[type='tel'],
  93. .wp-block-column .contact-form input[type='url'],
  94. .wp-block-column .contact-form textarea {
  95. width: 100%;
  96. }
  97. #jetpack-check-feedback-spam {
  98. margin: 1px 8px 0px 0px;
  99. }
  100. .jetpack-check-feedback-spam-spinner {
  101. display: inline-block;
  102. margin-top: 7px;
  103. }
  104. .wp-block-jetpack-contact-form {
  105. display: flex;
  106. flex-wrap: wrap;
  107. justify-content: flex-start;
  108. flex-direction: row;
  109. }
  110. .wp-block-jetpack-contact-form .grunion-field-wrap,
  111. .wp-block-jetpack-button {
  112. flex: 0 0 100%;
  113. }
  114. .wp-block-jetpack-button button {
  115. padding: 20px 30px;
  116. border: inherit;
  117. font: inherit;
  118. }
  119. .wp-block-jetpack-button.alignright button {
  120. float: right;
  121. }
  122. .wp-block-jetpack-contact-form .grunion-field-wrap {
  123. /* Use transparent border to maintain consistent
  124. * space between elements with flexbox */
  125. border-right: 15px solid transparent;
  126. }
  127. .wp-block-jetpack-contact-form .grunion-field-width-25-wrap {
  128. flex: 0 0 25%;
  129. }
  130. .wp-block-jetpack-contact-form .grunion-field-width-50-wrap {
  131. flex: 0 0 50%;
  132. }
  133. .wp-block-jetpack-contact-form .grunion-field-width-75-wrap {
  134. flex: 0 0 75%;
  135. }
  136. .grunion-field-checkbox-wrap,
  137. .grunion-field-consent-wrap {
  138. align-self: center;
  139. }
  140. @media only screen and ( min-width: 600px ) {
  141. .contact-form input[type='text'],
  142. .contact-form input[type='email'],
  143. .contact-form input[type='tel'],
  144. .contact-form input[type='url'] {
  145. width: 50%;
  146. }
  147. /****
  148. * Older users keep the 50% width to avoid breaking
  149. * designs, but newer users using the contact
  150. * form block get 100% width.
  151. */
  152. .wp-block-jetpack-contact-form input[type='text'],
  153. .wp-block-jetpack-contact-form input[type='email'],
  154. .wp-block-jetpack-contact-form input[type='tel'],
  155. .wp-block-jetpack-contact-form input[type='url'] {
  156. width: 100%;
  157. }
  158. }
  159. /** For the "Empty Spam" button on /wp-admin/edit.php?post_status=spam&post_type=feedback **/
  160. .jetpack-empty-spam-container {
  161. display: inline-block;
  162. }
  163. .jetpack-empty-spam {
  164. display: inline-block;
  165. }
  166. .jetpack-empty-spam-spinner {
  167. display: inline-block;
  168. margin-top: 7px;
  169. }
  170. /* Make sure the set height of the Spacer block nested inside the Contact Form block is respected */
  171. .wp-block-jetpack-contact-form .wp-block-spacer {
  172. width: 100%;
  173. }