|
176 | 176 | //------------------------------------------------- |
177 | 177 | //TOOLBAR BUTTONS |
178 | 178 | //------------------------------------------------- |
179 | | - .#{$prefix}--overflow-menu.#{$prefix}--toolbar-action, |
| 179 | + .#{$prefix}--overflow-menu.#{$prefix}--toolbar-action { |
| 180 | + @include button-reset; |
| 181 | + display: flex; |
| 182 | + cursor: pointer; |
| 183 | + height: $layout-04; |
| 184 | + width: $layout-04; |
| 185 | + padding: $spacing-md; |
| 186 | + transition: background $duration--fast-02 motion(entrance, productive); |
| 187 | + } |
| 188 | + |
180 | 189 | // DEPRECATED prefer .#{$prefix}--overflow-menu.#{$prefix}--toolbar-action instead |
181 | 190 | .#{$prefix}--toolbar-action { |
182 | 191 | @include button-reset; |
|
312 | 321 | padding-right: $spacing-lg; |
313 | 322 | width: 100%; |
314 | 323 | height: 100%; |
| 324 | + pointer-events: none; |
| 325 | + visibility: hidden; |
315 | 326 | will-change: transform; |
316 | 327 | background-color: $interactive-01; |
317 | 328 | transition: transform $duration--fast-02 motion(standard, productive), |
318 | 329 | visibility $duration--fast-02 motion(standard, productive), |
319 | 330 | opacity $duration--fast-02 motion(standard, productive); |
320 | 331 | transform: translate3d(0, 48px, 0); |
321 | | - pointer-events: none; |
322 | | - visibility: hidden; |
323 | 332 | } |
324 | 333 |
|
325 | 334 | .#{$prefix}--batch-actions:focus { |
|
403 | 412 |
|
404 | 413 | .#{$prefix}--btn--primary.#{$prefix}--batch-summary__cancel:hover::before { |
405 | 414 | opacity: 0; |
| 415 | + transition: opacity $transition--base $carbon--standard-easing; |
406 | 416 | } |
407 | 417 |
|
408 | 418 | // cancel btn |
|
424 | 434 | .#{$prefix}--batch-summary__para { |
425 | 435 | @include type-style('body-short-01'); |
426 | 436 | } |
| 437 | + |
| 438 | + //------------------------------------------------- |
| 439 | + //SMALL TOOLBAR |
| 440 | + //------------------------------------------------- |
| 441 | + .#{$prefix}--table-toolbar--small { |
| 442 | + height: rem(32px); |
| 443 | + |
| 444 | + .#{$prefix}--toolbar-search-container-expandable, |
| 445 | + .#{$prefix}--toolbar-search-container-persistent { |
| 446 | + height: rem(32px); |
| 447 | + } |
| 448 | + |
| 449 | + .#{$prefix}--toolbar-search-container-expandable |
| 450 | + .#{$prefix}--search |
| 451 | + .#{$prefix}--search-input, |
| 452 | + .#{$prefix}--toolbar-search-container-persistent |
| 453 | + .#{$prefix}--search |
| 454 | + .#{$prefix}--search-input { |
| 455 | + height: rem(32px); |
| 456 | + } |
| 457 | + |
| 458 | + .#{$prefix}--toolbar-search-container-expandable |
| 459 | + .#{$prefix}--search |
| 460 | + .#{$prefix}--search-close, |
| 461 | + .#{$prefix}--toolbar-search-container-persistent |
| 462 | + .#{$prefix}--search |
| 463 | + .#{$prefix}--search-close { |
| 464 | + height: rem(32px); |
| 465 | + width: rem(32px); |
| 466 | + } |
| 467 | + |
| 468 | + .#{$prefix}--toolbar-search-container-expandable |
| 469 | + .#{$prefix}--search |
| 470 | + .#{$prefix}--search-magnifier, |
| 471 | + .#{$prefix}--toolbar-search-container-persistent |
| 472 | + .#{$prefix}--search |
| 473 | + .#{$prefix}--search-magnifier { |
| 474 | + height: rem(32px); |
| 475 | + width: rem(32px); |
| 476 | + padding: $spacing-xs; |
| 477 | + } |
| 478 | + |
| 479 | + //hidden |
| 480 | + .#{$prefix}--toolbar-search-container-expandable { |
| 481 | + width: rem(32px); |
| 482 | + } |
| 483 | + |
| 484 | + .#{$prefix}--toolbar-search-container-expandable |
| 485 | + .#{$prefix}--search |
| 486 | + .#{$prefix}--search-input { |
| 487 | + padding-left: $spacing-xl; |
| 488 | + } |
| 489 | + |
| 490 | + //active |
| 491 | + .#{$prefix}--toolbar-search-container-active { |
| 492 | + flex: auto; |
| 493 | + transition: flex 175ms $carbon--standard-easing; |
| 494 | + } |
| 495 | + |
| 496 | + .#{$prefix}--toolbar-search-container-active |
| 497 | + .#{$prefix}--search |
| 498 | + .#{$prefix}--search-input { |
| 499 | + visibility: visible; |
| 500 | + } |
| 501 | + |
| 502 | + .#{$prefix}--toolbar-search-container-active |
| 503 | + .#{$prefix}--search |
| 504 | + .#{$prefix}--search-input:focus { |
| 505 | + @include focus-outline('outline'); |
| 506 | + background: $hover-field; |
| 507 | + } |
| 508 | + |
| 509 | + .#{$prefix}--toolbar-search-container-active |
| 510 | + .#{$prefix}--search |
| 511 | + .#{$prefix}--search-input:active, |
| 512 | + .#{$prefix}--toolbar-search-container-active |
| 513 | + .#{$prefix}--search |
| 514 | + .#{$prefix}--search-input:not(:placeholder-shown) { |
| 515 | + background: $hover-field; |
| 516 | + } |
| 517 | + |
| 518 | + .#{$prefix}--toolbar-search-container-active |
| 519 | + .#{$prefix}--search |
| 520 | + .#{$prefix}--search-magnifier:focus, |
| 521 | + .#{$prefix}--toolbar-search-container-active |
| 522 | + .#{$prefix}--search |
| 523 | + .#{$prefix}--search-magnifier:active, |
| 524 | + .#{$prefix}--toolbar-search-container-active |
| 525 | + .#{$prefix}--search |
| 526 | + .#{$prefix}--search-magnifier:hover { |
| 527 | + @include focus-outline('reset'); |
| 528 | + background: transparent; |
| 529 | + } |
| 530 | + } |
| 531 | + |
| 532 | + //------------------------------------------------- |
| 533 | + // SMALL BATCH ACTIONS |
| 534 | + //------------------------------------------------- |
| 535 | + .#{$prefix}--table-toolbar--small |
| 536 | + .#{$prefix}--batch-actions |
| 537 | + .#{$prefix}--action-list { |
| 538 | + height: rem(32px); |
| 539 | + } |
| 540 | + |
| 541 | + .#{$prefix}--table-toolbar--small .#{$prefix}--toolbar-action { |
| 542 | + height: rem(32px); |
| 543 | + width: rem(32px); |
| 544 | + padding: $spacing-xs; |
| 545 | + } |
| 546 | + |
| 547 | + .#{$prefix}--table-toolbar--small .#{$prefix}--btn--primary { |
| 548 | + padding-top: rem(3px); |
| 549 | + height: rem(32px); |
| 550 | + } |
| 551 | + |
| 552 | + .#{$prefix}--table-toolbar--small |
| 553 | + .#{$prefix}--btn--primary.#{$prefix}--batch-summary__cancel::before { |
| 554 | + top: rem(8px); |
| 555 | + } |
| 556 | + |
| 557 | + .#{$prefix}--table-toolbar--small |
| 558 | + .#{$prefix}--toolbar-action |
| 559 | + ~ .#{$prefix}--btn { |
| 560 | + height: rem(32px); |
| 561 | + width: rem(160px); |
| 562 | + overflow: hidden; |
| 563 | + } |
427 | 564 | } |
428 | 565 |
|
429 | 566 | @include exports('data-table-v2-action') { |
|
0 commit comments