about.css
7 years ago
admin-compat.css
7 years ago
admin-form.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
views.css
1011 lines
| 1 | /* ================================================== |
| 2 | Strong Testimonials View Editor |
| 3 | ================================================== */ |
| 4 | /* TODO Consolidate with admin.css */ |
| 5 | /*----------------------------------------------- |
| 6 | Structure |
| 7 | -----------------------------------------------*/ |
| 8 | .clear { |
| 9 | clear: both; } |
| 10 | |
| 11 | .table { |
| 12 | display: table; } |
| 13 | |
| 14 | .table-row { |
| 15 | display: table-row; } |
| 16 | |
| 17 | .table-cell { |
| 18 | display: table-cell; |
| 19 | vertical-align: top; } |
| 20 | |
| 21 | .option-wrap { |
| 22 | margin-right: 2em; } |
| 23 | |
| 24 | .half-width { |
| 25 | display: inline-block; |
| 26 | box-sizing: border-box; |
| 27 | width: 50%; |
| 28 | float: left; } |
| 29 | |
| 30 | optgroup, |
| 31 | optgroup option { |
| 32 | font-family: inherit; } |
| 33 | |
| 34 | .intro { |
| 35 | margin-bottom: 2em; } |
| 36 | |
| 37 | /* -------------------------------------------------- |
| 38 | The view info section at the top |
| 39 | -------------------------------------------------- */ |
| 40 | .view-info { |
| 41 | width: 100%; |
| 42 | font-size: 20px; |
| 43 | margin-top: 1em; } |
| 44 | .view-info .table-cell { |
| 45 | padding-bottom: 15px; } |
| 46 | .view-info .table-cell:first-child { |
| 47 | padding-top: 9px; |
| 48 | min-width: 130px; } |
| 49 | .view-info .table-row:last-child .table-cell { |
| 50 | padding-bottom: 0; } |
| 51 | .view-info label { |
| 52 | vertical-align: top; |
| 53 | margin: 0; |
| 54 | display: block; } |
| 55 | .view-info input { |
| 56 | font-size: 20px; } |
| 57 | .view-info input.view-name { |
| 58 | width: 100%; |
| 59 | margin: 0; |
| 60 | padding: 4px 8px; } |
| 61 | |
| 62 | /* ------------------------------------------------- |
| 63 | Shortcode read-only input |
| 64 | ------------------------------------------------- */ |
| 65 | #view-shortcode { |
| 66 | direction: ltr; |
| 67 | font-family: Consolas, Monaco, monospace; |
| 68 | unicode-bidi: embed; |
| 69 | display: inline-block; |
| 70 | font-size: 18px; |
| 71 | padding: 0 8px; |
| 72 | line-height: 35px; |
| 73 | width: 300px; |
| 74 | color: #777; |
| 75 | background: #FFF; } |
| 76 | |
| 77 | .form-view-shortcode .unsaved { |
| 78 | color: #888; |
| 79 | font-style: italic; |
| 80 | line-height: 37px; } |
| 81 | |
| 82 | /* ------------------------------------------------- |
| 83 | Copy shortcode button |
| 84 | ------------------------------------------------- */ |
| 85 | #copy-shortcode { |
| 86 | margin: 5px 1em; |
| 87 | line-height: 26px; } |
| 88 | |
| 89 | #copy-message { |
| 90 | opacity: 0; |
| 91 | font-size: 14px; |
| 92 | line-height: 26px; |
| 93 | height: 26px; |
| 94 | padding: 0 10px; |
| 95 | margin: 0; |
| 96 | display: inline-block; |
| 97 | background: #00A4F3; |
| 98 | color: #FFF; |
| 99 | border-radius: 3px; |
| 100 | box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.5); |
| 101 | position: relative; |
| 102 | top: -1px; } |
| 103 | |
| 104 | #copy-message.copied { |
| 105 | opacity: 0; |
| 106 | will-change: opacity; |
| 107 | animation: showcopied 2s ease; } |
| 108 | |
| 109 | @keyframes showcopied { |
| 110 | 0% { |
| 111 | opacity: 0; } |
| 112 | 70% { |
| 113 | opacity: 1; } |
| 114 | 100% { |
| 115 | opacity: 0; } } |
| 116 | /* ------------------------------------------------- |
| 117 | Mode selector |
| 118 | ------------------------------------------------- */ |
| 119 | #view-mode { |
| 120 | margin-top: 1em; } |
| 121 | #view-mode label { |
| 122 | display: inline-block; |
| 123 | margin: 0 5px 0 0; |
| 124 | padding: 0.5em 18px 0.5em 12px; |
| 125 | border: 2px solid #ccc; |
| 126 | border-radius: 20px; |
| 127 | color: #888; |
| 128 | position: relative; |
| 129 | background: #fff; } |
| 130 | #view-mode label.checked { |
| 131 | position: relative; |
| 132 | background: #00A4F3; |
| 133 | color: #FFF; |
| 134 | border-color: transparent; |
| 135 | transition: all 0.1s ease; } |
| 136 | #view-mode label:hover { |
| 137 | background: #FFF; |
| 138 | color: #444; |
| 139 | border-color: #00A4F3; } |
| 140 | #view-mode input[type="radio"] { |
| 141 | margin-right: 7px; } |
| 142 | |
| 143 | .mode-list { |
| 144 | display: inline-block; } |
| 145 | |
| 146 | .mode-line { |
| 147 | display: none; |
| 148 | position: absolute; |
| 149 | border-left: 2px solid #00A4F3; |
| 150 | height: 18px; |
| 151 | top: 100%; |
| 152 | left: calc( 50% - 1px ); |
| 153 | z-index: -1; } |
| 154 | label.checked .mode-line { |
| 155 | display: block; } |
| 156 | |
| 157 | .mode-description { |
| 158 | box-sizing: border-box; |
| 159 | background: #FFF; |
| 160 | margin: 15px 5px 0 0; |
| 161 | padding: 8px 20px; |
| 162 | border: 2px solid #00A4F3; |
| 163 | color: #00A4F3; |
| 164 | text-align: center; |
| 165 | border-radius: 20px; |
| 166 | font-size: 16px; |
| 167 | line-height: 1.3; |
| 168 | min-height: 40px; |
| 169 | transition: all 0.2s ease; } |
| 170 | |
| 171 | /* -------------------------------------------------- |
| 172 | Category filter |
| 173 | -------------------------------------------------- */ |
| 174 | .fc-search-wrap { |
| 175 | display: none; |
| 176 | position: relative; } |
| 177 | |
| 178 | .fc-search-field { |
| 179 | margin: 12px 0 4px 0; |
| 180 | width: 100%; } |
| 181 | |
| 182 | .cat-count { |
| 183 | color: #888; } |
| 184 | |
| 185 | .view-category-list-panel { |
| 186 | box-sizing: border-box; |
| 187 | min-height: 42px; |
| 188 | min-width: 220px; |
| 189 | overflow: auto; |
| 190 | padding: 0 10px; |
| 191 | border: 1px solid #DFDFDF; |
| 192 | background-color: #FDFDFD; |
| 193 | transition: all 0.2s ease; } |
| 194 | .view-category-list-panel.short-panel { |
| 195 | max-height: 205px; } |
| 196 | .view-category-list-panel.tall-panel { |
| 197 | max-height: none; } |
| 198 | |
| 199 | .view-category-list { |
| 200 | margin: 7px 0; } |
| 201 | .view-category-list li { |
| 202 | margin-bottom: 0; |
| 203 | line-height: 24px; } |
| 204 | .view-category-list li label { |
| 205 | margin-bottom: 6px; |
| 206 | word-wrap: break-word; |
| 207 | white-space: nowrap; } |
| 208 | .view-category-list ul.children { |
| 209 | margin-left: 21px; } |
| 210 | |
| 211 | /* ------------------------------------------------- |
| 212 | Replace checkboxes with icons |
| 213 | ------------------------------------------------- */ |
| 214 | input[type=checkbox] { |
| 215 | display: none; } |
| 216 | input[type=checkbox] + label:before { |
| 217 | font-family: FontAwesome; |
| 218 | display: inline-block; |
| 219 | font-size: 18px; |
| 220 | width: 1em; |
| 221 | position: relative; |
| 222 | top: 1px; |
| 223 | /* unchecked icon */ |
| 224 | content: "\f096"; |
| 225 | color: #00A4F3; } |
| 226 | input[type=checkbox] + label:hover:before { |
| 227 | color: #FF8900; } |
| 228 | input[type=checkbox]:checked + label:before { |
| 229 | /* checked icon */ |
| 230 | content: "\f14a"; } |
| 231 | input[type=checkbox]:checked + label:hover:before { |
| 232 | color: #FF8900; } |
| 233 | input[type=checkbox]:disabled + label:before { |
| 234 | /* disabled icon */ |
| 235 | content: "\f146"; |
| 236 | color: #888; } |
| 237 | input[type=checkbox]:disabled + label:hover:before { |
| 238 | color: #888; } |
| 239 | |
| 240 | /* ------------------------------------------------- |
| 241 | Misc. |
| 242 | ------------------------------------------------- */ |
| 243 | #wpmtst-views-form input[type="submit"] { |
| 244 | margin-right: 10px; } |
| 245 | |
| 246 | td.column-name strong { |
| 247 | display: block; |
| 248 | margin-bottom: .2em; |
| 249 | font-size: 14px; } |
| 250 | |
| 251 | td.rowspan { |
| 252 | border-left: 1px solid #DDD; } |
| 253 | |
| 254 | .subgroup { |
| 255 | background: #f8f8f8; |
| 256 | border: 1px solid #f1f1f1; |
| 257 | padding: 0.25em 1em; |
| 258 | margin-right: 1em; } |
| 259 | |
| 260 | .subgroup-heading { |
| 261 | font-weight: 600; } |
| 262 | |
| 263 | .subgroup .subgroup-heading + .row-inner { |
| 264 | margin-top: 5px; } |
| 265 | |
| 266 | .subgroup .row-inner { |
| 267 | margin-bottom: 10px; } |
| 268 | |
| 269 | .min-width-1 { |
| 270 | min-width: 152px; } |
| 271 | |
| 272 | .label-not-adjacent { |
| 273 | margin-right: 0.3em; } |
| 274 | |
| 275 | .is-below { |
| 276 | margin-top: 10px; } |
| 277 | |
| 278 | /* ------------------------------------------------- |
| 279 | Restore Default Breakpoints button |
| 280 | ------------------------------------------------- */ |
| 281 | #restored-message { |
| 282 | opacity: 0; |
| 283 | line-height: 26px; |
| 284 | height: 26px; |
| 285 | padding: 0 10px; |
| 286 | margin: 1px 1em; |
| 287 | display: inline-block; |
| 288 | background: #00A4F3; |
| 289 | color: #FFF; |
| 290 | border-radius: 3px; |
| 291 | box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.5); |
| 292 | position: relative; |
| 293 | top: -1px; } |
| 294 | |
| 295 | #restored-message.copied { |
| 296 | opacity: 0; |
| 297 | will-change: opacity; |
| 298 | animation: showcopied 2s ease; } |
| 299 | |
| 300 | @keyframes showcopied { |
| 301 | 0% { |
| 302 | opacity: 0; } |
| 303 | 70% { |
| 304 | opacity: 1; } |
| 305 | 100% { |
| 306 | opacity: 0; } } |
| 307 | .screenshot { |
| 308 | margin: 10px; } |
| 309 | .screenshot > div { |
| 310 | display: inline-block; |
| 311 | -webkit-box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8); |
| 312 | -moz-box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8); |
| 313 | box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8); } |
| 314 | |
| 315 | /* -------------------------------------------------- |
| 316 | Inputs |
| 317 | -------------------------------------------------- */ |
| 318 | input[type="text"].long { |
| 319 | width: 25em; } |
| 320 | |
| 321 | input[type="text"].medium { |
| 322 | width: 18em; } |
| 323 | |
| 324 | .input-number { |
| 325 | width: 5em; |
| 326 | text-align: right; } |
| 327 | |
| 328 | .input-incremental { |
| 329 | width: 5em; } |
| 330 | |
| 331 | .input-number-px { |
| 332 | width: 4em; |
| 333 | text-align: right; } |
| 334 | |
| 335 | .form-table select { |
| 336 | vertical-align: baseline; } |
| 337 | |
| 338 | div.radio { |
| 339 | line-height: 1.5em; |
| 340 | padding: 0 5px; } |
| 341 | |
| 342 | label, |
| 343 | .nolabel { |
| 344 | vertical-align: baseline; |
| 345 | display: inline-block; } |
| 346 | |
| 347 | label:hover { |
| 348 | color: #000; } |
| 349 | |
| 350 | option:disabled { |
| 351 | font-style: italic !important; } |
| 352 | |
| 353 | /* ------------------------------------------------- |
| 354 | Elements |
| 355 | ------------------------------------------------- */ |
| 356 | .wpmtst2 { |
| 357 | max-width: 1200px; |
| 358 | /* The generic classname `submit` conflicts with an unknown plugin or theme overzealous style. */ |
| 359 | /* views section heading */ } |
| 360 | .wpmtst2 p.wpmtst-submit { |
| 361 | margin-top: 2em; } |
| 362 | .wpmtst2 h3 { |
| 363 | background: #FFF; |
| 364 | color: #00A4F3; |
| 365 | font-weight: 400; |
| 366 | border: 1px solid #DDD; |
| 367 | border-bottom: 0; |
| 368 | padding: 10px 15px; |
| 369 | margin-bottom: 0; |
| 370 | margin-top: 1.5rem; } |
| 371 | |
| 372 | .form-table td p.description { |
| 373 | margin-top: 0; |
| 374 | font-style: italic; } |
| 375 | .form-table td p.description.tall { |
| 376 | line-height: 32px; |
| 377 | margin-top: 0; } |
| 378 | .form-table td p.description.short { |
| 379 | line-height: 22px; |
| 380 | padding: 5px 0; } |
| 381 | .form-table td p.description.solo { |
| 382 | margin-left: 0.3em; } |
| 383 | .form-table td p.description.under-checkbox { |
| 384 | margin-left: 22px; } |
| 385 | |
| 386 | /* Misc positioning */ |
| 387 | .inline { |
| 388 | display: inline-block; |
| 389 | margin-right: 1em; |
| 390 | vertical-align: top; } |
| 391 | .inline:last-child { |
| 392 | margin-right: 0; } |
| 393 | |
| 394 | .inline span, |
| 395 | .row span { |
| 396 | display: inline-block; |
| 397 | margin-right: 3px; } |
| 398 | |
| 399 | .inline-middle { |
| 400 | vertical-align: middle; } |
| 401 | |
| 402 | .tight { |
| 403 | margin-right: 0.2em; } |
| 404 | |
| 405 | .tight:last-child, |
| 406 | .last { |
| 407 | margin-right: 0; } |
| 408 | |
| 409 | .checkbox, |
| 410 | .form-table th.checkbox { |
| 411 | line-height: 32px; } |
| 412 | |
| 413 | .field { |
| 414 | position: relative; } |
| 415 | .field div { |
| 416 | display: inline-block; |
| 417 | padding: 0.2em 0.3em; } |
| 418 | |
| 419 | /* ------------------------------------------------- |
| 420 | Form table |
| 421 | ------------------------------------------------- */ |
| 422 | .form-table { |
| 423 | margin-top: 0; |
| 424 | background: #FEFEFE; |
| 425 | width: 100% !important; |
| 426 | border: 1px solid #DDD; } |
| 427 | .form-table.multiple { |
| 428 | width: auto; } |
| 429 | .form-table tr { |
| 430 | border: 1px solid #DDD; } |
| 431 | .form-table th, |
| 432 | .form-table td { |
| 433 | vertical-align: top; } |
| 434 | .form-table th { |
| 435 | font-weight: 400; |
| 436 | white-space: nowrap; |
| 437 | vertical-align: top; |
| 438 | width: 150px; |
| 439 | padding: 10px 15px; } |
| 440 | .form-table td { |
| 441 | padding: 10px; } |
| 442 | .form-table td.valign-middle { |
| 443 | vertical-align: middle; } |
| 444 | .form-table td.w1 { |
| 445 | width: 185px; } |
| 446 | .form-table td.w2 { |
| 447 | width: 300px; } |
| 448 | |
| 449 | tr.subheading { |
| 450 | font-weight: 600; } |
| 451 | tr.subheading td { |
| 452 | padding: 5px 10px; } |
| 453 | tr.subheading td:first-child { |
| 454 | padding-left: 15px; } |
| 455 | tr.subheading td:last-child { |
| 456 | width: 190px; } |
| 457 | |
| 458 | td.divider { |
| 459 | border-left: 1px dashed #DDD; } |
| 460 | |
| 461 | .wpmtst2 .form-table th, |
| 462 | .wpmtst2 .form-table th label { |
| 463 | line-height: 30px; |
| 464 | margin-top: 0; |
| 465 | margin-bottom: 0; } |
| 466 | |
| 467 | span.title { |
| 468 | display: inline-block; |
| 469 | margin-right: 1em; } |
| 470 | |
| 471 | .row, |
| 472 | .row p { |
| 473 | vertical-align: middle; |
| 474 | line-height: 32px; } |
| 475 | |
| 476 | .row.tall, |
| 477 | .row.tall p { |
| 478 | line-height: 40px; } |
| 479 | |
| 480 | .row.links { |
| 481 | margin-top: 10px; } |
| 482 | |
| 483 | .row:not(:first-child) .row-inner { |
| 484 | margin-top: 10px; } |
| 485 | |
| 486 | /* -------------------------------------------------- |
| 487 | Category checkboxes |
| 488 | -------------------------------------------------- */ |
| 489 | ul.checkbox-horizontal { |
| 490 | display: inline-block; |
| 491 | list-style: none; |
| 492 | margin: 0; } |
| 493 | ul.checkbox-horizontal li { |
| 494 | display: inline-block; |
| 495 | float: left; |
| 496 | margin: 6px 2em 0 0; } |
| 497 | |
| 498 | .select-cell { |
| 499 | padding-right: 2em; } |
| 500 | |
| 501 | /* ------------------------------------------------- |
| 502 | Form table |
| 503 | ------------------------------------------------- */ |
| 504 | .form-table { |
| 505 | margin-top: 0; |
| 506 | background: #FEFEFE; |
| 507 | width: 100% !important; |
| 508 | border: 1px solid #DDD; } |
| 509 | .form-table.multiple { |
| 510 | width: auto; } |
| 511 | .form-table tr { |
| 512 | border: 1px solid #DDD; } |
| 513 | .form-table th, |
| 514 | .form-table td { |
| 515 | vertical-align: top; } |
| 516 | .form-table th { |
| 517 | font-weight: 400; |
| 518 | white-space: nowrap; |
| 519 | vertical-align: top; |
| 520 | width: 150px; |
| 521 | padding: 10px 15px; } |
| 522 | .form-table td { |
| 523 | padding: 10px; } |
| 524 | .form-table td.valign-middle { |
| 525 | vertical-align: middle; } |
| 526 | .form-table td.w1 { |
| 527 | width: 185px; } |
| 528 | .form-table td.w2 { |
| 529 | width: 300px; } |
| 530 | |
| 531 | tr.subheading { |
| 532 | font-weight: 600; } |
| 533 | tr.subheading td { |
| 534 | padding: 5px 10px; } |
| 535 | tr.subheading td:first-child { |
| 536 | padding-left: 15px; } |
| 537 | tr.subheading td:last-child { |
| 538 | width: 190px; } |
| 539 | |
| 540 | td.divider { |
| 541 | border-left: 1px dashed #DDD; } |
| 542 | |
| 543 | .wpmtst2 .form-table th, |
| 544 | .wpmtst2 .form-table th label { |
| 545 | line-height: 30px; |
| 546 | margin-top: 0; |
| 547 | margin-bottom: 0; } |
| 548 | |
| 549 | span.title { |
| 550 | display: inline-block; |
| 551 | margin-right: 1em; } |
| 552 | |
| 553 | .row, |
| 554 | .row p { |
| 555 | vertical-align: middle; |
| 556 | line-height: 32px; } |
| 557 | |
| 558 | .row.tall, |
| 559 | .row.tall p { |
| 560 | line-height: 40px; } |
| 561 | |
| 562 | .row.links { |
| 563 | margin-top: 10px; } |
| 564 | |
| 565 | .row:not(:first-child) .row-inner { |
| 566 | margin-top: 10px; } |
| 567 | |
| 568 | /* ------------------------------------------------- |
| 569 | List radio buttons |
| 570 | ------------------------------------------------- */ |
| 571 | .section-radios { |
| 572 | display: flex; |
| 573 | justify-content: space-between; } |
| 574 | .section-radios > div:first-child { |
| 575 | flex: 0 0 15%; } |
| 576 | .section-radios > div:nth-child(2) { |
| 577 | flex: 1 1 auto; |
| 578 | background: rgba(0, 164, 243, 0.085); |
| 579 | border-radius: 15px; } |
| 580 | |
| 581 | .radio-buttons input[type=radio] { |
| 582 | display: none; } |
| 583 | .radio-buttons input[type=radio] + label { |
| 584 | border-radius: 15px 0 0 15px; |
| 585 | line-height: 30px; |
| 586 | margin-right: 15px; } |
| 587 | .radio-buttons input[type=radio] + label:before { |
| 588 | font-family: FontAwesome; |
| 589 | display: inline-block; |
| 590 | color: #999; |
| 591 | text-align: center; |
| 592 | font-size: 17px; |
| 593 | margin-left: 5px; |
| 594 | margin-right: 1px; |
| 595 | width: 20px; |
| 596 | /* unchecked icon */ |
| 597 | content: "\f10c"; } |
| 598 | .radio-buttons input[type=radio] + label:hover:before { |
| 599 | color: #FF8900; } |
| 600 | .radio-buttons input[type=radio]:checked + label:before { |
| 601 | /* checked icon */ |
| 602 | content: "\f192"; |
| 603 | color: #00A4F3; } |
| 604 | .radio-buttons input[type=radio]:checked + label:hover:before { |
| 605 | color: #FF8900; } |
| 606 | .radio-buttons input[type=radio].error + label, .radio-buttons input[type=radio].error + label:before { |
| 607 | color: red; } |
| 608 | .radio-buttons input[type=radio]:disabled + label { |
| 609 | color: #AAA; } |
| 610 | .radio-buttons input[type=radio]:disabled + label:before { |
| 611 | color: #CCC; } |
| 612 | .radio-buttons input[type=radio]:disabled + label:hover { |
| 613 | background: transparent; } |
| 614 | .radio-buttons input[type=radio]:checked:disabled + label:hover { |
| 615 | background: #EAF7FB; } |
| 616 | |
| 617 | ul.radio-list { |
| 618 | margin: 15px 0; } |
| 619 | ul.radio-list li { |
| 620 | margin: 0; } |
| 621 | ul.radio-list li.current-selection label { |
| 622 | background: rgba(0, 164, 243, 0.085); } |
| 623 | ul.radio-list li label { |
| 624 | width: 100%; |
| 625 | white-space: nowrap; } |
| 626 | |
| 627 | .radio-description { |
| 628 | padding: 0 15px; } |
| 629 | .radio-description p { |
| 630 | margin: 15px 0 15px !important; } |
| 631 | |
| 632 | .options { |
| 633 | margin: 0 10px 15px 0; } |
| 634 | .options > div { |
| 635 | display: inline-block; |
| 636 | background: #FFF; |
| 637 | border-radius: 4px; |
| 638 | padding: 10px; } |
| 639 | .options > div > span { |
| 640 | display: inline-block; } |
| 641 | .options > div > span:not(:last-child) { |
| 642 | margin-right: 6px; } |
| 643 | |
| 644 | .description-inner { |
| 645 | margin: 15px 0; } |
| 646 | |
| 647 | /* ------------------------------------------------- |
| 648 | Template options |
| 649 | ------------------------------------------------- */ |
| 650 | ul.radio-list.template-list li { |
| 651 | display: flex; } |
| 652 | ul.radio-list.template-list li.current-selection .template-description { |
| 653 | background: rgba(0, 164, 243, 0.085); } |
| 654 | ul.radio-list.template-list li > div:first-child { |
| 655 | flex: 0 0 15%; |
| 656 | white-space: nowrap; |
| 657 | align-self: center; } |
| 658 | ul.radio-list.template-list li > div:nth-child(2) { |
| 659 | flex: 1 1 auto; } |
| 660 | |
| 661 | .template-optgroup { |
| 662 | font-weight: 600; |
| 663 | margin: 15px 10px 10px 0; } |
| 664 | |
| 665 | .template-description { |
| 666 | border-radius: 15px; |
| 667 | padding: 0 15px; } |
| 668 | .template-description p { |
| 669 | margin: 15px 0 15px !important; } |
| 670 | |
| 671 | /* ------------------------------------------------- |
| 672 | Layout options |
| 673 | ------------------------------------------------- */ |
| 674 | .layout-section > div:last-child { |
| 675 | flex: 0 0 auto; |
| 676 | align-self: flex-start; |
| 677 | margin-left: 10px; |
| 678 | padding: 10px; } |
| 679 | |
| 680 | /* -------------------------------------------------- |
| 681 | Examples |
| 682 | -------------------------------------------------- */ |
| 683 | .example-container { |
| 684 | background: white; |
| 685 | border: 1px solid #ccc; |
| 686 | box-sizing: border-box; |
| 687 | padding: 15px 10px 5px; |
| 688 | width: 170px; } |
| 689 | .example-container .box { |
| 690 | background: #DDD; |
| 691 | width: 100%; |
| 692 | line-height: 30px; |
| 693 | height: 30px; |
| 694 | margin-bottom: 10px; |
| 695 | text-align: center; |
| 696 | /* to prevent overflowing margins */ |
| 697 | display: inline-block; |
| 698 | position: relative; |
| 699 | /* multi-column properties */ |
| 700 | -webkit-column-break-inside: avoid; |
| 701 | page-break-inside: avoid; |
| 702 | break-inside: avoid; } |
| 703 | .example-container .box span { |
| 704 | display: block; |
| 705 | margin: 0 auto; } |
| 706 | .example-container .box.size2 { |
| 707 | height: 45px; } |
| 708 | .example-container .box.size3 { |
| 709 | height: 60px; } |
| 710 | |
| 711 | /* -------------------------------------------------- |
| 712 | Columns |
| 713 | -------------------------------------------------- */ |
| 714 | .view-layout-columns .example-container { |
| 715 | padding-bottom: 15px; |
| 716 | text-align: center; |
| 717 | /* a minimum width fallback */ |
| 718 | -webkit-column-width: 25px; |
| 719 | -moz-column-width: 25px; |
| 720 | column-width: 25px; |
| 721 | -webkit-column-gap: 10px; |
| 722 | -moz-column-gap: 10px; |
| 723 | column-gap: 10px; |
| 724 | /* chrome does not repaint column-rule when switching classes in js :( */ |
| 725 | /*-webkit-column-rule: 1px dashed #999;*/ |
| 726 | /*-moz-column-rule: 1px dashed #999;*/ |
| 727 | /*column-rule: 1px dashed #999;*/ |
| 728 | -webkit-margin-bottom-collapse: separate; } |
| 729 | .view-layout-columns .example-container.col-2 { |
| 730 | -webkit-column-count: 2; |
| 731 | -moz-column-count: 2; |
| 732 | column-count: 2; } |
| 733 | .view-layout-columns .example-container.col-3 { |
| 734 | -webkit-column-count: 3; |
| 735 | -moz-column-count: 3; |
| 736 | column-count: 3; } |
| 737 | .view-layout-columns .example-container.col-4 { |
| 738 | -webkit-column-count: 4; |
| 739 | -moz-column-count: 4; |
| 740 | column-count: 4; } |
| 741 | |
| 742 | /* -------------------------------------------------- |
| 743 | Grid |
| 744 | -------------------------------------------------- */ |
| 745 | .view-layout-grid .example-container { |
| 746 | display: -webkit-flex; |
| 747 | display: -ms-flexbox; |
| 748 | display: flex; |
| 749 | -webkit-flex-wrap: wrap; |
| 750 | -ms-flex-wrap: wrap; |
| 751 | flex-wrap: wrap; |
| 752 | justify-content: space-between; } |
| 753 | .view-layout-grid .example-container .box { |
| 754 | display: -webkit-flex; |
| 755 | display: -ms-flexbox; |
| 756 | display: flex; } |
| 757 | .view-layout-grid .example-container.col-2 .box { |
| 758 | width: 47%; } |
| 759 | .view-layout-grid .example-container.col-3 .box { |
| 760 | width: 29%; } |
| 761 | .view-layout-grid .example-container.col-4 .box { |
| 762 | width: 21%; } |
| 763 | |
| 764 | /* -------------------------------------------------- |
| 765 | Masonry |
| 766 | -------------------------------------------------- */ |
| 767 | .view-layout-masonry .example-container .box { |
| 768 | width: 46%; } |
| 769 | .view-layout-masonry .example-container .grid-sizer, .view-layout-masonry .example-container.col-2 .grid-sizer { |
| 770 | width: 46%; } |
| 771 | .view-layout-masonry .example-container.col-3 .grid-sizer { |
| 772 | width: 27.5%; } |
| 773 | .view-layout-masonry .example-container.col-4 .grid-sizer { |
| 774 | width: 19.5%; } |
| 775 | |
| 776 | /* ------------------------------------------------- |
| 777 | Background options |
| 778 | ------------------------------------------------- */ |
| 779 | .color-picker-wrap { |
| 780 | display: flex; } |
| 781 | .color-picker-wrap > div:first-child { |
| 782 | min-width: 80px; } |
| 783 | |
| 784 | .background-preview-wrap { |
| 785 | background: #FFF; |
| 786 | padding: 2em; |
| 787 | max-width: 300px; } |
| 788 | |
| 789 | #background-preview { |
| 790 | padding: 1em; |
| 791 | text-align: center; } |
| 792 | #background-preview.dark { |
| 793 | color: #333; } |
| 794 | #background-preview.light { |
| 795 | color: #EEE; } |
| 796 | |
| 797 | /* -------------------------------------------------- |
| 798 | Custom fields |
| 799 | -------------------------------------------------- */ |
| 800 | .fields { |
| 801 | display: inline-block; |
| 802 | min-width: 350px; } |
| 803 | .fields .field2 { |
| 804 | border: 1px solid #DDD; |
| 805 | background: #FFF; |
| 806 | /* for better dragging */ |
| 807 | transition: background 0.3s ease, border 0.3s ease; } |
| 808 | .fields .field2.open { |
| 809 | background: #FFF; |
| 810 | border-color: #444; } |
| 811 | .fields .field3 { |
| 812 | flex: 20; } |
| 813 | .fields div.link { |
| 814 | display: inline-block; |
| 815 | cursor: pointer; |
| 816 | padding: 10px 10px 8px; |
| 817 | width: calc(100% - 20px); } |
| 818 | |
| 819 | .controls2 { |
| 820 | /* icons */ } |
| 821 | .controls2 > div { |
| 822 | display: flex; } |
| 823 | .controls2 .icon-wrap { |
| 824 | position: relative; |
| 825 | top: 1px; |
| 826 | color: #999; } |
| 827 | .controls2 .icon-wrap:hover { |
| 828 | cursor: pointer; } |
| 829 | .controls2.left { |
| 830 | float: left; } |
| 831 | .controls2.left .icon-wrap { |
| 832 | margin-right: 5px; } |
| 833 | .controls2.right { |
| 834 | float: right; } |
| 835 | .controls2.right .icon-wrap { |
| 836 | margin-left: 5px; } |
| 837 | .controls2 .handle:before, |
| 838 | .controls2 .delete:before, |
| 839 | .controls2 .toggle:before { |
| 840 | font: normal 20px/1 dashicons; |
| 841 | width: 20px; |
| 842 | height: 20px; } |
| 843 | .controls2 .handle:hover, |
| 844 | .controls2 .delete:hover, |
| 845 | .controls2 .toggle:hover { |
| 846 | cursor: pointer; } |
| 847 | .controls2 .delete:before { |
| 848 | content: "\f335"; } |
| 849 | .controls2 .delete:hover:before { |
| 850 | background: #FF0000; |
| 851 | color: #FFF; |
| 852 | border-radius: 1px; } |
| 853 | .controls2 .handle:before { |
| 854 | content: "\f333"; } |
| 855 | .controls2 .handle:hover { |
| 856 | color: #2ea2cc; |
| 857 | cursor: move; } |
| 858 | .controls2 .toggle:before { |
| 859 | content: "\f140"; } |
| 860 | .controls2 .toggle:hover:before { |
| 861 | color: #2EA2CC; } |
| 862 | |
| 863 | .field-description { |
| 864 | padding: 0 5px; |
| 865 | font-weight: 600; |
| 866 | text-decoration: none; |
| 867 | color: #444; } |
| 868 | .field-description:hover { |
| 869 | color: #444; } |
| 870 | |
| 871 | .field-properties { |
| 872 | padding: 5px 10px; |
| 873 | border-top: 1px dotted #DDD; } |
| 874 | |
| 875 | .field-property, |
| 876 | .field-property-box .flex { |
| 877 | display: flex; |
| 878 | margin: 5px 0; } |
| 879 | .field-property label, |
| 880 | .field-property .nolabel, |
| 881 | .field-property-box .flex label, |
| 882 | .field-property-box .flex .nolabel { |
| 883 | flex: 0 1 80px; |
| 884 | line-height: 28px; } |
| 885 | .field-property select, .field-property input, |
| 886 | .field-property-box .flex select, |
| 887 | .field-property-box .flex input { |
| 888 | flex: 3; } |
| 889 | |
| 890 | .field2.open .toggle:before { |
| 891 | content: "\f142"; } |
| 892 | |
| 893 | .sortable-placeholder { |
| 894 | background: lightyellow !important; |
| 895 | margin: 0; } |
| 896 | |
| 897 | .ui-sortable-helper { |
| 898 | border: 1px solid #444 !important; } |
| 899 | |
| 900 | div.help { |
| 901 | font-style: italic; |
| 902 | padding-bottom: 5px; } |
| 903 | |
| 904 | @-moz-document url-prefix() { |
| 905 | select optgroup { |
| 906 | font-style: normal; |
| 907 | margin-left: 3px; } } |
| 908 | /* -------------------------------------------------- |
| 909 | help tab |
| 910 | -------------------------------------------------- */ |
| 911 | span.help-links { |
| 912 | display: inline-block; |
| 913 | margin-left: 0.4em; } |
| 914 | |
| 915 | a.open-help-tab { |
| 916 | font-weight: 400; } |
| 917 | |
| 918 | table.wpmtst-help-tab { |
| 919 | border-collapse: collapse; |
| 920 | margin: 20px 0; |
| 921 | width: 100%; } |
| 922 | table.wpmtst-help-tab tr:hover td { |
| 923 | background: #FFFFAA; } |
| 924 | table.wpmtst-help-tab th, |
| 925 | table.wpmtst-help-tab td { |
| 926 | padding: 5px 10px; |
| 927 | text-align: center; } |
| 928 | table.wpmtst-help-tab th { |
| 929 | border-bottom: 1px solid #AAA; } |
| 930 | table.wpmtst-help-tab td { |
| 931 | border-bottom: 1px solid #E1E1E1; } |
| 932 | table.wpmtst-help-tab td:first-child { |
| 933 | text-align: right; |
| 934 | font-weight: 600; |
| 935 | white-space: nowrap; } |
| 936 | table.wpmtst-help-tab td:not(:last-child) { |
| 937 | border-right: 1px dotted #E1E1E1; } |
| 938 | |
| 939 | /* -------------------------------------------------- |
| 940 | Views list table sticky |
| 941 | -------------------------------------------------- */ |
| 942 | .wp-list-table-wrap { |
| 943 | position: relative; } |
| 944 | |
| 945 | .stickit, .stickit:before { |
| 946 | cursor: pointer; |
| 947 | content: "\f154"; |
| 948 | display: inline-block; |
| 949 | width: 20px; |
| 950 | height: 20px; |
| 951 | color: #aaa; |
| 952 | font-size: 20px; |
| 953 | line-height: 1; |
| 954 | font-family: dashicons; |
| 955 | text-decoration: inherit; |
| 956 | font-weight: normal; |
| 957 | font-style: normal; |
| 958 | vertical-align: top; |
| 959 | text-align: center; |
| 960 | -webkit-transition: color .1s ease-in; |
| 961 | transition: color .1s ease-in; |
| 962 | -webkit-font-smoothing: antialiased; |
| 963 | -moz-osx-font-smoothing: grayscale; } |
| 964 | |
| 965 | .stickit.stuck:before { |
| 966 | content: "\f155"; |
| 967 | color: #0073aa; } |
| 968 | .stickit:hover:before { |
| 969 | content: "\f155"; |
| 970 | color: #0096dd; } |
| 971 | |
| 972 | .overlay { |
| 973 | position: absolute; |
| 974 | top: 0; |
| 975 | left: 0; |
| 976 | bottom: 0; |
| 977 | right: 0; |
| 978 | background: rgba(255, 255, 255, 0.7); } |
| 979 | |
| 980 | /* ------------------------------------------------- |
| 981 | Inner table |
| 982 | ------------------------------------------------- */ |
| 983 | .inner-table { |
| 984 | display: table; } |
| 985 | |
| 986 | .inner-table-row { |
| 987 | display: table-row; } |
| 988 | .inner-table-row.bordered { |
| 989 | border: 1px solid #DDD; } |
| 990 | .inner-table-row.header .inner-table-cell { |
| 991 | text-align: center; |
| 992 | padding: 0 10px; |
| 993 | background: #f6f6f6; } |
| 994 | |
| 995 | .inner-table-cell { |
| 996 | display: table-cell; |
| 997 | padding: 5px 10px; } |
| 998 | .inner-table-cell:not(:last-child) { |
| 999 | border-right: 1px dashed #e2e2e2; } |
| 1000 | |
| 1001 | .form-table td p.description.normal { |
| 1002 | font-style: normal; } |
| 1003 | |
| 1004 | ul.description.normal { |
| 1005 | margin-top: 0; |
| 1006 | font-style: normal; } |
| 1007 | |
| 1008 | ul.description li { |
| 1009 | margin-bottom: 0; |
| 1010 | line-height: 1.5; } |
| 1011 |