Skip to content

Commit

Permalink
Style site icon and its button
Browse files Browse the repository at this point in the history
  • Loading branch information
stokesman committed Jun 6, 2024
1 parent 9a35208 commit a858775
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
19 changes: 9 additions & 10 deletions packages/edit-site/src/components/layout/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -160,24 +160,23 @@
}

&::before {
transition: box-shadow 0.1s ease;
opacity: 0;
transition: opacity 0.1s linear;
@include reduce-motion("transition");
content: "";
display: block;
position: absolute;
top: 9px;
right: 9px;
bottom: 9px;
left: 9px;
z-index: 1;
inset: 7px;
border-radius: $radius-block-ui + $border-width + $border-width;
box-shadow: none;
}

// Lightened spot color focus.
&:focus::before {
&:focus-visible::before {
opacity: 1;
box-shadow:
inset 0 0 0 var(--wp-admin-border-width-focus) rgba($white, 0.1),
inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),
inset 0 0 0 calc(var(--wp-admin-border-width-focus) + 0.5px) rgba($white, 0.5),
0 0 0 calc(var(--wp-admin-border-width-focus) - 1px) rgba($white, 0.5);
}

.edit-site-layout__view-mode-toggle-icon {
Expand Down
2 changes: 1 addition & 1 deletion packages/edit-site/src/components/site-icon/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
.edit-site-site-icon__image {
width: 100%;
height: 100%;
border-radius: $radius-block-ui * 2;
object-fit: cover;
background: #333;

.edit-site-layout.is-full-canvas & {
border-radius: 0;
Expand Down

0 comments on commit a858775

Please sign in to comment.