Skip to content
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

Bundled Theme: Fix search block styling and formatting issues #8094

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions src/wp-content/themes/twentynineteen/style-editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -1633,3 +1633,49 @@ ul.wp-block-archives li ul,
.wp-block-post-author__avatar img {
border-radius: 100%;
}

/** === Search Block === */
.wp-block-search__input {
padding: 0.38rem 0.66rem;
min-height: auto;
font-size: 22px;
}

.wp-block-search input[type=search] {
padding: 0.38rem 0.66rem;
min-height: auto;
font-size: 22px;
}

.wp-block-search__button {
transition: background 150ms ease-in-out;
background: #0073aa;
border: none;
border-radius: 5px;
box-sizing: border-box;
color: #fff;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
font-size: 0.8888888889em;
font-weight: 700;
line-height: 1.2;
outline: none;
padding: 0.76rem 1rem;
text-decoration: none;
vertical-align: bottom;
}

.wp-block-search__button:hover {
background: #111;
cursor: pointer;
}

.wp-block-search__button:visited {
color: #fff;
text-decoration: none;
}

.wp-block-search__button:focus {
background: #111;
outline: thin dotted;
outline-offset: -4px;
}
49 changes: 49 additions & 0 deletions src/wp-content/themes/twentynineteen/style-editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1079,3 +1079,52 @@ $group-block-background__padding: $font__size_base;
.wp-block-post-author__avatar img {
border-radius: 100%;
}

/** === Search Block === */

.wp-block-search {
&__input {
padding: 0.38rem 0.66rem;
min-height: auto;
font-size: 22px;
}

input[type="search"] {
padding: 0.38rem 0.66rem;
min-height: auto;
font-size: 22px;
}

&__button {
@include button-transition;
background: $color__background-button;
border: none;
border-radius: 5px;
box-sizing: border-box;
color: $color__background-body;
@include font-family($font__heading);
font-size: $font__size-sm;
font-weight: 700;
line-height: $font__line-height-heading;
outline: none;
padding: ($size__spacing-unit * 0.76) $size__spacing-unit;
text-decoration: none;
vertical-align: bottom;

&:hover {
background: $color__background-button-hover;
cursor: pointer;
}

&:visited {
color: $color__background-body;
text-decoration: none;
}

&:focus {
background: $color__background-button-hover;
outline: thin dotted;
outline-offset: -4px;
}
}
}
Loading