Skip to content

Commit 502f79a

Browse files
authored
Try more muted sibling inserter. (#28550)
1 parent 068c810 commit 502f79a

File tree

1 file changed

+11
-11
lines changed
  • packages/block-editor/src/components/block-list

1 file changed

+11
-11
lines changed

packages/block-editor/src/components/block-list/style.scss

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -406,23 +406,24 @@
406406
position: absolute;
407407
background: var(--wp-admin-theme-color);
408408

409-
animation: block-editor-inserter__toggle__fade-in-animation 0.3s ease;
409+
// Provide a muted animation that isn't too noisy.
410+
animation: block-editor-inserter__toggle__fade-in-animation-delayed 0.3s ease;
410411
animation-fill-mode: forwards;
411412
@include reduce-motion("animation");
412413

413414
.block-editor-block-list__insertion-point.is-vertical > & {
414-
top: calc(50% - #{ $border-width });
415-
height: var(--wp-admin-border-width-focus);
416-
left: 0;
415+
top: 50%;
417416
right: 0;
417+
left: 0;
418+
height: $border-width;
418419
}
419420

420421
.block-editor-block-list__insertion-point.is-horizontal > & {
421422
top: 0;
422-
height: 100%;
423-
left: calc(50% - #{ $border-width });
424423
right: 0;
425-
width: var(--wp-admin-border-width-focus);
424+
left: 50%;
425+
height: 100%;
426+
width: $border-width;
426427
}
427428
}
428429

@@ -458,7 +459,7 @@
458459
.block-editor-block-list__block-popover-inserter {
459460
.block-editor-inserter__toggle.components-button.has-icon {
460461
// Basic look
461-
background: $gray-900;
462+
background: var(--wp-admin-theme-color);
462463
border-radius: $radius-block-ui;
463464
color: $white;
464465
padding: 0;
@@ -469,6 +470,7 @@
469470

470471
&:hover {
471472
color: $white;
473+
background: $gray-900;
472474
}
473475
}
474476
}
@@ -488,7 +490,7 @@
488490
0% {
489491
opacity: 0;
490492
}
491-
80% {
493+
60% {
492494
opacity: 0;
493495
}
494496
100% {
@@ -499,11 +501,9 @@
499501
@keyframes block-editor-inserter__toggle__fade-in-animation {
500502
from {
501503
opacity: 0;
502-
transform: scale(0);
503504
}
504505
to {
505506
opacity: 1;
506-
transform: scale(1);
507507
}
508508
}
509509

0 commit comments

Comments
 (0)