mirror of
https://github.com/flarum/framework.git
synced 2024-11-29 04:33:47 +08:00
9e6ad1f244
We won’t have it if we didn’t do a fulltext search
83 lines
1.4 KiB
Plaintext
83 lines
1.4 KiB
Plaintext
@media @tablet, @desktop, @desktop-hd {
|
|
.search-box {
|
|
& input:focus, &.active input, & .search-results {
|
|
width: 400px;
|
|
}
|
|
}
|
|
}
|
|
.search-results {
|
|
max-height: 70vh;
|
|
overflow: auto;
|
|
|
|
& > li > a {
|
|
white-space: normal;
|
|
|
|
&:hover {
|
|
background: none;
|
|
}
|
|
}
|
|
|
|
& mark {
|
|
background: none;
|
|
padding: 0;
|
|
font-weight: bold;
|
|
color: inherit;
|
|
box-shadow: none;
|
|
}
|
|
}
|
|
|
|
.search-input {
|
|
overflow: hidden;
|
|
color: @fl-body-muted-color;
|
|
|
|
&:before {
|
|
.fa();
|
|
content: @fa-var-search;
|
|
float: left;
|
|
margin-right: -36px;
|
|
width: 36px;
|
|
font-size: 14px;
|
|
text-align: center;
|
|
position: relative;
|
|
padding: @padding-base-vertical - 1 0;
|
|
line-height: @line-height-base;
|
|
pointer-events: none;
|
|
}
|
|
& input {
|
|
float: left;
|
|
width: 225px;
|
|
padding-left: 36px;
|
|
padding-right: 36px;
|
|
.transition(~"all 0.4s");
|
|
|
|
.active & {
|
|
background: @fl-body-bg;
|
|
border: 2px solid @fl-body-secondary-color;
|
|
|
|
&:focus {
|
|
&:extend(.form-control:focus);
|
|
}
|
|
}
|
|
}
|
|
& .btn {
|
|
float: left;
|
|
margin-left: -36px;
|
|
width: 36px !important;
|
|
outline: none;
|
|
}
|
|
}
|
|
|
|
.discussion-search-result {
|
|
& .excerpt {
|
|
margin-top: 3px;
|
|
color: @fl-body-muted-color;
|
|
font-size: 11px;
|
|
}
|
|
}
|
|
.user-search-result {
|
|
& .avatar {
|
|
.avatar-size(24px);
|
|
margin: -2px 10px -2px 0;
|
|
}
|
|
}
|