mirror of
https://github.com/discourse/discourse.git
synced 2025-06-24 21:21:34 +08:00
UX: search dropdown layout improvements (#31568)
This change improves the alignment and placement of the search spinner and icons (ie. clear search / advanced search). Having a fixed width on desktop prevents the search field from changing width when the loading icon is toggled.
This commit is contained in:
@ -382,13 +382,12 @@ $search-pad-horizontal: 0.5em;
|
|||||||
width: 12px;
|
width: 12px;
|
||||||
height: 12px;
|
height: 12px;
|
||||||
border-width: 2px;
|
border-width: 2px;
|
||||||
margin: 0;
|
margin: 0 0.5em 0.25em 0;
|
||||||
margin-top: 2px;
|
margin-top: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.show-advanced-search,
|
.show-advanced-search,
|
||||||
a.clear-search {
|
a.clear-search {
|
||||||
padding: 0 3px;
|
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
|
|
||||||
|
@ -72,20 +72,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.searching {
|
.searching {
|
||||||
display: flex;
|
width: 3em;
|
||||||
padding-right: 0.5rem;
|
justify-content: flex-end;
|
||||||
|
|
||||||
.show-advanced-search,
|
.show-advanced-search,
|
||||||
a.clear-search {
|
a.clear-search {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.spinner-holder {
|
|
||||||
display: inline-block;
|
|
||||||
vertical-align: top;
|
|
||||||
margin-left: 4px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-icon {
|
.search-icon {
|
||||||
|
Reference in New Issue
Block a user