Skip to content

Instantly share code, notes, and snippets.

@wpserve
Last active June 30, 2022 13:37
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wpserve/ffc87e04af835f27d64db36da6c0b940 to your computer and use it in GitHub Desktop.
Save wpserve/ffc87e04af835f27d64db36da6c0b940 to your computer and use it in GitHub Desktop.
Horizontal filters CSS
@media screen and (min-width: 768px) {
.wpc-filters-widget-wrapper{
display: flex;
width: 100%;
justify-content: flex-start;
flex-wrap: wrap;
}
.wpc-filters-section{
width: 30%;
margin-right: 24px;
}
.wpc-filter-content select{
width: 200px;
}
form.wpc-filter-range-form{
max-width: 336px;
margin-right: 0;
}
.wpc-filter-layout-submit-button,
.wpc-inner-widget-chips-wrapper,
.wpc-posts-found{
width: 100%;
}
.wpc-filters-widget-main-wrapper a.wpc-filters-reset-button,
.wpc-filters-widget-main-wrapper a.wpc-filters-submit-button {
width: 45%;
white-space: inherit;
display: flex;
align-items: center;
justify-content: center;
max-width: 240px;
margin-left: 24px;
}
.wpc-filter-layout-submit-button{
justify-content: flex-end;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment