about.css
7 years ago
admin-compat.css
7 years ago
admin-form.css
7 years ago
admin.css
7 years ago
fields.css
7 years ago
form-preview.css
7 years ago
number-spinner.css
7 years ago
order.css
7 years ago
polylang.css
7 years ago
post-editor.css
7 years ago
views.css
7 years ago
wpml.css
7 years ago
fields.css
318 lines
| 1 | /** |
| 2 | * Strong Testimonials admin stylesheet |
| 3 | */ |
| 4 | |
| 5 | optgroup, |
| 6 | optgroup option { |
| 7 | /* Firefox */ |
| 8 | font-family: inherit; |
| 9 | } |
| 10 | |
| 11 | /* structure */ |
| 12 | |
| 13 | #left-col, |
| 14 | #right-col { |
| 15 | box-sizing: border-box; |
| 16 | } |
| 17 | |
| 18 | #left-col { |
| 19 | width: 55%; |
| 20 | float: left; |
| 21 | padding: 20px 0; |
| 22 | } |
| 23 | |
| 24 | #right-col { |
| 25 | width: calc(45% - 30px); |
| 26 | float: right; |
| 27 | padding: 20px 0 20px 0; |
| 28 | } |
| 29 | |
| 30 | #wpmtst-custom-fields-form { |
| 31 | width: 100%; |
| 32 | } |
| 33 | |
| 34 | #fields-editor-preview { |
| 35 | background: #fdfdfd; |
| 36 | border: 1px solid #bbb; |
| 37 | box-shadow: 0 0 12px rgba(0, 0, 0, 0.4); |
| 38 | min-height: 300px; |
| 39 | } |
| 40 | |
| 41 | .wrap.wpmtst { |
| 42 | /*max-width: 1024px;*/ |
| 43 | max-width: 1366px; |
| 44 | } |
| 45 | |
| 46 | .wrap.wpmtst h3 { |
| 47 | margin-top: 0; |
| 48 | } |
| 49 | |
| 50 | /* Custom fields |
| 51 | ---------------------------------------------------------*/ |
| 52 | |
| 53 | #custom-field-list { |
| 54 | margin-bottom: 0; |
| 55 | } |
| 56 | |
| 57 | #custom-field-list li { |
| 58 | background: #fff; |
| 59 | margin: 0; |
| 60 | border: 1px solid #DDD; |
| 61 | border-top-width: 0; |
| 62 | } |
| 63 | |
| 64 | #custom-field-list li:first-child { |
| 65 | border-top-width: 1px; |
| 66 | } |
| 67 | |
| 68 | #custom-field-list li.ui-sortable-helper { |
| 69 | border-bottom-width: 1px; |
| 70 | box-shadow: 0 0 10px rgba(0,0,0,0.3); |
| 71 | } |
| 72 | |
| 73 | #custom-field-list .custom-field-header { |
| 74 | /*padding: 10px;*/ |
| 75 | font-size: 1.1em; |
| 76 | height: 40px; |
| 77 | } |
| 78 | |
| 79 | #custom-field-list span.link { |
| 80 | display: inline-block; |
| 81 | cursor: pointer; |
| 82 | padding: 10px; |
| 83 | width: calc(100% - 20px); |
| 84 | } |
| 85 | |
| 86 | /* toggle */ |
| 87 | |
| 88 | #custom-field-list span.link span.toggle:before { |
| 89 | content: "\f140"; |
| 90 | display: inline-block; |
| 91 | font: normal 20px/1 dashicons; |
| 92 | float: right; |
| 93 | color: #999; |
| 94 | width: 20px; |
| 95 | height: 20px; |
| 96 | } |
| 97 | |
| 98 | /* handle */ |
| 99 | |
| 100 | #custom-field-list .handle:before { |
| 101 | content: "\f333"; |
| 102 | display: inline-block; |
| 103 | font: normal 20px/1 dashicons; |
| 104 | float: left; |
| 105 | color: #999; |
| 106 | width: 20px; |
| 107 | height: 20px; |
| 108 | margin-right: 10px; |
| 109 | } |
| 110 | |
| 111 | #custom-field-list .handle:hover { |
| 112 | color: #111; |
| 113 | cursor: move; |
| 114 | } |
| 115 | |
| 116 | #custom-field-list a.field { |
| 117 | text-decoration: none; |
| 118 | } |
| 119 | |
| 120 | /* open */ |
| 121 | |
| 122 | #custom-field-list li.open { |
| 123 | border-color: #2ea2cc; |
| 124 | } |
| 125 | |
| 126 | #custom-field-list li .custom-field-header { |
| 127 | transition: background 0.2s ease; |
| 128 | } |
| 129 | |
| 130 | #custom-field-list li.open .custom-field-header { |
| 131 | background: #2ea2cc; |
| 132 | } |
| 133 | |
| 134 | #custom-field-list li.open span.toggle:before { |
| 135 | content: "\f142"; |
| 136 | } |
| 137 | |
| 138 | #custom-field-list li.open span.handle:before, |
| 139 | #custom-field-list li.open span.link a, |
| 140 | #custom-field-list li.open span.toggle:before { |
| 141 | color: #fff; |
| 142 | } |
| 143 | |
| 144 | /* field inputs */ |
| 145 | |
| 146 | #custom-field-list .custom-field { |
| 147 | display: none; |
| 148 | } |
| 149 | |
| 150 | #custom-field-list select.field-type { |
| 151 | min-width: 120px; |
| 152 | } |
| 153 | |
| 154 | #custom-field-list option[disabled] { |
| 155 | color: #999; |
| 156 | } |
| 157 | |
| 158 | #custom-field-list optgroup { |
| 159 | font-weight: 600; |
| 160 | } |
| 161 | |
| 162 | #custom-field-list optgroup:before { |
| 163 | color: #333; |
| 164 | content: attr(label); |
| 165 | display: block; |
| 166 | font-style: normal; |
| 167 | padding-left: 4px; |
| 168 | } |
| 169 | |
| 170 | #wpmtst-custom-fields-form .controls { |
| 171 | padding: 10px 15px; |
| 172 | background: #e7f5fa; |
| 173 | border-top: 1px solid #A9D9EB; |
| 174 | } |
| 175 | |
| 176 | #wpmtst-custom-fields-form .controls > span:nth-child(n+2):before { |
| 177 | content: " | "; |
| 178 | } |
| 179 | |
| 180 | #wpmtst-custom-fields-form .controls a.delete-field { |
| 181 | color: #F00; |
| 182 | } |
| 183 | |
| 184 | #custom-field-list .sortable-placeholder { |
| 185 | border: 1px dashed #ccc !important; |
| 186 | background: lightyellow !important; |
| 187 | height: 40px; |
| 188 | } |
| 189 | |
| 190 | #custom-field-list .field-table { |
| 191 | border-collapse: collapse; |
| 192 | width: 100%; |
| 193 | } |
| 194 | |
| 195 | #custom-field-list .field-table th, |
| 196 | #custom-field-list .field-table td { |
| 197 | border-bottom: 1px solid #E8E8E8; |
| 198 | padding: 10px; |
| 199 | } |
| 200 | |
| 201 | #custom-field-list .field-table th { |
| 202 | font-weight: 600; |
| 203 | width: 160px; |
| 204 | padding-top: 14px; |
| 205 | text-align: left; |
| 206 | vertical-align: top; |
| 207 | white-space: nowrap; |
| 208 | } |
| 209 | |
| 210 | #custom-field-list .field-table td input[type="text"] { |
| 211 | width: 100%; |
| 212 | } |
| 213 | |
| 214 | #custom-field-list .field-table td input[type="text"].as-number { |
| 215 | width: 4em; |
| 216 | } |
| 217 | |
| 218 | #custom-field-list .field-table td span.help { |
| 219 | display: block; |
| 220 | padding: 3px; |
| 221 | } |
| 222 | |
| 223 | #custom-field-list .field-table td span.help.inline { |
| 224 | display: inline-block; |
| 225 | } |
| 226 | |
| 227 | #custom-field-list .field-table td span.help:first-of-type { |
| 228 | margin-top: 5px; |
| 229 | } |
| 230 | |
| 231 | #custom-field-list .form-error { |
| 232 | background: rgba(242, 0, 0, 0.05); |
| 233 | } |
| 234 | #custom-field-list .form-error-text { |
| 235 | color: #EE0000; |
| 236 | } |
| 237 | |
| 238 | #custom-field-list .field-table tr:last-of-type th, |
| 239 | #custom-field-list .field-table tr:last-of-type td { |
| 240 | border-bottom: 0; |
| 241 | } |
| 242 | |
| 243 | #add-field-bar { |
| 244 | padding-top: 10px; |
| 245 | text-align: right; |
| 246 | } |
| 247 | |
| 248 | #add-field-bar input { |
| 249 | margin-right: 0; |
| 250 | margin-left: 10px; |
| 251 | } |
| 252 | |
| 253 | /* field group actions */ |
| 254 | |
| 255 | #field-group-actions { |
| 256 | margin-top: 2em; |
| 257 | } |
| 258 | |
| 259 | #field-group-actions > div { |
| 260 | display: inline-block; |
| 261 | float: left; |
| 262 | margin-bottom: 1em; |
| 263 | } |
| 264 | |
| 265 | #field-group-actions > div:not(:last-child) { |
| 266 | margin-right: 1em; |
| 267 | } |
| 268 | |
| 269 | /* field group label */ |
| 270 | |
| 271 | p.field-group-label-wrap { |
| 272 | display: table; |
| 273 | width: 100%; |
| 274 | } |
| 275 | |
| 276 | p.field-group-label-wrap > label, |
| 277 | p.field-group-label-wrap > input { |
| 278 | display: table-cell; |
| 279 | font-size: 20px; |
| 280 | line-height: 1.4em; |
| 281 | } |
| 282 | |
| 283 | .field-group-label-wrap label { |
| 284 | width: 6.5em; |
| 285 | } |
| 286 | |
| 287 | p.field-group-label-wrap input { |
| 288 | width: 100%; |
| 289 | margin: 0; |
| 290 | padding: 4px 8px; |
| 291 | } |
| 292 | |
| 293 | /* fields editor */ |
| 294 | |
| 295 | #fields-editor-wrap { |
| 296 | display: inline-block; |
| 297 | float: left; |
| 298 | width: 540px; |
| 299 | } |
| 300 | |
| 301 | /*--------------------------------------------------* |
| 302 | Responsive |
| 303 | *--------------------------------------------------*/ |
| 304 | @media only screen and (max-width: 1024px) { |
| 305 | |
| 306 | #left-col { |
| 307 | width: 100%; |
| 308 | padding: 20px 0; |
| 309 | } |
| 310 | |
| 311 | #right-col { |
| 312 | width: 100%; |
| 313 | border-left: 0; |
| 314 | padding: 20px; |
| 315 | } |
| 316 | |
| 317 | } |
| 318 |