cf7-conditional-fields
Last commit date
js
2 weeks ago
jsdoc-out
3 days ago
test-results
2 months ago
Wpcf7cfMailParser.php
3 days ago
admin-style.css
2 years ago
admin-style.css.map
2 years ago
admin-style.scss
4 years ago
admin.php
2 years ago
cf7cf.php
2 weeks ago
conditional-fields.php
3 days ago
contact-form-7-conditional-fields.php
1 year ago
init.php
3 days ago
readme.txt
3 days ago
style.css
2 months ago
tg_pane_group.php
2 months ago
wpcf7cf-options.php
2 months ago
admin-style.scss
316 lines
| 1 | #wpcf7cf-new-entry { display: inline-block; display:none; } |
| 2 | #wpcf7cf-delete-button { display: none; } |
| 3 | #wpcf7cf-settings-text { width: 100%; height: 280px; font-family: "Courier New", Courier, monospace; } |
| 4 | |
| 5 | #wpcf7cf-conditional-panel { |
| 6 | |
| 7 | .wpcf7cf-admin-wrap .label, .wpcf7cf-admin-wrap .field, .wpcf7cf-admin-wrap .description { |
| 8 | padding: 10px; |
| 9 | display: inline-block; |
| 10 | vertical-align: middle; |
| 11 | width: 10%; |
| 12 | } |
| 13 | .wpcf7cf-admin-wrap .field { |
| 14 | width: 20%; |
| 15 | } |
| 16 | .wpcf7cf-admin-wrap .description { |
| 17 | width: 40%; |
| 18 | vertical-align: top; |
| 19 | |
| 20 | } |
| 21 | |
| 22 | .wpcf7cf-admin-wrap .option-line { |
| 23 | border-bottom: 1px solid #dddddd; |
| 24 | background-color: #f9f9f9; |
| 25 | padding: 0 10px; |
| 26 | } |
| 27 | |
| 28 | .wpcf7cf-admin-wrap .option-line:nth-child(2n) { |
| 29 | background-color: #e9e9e9; |
| 30 | } |
| 31 | |
| 32 | .wpcf7cf-admin-wrap .option-line input, .wpcf7cf-admin-wrap .option-line select { |
| 33 | width: 100%; |
| 34 | } |
| 35 | |
| 36 | .ui-autocomplete-term { |
| 37 | font-weight: bold; |
| 38 | } |
| 39 | |
| 40 | .wpcf7cf-admin-wrap .option-line > .label.editable { |
| 41 | position: relative; |
| 42 | } |
| 43 | |
| 44 | .wpcf7cf-admin-wrap .option-line > .label.editable input { |
| 45 | background-color: transparent; |
| 46 | border-width: 0; |
| 47 | outline: none; |
| 48 | box-shadow: none; |
| 49 | padding: 0; |
| 50 | } |
| 51 | |
| 52 | .wpcf7cf-admin-wrap .option-line > .label.editable input:after { |
| 53 | content: "edit"; |
| 54 | display: block; |
| 55 | width: 10px; |
| 56 | right:0; |
| 57 | position: absolute; |
| 58 | } |
| 59 | |
| 60 | .wpcf7cf-admin-wrap .option-line > .label.editable input:focus { |
| 61 | background: #fff; |
| 62 | box-shadow: inset 0 1px 2px rgba(0,0,0,.07) ; |
| 63 | border: 1px solid #ddd; |
| 64 | padding: 2px; |
| 65 | } |
| 66 | |
| 67 | .wpcf7cf-admin-wrap .option-line > .label.editable input:focus:after { |
| 68 | content: ""; |
| 69 | } |
| 70 | |
| 71 | .wpcf7cf-and { |
| 72 | display: inline-block; |
| 73 | } |
| 74 | |
| 75 | .wpcf7cf-and-rules, .wpcf7cf-if { |
| 76 | display: inline-block; |
| 77 | vertical-align: top; |
| 78 | } |
| 79 | |
| 80 | #wpcf7cf-entries input, #wpcf7cf-entries select, .and-button, .delete-button, #wpcf7cf-entries .if-txt, #wpcf7cf-entries .label, #wpcf7cf-add-button { |
| 81 | position:relative; |
| 82 | display: inline-block; |
| 83 | vertical-align: bottom; |
| 84 | margin:2px; |
| 85 | padding: 3px; |
| 86 | background: #fefefe; |
| 87 | border: 1px solid #bababa; |
| 88 | box-shadow: none; |
| 89 | height: 22px; |
| 90 | line-height: 22px; |
| 91 | min-height: 22px; |
| 92 | box-sizing: content-box; |
| 93 | } |
| 94 | |
| 95 | #wpcf7cf-entries .label { |
| 96 | background-color: transparent; |
| 97 | border: none; |
| 98 | } |
| 99 | |
| 100 | .and-button, .delete-button, #wpcf7cf-add-button { |
| 101 | border: 1px solid #4ed521; |
| 102 | color: #007b04; |
| 103 | cursor: pointer; |
| 104 | font-size: 11px; |
| 105 | font-weight: bold; |
| 106 | -webkit-touch-callout: none; /* iOS Safari */ |
| 107 | -webkit-user-select: none; /* Safari */ |
| 108 | -khtml-user-select: none; /* Konqueror HTML */ |
| 109 | -moz-user-select: none; /* Firefox */ |
| 110 | -ms-user-select: none; /* Internet Explorer/Edge */ |
| 111 | user-select: none; /* Non-prefixed version, currently */ |
| 112 | background-color: rgba(75, 169, 61, 0.11); |
| 113 | } |
| 114 | |
| 115 | #wpcf7cf-add-button { |
| 116 | margin-top: 10px; |
| 117 | text-align: center; |
| 118 | padding-left: 20px; |
| 119 | padding-right:20px; |
| 120 | } |
| 121 | |
| 122 | overflow-x: auto; |
| 123 | |
| 124 | .and-button:hover { |
| 125 | background-color: rgba(75, 169, 61, 0.2); |
| 126 | } |
| 127 | |
| 128 | .delete-button { |
| 129 | border: 1px solid #bababa; |
| 130 | color: #858585; |
| 131 | background-color: transparent; |
| 132 | margin-left: 42px; |
| 133 | } |
| 134 | |
| 135 | .delete-button:hover { |
| 136 | background-color: rgba(133, 133, 133, 0.11); |
| 137 | |
| 138 | } |
| 139 | |
| 140 | .and-button { |
| 141 | display:none; |
| 142 | width: 30px; |
| 143 | text-align: center; |
| 144 | } |
| 145 | .wpcf7cf-and-rule:first-child .and-button { |
| 146 | display: inline-block; |
| 147 | vertical-align: top; |
| 148 | height: 22px; |
| 149 | position: absolute; |
| 150 | line-height: 22px; |
| 151 | right: 53px; |
| 152 | top: 0; |
| 153 | } |
| 154 | |
| 155 | .wpcf7cf-and-rule { |
| 156 | margin-bottom: 4px; |
| 157 | height: 30px; |
| 158 | } |
| 159 | |
| 160 | .wpcf7cf-and-rule .if-txt, .wpcf7cf-if > .label { |
| 161 | cursor: n-resize; |
| 162 | } |
| 163 | |
| 164 | |
| 165 | |
| 166 | .wpcf7cf-and-rule .if-txt:before { |
| 167 | content: 'and'; |
| 168 | position: absolute; |
| 169 | width: 30px; |
| 170 | text-align: right; |
| 171 | left: -34px; |
| 172 | } |
| 173 | |
| 174 | .wpcf7cf-and-rule:first-child .if-txt:before { |
| 175 | display:none; |
| 176 | } |
| 177 | |
| 178 | .wpcf7cf-inner-container { |
| 179 | min-width: 800px; |
| 180 | } |
| 181 | |
| 182 | .entry { |
| 183 | box-sizing: border-box; |
| 184 | display:flex; |
| 185 | } |
| 186 | |
| 187 | .entry .wpcf7cf-if { |
| 188 | width: 189px; |
| 189 | } |
| 190 | |
| 191 | .then-field-select { |
| 192 | width: 130px; |
| 193 | } |
| 194 | |
| 195 | |
| 196 | .entry .wpcf7cf-and-rules { |
| 197 | flex:1; |
| 198 | position:relative; |
| 199 | |
| 200 | } |
| 201 | .wpcf7cf-and-rule { |
| 202 | display:flex; |
| 203 | } |
| 204 | .if-txt { |
| 205 | width: 14px; |
| 206 | text-align: center; |
| 207 | } |
| 208 | |
| 209 | .operator { |
| 210 | /*width:140px;*/ |
| 211 | } |
| 212 | |
| 213 | .if-value { |
| 214 | flex:1; |
| 215 | margin-right:3px !important; |
| 216 | } |
| 217 | } |
| 218 | |
| 219 | .wpcf7cf-list li { |
| 220 | list-style: disc; |
| 221 | margin-left: 20px; |
| 222 | } |
| 223 | |
| 224 | /* The switch - the box around the slider */ |
| 225 | |
| 226 | |
| 227 | .wpcf7cf-switch { |
| 228 | position: absolute; |
| 229 | display: block; |
| 230 | top: 20px; |
| 231 | right: 20px; |
| 232 | |
| 233 | .label { |
| 234 | margin-right: 4px; |
| 235 | display: inline-block; |
| 236 | vertical-align: top; |
| 237 | } |
| 238 | |
| 239 | .switch { |
| 240 | position: relative; |
| 241 | display: inline-block; |
| 242 | width: 30px; |
| 243 | height: 17px; |
| 244 | |
| 245 | /* Hide default HTML checkbox */ |
| 246 | input { |
| 247 | opacity: 0; |
| 248 | width: 0; |
| 249 | height: 0; |
| 250 | } |
| 251 | |
| 252 | /* The slider */ |
| 253 | .slider { |
| 254 | position: absolute; |
| 255 | cursor: pointer; |
| 256 | top: 0; |
| 257 | left: 0; |
| 258 | right: 0; |
| 259 | bottom: 0; |
| 260 | background-color: #ccc; |
| 261 | -webkit-transition: .4s; |
| 262 | transition: .4s; |
| 263 | } |
| 264 | |
| 265 | .slider:before { |
| 266 | position: absolute; |
| 267 | content: ""; |
| 268 | height: 13px; |
| 269 | width: 13px; |
| 270 | left: 2px; |
| 271 | bottom: 2px; |
| 272 | background-color: white; |
| 273 | -webkit-transition: .4s; |
| 274 | transition: .3s; |
| 275 | } |
| 276 | |
| 277 | input:checked + .slider { |
| 278 | background-color: #1e8cbe; |
| 279 | } |
| 280 | |
| 281 | input:focus + .slider { |
| 282 | box-shadow: 0 0 1px #1e8cbe; |
| 283 | } |
| 284 | |
| 285 | input:checked + .slider:before { |
| 286 | -webkit-transform: translateX(13px); |
| 287 | -ms-transform: translateX(13px); |
| 288 | transform: translateX(13px); |
| 289 | } |
| 290 | |
| 291 | /* Rounded sliders */ |
| 292 | .slider.round { |
| 293 | border-radius: 17px; |
| 294 | } |
| 295 | |
| 296 | .slider.round:before { |
| 297 | border-radius: 50%; |
| 298 | } |
| 299 | |
| 300 | } |
| 301 | } |
| 302 | |
| 303 | #wpcf7cf-conditional-panel { |
| 304 | position: relative; |
| 305 | //display: block !important; |
| 306 | } |
| 307 | |
| 308 | .wpcf7cf-notice { |
| 309 | background: #fff; |
| 310 | border: 1px solid #ccd0d4; |
| 311 | border-left-width: 4px; |
| 312 | border-left-color: #ffb900; |
| 313 | box-shadow: 0 1px 1px rgba(0,0,0,.04); |
| 314 | margin: 5px 0 2px; |
| 315 | padding: 1px 12px; |
| 316 | } |