New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added the styles for the new gutenberg-based search widget #1647
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -170,10 +170,14 @@ a.skip-link { | |
display: block; | ||
} | ||
|
||
/* Search Widget */ | ||
// New Search Widget in Block Editor | ||
.wp-block-search { | ||
.wp-block-search__label { | ||
@extend .screen-reader-text; | ||
@if variable-exists('bootstrap4') { | ||
@include sr-only(); | ||
} @else { | ||
@include visually-hidden(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think @extend would give smaller CSS. |
||
} | ||
} | ||
|
||
.wp-block-search__inside-wrapper { | ||
|
@@ -190,10 +194,17 @@ a.skip-link { | |
margin-left: 0; | ||
} | ||
|
||
@extend .btn-primary; | ||
@if variable-exists('bootstrap4') { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can be simplified to @include button-variant( $primary, $primary );
@if variable-exists('bootstrap4') {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
} |
||
@include button-variant( $primary, $primary ); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
border-top-left-radius: 0px; | ||
border-bottom-left-radius: 0px; | ||
} @else { | ||
@include button-variant( $primary, $primary ); | ||
} | ||
} | ||
} | ||
} | ||
|
||
// Fixing Off-canvas close icon is hidden behind admin bar | ||
@include media-breakpoint-down(md) { | ||
body.admin-bar .offcanvas-end { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think @extend would give smaller CSS.