form.css
203 lines
| 1 | /** |
| 2 | * Strong Testimonials Default Form template |
| 3 | */ |
| 4 | .strong-form { |
| 5 | position: relative; |
| 6 | margin: 0 auto; |
| 7 | } |
| 8 | .strong-form .form-field { |
| 9 | margin-bottom: 1.5em; |
| 10 | } |
| 11 | .strong-form .form-field.wpmtst-submit { |
| 12 | margin-bottom: 0; |
| 13 | } |
| 14 | .strong-form .required.symbol:after { |
| 15 | content: '*'; |
| 16 | color: #FF0000; |
| 17 | font-size: 1.5em; |
| 18 | font-weight: 400; |
| 19 | margin: 0 5px; |
| 20 | position: relative; |
| 21 | top: 5px; |
| 22 | } |
| 23 | .strong-form label { |
| 24 | display: inline-block; |
| 25 | float: none; |
| 26 | width: auto; |
| 27 | } |
| 28 | .strong-form input[type="text"], |
| 29 | .strong-form input[type="email"], |
| 30 | .strong-form input[type="url"], |
| 31 | .strong-form input[type="file"], |
| 32 | .strong-form select, |
| 33 | .strong-form textarea { |
| 34 | box-sizing: border-box; |
| 35 | display: block; |
| 36 | float: none; |
| 37 | width: 100%; |
| 38 | } |
| 39 | .strong-form input[type="checkbox"] { |
| 40 | -webkit-transform: scale(1.4); |
| 41 | -moz-transform: scale(1.4); |
| 42 | -ms-transform: scale(1.4); |
| 43 | transform: scale(1.4); |
| 44 | margin-left: 12px; |
| 45 | margin-right: 6px; |
| 46 | } |
| 47 | .strong-form input[type="checkbox"] + label { |
| 48 | font-weight: 400; |
| 49 | padding: 5px; |
| 50 | } |
| 51 | .strong-form input[type="checkbox"]:focus + label { |
| 52 | outline: 1px solid #CCC; |
| 53 | } |
| 54 | .strong-form textarea { |
| 55 | height: 16em; |
| 56 | } |
| 57 | .strong-form span.error, |
| 58 | .strong-form label.error { |
| 59 | display: block; |
| 60 | } |
| 61 | .strong-form .before { |
| 62 | display: block; |
| 63 | } |
| 64 | .strong-form .after { |
| 65 | display: block; |
| 66 | } |
| 67 | |
| 68 | .strong-form-inner { |
| 69 | padding: 20px; |
| 70 | } |
| 71 | |
| 72 | input.captcha { |
| 73 | display: block; |
| 74 | width: auto; |
| 75 | } |
| 76 | |
| 77 | img.captcha { |
| 78 | border: 0; |
| 79 | } |
| 80 | |
| 81 | .wpmtst-captcha { |
| 82 | margin-bottom: 1em; |
| 83 | } |
| 84 | |
| 85 | /* category checklist */ |
| 86 | .strong-form ul.strong-category-list, |
| 87 | .strong-form ul.strong-category-list ul.children { |
| 88 | list-style-type: none; |
| 89 | } |
| 90 | .strong-form ul.strong-category-list label, |
| 91 | .strong-form ul.strong-category-list ul.children label { |
| 92 | font-weight: 400; |
| 93 | white-space: nowrap; |
| 94 | word-wrap: break-word; |
| 95 | } |
| 96 | .strong-form ul.strong-category-list { |
| 97 | margin: 0; |
| 98 | padding-left: 0; |
| 99 | } |
| 100 | .strong-form ul.strong-category-list ul.children { |
| 101 | margin-left: 1.5em; |
| 102 | padding-left: 0; |
| 103 | } |
| 104 | |
| 105 | /* The "wait" spinner on form submission. |
| 106 | -----------------------------------------------*/ |
| 107 | .strong-form-wait { |
| 108 | display: none; |
| 109 | position: absolute; |
| 110 | top: 0; |
| 111 | bottom: 0; |
| 112 | left: 0; |
| 113 | right: 0; |
| 114 | background: rgba(255, 255, 255, 0.7); |
| 115 | } |
| 116 | .strong-form-wait .message { |
| 117 | position: absolute; |
| 118 | top: calc( 50% - 25px ); |
| 119 | text-align: center; |
| 120 | width: 100%; |
| 121 | height: 50px; |
| 122 | line-height: 50px; |
| 123 | color: #111; |
| 124 | } |
| 125 | |
| 126 | .strong-form-wait .message img { |
| 127 | width: 50px; |
| 128 | height: 50px; |
| 129 | margin: 0 auto; |
| 130 | } |
| 131 | |
| 132 | @keyframes wpmtst-spin{ |
| 133 | 0%{ |
| 134 | transform: rotate(360deg); |
| 135 | } |
| 136 | 100%{ |
| 137 | transform: rotate(0deg); |
| 138 | } |
| 139 | } |
| 140 | |
| 141 | .strong-form-wait .message img{ |
| 142 | animation: wpmtst-spin 2.5s infinite 0s linear; |
| 143 | } |
| 144 | |
| 145 | .strong-form { |
| 146 | /* field-wrap is used for checkboxes, radios, star ratings */ |
| 147 | } |
| 148 | .strong-form label { |
| 149 | font-weight: 700; |
| 150 | } |
| 151 | .strong-form .form-field .after { |
| 152 | font-size: .9em; |
| 153 | font-style: italic; |
| 154 | } |
| 155 | .strong-form input.error, |
| 156 | .strong-form textarea.error, |
| 157 | .strong-form select.error { |
| 158 | background: #F9E5E6; |
| 159 | border: 1px solid #E8AAAD; |
| 160 | color: #B50007; |
| 161 | } |
| 162 | .strong-form span.error, |
| 163 | .strong-form label.error { |
| 164 | color: #B50007; |
| 165 | } |
| 166 | .strong-form .field-wrap { |
| 167 | display: block; |
| 168 | font-weight: 400; |
| 169 | border: 1px solid transparent; |
| 170 | } |
| 171 | .strong-form .field-wrap.error { |
| 172 | border-radius: 3px; |
| 173 | background: #F9E5E6; |
| 174 | border: 1px solid #E8AAAD; |
| 175 | color: #B50007; |
| 176 | } |
| 177 | .strong-form .field-wrap.error .checkbox-label { |
| 178 | outline: none; |
| 179 | } |
| 180 | .strong-form .field-wrap.error .strong-rating { |
| 181 | outline-color: #E8AAAD; |
| 182 | } |
| 183 | .strong-form .field-wrap input + label + .required.symbol:after { |
| 184 | margin-left: 0; |
| 185 | } |
| 186 | |
| 187 | /* Dark Theme |
| 188 | -----------------------------------------------*/ |
| 189 | .strong-form.dark input.error, |
| 190 | .strong-form.dark textarea.error, |
| 191 | .strong-form.dark select.error { |
| 192 | border: 1px solid #FF6666; |
| 193 | } |
| 194 | .strong-form.dark .field-wrap.error { |
| 195 | border: 1px solid #FF6666; |
| 196 | } |
| 197 | .strong-form.dark .field-wrap.error .checkbox-label { |
| 198 | color: #111; |
| 199 | } |
| 200 | .strong-form.dark .field-wrap.error .strong-rating { |
| 201 | outline-color: #FF6666; |
| 202 | } |
| 203 |