mirror of
https://github.com/flarum/framework.git
synced 2024-11-30 05:13:37 +08:00
33bd99d376
* Update Loading Indicator - Fix mistake in LoadingIndicator Less - Middle align the loading indicator when inline - Fix Loading Indicator not correctly accepting container class names - Add inline and block attributes * Fix loading indicator in composer * Fix loading indicator on notification list * Fix loading indicator on discussion page * Fix loading indicator on button * Update more uses of loading indicator * Fix loading indicator in Search box * Fix AvatarEditor loading spinner * Set default spinner props * Replace "tiny" with "small" in Less * Improve spinner vertical centring in buttons * Reduce size specificity * Use single attribute for block/inline * Use new display attribute * Use classes for different sizes * Use `display=block` by default
92 lines
1.4 KiB
Plaintext
92 lines
1.4 KiB
Plaintext
.Search {
|
|
position: relative;
|
|
}
|
|
@media @tablet-up {
|
|
.Search {
|
|
.transition(margin-left 0.4s);
|
|
|
|
&.focused {
|
|
margin-left: -400px;
|
|
|
|
input,
|
|
.Search-results {
|
|
width: 400px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.Search-results {
|
|
overflow: auto;
|
|
left: auto;
|
|
right: 0;
|
|
|
|
@media @phone {
|
|
left: 0;
|
|
}
|
|
|
|
> li > a {
|
|
white-space: normal;
|
|
}
|
|
|
|
mark {
|
|
background: none;
|
|
padding: 0;
|
|
font-weight: bold;
|
|
color: inherit;
|
|
box-shadow: none;
|
|
}
|
|
}
|
|
|
|
.Search-input {
|
|
overflow: hidden;
|
|
color: @muted-color;
|
|
|
|
&:before {
|
|
.fa();
|
|
content: @fa-var-search;
|
|
float: left;
|
|
margin-right: -36px;
|
|
width: 36px;
|
|
font-size: 14px;
|
|
text-align: center;
|
|
position: relative;
|
|
padding: 8px 0;
|
|
line-height: 1.5;
|
|
pointer-events: none;
|
|
}
|
|
input {
|
|
float: left;
|
|
width: 225px;
|
|
padding-left: 32px;
|
|
padding-right: 32px;
|
|
.transition(all 0.4s);
|
|
box-sizing: inherit !important;
|
|
}
|
|
|
|
.LoadingIndicator-container {
|
|
height: 36px;
|
|
}
|
|
|
|
.Button {
|
|
float: left;
|
|
margin-left: -36px;
|
|
outline: none;
|
|
width: 36px !important;
|
|
|
|
&.LoadingIndicator {
|
|
width: var(--size) !important;
|
|
padding: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
.DiscussionSearchResult-excerpt {
|
|
margin-top: 3px;
|
|
color: @muted-color;
|
|
font-size: 11px;
|
|
}
|
|
.UserSearchResult .Avatar {
|
|
.Avatar--size(24px);
|
|
margin: -2px 10px -2px 0;
|
|
}
|