form.css
180 lines
| 1 | /** |
| 2 | * Strong Testimonials Default Form template |
| 3 | */ |
| 4 | .strong-form { |
| 5 | position: relative; |
| 6 | margin: 0 auto; |
| 7 | } |
| 8 | .strong-form .wpmtst-form-field { |
| 9 | margin-bottom: 1.5em; |
| 10 | } |
| 11 | .strong-form .wpmtst-form-field.wpmtst-submit { |
| 12 | margin-bottom: 0; |
| 13 | } |
| 14 | .strong-form .wpmtst-required.wpmtst-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 .strong-rating label { |
| 29 | margin: 0; |
| 30 | } |
| 31 | .strong-form input[type="text"], |
| 32 | .strong-form input[type="email"], |
| 33 | .strong-form input[type="url"], |
| 34 | .strong-form input[type="file"], |
| 35 | .strong-form select, |
| 36 | .strong-form textarea { |
| 37 | box-sizing: border-box; |
| 38 | display: block; |
| 39 | float: none; |
| 40 | width: 100%; |
| 41 | } |
| 42 | .strong-form input[type="checkbox"] { |
| 43 | margin-left: 12px; |
| 44 | margin-right: 6px; |
| 45 | } |
| 46 | .strong-form input[type="checkbox"] + label { |
| 47 | padding: 5px; |
| 48 | } |
| 49 | .strong-form span.wpmtst-error, |
| 50 | .strong-form label.wpmtst-error { |
| 51 | display: block; |
| 52 | } |
| 53 | .strong-form .wpmtst-before { |
| 54 | display: block; |
| 55 | } |
| 56 | .strong-form .wpmtst-after { |
| 57 | display: block; |
| 58 | } |
| 59 | |
| 60 | .strong-form-inner { |
| 61 | padding: 20px; |
| 62 | } |
| 63 | |
| 64 | input.captcha { |
| 65 | display: block; |
| 66 | width: auto; |
| 67 | } |
| 68 | |
| 69 | img.captcha { |
| 70 | border: 0; |
| 71 | } |
| 72 | |
| 73 | .wpmtst-captcha { |
| 74 | margin-bottom: 1em; |
| 75 | } |
| 76 | |
| 77 | /* category checklist */ |
| 78 | .strong-form ul.strong-category-list, |
| 79 | .strong-form ul.strong-category-list ul.children { |
| 80 | list-style-type: none; |
| 81 | } |
| 82 | .strong-form ul.strong-category-list label, |
| 83 | .strong-form ul.strong-category-list ul.children label { |
| 84 | font-weight: 400; |
| 85 | white-space: nowrap; |
| 86 | word-wrap: break-word; |
| 87 | } |
| 88 | .strong-form ul.strong-category-list { |
| 89 | margin: 0; |
| 90 | padding-left: 0; |
| 91 | } |
| 92 | .strong-form ul.strong-category-list ul.children { |
| 93 | margin-left: 1.5em; |
| 94 | padding-left: 0; |
| 95 | } |
| 96 | |
| 97 | /* The "wait" spinner on form submission. |
| 98 | -----------------------------------------------*/ |
| 99 | .strong-form-wait { |
| 100 | display: none; |
| 101 | position: absolute; |
| 102 | top: 0; |
| 103 | bottom: 0; |
| 104 | left: 0; |
| 105 | right: 0; |
| 106 | /* Canvas = the page's actual background color, so this works on dark themes too. */ |
| 107 | background: rgba(255, 255, 255, 0.7); |
| 108 | background: color-mix(in srgb, Canvas 70%, transparent); |
| 109 | } |
| 110 | .strong-form-wait .message { |
| 111 | position: absolute; |
| 112 | top: calc( 50% - 25px ); |
| 113 | text-align: center; |
| 114 | width: 100%; |
| 115 | height: 50px; |
| 116 | line-height: 50px; |
| 117 | color: CanvasText; |
| 118 | } |
| 119 | |
| 120 | .strong-form-wait .message img { |
| 121 | width: 50px; |
| 122 | height: 50px; |
| 123 | margin: 0 auto; |
| 124 | } |
| 125 | |
| 126 | @keyframes wpmtst-spin{ |
| 127 | 0%{ |
| 128 | transform: rotate(360deg); |
| 129 | } |
| 130 | 100%{ |
| 131 | transform: rotate(0deg); |
| 132 | } |
| 133 | } |
| 134 | |
| 135 | .strong-form-wait .message img{ |
| 136 | animation: wpmtst-spin 2.5s infinite 0s linear; |
| 137 | } |
| 138 | |
| 139 | .strong-form .wpmtst-form-field .wpmtst-after { |
| 140 | font-size: .9em; |
| 141 | font-style: italic; |
| 142 | } |
| 143 | .strong-form input.error, |
| 144 | .strong-form textarea.error, |
| 145 | .strong-form select.error, |
| 146 | .strong-form input.wpmtst-error, |
| 147 | .strong-form textarea.wpmtst-error, |
| 148 | .strong-form select.wpmtst-error { |
| 149 | background: #F9E5E6; |
| 150 | border: 1px solid #E8AAAD; |
| 151 | color: #B50007; |
| 152 | } |
| 153 | .strong-form span.wpmtst-error, |
| 154 | .strong-form label.wpmtst-error { |
| 155 | color: #B50007; |
| 156 | } |
| 157 | .strong-form .wpmtst-field-wrap { |
| 158 | display: block; |
| 159 | font-weight: 400; |
| 160 | border: 1px solid transparent; |
| 161 | } |
| 162 | .strong-form .wpmtst-field-wrap.error, |
| 163 | .strong-form .wpmtst-field-wrap.wpmtst-error { |
| 164 | border-radius: 3px; |
| 165 | background: #F9E5E6; |
| 166 | border: 1px solid #E8AAAD; |
| 167 | color: #B50007; |
| 168 | } |
| 169 | .strong-form .wpmtst-field-wrap.error .wpmtst-checkbox-label, |
| 170 | .strong-form .wpmtst-field-wrap.wpmtst-error .wpmtst-checkbox-label { |
| 171 | outline: none; |
| 172 | } |
| 173 | .strong-form .wpmtst-field-wrap.error .strong-rating, |
| 174 | .strong-form .wpmtst-field-wrap.wpmtst-error .strong-rating { |
| 175 | outline-color: #E8AAAD; |
| 176 | } |
| 177 | .strong-form .wpmtst-field-wrap input + label + .wpmtst-required.wpmtst-symbol:after { |
| 178 | margin-left: 0; |
| 179 | } |
| 180 |