Skip to content

Commit

Permalink
use box-shadow instead of border
Browse files Browse the repository at this point in the history
  • Loading branch information
richtabor committed Aug 28, 2024
1 parent 9b1af68 commit 4ee7a7c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
// Raise the specificity.
&.components-accessible-toolbar {
border: none;
border-bottom: $border-width solid $gray-200;
box-shadow: 0 $border-width 0 0 rgba($color: #000, $alpha: 0.133); // 0.133 = $gray-200 but with alpha.
border-radius: 0;
}

Expand Down
10 changes: 3 additions & 7 deletions packages/editor/src/components/header/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@
}

.editor-header__post-preview-button {
@include break-mobile {
@include break-small {
display: none;
}
}
Expand All @@ -240,14 +240,10 @@

.editor-header {
background-color: $white;
box-shadow: 0 $border-width 0 0 rgba($color: #000, $alpha: 0.133); // 0.133 = $gray-200 but with alpha.
position: absolute;
width: 100%;

@include break-medium {
border-bottom: 1px solid #e0e0e0;
position: absolute;
}


// hide some parts
& > .edit-post-header__settings > .edit-post-header__post-preview-button {
visibility: hidden;
Expand Down

0 comments on commit 4ee7a7c

Please sign in to comment.