pro
3 weeks ago
_acf-headerbar.scss
1 year ago
_acf-icon-picker.scss
1 year ago
_admin-inputs.scss
1 year ago
_admin-toolbar.scss
1 year ago
_btn.scss
1 year ago
_dark.scss
1 year ago
_edit-field-group.scss
1 year ago
_field-group.scss
1 year ago
_field-picker.scss
1 year ago
_field-type-icons.scss
1 year ago
_fields.scss
1 month ago
_forms.scss
11 months ago
_global.scss
1 year ago
_icons.scss
1 year ago
_input.scss
1 year ago
_list-table.scss
1 year ago
_media.scss
1 year ago
_mixins.scss
1 year ago
_post-types-taxonomies.scss
1 year ago
_postbox.scss
1 year ago
_pro-upgrade.scss
1 year ago
_sub-field-groups.scss
1 year ago
_tools.scss
1 year ago
_typography.scss
1 year ago
_updates.scss
1 year ago
_variables.scss
1 year ago
acf-dark.scss
1 year ago
acf-field-group.scss
8 months ago
acf-global.scss
2 months ago
acf-input.scss
1 month ago
_global.scss
2642 lines
| 1 | @use "sass:math"; |
| 2 | /*-------------------------------------------------------------------------------------------- |
| 3 | * |
| 4 | * Global |
| 5 | * |
| 6 | *--------------------------------------------------------------------------------------------*/ |
| 7 | |
| 8 | /* Horizontal List */ |
| 9 | .acf-hl { |
| 10 | padding: 0; |
| 11 | margin: 0; |
| 12 | list-style: none; |
| 13 | display: block; |
| 14 | position: relative; |
| 15 | } |
| 16 | .acf-hl > li { |
| 17 | float: left; |
| 18 | display: block; |
| 19 | margin: 0; |
| 20 | padding: 0; |
| 21 | } |
| 22 | .acf-hl > li.acf-fr { |
| 23 | float: right; |
| 24 | } |
| 25 | |
| 26 | /* Horizontal List: Clearfix */ |
| 27 | .acf-hl:before, |
| 28 | .acf-hl:after, |
| 29 | .acf-bl:before, |
| 30 | .acf-bl:after, |
| 31 | .acf-cf:before, |
| 32 | .acf-cf:after { |
| 33 | content: ""; |
| 34 | display: block; |
| 35 | line-height: 0; |
| 36 | } |
| 37 | .acf-hl:after, |
| 38 | .acf-bl:after, |
| 39 | .acf-cf:after { |
| 40 | clear: both; |
| 41 | } |
| 42 | |
| 43 | /* Block List */ |
| 44 | .acf-bl { |
| 45 | padding: 0; |
| 46 | margin: 0; |
| 47 | list-style: none; |
| 48 | display: block; |
| 49 | position: relative; |
| 50 | } |
| 51 | .acf-bl > li { |
| 52 | display: block; |
| 53 | margin: 0; |
| 54 | padding: 0; |
| 55 | float: none; |
| 56 | } |
| 57 | |
| 58 | /* Visibility */ |
| 59 | .acf-hidden { |
| 60 | display: none !important; |
| 61 | } |
| 62 | .acf-empty { |
| 63 | display: table-cell !important; |
| 64 | * { |
| 65 | display: none !important; |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | /* Float */ |
| 70 | .acf-fl { |
| 71 | float: left; |
| 72 | } |
| 73 | .acf-fr { |
| 74 | float: right; |
| 75 | } |
| 76 | .acf-fn { |
| 77 | float: none; |
| 78 | } |
| 79 | |
| 80 | /* Align */ |
| 81 | .acf-al { |
| 82 | text-align: left; |
| 83 | } |
| 84 | .acf-ar { |
| 85 | text-align: right; |
| 86 | } |
| 87 | .acf-ac { |
| 88 | text-align: center; |
| 89 | } |
| 90 | |
| 91 | /* loading */ |
| 92 | .acf-loading, |
| 93 | .acf-spinner { |
| 94 | display: inline-block; |
| 95 | height: 20px; |
| 96 | width: 20px; |
| 97 | vertical-align: text-top; |
| 98 | background: transparent url(../../images/spinner.gif) no-repeat 50% 50%; |
| 99 | } |
| 100 | |
| 101 | /* spinner */ |
| 102 | .acf-spinner { |
| 103 | display: none; |
| 104 | } |
| 105 | |
| 106 | .acf-spinner.is-active { |
| 107 | display: inline-block; |
| 108 | } |
| 109 | |
| 110 | /* WP < 4.2 */ |
| 111 | .spinner.is-active { |
| 112 | display: inline-block; |
| 113 | } |
| 114 | |
| 115 | /* required */ |
| 116 | .acf-required { |
| 117 | color: #f00; |
| 118 | } |
| 119 | |
| 120 | /* Allow pointer events in reusable blocks */ |
| 121 | .acf-button, |
| 122 | .acf-tab-button { |
| 123 | pointer-events: auto !important; |
| 124 | } |
| 125 | |
| 126 | /* show on hover */ |
| 127 | .acf-soh .acf-soh-target { |
| 128 | -webkit-transition: opacity 0.25s 0s ease-in-out, visibility 0s linear 0.25s; |
| 129 | -moz-transition: opacity 0.25s 0s ease-in-out, visibility 0s linear 0.25s; |
| 130 | -o-transition: opacity 0.25s 0s ease-in-out, visibility 0s linear 0.25s; |
| 131 | transition: opacity 0.25s 0s ease-in-out, visibility 0s linear 0.25s; |
| 132 | |
| 133 | visibility: hidden; |
| 134 | opacity: 0; |
| 135 | } |
| 136 | |
| 137 | .acf-soh:hover .acf-soh-target { |
| 138 | -webkit-transition-delay: 0s; |
| 139 | -moz-transition-delay: 0s; |
| 140 | -o-transition-delay: 0s; |
| 141 | transition-delay: 0s; |
| 142 | |
| 143 | visibility: visible; |
| 144 | opacity: 1; |
| 145 | } |
| 146 | |
| 147 | /* show if value */ |
| 148 | .show-if-value { |
| 149 | display: none; |
| 150 | } |
| 151 | .hide-if-value { |
| 152 | display: block; |
| 153 | } |
| 154 | |
| 155 | .has-value .show-if-value { |
| 156 | display: block; |
| 157 | } |
| 158 | .has-value .hide-if-value { |
| 159 | display: none; |
| 160 | } |
| 161 | |
| 162 | /* select2 WP animation fix */ |
| 163 | .select2-search-choice-close { |
| 164 | -webkit-transition: none; |
| 165 | -moz-transition: none; |
| 166 | -o-transition: none; |
| 167 | transition: none; |
| 168 | } |
| 169 | |
| 170 | /*--------------------------------------------------------------------------------------------- |
| 171 | * |
| 172 | * tooltip |
| 173 | * |
| 174 | *---------------------------------------------------------------------------------------------*/ |
| 175 | |
| 176 | /* tooltip */ |
| 177 | .acf-tooltip { |
| 178 | background: $gray-800; |
| 179 | border-radius: $radius-md; |
| 180 | color: $gray-300; |
| 181 | padding: { |
| 182 | top: 8px; |
| 183 | right: 12px; |
| 184 | bottom: 10px; |
| 185 | left: 12px; |
| 186 | } |
| 187 | position: absolute; |
| 188 | @extend .p7; |
| 189 | z-index: 900000; |
| 190 | max-width: 280px; |
| 191 | box-shadow: 0px 12px 16px -4px rgba(16, 24, 40, 0.08), |
| 192 | 0px 4px 6px -2px rgba(16, 24, 40, 0.03); |
| 193 | |
| 194 | /* tip */ |
| 195 | &:before { |
| 196 | border: solid; |
| 197 | border-color: transparent; |
| 198 | border-width: 6px; |
| 199 | content: ""; |
| 200 | position: absolute; |
| 201 | } |
| 202 | |
| 203 | /* positions */ |
| 204 | &.top { |
| 205 | margin-top: -8px; |
| 206 | |
| 207 | &:before { |
| 208 | top: 100%; |
| 209 | left: 50%; |
| 210 | margin-left: -6px; |
| 211 | border-top-color: #2f353e; |
| 212 | border-bottom-width: 0; |
| 213 | } |
| 214 | } |
| 215 | |
| 216 | &.right { |
| 217 | margin-left: 8px; |
| 218 | |
| 219 | &:before { |
| 220 | top: 50%; |
| 221 | margin-top: -6px; |
| 222 | right: 100%; |
| 223 | border-right-color: #2f353e; |
| 224 | border-left-width: 0; |
| 225 | } |
| 226 | } |
| 227 | |
| 228 | &.bottom { |
| 229 | margin-top: 8px; |
| 230 | |
| 231 | &:before { |
| 232 | bottom: 100%; |
| 233 | left: 50%; |
| 234 | margin-left: -6px; |
| 235 | border-bottom-color: #2f353e; |
| 236 | border-top-width: 0; |
| 237 | } |
| 238 | } |
| 239 | |
| 240 | &.left { |
| 241 | margin-left: -8px; |
| 242 | |
| 243 | &:before { |
| 244 | top: 50%; |
| 245 | margin-top: -6px; |
| 246 | left: 100%; |
| 247 | border-left-color: #2f353e; |
| 248 | border-right-width: 0; |
| 249 | } |
| 250 | } |
| 251 | |
| 252 | .acf-overlay { |
| 253 | z-index: -1; |
| 254 | } |
| 255 | } |
| 256 | |
| 257 | /* confirm */ |
| 258 | .acf-tooltip.-confirm { |
| 259 | z-index: 900001; // +1 higher than .acf-tooltip |
| 260 | |
| 261 | a { |
| 262 | text-decoration: none; |
| 263 | color: #9ea3a8; |
| 264 | |
| 265 | &:hover { |
| 266 | text-decoration: underline; |
| 267 | } |
| 268 | |
| 269 | &[data-event="confirm"]="confirm""] { |
| 270 | color: #f55e4f; |
| 271 | } |
| 272 | } |
| 273 | } |
| 274 | |
| 275 | .acf-overlay { |
| 276 | position: fixed; |
| 277 | top: 0; |
| 278 | bottom: 0; |
| 279 | left: 0; |
| 280 | right: 0; |
| 281 | cursor: default; |
| 282 | } |
| 283 | |
| 284 | .acf-tooltip-target { |
| 285 | position: relative; |
| 286 | z-index: 900002; // +1 higher than .acf-tooltip |
| 287 | } |
| 288 | |
| 289 | /*--------------------------------------------------------------------------------------------- |
| 290 | * |
| 291 | * loading |
| 292 | * |
| 293 | *---------------------------------------------------------------------------------------------*/ |
| 294 | .acf-loading-overlay { |
| 295 | position: absolute; |
| 296 | top: 0; |
| 297 | bottom: 0; |
| 298 | left: 0; |
| 299 | right: 0; |
| 300 | cursor: default; |
| 301 | z-index: 99; |
| 302 | background: rgba(249, 249, 249, 0.5); |
| 303 | |
| 304 | i { |
| 305 | @include centered(); |
| 306 | } |
| 307 | } |
| 308 | |
| 309 | /*-------------------------------------------------------------------------------------------- |
| 310 | * |
| 311 | * acf-icon |
| 312 | * |
| 313 | *--------------------------------------------------------------------------------------------*/ |
| 314 | .acf-icon { |
| 315 | display: inline-block; |
| 316 | height: 28px; |
| 317 | width: 28px; |
| 318 | border: transparent solid 1px; |
| 319 | border-radius: 100%; |
| 320 | font-size: 20px; |
| 321 | line-height: 21px; |
| 322 | text-align: center; |
| 323 | text-decoration: none; |
| 324 | vertical-align: top; |
| 325 | box-sizing: border-box; |
| 326 | |
| 327 | &:before { |
| 328 | font-family: dashicons; |
| 329 | display: inline-block; |
| 330 | line-height: 1; |
| 331 | font-weight: 400; |
| 332 | font-style: normal; |
| 333 | speak: none; |
| 334 | text-decoration: inherit; |
| 335 | text-transform: none; |
| 336 | text-rendering: auto; |
| 337 | -webkit-font-smoothing: antialiased; |
| 338 | -moz-osx-font-smoothing: grayscale; |
| 339 | width: 1em; |
| 340 | height: 1em; |
| 341 | vertical-align: middle; |
| 342 | text-align: center; |
| 343 | } |
| 344 | } |
| 345 | |
| 346 | // Icon types. |
| 347 | .acf-icon.-plus:before { |
| 348 | content: "\f543"; |
| 349 | } |
| 350 | .acf-icon.-minus:before { |
| 351 | content: "\f460"; |
| 352 | } |
| 353 | .acf-icon.-cancel:before { |
| 354 | content: "\f335"; |
| 355 | margin: -1px 0 0 -1px; |
| 356 | } |
| 357 | .acf-icon.-pencil:before { |
| 358 | content: "\f464"; |
| 359 | } |
| 360 | .acf-icon.-location:before { |
| 361 | content: "\f230"; |
| 362 | } |
| 363 | .acf-icon.-up:before { |
| 364 | content: "\f343"; |
| 365 | |
| 366 | // Fix position relative to font-size. |
| 367 | margin-top: math.div(-2em, 20); |
| 368 | } |
| 369 | .acf-icon.-down:before { |
| 370 | content: "\f347"; |
| 371 | |
| 372 | // Fix position relative to font-size. |
| 373 | margin-top: math.div(2em, 20); |
| 374 | } |
| 375 | .acf-icon.-left:before { |
| 376 | content: "\f341"; |
| 377 | |
| 378 | // Fix position relative to font-size. |
| 379 | margin-left: math.div(-2em, 20); |
| 380 | } |
| 381 | .acf-icon.-right:before { |
| 382 | content: "\f345"; |
| 383 | |
| 384 | // Fix position relative to font-size. |
| 385 | margin-left: math.div(2em, 20); |
| 386 | } |
| 387 | .acf-icon.-sync:before { |
| 388 | content: "\f463"; |
| 389 | } |
| 390 | .acf-icon.-globe:before { |
| 391 | content: "\f319"; |
| 392 | |
| 393 | // Fix position relative to font-size. |
| 394 | margin-top: math.div(2em, 20); |
| 395 | margin-left: math.div(2em, 20); |
| 396 | } |
| 397 | .acf-icon.-picture:before { |
| 398 | content: "\f128"; |
| 399 | } |
| 400 | .acf-icon.-check:before { |
| 401 | content: "\f147"; |
| 402 | |
| 403 | // Fix position relative to font-size. |
| 404 | margin-left: math.div(-2em, 20); |
| 405 | } |
| 406 | .acf-icon.-dot-3:before { |
| 407 | content: "\f533"; |
| 408 | |
| 409 | // Fix position relative to font-size. |
| 410 | margin-top: math.div(-2em, 20); |
| 411 | } |
| 412 | .acf-icon.-arrow-combo:before { |
| 413 | content: "\f156"; |
| 414 | } |
| 415 | .acf-icon.-arrow-up:before { |
| 416 | content: "\f142"; |
| 417 | |
| 418 | // Fix position relative to font-size. |
| 419 | margin-left: math.div(-2em, 20); |
| 420 | } |
| 421 | .acf-icon.-arrow-down:before { |
| 422 | content: "\f140"; |
| 423 | |
| 424 | // Fix position relative to font-size. |
| 425 | margin-left: math.div(-2em, 20); |
| 426 | } |
| 427 | .acf-icon.-search:before { |
| 428 | content: "\f179"; |
| 429 | } |
| 430 | .acf-icon.-link-ext:before { |
| 431 | content: "\f504"; |
| 432 | } |
| 433 | |
| 434 | // Duplicate is a custom icon made from pseudo elements. |
| 435 | .acf-icon.-duplicate { |
| 436 | position: relative; |
| 437 | &:before, |
| 438 | &:after { |
| 439 | content: ""; |
| 440 | display: block; |
| 441 | box-sizing: border-box; |
| 442 | width: 46%; |
| 443 | height: 46%; |
| 444 | position: absolute; |
| 445 | top: 33%; |
| 446 | left: 23%; |
| 447 | } |
| 448 | &:before { |
| 449 | margin: -1px 0 0 1px; |
| 450 | box-shadow: 2px -2px 0px 0px currentColor; |
| 451 | } |
| 452 | &:after { |
| 453 | border: solid 2px currentColor; |
| 454 | } |
| 455 | } |
| 456 | |
| 457 | .acf-icon.-trash { |
| 458 | position: relative; |
| 459 | &:before, |
| 460 | &:after { |
| 461 | content: ""; |
| 462 | display: block; |
| 463 | box-sizing: border-box; |
| 464 | width: 46%; |
| 465 | height: 46%; |
| 466 | position: absolute; |
| 467 | top: 33%; |
| 468 | left: 23%; |
| 469 | } |
| 470 | &:before { |
| 471 | margin: -1px 0 0 1px; |
| 472 | box-shadow: 2px -2px 0px 0px currentColor; |
| 473 | } |
| 474 | &:after { |
| 475 | border: solid 2px currentColor; |
| 476 | } |
| 477 | } |
| 478 | |
| 479 | // Collapse icon toggles automatically. |
| 480 | .acf-icon.-collapse:before { |
| 481 | content: "\f142"; |
| 482 | |
| 483 | // Fix position relative to font-size. |
| 484 | margin-left: math.div(-2em, 20); |
| 485 | } |
| 486 | .-collapsed .acf-icon.-collapse:before { |
| 487 | content: "\f140"; |
| 488 | |
| 489 | // Fix position relative to font-size. |
| 490 | margin-left: math.div(-2em, 20); |
| 491 | } |
| 492 | |
| 493 | // <span> displays with grey border. |
| 494 | span.acf-icon { |
| 495 | color: #555d66; |
| 496 | border-color: #b5bcc2; |
| 497 | background-color: #fff; |
| 498 | } |
| 499 | |
| 500 | // <a> also displays with grey border. |
| 501 | a.acf-icon { |
| 502 | color: #555d66; |
| 503 | border-color: #b5bcc2; |
| 504 | background-color: #fff; |
| 505 | position: relative; |
| 506 | transition: none; |
| 507 | cursor: pointer; |
| 508 | |
| 509 | // State "hover". |
| 510 | &:hover { |
| 511 | background: #f3f5f6; |
| 512 | border-color: #0071a1; |
| 513 | color: #0071a1; |
| 514 | } |
| 515 | &.-minus:hover, |
| 516 | &.-cancel:hover { |
| 517 | background: #f7efef; |
| 518 | border-color: #a10000; |
| 519 | color: #dc3232; |
| 520 | } |
| 521 | |
| 522 | // Fix: Remove WP outline box-shadow. |
| 523 | &:active, |
| 524 | &:focus { |
| 525 | outline: none; |
| 526 | box-shadow: none; |
| 527 | } |
| 528 | } |
| 529 | |
| 530 | // Style "clear". |
| 531 | .acf-icon.-clear { |
| 532 | border-color: transparent; |
| 533 | background: transparent; |
| 534 | color: #444; |
| 535 | } |
| 536 | |
| 537 | // Style "light". |
| 538 | .acf-icon.light { |
| 539 | border-color: transparent; |
| 540 | background: #f5f5f5; |
| 541 | color: #23282d; |
| 542 | } |
| 543 | |
| 544 | // Style "dark". |
| 545 | .acf-icon.dark { |
| 546 | border-color: transparent !important; |
| 547 | background: #23282d; |
| 548 | color: #eee; |
| 549 | } |
| 550 | a.acf-icon.dark { |
| 551 | &:hover { |
| 552 | background: #191e23; |
| 553 | color: #00b9eb; |
| 554 | } |
| 555 | &.-minus:hover, |
| 556 | &.-cancel:hover { |
| 557 | color: #d54e21; |
| 558 | } |
| 559 | } |
| 560 | |
| 561 | // Style "grey". |
| 562 | .acf-icon.grey { |
| 563 | border-color: transparent !important; |
| 564 | background: #b4b9be; |
| 565 | color: #fff !important; |
| 566 | |
| 567 | &:hover { |
| 568 | background: #00a0d2; |
| 569 | color: #fff; |
| 570 | } |
| 571 | &.-minus:hover, |
| 572 | &.-cancel:hover { |
| 573 | background: #32373c; |
| 574 | } |
| 575 | } |
| 576 | |
| 577 | // Size "small". |
| 578 | .acf-icon.small, |
| 579 | .acf-icon.-small { |
| 580 | width: 20px; |
| 581 | height: 20px; |
| 582 | line-height: 14px; |
| 583 | font-size: 14px; |
| 584 | |
| 585 | // Apply minor transforms to reduce clarirty of "duplicate" icon. |
| 586 | // Helps to unify rendering with dashicons. |
| 587 | &.-duplicate { |
| 588 | &:before, |
| 589 | &:after { |
| 590 | //transform: rotate(0.1deg) scale(0.9) translate(-5%, 5%); |
| 591 | opacity: 0.8; |
| 592 | } |
| 593 | } |
| 594 | } |
| 595 | |
| 596 | /*-------------------------------------------------------------------------------------------- |
| 597 | * |
| 598 | * acf-box |
| 599 | * |
| 600 | *--------------------------------------------------------------------------------------------*/ |
| 601 | .acf-box { |
| 602 | background: #ffffff; |
| 603 | border: 1px solid $wp-card-border; |
| 604 | position: relative; |
| 605 | box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04); |
| 606 | |
| 607 | /* title */ |
| 608 | .title { |
| 609 | border-bottom: 1px solid $wp-card-border; |
| 610 | margin: 0; |
| 611 | padding: 15px; |
| 612 | |
| 613 | h3 { |
| 614 | display: flex; |
| 615 | align-items: center; |
| 616 | font-size: 14px; |
| 617 | line-height: 1em; |
| 618 | margin: 0; |
| 619 | padding: 0; |
| 620 | } |
| 621 | } |
| 622 | |
| 623 | .inner { |
| 624 | padding: 15px; |
| 625 | } |
| 626 | |
| 627 | h2 { |
| 628 | color: #333333; |
| 629 | font-size: 26px; |
| 630 | line-height: 1.25em; |
| 631 | margin: 0.25em 0 0.75em; |
| 632 | padding: 0; |
| 633 | } |
| 634 | |
| 635 | h3 { |
| 636 | margin: 1.5em 0 0; |
| 637 | } |
| 638 | |
| 639 | p { |
| 640 | margin-top: 0.5em; |
| 641 | } |
| 642 | |
| 643 | a { |
| 644 | text-decoration: none; |
| 645 | } |
| 646 | |
| 647 | i { |
| 648 | &.dashicons-external { |
| 649 | margin-top: -1px; |
| 650 | } |
| 651 | } |
| 652 | |
| 653 | /* footer */ |
| 654 | .footer { |
| 655 | border-top: 1px solid $wp-card-border; |
| 656 | padding: 12px; |
| 657 | font-size: 13px; |
| 658 | line-height: 1.5; |
| 659 | |
| 660 | p { |
| 661 | margin: 0; |
| 662 | } |
| 663 | } |
| 664 | |
| 665 | // WP Admin 3.8 |
| 666 | @include wp-admin("3-8") { |
| 667 | border-color: $wp38-card-border; |
| 668 | .title, |
| 669 | .footer { |
| 670 | border-color: $wp38-card-border; |
| 671 | } |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | /*-------------------------------------------------------------------------------------------- |
| 676 | * |
| 677 | * acf-notice |
| 678 | * |
| 679 | *--------------------------------------------------------------------------------------------*/ |
| 680 | |
| 681 | .acf-notice { |
| 682 | position: relative; |
| 683 | display: block; |
| 684 | color: #fff; |
| 685 | margin: 5px 0 15px; |
| 686 | padding: 3px 12px; |
| 687 | background: $acf_notice; |
| 688 | border-left: darken($acf_notice, 10%) solid 3px; |
| 689 | |
| 690 | p { |
| 691 | font-size: 13px; |
| 692 | line-height: 1.5; |
| 693 | margin: 0.5em 0; |
| 694 | text-shadow: none; |
| 695 | color: inherit; |
| 696 | } |
| 697 | |
| 698 | .acf-notice-dismiss { |
| 699 | position: absolute; |
| 700 | top: 9px; |
| 701 | right: 12px; |
| 702 | background: transparent !important; |
| 703 | color: inherit !important; |
| 704 | border-color: #fff !important; |
| 705 | opacity: 0.75; |
| 706 | &:hover { |
| 707 | opacity: 1; |
| 708 | } |
| 709 | } |
| 710 | |
| 711 | // dismiss |
| 712 | &.-dismiss { |
| 713 | padding-right: 40px; |
| 714 | } |
| 715 | |
| 716 | // error |
| 717 | &.-error { |
| 718 | background: $acf_error; |
| 719 | border-color: darken($acf_error, 10%); |
| 720 | } |
| 721 | |
| 722 | // success |
| 723 | &.-success { |
| 724 | background: $acf_success; |
| 725 | border-color: darken($acf_success, 10%); |
| 726 | } |
| 727 | |
| 728 | // warning |
| 729 | &.-warning { |
| 730 | background: $acf_warning; |
| 731 | border-color: darken($acf_warning, 10%); |
| 732 | } |
| 733 | } |
| 734 | |
| 735 | /*-------------------------------------------------------------------------------------------- |
| 736 | * |
| 737 | * acf-table |
| 738 | * |
| 739 | *--------------------------------------------------------------------------------------------*/ |
| 740 | |
| 741 | .acf-table { |
| 742 | border: $wp-card-border solid 1px; |
| 743 | background: #fff; |
| 744 | border-spacing: 0; |
| 745 | border-radius: 0; |
| 746 | table-layout: auto; |
| 747 | padding: 0; |
| 748 | margin: 0; |
| 749 | width: 100%; |
| 750 | clear: both; |
| 751 | box-sizing: content-box; |
| 752 | |
| 753 | /* defaults */ |
| 754 | > tbody > tr, |
| 755 | > thead > tr { |
| 756 | > th, |
| 757 | > td { |
| 758 | padding: 8px; |
| 759 | vertical-align: top; |
| 760 | background: #fff; |
| 761 | text-align: left; |
| 762 | border-style: solid; |
| 763 | font-weight: normal; |
| 764 | } |
| 765 | |
| 766 | > th { |
| 767 | position: relative; |
| 768 | color: #333333; |
| 769 | } |
| 770 | } |
| 771 | |
| 772 | /* thead */ |
| 773 | > thead { |
| 774 | > tr { |
| 775 | > th { |
| 776 | border-color: $wp-card-border-1; |
| 777 | border-width: 0 0 1px 1px; |
| 778 | |
| 779 | &:first-child { |
| 780 | border-left-width: 0; |
| 781 | } |
| 782 | } |
| 783 | } |
| 784 | } |
| 785 | |
| 786 | /* tbody */ |
| 787 | > tbody { |
| 788 | > tr { |
| 789 | z-index: 1; |
| 790 | |
| 791 | > td { |
| 792 | border-color: $wp-card-border-2; |
| 793 | border-width: 1px 0 0 1px; |
| 794 | |
| 795 | &:first-child { |
| 796 | border-left-width: 0; |
| 797 | } |
| 798 | } |
| 799 | |
| 800 | &:first-child > td { |
| 801 | border-top-width: 0; |
| 802 | } |
| 803 | } |
| 804 | } |
| 805 | |
| 806 | /* -clear */ |
| 807 | &.-clear { |
| 808 | border: 0 none; |
| 809 | |
| 810 | > tbody > tr, |
| 811 | > thead > tr { |
| 812 | > td, |
| 813 | > th { |
| 814 | border: 0 none; |
| 815 | padding: 4px; |
| 816 | } |
| 817 | } |
| 818 | } |
| 819 | } |
| 820 | |
| 821 | /* remove tr */ |
| 822 | .acf-remove-element { |
| 823 | -webkit-transition: all 0.25s ease-out; |
| 824 | -moz-transition: all 0.25s ease-out; |
| 825 | -o-transition: all 0.25s ease-out; |
| 826 | transition: all 0.25s ease-out; |
| 827 | |
| 828 | transform: translate(50px, 0); |
| 829 | opacity: 0; |
| 830 | } |
| 831 | |
| 832 | /* fade-up */ |
| 833 | .acf-fade-up { |
| 834 | -webkit-transition: all 0.25s ease-out; |
| 835 | -moz-transition: all 0.25s ease-out; |
| 836 | -o-transition: all 0.25s ease-out; |
| 837 | transition: all 0.25s ease-out; |
| 838 | |
| 839 | transform: translate(0, -10px); |
| 840 | opacity: 0; |
| 841 | } |
| 842 | |
| 843 | /*--------------------------------------------------------------------------------------------- |
| 844 | * |
| 845 | * Fake table |
| 846 | * |
| 847 | *---------------------------------------------------------------------------------------------*/ |
| 848 | |
| 849 | .acf-thead, |
| 850 | .acf-tbody, |
| 851 | .acf-tfoot { |
| 852 | width: 100%; |
| 853 | padding: 0; |
| 854 | margin: 0; |
| 855 | |
| 856 | > li { |
| 857 | box-sizing: border-box; |
| 858 | padding: { |
| 859 | top: 14px; |
| 860 | } |
| 861 | font-size: 12px; |
| 862 | line-height: 14px; |
| 863 | } |
| 864 | } |
| 865 | |
| 866 | .acf-thead { |
| 867 | border-bottom: $wp-card-border solid 1px; |
| 868 | color: #23282d; |
| 869 | |
| 870 | > li { |
| 871 | font-size: 14px; |
| 872 | line-height: 1.4; |
| 873 | font-weight: bold; |
| 874 | } |
| 875 | |
| 876 | // WP Admin 3.8 |
| 877 | @include wp-admin("3-8") { |
| 878 | border-color: $wp38-card-border-1; |
| 879 | } |
| 880 | } |
| 881 | |
| 882 | .acf-tfoot { |
| 883 | background: #f5f5f5; |
| 884 | border-top: $wp-card-border-1 solid 1px; |
| 885 | } |
| 886 | |
| 887 | /*-------------------------------------------------------------------------------------------- |
| 888 | * |
| 889 | * Settings |
| 890 | * |
| 891 | *--------------------------------------------------------------------------------------------*/ |
| 892 | |
| 893 | .acf-settings-wrap { |
| 894 | #poststuff { |
| 895 | padding-top: 15px; |
| 896 | } |
| 897 | |
| 898 | .acf-box { |
| 899 | margin: 20px 0; |
| 900 | } |
| 901 | |
| 902 | table { |
| 903 | margin: 0; |
| 904 | |
| 905 | .button { |
| 906 | vertical-align: middle; |
| 907 | } |
| 908 | } |
| 909 | } |
| 910 | |
| 911 | /*-------------------------------------------------------------------------------------------- |
| 912 | * |
| 913 | * acf-popup |
| 914 | * |
| 915 | *--------------------------------------------------------------------------------------------*/ |
| 916 | |
| 917 | #acf-popup { |
| 918 | position: fixed; |
| 919 | z-index: 900000; |
| 920 | top: 0; |
| 921 | left: 0; |
| 922 | right: 0; |
| 923 | bottom: 0; |
| 924 | text-align: center; |
| 925 | |
| 926 | // bg |
| 927 | .bg { |
| 928 | position: absolute; |
| 929 | top: 0; |
| 930 | left: 0; |
| 931 | right: 0; |
| 932 | bottom: 0; |
| 933 | z-index: 0; |
| 934 | background: rgba(0, 0, 0, 0.25); |
| 935 | } |
| 936 | |
| 937 | &:before { |
| 938 | content: ""; |
| 939 | display: inline-block; |
| 940 | height: 100%; |
| 941 | vertical-align: middle; |
| 942 | } |
| 943 | |
| 944 | // box |
| 945 | .acf-popup-box { |
| 946 | display: inline-block; |
| 947 | vertical-align: middle; |
| 948 | z-index: 1; |
| 949 | min-width: 300px; |
| 950 | min-height: 160px; |
| 951 | border-color: #aaaaaa; |
| 952 | box-shadow: 0 5px 30px -5px rgba(0, 0, 0, 0.25); |
| 953 | text-align: left; |
| 954 | @include rtl(); |
| 955 | |
| 956 | // title |
| 957 | .title { |
| 958 | min-height: 15px; |
| 959 | line-height: 15px; |
| 960 | |
| 961 | // icon |
| 962 | .acf-icon { |
| 963 | position: absolute; |
| 964 | top: 10px; |
| 965 | right: 10px; |
| 966 | |
| 967 | // rtl |
| 968 | html[dir="rtl"]="rtl""] & { |
| 969 | right: auto; |
| 970 | left: 10px; |
| 971 | } |
| 972 | } |
| 973 | } |
| 974 | |
| 975 | .inner { |
| 976 | min-height: 50px; |
| 977 | |
| 978 | // use margin instead of padding to allow inner elements marin to overlap and avoid large hitespace at top/bottom |
| 979 | padding: 0; |
| 980 | margin: 15px; |
| 981 | } |
| 982 | |
| 983 | // loading |
| 984 | .loading { |
| 985 | position: absolute; |
| 986 | top: 45px; |
| 987 | left: 0; |
| 988 | right: 0; |
| 989 | bottom: 0; |
| 990 | z-index: 2; |
| 991 | background: rgba(0, 0, 0, 0.1); |
| 992 | display: none; |
| 993 | |
| 994 | i { |
| 995 | @include centered(); |
| 996 | } |
| 997 | } |
| 998 | } |
| 999 | } |
| 1000 | |
| 1001 | // acf-submit |
| 1002 | .acf-submit { |
| 1003 | margin-bottom: 0; |
| 1004 | line-height: 28px; // .button height |
| 1005 | |
| 1006 | // message |
| 1007 | span { |
| 1008 | float: right; |
| 1009 | color: #999; |
| 1010 | |
| 1011 | &.-error { |
| 1012 | color: #dd4232; |
| 1013 | } |
| 1014 | } |
| 1015 | |
| 1016 | // button (allow margin between loading) |
| 1017 | .button { |
| 1018 | margin-right: 5px; |
| 1019 | } |
| 1020 | } |
| 1021 | |
| 1022 | /*-------------------------------------------------------------------------------------------- |
| 1023 | * |
| 1024 | * upgrade notice |
| 1025 | * |
| 1026 | *--------------------------------------------------------------------------------------------*/ |
| 1027 | |
| 1028 | #acf-upgrade-notice { |
| 1029 | position: relative; |
| 1030 | background: #fff; |
| 1031 | padding: 20px; |
| 1032 | @include clearfix(); |
| 1033 | |
| 1034 | .col-content { |
| 1035 | float: left; |
| 1036 | width: 55%; |
| 1037 | padding-left: 90px; |
| 1038 | } |
| 1039 | |
| 1040 | .notice-container { |
| 1041 | display: flex; |
| 1042 | justify-content: space-between; |
| 1043 | align-items: flex-start; |
| 1044 | align-content: flex-start; |
| 1045 | } |
| 1046 | |
| 1047 | .col-actions { |
| 1048 | float: right; |
| 1049 | text-align: center; |
| 1050 | } |
| 1051 | |
| 1052 | img { |
| 1053 | float: left; |
| 1054 | width: 64px; |
| 1055 | height: 64px; |
| 1056 | margin: 0 0 0 -90px; |
| 1057 | } |
| 1058 | |
| 1059 | h2 { |
| 1060 | display: inline-block; |
| 1061 | font-size: 16px; |
| 1062 | margin: 2px 0 6.5px; |
| 1063 | } |
| 1064 | |
| 1065 | p { |
| 1066 | padding: 0; |
| 1067 | margin: 0; |
| 1068 | } |
| 1069 | |
| 1070 | .button:before { |
| 1071 | margin-top: 11px; |
| 1072 | } |
| 1073 | |
| 1074 | // mobile |
| 1075 | @media screen and (max-width: $sm) { |
| 1076 | .col-content, |
| 1077 | .col-actions { |
| 1078 | float: none; |
| 1079 | padding-left: 90px; |
| 1080 | width: auto; |
| 1081 | text-align: left; |
| 1082 | } |
| 1083 | } |
| 1084 | } |
| 1085 | |
| 1086 | // Hide icons for upgade notice. |
| 1087 | #acf-upgrade-notice:has(.notice-container)::before, |
| 1088 | #acf-upgrade-notice:has(.notice-container)::after { |
| 1089 | display: none; |
| 1090 | } |
| 1091 | |
| 1092 | // Match padding of other non-icon notices. |
| 1093 | #acf-upgrade-notice:has(.notice-container) { |
| 1094 | padding-left: 20px !important; |
| 1095 | } |
| 1096 | |
| 1097 | /*-------------------------------------------------------------------------------------------- |
| 1098 | * |
| 1099 | * Welcome |
| 1100 | * |
| 1101 | *--------------------------------------------------------------------------------------------*/ |
| 1102 | |
| 1103 | .acf-wrap { |
| 1104 | h1 { |
| 1105 | margin-top: 0; |
| 1106 | padding-top: 20px; |
| 1107 | } |
| 1108 | |
| 1109 | .about-text { |
| 1110 | margin-top: 0.5em; |
| 1111 | min-height: 50px; |
| 1112 | } |
| 1113 | |
| 1114 | .about-headline-callout { |
| 1115 | font-size: 2.4em; |
| 1116 | font-weight: 300; |
| 1117 | line-height: 1.3; |
| 1118 | margin: 1.1em 0 0.2em; |
| 1119 | text-align: center; |
| 1120 | } |
| 1121 | |
| 1122 | .feature-section { |
| 1123 | padding: 40px 0; |
| 1124 | |
| 1125 | h2 { |
| 1126 | margin-top: 20px; |
| 1127 | } |
| 1128 | } |
| 1129 | |
| 1130 | .changelog { |
| 1131 | list-style: disc; |
| 1132 | padding-left: 15px; |
| 1133 | |
| 1134 | li { |
| 1135 | margin: 0 0 0.75em; |
| 1136 | } |
| 1137 | } |
| 1138 | |
| 1139 | .acf-three-col { |
| 1140 | display: flex; |
| 1141 | flex-wrap: wrap; |
| 1142 | justify-content: space-between; |
| 1143 | |
| 1144 | > div { |
| 1145 | flex: 1; |
| 1146 | align-self: flex-start; |
| 1147 | min-width: 31%; |
| 1148 | max-width: 31%; |
| 1149 | |
| 1150 | @media screen and (max-width: $md) { |
| 1151 | min-width: 48%; |
| 1152 | } |
| 1153 | |
| 1154 | @media screen and (max-width: $sm) { |
| 1155 | min-width: 100%; |
| 1156 | } |
| 1157 | } |
| 1158 | |
| 1159 | h3 .badge { |
| 1160 | display: inline-block; |
| 1161 | vertical-align: top; |
| 1162 | border-radius: 5px; |
| 1163 | background: #fc9700; |
| 1164 | color: #fff; |
| 1165 | font-weight: normal; |
| 1166 | font-size: 12px; |
| 1167 | padding: 2px 5px; |
| 1168 | } |
| 1169 | |
| 1170 | img + h3 { |
| 1171 | margin-top: 0.5em; |
| 1172 | } |
| 1173 | } |
| 1174 | } |
| 1175 | |
| 1176 | /*-------------------------------------------------------------------------------------------- |
| 1177 | * |
| 1178 | * acf-hl cols |
| 1179 | * |
| 1180 | *--------------------------------------------------------------------------------------------*/ |
| 1181 | |
| 1182 | .acf-hl[data-cols]] { |
| 1183 | margin-left: -10px; |
| 1184 | margin-right: -10px; |
| 1185 | |
| 1186 | > li { |
| 1187 | padding: 0 6px 0 10px; |
| 1188 | |
| 1189 | -webkit-box-sizing: border-box; |
| 1190 | -moz-box-sizing: border-box; |
| 1191 | box-sizing: border-box; |
| 1192 | } |
| 1193 | } |
| 1194 | |
| 1195 | /* sizes */ |
| 1196 | .acf-hl[data-cols="2"]="2""] > li { |
| 1197 | width: 50%; |
| 1198 | } |
| 1199 | .acf-hl[data-cols="3"]="3""] > li { |
| 1200 | width: 33.333%; |
| 1201 | } |
| 1202 | .acf-hl[data-cols="4"]="4""] > li { |
| 1203 | width: 25%; |
| 1204 | } |
| 1205 | |
| 1206 | /* mobile */ |
| 1207 | @media screen and (max-width: $sm) { |
| 1208 | .acf-hl[data-cols]] { |
| 1209 | flex-wrap: wrap; |
| 1210 | justify-content: flex-start; |
| 1211 | align-content: flex-start; |
| 1212 | align-items: flex-start; |
| 1213 | margin-left: 0; |
| 1214 | margin-right: 0; |
| 1215 | margin-top: -10px; |
| 1216 | |
| 1217 | > li { |
| 1218 | flex: 1 1 100%; |
| 1219 | width: 100% !important; |
| 1220 | padding: 10px 0 0; |
| 1221 | } |
| 1222 | } |
| 1223 | } |
| 1224 | |
| 1225 | /*-------------------------------------------------------------------------------------------- |
| 1226 | * |
| 1227 | * misc |
| 1228 | * |
| 1229 | *--------------------------------------------------------------------------------------------*/ |
| 1230 | |
| 1231 | .acf-actions { |
| 1232 | text-align: right; |
| 1233 | z-index: 1; |
| 1234 | |
| 1235 | /* hover */ |
| 1236 | &.-hover { |
| 1237 | position: absolute; |
| 1238 | display: none; |
| 1239 | top: 0; |
| 1240 | right: 0; |
| 1241 | padding: 5px; |
| 1242 | z-index: 1050; |
| 1243 | } |
| 1244 | |
| 1245 | /* rtl */ |
| 1246 | html[dir="rtl"]="rtl""] & { |
| 1247 | &.-hover { |
| 1248 | right: auto; |
| 1249 | left: 0; |
| 1250 | } |
| 1251 | } |
| 1252 | } |
| 1253 | |
| 1254 | /* ul compatibility */ |
| 1255 | ul.acf-actions { |
| 1256 | li { |
| 1257 | float: right; |
| 1258 | margin-left: 4px; |
| 1259 | } |
| 1260 | } |
| 1261 | |
| 1262 | /*-------------------------------------------------------------------------------------------- |
| 1263 | * |
| 1264 | * RTL |
| 1265 | * |
| 1266 | *--------------------------------------------------------------------------------------------*/ |
| 1267 | |
| 1268 | html[dir="rtl"]="rtl""] .acf-fl { |
| 1269 | float: right; |
| 1270 | } |
| 1271 | html[dir="rtl"]="rtl""] .acf-fr { |
| 1272 | float: left; |
| 1273 | } |
| 1274 | |
| 1275 | html[dir="rtl"]="rtl""] .acf-hl > li { |
| 1276 | float: right; |
| 1277 | } |
| 1278 | |
| 1279 | html[dir="rtl"]="rtl""] .acf-hl > li.acf-fr { |
| 1280 | float: left; |
| 1281 | } |
| 1282 | |
| 1283 | html[dir="rtl"]="rtl""] .acf-icon.logo { |
| 1284 | left: 0; |
| 1285 | right: auto; |
| 1286 | } |
| 1287 | |
| 1288 | html[dir="rtl"]="rtl""] .acf-table thead th { |
| 1289 | text-align: right; |
| 1290 | border-right-width: 1px; |
| 1291 | border-left-width: 0px; |
| 1292 | } |
| 1293 | |
| 1294 | html[dir="rtl"]="rtl""] .acf-table > tbody > tr > td { |
| 1295 | text-align: right; |
| 1296 | border-right-width: 1px; |
| 1297 | border-left-width: 0px; |
| 1298 | } |
| 1299 | |
| 1300 | html[dir="rtl"]="rtl""] .acf-table > thead > tr > th:first-child, |
| 1301 | html[dir="rtl"]="rtl""] .acf-table > tbody > tr > td:first-child { |
| 1302 | border-right-width: 0; |
| 1303 | } |
| 1304 | |
| 1305 | html[dir="rtl"]="rtl""] .acf-table > tbody > tr > td.order + td { |
| 1306 | border-right-color: #e1e1e1; |
| 1307 | } |
| 1308 | |
| 1309 | /*--------------------------------------------------------------------------------------------- |
| 1310 | * |
| 1311 | * acf-postbox-columns |
| 1312 | * |
| 1313 | *---------------------------------------------------------------------------------------------*/ |
| 1314 | |
| 1315 | .acf-postbox-columns { |
| 1316 | @include clearfix(); |
| 1317 | position: relative; |
| 1318 | margin-top: -11px; |
| 1319 | margin-bottom: -12px; |
| 1320 | margin-left: -12px; |
| 1321 | margin-right: (280px - 12px); |
| 1322 | |
| 1323 | .acf-postbox-main, |
| 1324 | .acf-postbox-side { |
| 1325 | @include border-box(); |
| 1326 | padding: 0 12px 12px; |
| 1327 | } |
| 1328 | |
| 1329 | .acf-postbox-main { |
| 1330 | float: left; |
| 1331 | width: 100%; |
| 1332 | } |
| 1333 | |
| 1334 | .acf-postbox-side { |
| 1335 | float: right; |
| 1336 | width: 280px; |
| 1337 | margin-right: -280px; |
| 1338 | |
| 1339 | &:before { |
| 1340 | content: ""; |
| 1341 | display: block; |
| 1342 | position: absolute; |
| 1343 | width: 1px; |
| 1344 | height: 100%; |
| 1345 | top: 0; |
| 1346 | right: 0; |
| 1347 | background: $wp-card-border-1; |
| 1348 | } |
| 1349 | } |
| 1350 | |
| 1351 | // WP Admin 3.8 |
| 1352 | @include wp-admin("3-8") { |
| 1353 | .acf-postbox-side:before { |
| 1354 | background: $wp38-card-border-1; |
| 1355 | } |
| 1356 | } |
| 1357 | } |
| 1358 | |
| 1359 | /* mobile */ |
| 1360 | @media only screen and (max-width: 850px) { |
| 1361 | .acf-postbox-columns { |
| 1362 | margin: 0; |
| 1363 | |
| 1364 | .acf-postbox-main, |
| 1365 | .acf-postbox-side { |
| 1366 | float: none; |
| 1367 | width: auto; |
| 1368 | margin: 0; |
| 1369 | padding: 0; |
| 1370 | } |
| 1371 | |
| 1372 | .acf-postbox-side { |
| 1373 | margin-top: 1em; |
| 1374 | |
| 1375 | &:before { |
| 1376 | display: none; |
| 1377 | } |
| 1378 | } |
| 1379 | } |
| 1380 | } |
| 1381 | |
| 1382 | /*--------------------------------------------------------------------------------------------- |
| 1383 | * |
| 1384 | * acf-panel |
| 1385 | * |
| 1386 | *---------------------------------------------------------------------------------------------*/ |
| 1387 | |
| 1388 | .acf-panel { |
| 1389 | margin-top: -1px; |
| 1390 | border-top: 1px solid $wp-card-border-1; |
| 1391 | border-bottom: 1px solid $wp-card-border-1; |
| 1392 | |
| 1393 | .acf-panel-title { |
| 1394 | margin: 0; |
| 1395 | padding: 12px; |
| 1396 | font-weight: bold; |
| 1397 | cursor: pointer; |
| 1398 | font-size: inherit; |
| 1399 | |
| 1400 | i { |
| 1401 | float: right; |
| 1402 | } |
| 1403 | } |
| 1404 | |
| 1405 | .acf-panel-inside { |
| 1406 | margin: 0; |
| 1407 | padding: 0 12px 12px; |
| 1408 | display: none; |
| 1409 | } |
| 1410 | |
| 1411 | /* open */ |
| 1412 | &.-open { |
| 1413 | .acf-panel-inside { |
| 1414 | display: block; |
| 1415 | } |
| 1416 | } |
| 1417 | |
| 1418 | /* inside postbox */ |
| 1419 | .postbox & { |
| 1420 | margin-left: -12px; |
| 1421 | margin-right: -12px; |
| 1422 | } |
| 1423 | |
| 1424 | /* fields */ |
| 1425 | .acf-field { |
| 1426 | margin: 20px 0 0; |
| 1427 | |
| 1428 | .acf-label label { |
| 1429 | color: #555d66; |
| 1430 | font-weight: normal; |
| 1431 | } |
| 1432 | |
| 1433 | &:first-child { |
| 1434 | margin-top: 0; |
| 1435 | } |
| 1436 | } |
| 1437 | |
| 1438 | // WP Admin 3.8 |
| 1439 | @include wp-admin("3-8") { |
| 1440 | border-color: $wp38-card-border-1; |
| 1441 | } |
| 1442 | } |
| 1443 | |
| 1444 | /*--------------------------------------------------------------------------------------------- |
| 1445 | * |
| 1446 | * Admin Tools |
| 1447 | * |
| 1448 | *---------------------------------------------------------------------------------------------*/ |
| 1449 | |
| 1450 | #acf-admin-tools { |
| 1451 | .notice { |
| 1452 | margin-top: 10px; |
| 1453 | } |
| 1454 | |
| 1455 | .acf-meta-box-wrap { |
| 1456 | .inside { |
| 1457 | border-top: none; |
| 1458 | } |
| 1459 | |
| 1460 | /* acf-fields */ |
| 1461 | .acf-fields { |
| 1462 | margin: { |
| 1463 | bottom: 24px; |
| 1464 | } |
| 1465 | border: none; |
| 1466 | background: #fff; |
| 1467 | border-radius: 0; |
| 1468 | |
| 1469 | .acf-field { |
| 1470 | padding: 0; |
| 1471 | margin-bottom: 19px; |
| 1472 | border-top: none; |
| 1473 | } |
| 1474 | |
| 1475 | .acf-label { |
| 1476 | @extend .p2; |
| 1477 | margin: { |
| 1478 | bottom: 16px; |
| 1479 | } |
| 1480 | } |
| 1481 | |
| 1482 | .acf-input { |
| 1483 | padding: { |
| 1484 | top: 16px; |
| 1485 | right: 16px; |
| 1486 | bottom: 16px; |
| 1487 | left: 16px; |
| 1488 | } |
| 1489 | border: { |
| 1490 | width: 1px; |
| 1491 | style: solid; |
| 1492 | color: $gray-300; |
| 1493 | } |
| 1494 | border-radius: $radius-md; |
| 1495 | } |
| 1496 | |
| 1497 | &.import-cptui { |
| 1498 | margin-top: 19px; |
| 1499 | } |
| 1500 | } |
| 1501 | } |
| 1502 | } |
| 1503 | |
| 1504 | .acf-meta-box-wrap { |
| 1505 | .postbox { |
| 1506 | @include border-box(); |
| 1507 | |
| 1508 | .inside { |
| 1509 | margin-bottom: 0; |
| 1510 | } |
| 1511 | |
| 1512 | .hndle { |
| 1513 | font-size: 14px; |
| 1514 | padding: 8px 12px; |
| 1515 | margin: 0; |
| 1516 | line-height: 1.4; |
| 1517 | |
| 1518 | // Prevent .acf-panel border overlapping. |
| 1519 | position: relative; |
| 1520 | z-index: 1; |
| 1521 | cursor: default; |
| 1522 | } |
| 1523 | |
| 1524 | .handlediv, |
| 1525 | .handle-order-higher, |
| 1526 | .handle-order-lower { |
| 1527 | display: none; |
| 1528 | } |
| 1529 | } |
| 1530 | } |
| 1531 | |
| 1532 | /* grid */ |
| 1533 | .acf-meta-box-wrap.-grid { |
| 1534 | margin-left: 8px; |
| 1535 | margin-right: 8px; |
| 1536 | |
| 1537 | .postbox { |
| 1538 | float: left; |
| 1539 | clear: left; |
| 1540 | width: 50%; |
| 1541 | margin: 0 0 16px; |
| 1542 | |
| 1543 | &:nth-child(odd) { |
| 1544 | margin-left: -8px; |
| 1545 | } |
| 1546 | |
| 1547 | &:nth-child(even) { |
| 1548 | float: right; |
| 1549 | clear: right; |
| 1550 | margin-right: -8px; |
| 1551 | } |
| 1552 | } |
| 1553 | } |
| 1554 | |
| 1555 | /* mobile */ |
| 1556 | @media only screen and (max-width: 850px) { |
| 1557 | .acf-meta-box-wrap.-grid { |
| 1558 | margin-left: 0; |
| 1559 | margin-right: 0; |
| 1560 | |
| 1561 | .postbox { |
| 1562 | margin-left: 0 !important; |
| 1563 | margin-right: 0 !important; |
| 1564 | width: 100%; |
| 1565 | } |
| 1566 | } |
| 1567 | } |
| 1568 | |
| 1569 | /* export tool */ |
| 1570 | #acf-admin-tool-export { |
| 1571 | p { |
| 1572 | max-width: 800px; |
| 1573 | } |
| 1574 | |
| 1575 | ul { |
| 1576 | display: flex; |
| 1577 | flex-wrap: wrap; |
| 1578 | width: 100%; |
| 1579 | li { |
| 1580 | flex: 0 1 33.33%; |
| 1581 | @media screen and (max-width: 1600px) { |
| 1582 | flex: 0 1 50%; |
| 1583 | } |
| 1584 | @media screen and (max-width: 1200px) { |
| 1585 | flex: 0 1 100%; |
| 1586 | } |
| 1587 | } |
| 1588 | } |
| 1589 | |
| 1590 | .acf-postbox-side { |
| 1591 | ul { |
| 1592 | display: block; |
| 1593 | } |
| 1594 | |
| 1595 | .button { |
| 1596 | margin: 0; |
| 1597 | width: 100%; |
| 1598 | } |
| 1599 | } |
| 1600 | |
| 1601 | textarea { |
| 1602 | display: block; |
| 1603 | width: 100%; |
| 1604 | min-height: 500px; |
| 1605 | background: $gray-50; |
| 1606 | border-color: $gray-300; |
| 1607 | box-shadow: none; |
| 1608 | padding: 7px; |
| 1609 | border-radius: $radius-md; |
| 1610 | } |
| 1611 | |
| 1612 | /* panel: selection */ |
| 1613 | .acf-panel-selection { |
| 1614 | .acf-label label { |
| 1615 | font-weight: bold; |
| 1616 | color: $gray-700; |
| 1617 | } |
| 1618 | } |
| 1619 | } |
| 1620 | |
| 1621 | #acf-admin-tool-import { |
| 1622 | ul { |
| 1623 | column-width: 200px; |
| 1624 | } |
| 1625 | } |
| 1626 | |
| 1627 | // CSS only Tooltip. |
| 1628 | .acf-css-tooltip { |
| 1629 | position: relative; |
| 1630 | &:before { |
| 1631 | content: attr(aria-label); |
| 1632 | display: none; |
| 1633 | position: absolute; |
| 1634 | z-index: 999; |
| 1635 | |
| 1636 | bottom: 100%; |
| 1637 | left: 50%; |
| 1638 | transform: translate(-50%, -8px); |
| 1639 | |
| 1640 | background: #191e23; |
| 1641 | border-radius: 2px; |
| 1642 | padding: 5px 10px; |
| 1643 | |
| 1644 | color: #fff; |
| 1645 | font-size: 12px; |
| 1646 | line-height: 1.4em; |
| 1647 | white-space: pre; |
| 1648 | } |
| 1649 | &:after { |
| 1650 | content: ""; |
| 1651 | display: none; |
| 1652 | position: absolute; |
| 1653 | z-index: 998; |
| 1654 | |
| 1655 | bottom: 100%; |
| 1656 | left: 50%; |
| 1657 | transform: translate(-50%, 4px); |
| 1658 | |
| 1659 | border: solid 6px transparent; |
| 1660 | border-top-color: #191e23; |
| 1661 | } |
| 1662 | |
| 1663 | &:hover, |
| 1664 | &:focus { |
| 1665 | &:before, |
| 1666 | &:after { |
| 1667 | display: block; |
| 1668 | } |
| 1669 | } |
| 1670 | } |
| 1671 | |
| 1672 | // Diff modal. |
| 1673 | .acf-diff { |
| 1674 | .acf-diff-title { |
| 1675 | position: absolute; |
| 1676 | top: 0; |
| 1677 | left: 0; |
| 1678 | right: 0; |
| 1679 | height: 40px; |
| 1680 | padding: 14px 16px; |
| 1681 | background: #f3f3f3; |
| 1682 | border-bottom: #dddddd solid 1px; |
| 1683 | |
| 1684 | strong { |
| 1685 | font-size: 14px; |
| 1686 | display: block; |
| 1687 | } |
| 1688 | |
| 1689 | .acf-diff-title-left, |
| 1690 | .acf-diff-title-right { |
| 1691 | width: 50%; |
| 1692 | float: left; |
| 1693 | } |
| 1694 | } |
| 1695 | |
| 1696 | .acf-diff-content { |
| 1697 | position: absolute; |
| 1698 | top: 70px; |
| 1699 | left: 0; |
| 1700 | right: 0; |
| 1701 | bottom: 0; |
| 1702 | overflow: auto; |
| 1703 | } |
| 1704 | |
| 1705 | table.diff { |
| 1706 | border-spacing: 0; |
| 1707 | |
| 1708 | col.diffsplit.middle { |
| 1709 | width: 0; |
| 1710 | } |
| 1711 | |
| 1712 | td, |
| 1713 | th { |
| 1714 | padding-top: 0.25em; |
| 1715 | padding-bottom: 0.25em; |
| 1716 | } |
| 1717 | |
| 1718 | // Fix WP 5.7 conflicting CSS. |
| 1719 | tr td:nth-child(2) { |
| 1720 | width: auto; |
| 1721 | } |
| 1722 | |
| 1723 | td:nth-child(3) { |
| 1724 | border-left: #dddddd solid 1px; |
| 1725 | } |
| 1726 | } |
| 1727 | |
| 1728 | // Mobile |
| 1729 | @media screen and (max-width: 600px) { |
| 1730 | .acf-diff-title { |
| 1731 | height: 70px; |
| 1732 | } |
| 1733 | .acf-diff-content { |
| 1734 | top: 100px; |
| 1735 | } |
| 1736 | } |
| 1737 | } |
| 1738 | |
| 1739 | /*--------------------------------------------------------------------------------------------- |
| 1740 | * |
| 1741 | * Modal |
| 1742 | * |
| 1743 | *---------------------------------------------------------------------------------------------*/ |
| 1744 | .acf-modal { |
| 1745 | position: fixed; |
| 1746 | top: 30px; |
| 1747 | left: 30px; |
| 1748 | right: 30px; |
| 1749 | bottom: 30px; |
| 1750 | z-index: 160000; |
| 1751 | box-shadow: 0 5px 15px rgba(0, 0, 0, 0.7); |
| 1752 | background: #fcfcfc; |
| 1753 | |
| 1754 | .acf-modal-title, |
| 1755 | .acf-modal-content, |
| 1756 | .acf-modal-toolbar { |
| 1757 | box-sizing: border-box; |
| 1758 | position: absolute; |
| 1759 | left: 0; |
| 1760 | right: 0; |
| 1761 | } |
| 1762 | |
| 1763 | .acf-modal-title { |
| 1764 | height: 50px; |
| 1765 | top: 0; |
| 1766 | border-bottom: 1px solid #ddd; |
| 1767 | |
| 1768 | h2 { |
| 1769 | margin: 0; |
| 1770 | padding: 0 16px; |
| 1771 | line-height: 50px; |
| 1772 | } |
| 1773 | .acf-modal-close { |
| 1774 | position: absolute; |
| 1775 | top: 0; |
| 1776 | right: 0; |
| 1777 | height: 50px; |
| 1778 | width: 50px; |
| 1779 | border: none; |
| 1780 | border-left: 1px solid #ddd; |
| 1781 | background: transparent; |
| 1782 | cursor: pointer; |
| 1783 | color: #666; |
| 1784 | &:hover { |
| 1785 | color: #00a0d2; |
| 1786 | } |
| 1787 | } |
| 1788 | } |
| 1789 | |
| 1790 | .acf-modal-content { |
| 1791 | top: 50px; |
| 1792 | bottom: 60px; |
| 1793 | background: #fff; |
| 1794 | overflow: auto; |
| 1795 | padding: 16px; |
| 1796 | } |
| 1797 | |
| 1798 | .acf-modal-feedback { |
| 1799 | position: absolute; |
| 1800 | top: 50%; |
| 1801 | margin: -10px 0; |
| 1802 | left: 0; |
| 1803 | right: 0; |
| 1804 | text-align: center; |
| 1805 | opacity: 0.75; |
| 1806 | |
| 1807 | &.error { |
| 1808 | opacity: 1; |
| 1809 | color: #b52727; |
| 1810 | } |
| 1811 | } |
| 1812 | |
| 1813 | .acf-modal-toolbar { |
| 1814 | height: 60px; |
| 1815 | bottom: 0; |
| 1816 | padding: 15px 16px; |
| 1817 | border-top: 1px solid #ddd; |
| 1818 | |
| 1819 | .button { |
| 1820 | float: right; |
| 1821 | } |
| 1822 | } |
| 1823 | |
| 1824 | // Responsive. |
| 1825 | @media only screen and (max-width: 640px) { |
| 1826 | top: 0; |
| 1827 | left: 0; |
| 1828 | right: 0; |
| 1829 | bottom: 0; |
| 1830 | } |
| 1831 | } |
| 1832 | .acf-modal-backdrop { |
| 1833 | position: fixed; |
| 1834 | top: 0; |
| 1835 | left: 0; |
| 1836 | right: 0; |
| 1837 | bottom: 0; |
| 1838 | background: $gray-900; |
| 1839 | opacity: 0.8; |
| 1840 | z-index: 159900; |
| 1841 | } |
| 1842 | |
| 1843 | /*--------------------------------------------------------------------------------------------- |
| 1844 | * |
| 1845 | * Retina |
| 1846 | * |
| 1847 | *---------------------------------------------------------------------------------------------*/ |
| 1848 | |
| 1849 | @media only screen and (-webkit-min-device-pixel-ratio: 2), |
| 1850 | only screen and (min--moz-device-pixel-ratio: 2), |
| 1851 | only screen and (-o-min-device-pixel-ratio: 2/1), |
| 1852 | only screen and (min-device-pixel-ratio: 2), |
| 1853 | only screen and (min-resolution: 192dpi), |
| 1854 | only screen and (min-resolution: 2dppx) { |
| 1855 | .acf-loading, |
| 1856 | .acf-spinner { |
| 1857 | background-image: url(../../images/spinner@2x.gif); |
| 1858 | background-size: 20px 20px; |
| 1859 | } |
| 1860 | } |
| 1861 | |
| 1862 | /*-------------------------------------------------------------------------------------------- |
| 1863 | * |
| 1864 | * Wrap |
| 1865 | * |
| 1866 | *--------------------------------------------------------------------------------------------*/ |
| 1867 | |
| 1868 | .acf-admin-page { |
| 1869 | .wrap { |
| 1870 | margin: { |
| 1871 | top: 48px; |
| 1872 | right: 32px; |
| 1873 | bottom: 0; |
| 1874 | left: 12px; |
| 1875 | } |
| 1876 | |
| 1877 | @media screen and (max-width: 768px) { |
| 1878 | margin: { |
| 1879 | right: 8px; |
| 1880 | left: 8px; |
| 1881 | } |
| 1882 | } |
| 1883 | } |
| 1884 | |
| 1885 | &.rtl .wrap { |
| 1886 | margin: { |
| 1887 | right: 12px; |
| 1888 | left: 32px; |
| 1889 | } |
| 1890 | |
| 1891 | @media screen and (max-width: 768px) { |
| 1892 | margin: { |
| 1893 | right: 8px; |
| 1894 | left: 8px; |
| 1895 | } |
| 1896 | } |
| 1897 | } |
| 1898 | |
| 1899 | #wpcontent { |
| 1900 | @media screen and (max-width: 768px) { |
| 1901 | padding: { |
| 1902 | left: 0; |
| 1903 | } |
| 1904 | } |
| 1905 | } |
| 1906 | } |
| 1907 | |
| 1908 | /*------------------------------------------------------------------- |
| 1909 | * |
| 1910 | * ACF Admin Page Footer Styles |
| 1911 | * |
| 1912 | *------------------------------------------------------------------*/ |
| 1913 | .acf-admin-page { |
| 1914 | #wpfooter { |
| 1915 | font-style: italic; |
| 1916 | } |
| 1917 | } |
| 1918 | |
| 1919 | /*--------------------------------------------------------------------------------------------- |
| 1920 | * |
| 1921 | * Admin Postbox & ACF Postbox |
| 1922 | * |
| 1923 | *---------------------------------------------------------------------------------------------*/ |
| 1924 | .acf-admin-page { |
| 1925 | .postbox, |
| 1926 | .acf-box { |
| 1927 | border: none; |
| 1928 | border-radius: $radius-lg; |
| 1929 | box-shadow: $elevation-01; |
| 1930 | |
| 1931 | .inside { |
| 1932 | padding: { |
| 1933 | top: 24px; |
| 1934 | right: 24px; |
| 1935 | bottom: 24px; |
| 1936 | left: 24px; |
| 1937 | } |
| 1938 | } |
| 1939 | |
| 1940 | .acf-postbox-inner { |
| 1941 | margin: { |
| 1942 | top: 0; |
| 1943 | right: 0; |
| 1944 | bottom: 0; |
| 1945 | left: 0; |
| 1946 | } |
| 1947 | padding: { |
| 1948 | top: 24px; |
| 1949 | right: 0; |
| 1950 | bottom: 0; |
| 1951 | left: 0; |
| 1952 | } |
| 1953 | } |
| 1954 | |
| 1955 | .inner, |
| 1956 | .inside { |
| 1957 | margin: { |
| 1958 | top: 0 !important; |
| 1959 | right: 0 !important; |
| 1960 | bottom: 0 !important; |
| 1961 | left: 0 !important; |
| 1962 | } |
| 1963 | border-top: { |
| 1964 | width: 1px; |
| 1965 | style: solid; |
| 1966 | color: $gray-200; |
| 1967 | } |
| 1968 | } |
| 1969 | |
| 1970 | .postbox-header, |
| 1971 | .title { |
| 1972 | display: flex; |
| 1973 | align-items: center; |
| 1974 | box-sizing: border-box; |
| 1975 | min-height: 64px; |
| 1976 | margin: { |
| 1977 | top: 0; |
| 1978 | right: 0; |
| 1979 | bottom: 0; |
| 1980 | left: 0; |
| 1981 | } |
| 1982 | padding: { |
| 1983 | top: 0; |
| 1984 | right: 24px; |
| 1985 | bottom: 0; |
| 1986 | left: 24px; |
| 1987 | } |
| 1988 | border-bottom: { |
| 1989 | width: 0; |
| 1990 | style: none; |
| 1991 | } |
| 1992 | |
| 1993 | h2, |
| 1994 | h3 { |
| 1995 | margin: { |
| 1996 | top: 0; |
| 1997 | right: 0; |
| 1998 | bottom: 0; |
| 1999 | left: 0; |
| 2000 | } |
| 2001 | padding: { |
| 2002 | top: 0; |
| 2003 | right: 0; |
| 2004 | bottom: 0; |
| 2005 | left: 0; |
| 2006 | } |
| 2007 | @extend .acf-h3; |
| 2008 | color: $gray-700; |
| 2009 | } |
| 2010 | } |
| 2011 | |
| 2012 | .hndle { |
| 2013 | padding: { |
| 2014 | top: 0; |
| 2015 | right: 24px; |
| 2016 | bottom: 0; |
| 2017 | left: 24px; |
| 2018 | } |
| 2019 | } |
| 2020 | } |
| 2021 | } |
| 2022 | |
| 2023 | /*--------------------------------------------------------------------------------------------- |
| 2024 | * |
| 2025 | * Custom ACF postbox header |
| 2026 | * |
| 2027 | *---------------------------------------------------------------------------------------------*/ |
| 2028 | .acf-postbox-header { |
| 2029 | display: flex; |
| 2030 | align-items: center; |
| 2031 | justify-content: space-between; |
| 2032 | box-sizing: border-box; |
| 2033 | min-height: 64px; |
| 2034 | margin: { |
| 2035 | top: -24px; |
| 2036 | right: -24px; |
| 2037 | bottom: 0; |
| 2038 | left: -24px; |
| 2039 | } |
| 2040 | padding: { |
| 2041 | top: 0; |
| 2042 | right: 24px; |
| 2043 | bottom: 0; |
| 2044 | left: 24px; |
| 2045 | } |
| 2046 | border-bottom: { |
| 2047 | width: 1px; |
| 2048 | style: solid; |
| 2049 | color: $gray-200; |
| 2050 | } |
| 2051 | |
| 2052 | h2.acf-postbox-title { |
| 2053 | margin: { |
| 2054 | top: 0; |
| 2055 | right: 0; |
| 2056 | bottom: 0; |
| 2057 | left: 0; |
| 2058 | } |
| 2059 | padding: { |
| 2060 | top: 0; |
| 2061 | right: 24px; |
| 2062 | bottom: 0; |
| 2063 | left: 0; |
| 2064 | } |
| 2065 | @extend .acf-h3; |
| 2066 | color: $gray-700; |
| 2067 | } |
| 2068 | |
| 2069 | .rtl & h2.acf-postbox-title { |
| 2070 | padding: { |
| 2071 | right: 0; |
| 2072 | left: 24px; |
| 2073 | } |
| 2074 | } |
| 2075 | |
| 2076 | .acf-icon { |
| 2077 | background-color: $gray-400; |
| 2078 | } |
| 2079 | } |
| 2080 | |
| 2081 | /*--------------------------------------------------------------------------------------------- |
| 2082 | * |
| 2083 | * Screen options button & screen meta container |
| 2084 | * |
| 2085 | *---------------------------------------------------------------------------------------------*/ |
| 2086 | .acf-admin-page { |
| 2087 | #screen-meta-links { |
| 2088 | margin: { |
| 2089 | right: 32px; |
| 2090 | } |
| 2091 | |
| 2092 | .show-settings { |
| 2093 | border-color: $gray-300; |
| 2094 | } |
| 2095 | |
| 2096 | @media screen and (max-width: 768px) { |
| 2097 | margin: { |
| 2098 | right: 16px; |
| 2099 | bottom: 0; |
| 2100 | } |
| 2101 | } |
| 2102 | } |
| 2103 | |
| 2104 | &.rtl #screen-meta-links { |
| 2105 | margin: { |
| 2106 | right: 0; |
| 2107 | left: 32px; |
| 2108 | } |
| 2109 | |
| 2110 | @media screen and (max-width: 768px) { |
| 2111 | margin: { |
| 2112 | right: 0; |
| 2113 | left: 16px; |
| 2114 | } |
| 2115 | } |
| 2116 | } |
| 2117 | |
| 2118 | #screen-meta { |
| 2119 | border-color: $gray-300; |
| 2120 | } |
| 2121 | } |
| 2122 | |
| 2123 | /*--------------------------------------------------------------------------------------------- |
| 2124 | * |
| 2125 | * Postbox headings |
| 2126 | * |
| 2127 | *---------------------------------------------------------------------------------------------*/ |
| 2128 | .acf-admin-page { |
| 2129 | #poststuff { |
| 2130 | .postbox-header { |
| 2131 | h2, |
| 2132 | h3 { |
| 2133 | justify-content: flex-start; |
| 2134 | margin: { |
| 2135 | top: 0; |
| 2136 | right: 0; |
| 2137 | bottom: 0; |
| 2138 | left: 0; |
| 2139 | } |
| 2140 | padding: { |
| 2141 | top: 0; |
| 2142 | right: 0; |
| 2143 | bottom: 0; |
| 2144 | left: 0; |
| 2145 | } |
| 2146 | @extend .acf-h3; |
| 2147 | color: $gray-700 !important; |
| 2148 | } |
| 2149 | } |
| 2150 | } |
| 2151 | } |
| 2152 | |
| 2153 | /*--------------------------------------------------------------------------------------------- |
| 2154 | * |
| 2155 | * Postbox drag state |
| 2156 | * |
| 2157 | *---------------------------------------------------------------------------------------------*/ |
| 2158 | .acf-admin-page { |
| 2159 | &.is-dragging-metaboxes |
| 2160 | .metabox-holder |
| 2161 | .postbox-container |
| 2162 | .meta-box-sortables { |
| 2163 | box-sizing: border-box; |
| 2164 | padding: 2px; |
| 2165 | outline: none; |
| 2166 | background-image: repeating-linear-gradient( |
| 2167 | 0deg, |
| 2168 | $gray-500, |
| 2169 | $gray-500 5px, |
| 2170 | transparent 5px, |
| 2171 | transparent 10px, |
| 2172 | $gray-500 10px |
| 2173 | ), |
| 2174 | repeating-linear-gradient( |
| 2175 | 90deg, |
| 2176 | $gray-500, |
| 2177 | $gray-500 5px, |
| 2178 | transparent 5px, |
| 2179 | transparent 10px, |
| 2180 | $gray-500 10px |
| 2181 | ), |
| 2182 | repeating-linear-gradient( |
| 2183 | 180deg, |
| 2184 | $gray-500, |
| 2185 | $gray-500 5px, |
| 2186 | transparent 5px, |
| 2187 | transparent 10px, |
| 2188 | $gray-500 10px |
| 2189 | ), |
| 2190 | repeating-linear-gradient( |
| 2191 | 270deg, |
| 2192 | $gray-500, |
| 2193 | $gray-500 5px, |
| 2194 | transparent 5px, |
| 2195 | transparent 10px, |
| 2196 | $gray-500 10px |
| 2197 | ); |
| 2198 | background-size: 1.5px 100%, 100% 1.5px, 1.5px 100%, 100% 1.5px; |
| 2199 | background-position: 0 0, 0 0, 100% 0, 0 100%; |
| 2200 | background-repeat: no-repeat; |
| 2201 | border-radius: $radius-lg; |
| 2202 | } |
| 2203 | |
| 2204 | .ui-sortable-placeholder { |
| 2205 | border: none; |
| 2206 | } |
| 2207 | } |
| 2208 | |
| 2209 | /*-------------------------------------------------------------------------------------------- |
| 2210 | * |
| 2211 | * Search summary |
| 2212 | * |
| 2213 | *--------------------------------------------------------------------------------------------*/ |
| 2214 | .acf-admin-page { |
| 2215 | .subtitle { |
| 2216 | display: inline-flex; |
| 2217 | align-items: center; |
| 2218 | height: 24px; |
| 2219 | margin: 0; |
| 2220 | padding: { |
| 2221 | top: 4px; |
| 2222 | right: 12px; |
| 2223 | bottom: 4px; |
| 2224 | left: 12px; |
| 2225 | } |
| 2226 | background-color: $blue-50; |
| 2227 | border: { |
| 2228 | width: 1px; |
| 2229 | style: solid; |
| 2230 | color: $blue-200; |
| 2231 | } |
| 2232 | border-radius: $radius-md; |
| 2233 | @extend .p3; |
| 2234 | |
| 2235 | strong { |
| 2236 | margin: { |
| 2237 | left: 5px; |
| 2238 | } |
| 2239 | } |
| 2240 | } |
| 2241 | } |
| 2242 | |
| 2243 | /*-------------------------------------------------------------------------------------------- |
| 2244 | * |
| 2245 | * Action strip |
| 2246 | * |
| 2247 | *--------------------------------------------------------------------------------------------*/ |
| 2248 | .acf-actions-strip { |
| 2249 | display: flex; |
| 2250 | |
| 2251 | .acf-btn { |
| 2252 | margin: { |
| 2253 | right: 8px; |
| 2254 | } |
| 2255 | } |
| 2256 | } |
| 2257 | |
| 2258 | /*-------------------------------------------------------------------------------------------- |
| 2259 | * |
| 2260 | * Notices |
| 2261 | * |
| 2262 | *--------------------------------------------------------------------------------------------*/ |
| 2263 | .acf-admin-page { |
| 2264 | .acf-notice, |
| 2265 | .notice, |
| 2266 | #lost-connection-notice { |
| 2267 | position: relative; |
| 2268 | box-sizing: border-box; |
| 2269 | min-height: 48px; |
| 2270 | margin: { |
| 2271 | top: 0 !important; |
| 2272 | right: 0 !important; |
| 2273 | bottom: 16px !important; |
| 2274 | left: 0 !important; |
| 2275 | } |
| 2276 | padding: { |
| 2277 | top: 13px !important; |
| 2278 | right: 16px; |
| 2279 | bottom: 12px !important; |
| 2280 | left: 50px !important; |
| 2281 | } |
| 2282 | background-color: #e7eff9; |
| 2283 | border: { |
| 2284 | width: 1px; |
| 2285 | style: solid; |
| 2286 | color: #9dbaee; |
| 2287 | } |
| 2288 | border-radius: $radius-lg; |
| 2289 | box-shadow: $elevation-01; |
| 2290 | color: $gray-700; |
| 2291 | |
| 2292 | &.update-nag { |
| 2293 | display: block; |
| 2294 | position: relative; |
| 2295 | width: calc(100% - 44px); |
| 2296 | margin: { |
| 2297 | top: 48px !important; |
| 2298 | right: 44px !important; |
| 2299 | bottom: -32px !important; |
| 2300 | left: 12px !important; |
| 2301 | } |
| 2302 | } |
| 2303 | |
| 2304 | .button { |
| 2305 | height: auto; |
| 2306 | margin: { |
| 2307 | left: 8px; |
| 2308 | } |
| 2309 | padding: 0; |
| 2310 | border: none; |
| 2311 | @extend .p5; |
| 2312 | } |
| 2313 | |
| 2314 | > div { |
| 2315 | margin: { |
| 2316 | top: 0; |
| 2317 | bottom: 0; |
| 2318 | } |
| 2319 | } |
| 2320 | |
| 2321 | p { |
| 2322 | flex: 1 0 auto; |
| 2323 | max-width: 100%; |
| 2324 | line-height: 18px; |
| 2325 | margin: 0; |
| 2326 | padding: 0; |
| 2327 | |
| 2328 | &.help { |
| 2329 | margin: { |
| 2330 | top: 0; |
| 2331 | } |
| 2332 | padding: { |
| 2333 | top: 0; |
| 2334 | } |
| 2335 | @extend .p7; |
| 2336 | color: rgba($gray-700, 0.7); |
| 2337 | } |
| 2338 | } |
| 2339 | |
| 2340 | // Dismiss button |
| 2341 | .acf-notice-dismiss, |
| 2342 | .notice-dismiss { |
| 2343 | position: absolute; |
| 2344 | top: 4px; |
| 2345 | right: 8px; |
| 2346 | padding: 9px; |
| 2347 | border: none; |
| 2348 | |
| 2349 | &:before { |
| 2350 | content: ""; |
| 2351 | $icon-size: 20px; |
| 2352 | display: block; |
| 2353 | position: relative; |
| 2354 | z-index: 600; |
| 2355 | width: $icon-size; |
| 2356 | height: $icon-size; |
| 2357 | background-color: $gray-500; |
| 2358 | border: none; |
| 2359 | border-radius: 0; |
| 2360 | -webkit-mask-size: contain; |
| 2361 | mask-size: contain; |
| 2362 | -webkit-mask-repeat: no-repeat; |
| 2363 | mask-repeat: no-repeat; |
| 2364 | -webkit-mask-position: center; |
| 2365 | mask-position: center; |
| 2366 | -webkit-mask-image: url("../../images/icons/icon-close.svg"); |
| 2367 | mask-image: url("../../images/icons/icon-close.svg"); |
| 2368 | } |
| 2369 | |
| 2370 | &:hover::before { |
| 2371 | background-color: $gray-700; |
| 2372 | } |
| 2373 | } |
| 2374 | |
| 2375 | a.acf-notice-dismiss { |
| 2376 | position: absolute; |
| 2377 | top: 5px; |
| 2378 | right: 24px; |
| 2379 | |
| 2380 | &:before { |
| 2381 | background-color: $gray-600; |
| 2382 | } |
| 2383 | } |
| 2384 | |
| 2385 | // Icon base styling |
| 2386 | &:before { |
| 2387 | content: ""; |
| 2388 | $icon-size: 16px; |
| 2389 | display: block; |
| 2390 | position: absolute; |
| 2391 | top: 15px; |
| 2392 | left: 18px; |
| 2393 | z-index: 600; |
| 2394 | width: $icon-size; |
| 2395 | height: $icon-size; |
| 2396 | margin: { |
| 2397 | right: 8px; |
| 2398 | } |
| 2399 | background-color: #fff; |
| 2400 | border: none; |
| 2401 | border-radius: 0; |
| 2402 | -webkit-mask-size: contain; |
| 2403 | mask-size: contain; |
| 2404 | -webkit-mask-repeat: no-repeat; |
| 2405 | mask-repeat: no-repeat; |
| 2406 | -webkit-mask-position: center; |
| 2407 | mask-position: center; |
| 2408 | -webkit-mask-image: url("../../images/icons/icon-info-solid.svg"); |
| 2409 | mask-image: url("../../images/icons/icon-info-solid.svg"); |
| 2410 | } |
| 2411 | |
| 2412 | &:after { |
| 2413 | content: ""; |
| 2414 | display: block; |
| 2415 | position: absolute; |
| 2416 | top: 9px; |
| 2417 | left: 12px; |
| 2418 | z-index: 500; |
| 2419 | width: 28px; |
| 2420 | height: 28px; |
| 2421 | background-color: $color-info; |
| 2422 | border-radius: $radius-md; |
| 2423 | box-shadow: $elevation-01; |
| 2424 | } |
| 2425 | |
| 2426 | .local-restore { |
| 2427 | align-items: center; |
| 2428 | margin: { |
| 2429 | top: -6px; |
| 2430 | bottom: 0; |
| 2431 | } |
| 2432 | } |
| 2433 | } |
| 2434 | |
| 2435 | // Persisted notices should be hidden by default as they will be shown by JS if required. |
| 2436 | .notice[data-persisted="true"]="true""] { |
| 2437 | display: none; |
| 2438 | } |
| 2439 | |
| 2440 | .notice.is-dismissible { |
| 2441 | padding: { |
| 2442 | right: 56px; |
| 2443 | } |
| 2444 | } |
| 2445 | |
| 2446 | // Success notice |
| 2447 | .notice.notice-success { |
| 2448 | background-color: #edf7ef; |
| 2449 | border-color: #b6deb9; |
| 2450 | |
| 2451 | &:before { |
| 2452 | -webkit-mask-image: url("../../images/icons/icon-check-circle-solid.svg"); |
| 2453 | mask-image: url("../../images/icons/icon-check-circle-solid.svg"); |
| 2454 | } |
| 2455 | |
| 2456 | &:after { |
| 2457 | background-color: $color-success; |
| 2458 | } |
| 2459 | } |
| 2460 | |
| 2461 | // Error notice |
| 2462 | .acf-notice.acf-error-message, |
| 2463 | .notice.notice-error, |
| 2464 | #lost-connection-notice { |
| 2465 | background-color: #f7eeeb; |
| 2466 | border-color: #f1b6b3; |
| 2467 | |
| 2468 | &:before { |
| 2469 | -webkit-mask-image: url("../../images/icons/icon-warning.svg"); |
| 2470 | mask-image: url("../../images/icons/icon-warning.svg"); |
| 2471 | } |
| 2472 | |
| 2473 | &:after { |
| 2474 | background-color: $color-danger; |
| 2475 | } |
| 2476 | } |
| 2477 | |
| 2478 | .notice.notice-warning { |
| 2479 | &:before { |
| 2480 | -webkit-mask-image: url("../../images/icons/icon-alert-triangle.svg"); |
| 2481 | mask-image: url("../../images/icons/icon-alert-triangle.svg"); |
| 2482 | background: #f56e28; |
| 2483 | } |
| 2484 | |
| 2485 | &:after { |
| 2486 | content: none; |
| 2487 | } |
| 2488 | |
| 2489 | background: linear-gradient(0deg, rgba(247, 144, 9, 0.08), rgba(247, 144, 9, 0.08)), #FFFFFF; |
| 2490 | border: 1px solid rgba(247, 144, 9, 0.32); |
| 2491 | color: $gray-700; |
| 2492 | } |
| 2493 | } |
| 2494 | |
| 2495 | .acf-admin-single-taxonomy, |
| 2496 | .acf-admin-single-post-type, |
| 2497 | .acf-admin-single-options-page { |
| 2498 | .notice-success { |
| 2499 | .acf-item-saved-text { |
| 2500 | font-weight: 600; |
| 2501 | } |
| 2502 | |
| 2503 | .acf-item-saved-links { |
| 2504 | display: flex; |
| 2505 | gap: 12px; |
| 2506 | |
| 2507 | a { |
| 2508 | text-decoration: none; |
| 2509 | opacity: 1; |
| 2510 | |
| 2511 | &:after { |
| 2512 | content: ""; |
| 2513 | width: 1px; |
| 2514 | height: 13px; |
| 2515 | display: inline-flex; |
| 2516 | position: relative; |
| 2517 | top: 2px; |
| 2518 | left: 6px; |
| 2519 | background-color: $gray-600; |
| 2520 | opacity: 0.3; |
| 2521 | } |
| 2522 | |
| 2523 | &:last-child { |
| 2524 | &:after { |
| 2525 | content: none; |
| 2526 | } |
| 2527 | } |
| 2528 | } |
| 2529 | } |
| 2530 | } |
| 2531 | } |
| 2532 | |
| 2533 | .rtl.acf-field-group, |
| 2534 | .rtl.acf-internal-post-type { |
| 2535 | .notice { |
| 2536 | padding-right: 50px !important; |
| 2537 | |
| 2538 | .notice-dismiss { |
| 2539 | left: 8px; |
| 2540 | right: unset; |
| 2541 | } |
| 2542 | |
| 2543 | &:before { |
| 2544 | left: unset; |
| 2545 | right: 10px; |
| 2546 | } |
| 2547 | |
| 2548 | &:after { |
| 2549 | left: unset; |
| 2550 | right: 12px; |
| 2551 | } |
| 2552 | } |
| 2553 | |
| 2554 | &.acf-admin-single-taxonomy, |
| 2555 | &.acf-admin-single-post-type, |
| 2556 | &.acf-admin-single-options-page { |
| 2557 | .notice-success .acf-item-saved-links a { |
| 2558 | &:after { |
| 2559 | left: unset; |
| 2560 | right: 6px; |
| 2561 | } |
| 2562 | } |
| 2563 | } |
| 2564 | } |
| 2565 | |
| 2566 | /*-------------------------------------------------------------------------------------------- |
| 2567 | * |
| 2568 | * ACF PRO label |
| 2569 | * |
| 2570 | *--------------------------------------------------------------------------------------------*/ |
| 2571 | .acf-pro-label { |
| 2572 | display: inline-flex; |
| 2573 | align-items: center; |
| 2574 | min-height: 22px; |
| 2575 | border: none; |
| 2576 | font-size: 11px; |
| 2577 | text-transform: uppercase; |
| 2578 | text-decoration: none; |
| 2579 | color: #fff; |
| 2580 | } |
| 2581 | |
| 2582 | /*-------------------------------------------------------------------------------------------- |
| 2583 | * |
| 2584 | * Inline notice overrides |
| 2585 | * |
| 2586 | *--------------------------------------------------------------------------------------------*/ |
| 2587 | .acf-admin-page { |
| 2588 | .acf-field { |
| 2589 | // notice |
| 2590 | .acf-notice { |
| 2591 | display: flex; |
| 2592 | align-items: center; |
| 2593 | min-height: 40px !important; |
| 2594 | margin: { |
| 2595 | bottom: 6px !important; |
| 2596 | } |
| 2597 | padding: { |
| 2598 | top: 6px !important; |
| 2599 | left: 40px !important; |
| 2600 | bottom: 6px !important; |
| 2601 | } |
| 2602 | margin: 0 0 15px; |
| 2603 | background: #edf2ff; |
| 2604 | color: $gray-700 !important; |
| 2605 | border-color: #2183b9; |
| 2606 | border-radius: $radius-md; |
| 2607 | |
| 2608 | &:after { |
| 2609 | top: 8px; |
| 2610 | left: 8px; |
| 2611 | width: 22px; |
| 2612 | height: 22px; |
| 2613 | } |
| 2614 | |
| 2615 | &:before { |
| 2616 | top: 12px; |
| 2617 | left: 12px; |
| 2618 | width: 14px; |
| 2619 | height: 14px; |
| 2620 | } |
| 2621 | |
| 2622 | // error |
| 2623 | &.-error { |
| 2624 | background: #f7eeeb; |
| 2625 | border-color: #f1b6b3; |
| 2626 | } |
| 2627 | |
| 2628 | // success |
| 2629 | &.-success { |
| 2630 | background: #edf7ef; |
| 2631 | border-color: #b6deb9; |
| 2632 | } |
| 2633 | |
| 2634 | // warning |
| 2635 | &.-warning { |
| 2636 | background: #fdf8eb; |
| 2637 | border-color: #f4dbb4; |
| 2638 | } |
| 2639 | } |
| 2640 | } |
| 2641 | } |
| 2642 |