2015-08-04 09:57:51 +08:00
|
|
|
.Search {
|
|
|
|
position: relative;
|
|
|
|
}
|
2015-07-17 13:35:34 +08:00
|
|
|
@media @tablet-up {
|
2016-03-28 07:53:49 +08:00
|
|
|
.Search {
|
|
|
|
.transition(margin-left 0.4s);
|
|
|
|
|
|
|
|
&.focused {
|
|
|
|
margin-left: -400px;
|
2015-08-27 07:04:13 +08:00
|
|
|
|
2016-03-28 07:53:49 +08:00
|
|
|
input, .Search-results {
|
|
|
|
width: 400px;
|
|
|
|
}
|
2015-07-17 13:35:34 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.Search-results {
|
|
|
|
max-height: 70vh;
|
|
|
|
overflow: auto;
|
|
|
|
left: auto;
|
|
|
|
right: 0;
|
|
|
|
|
2015-08-04 09:57:51 +08:00
|
|
|
@media @phone {
|
|
|
|
left: 0;
|
|
|
|
}
|
|
|
|
|
2015-07-17 13:35:34 +08:00
|
|
|
> 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: 7px 0;
|
|
|
|
line-height: 1.5;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
input {
|
|
|
|
float: left;
|
|
|
|
width: 225px;
|
2015-08-27 07:04:13 +08:00
|
|
|
padding-left: 32px;
|
|
|
|
padding-right: 32px;
|
|
|
|
.transition(all 0.4s);
|
2015-07-17 13:35:34 +08:00
|
|
|
}
|
|
|
|
.Button {
|
|
|
|
float: left;
|
|
|
|
margin-left: -36px;
|
|
|
|
width: 36px !important;
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.DiscussionSearchResult-excerpt {
|
|
|
|
margin-top: 3px;
|
|
|
|
color: @muted-color;
|
|
|
|
font-size: 11px;
|
|
|
|
}
|
|
|
|
.UserSearchResult .Avatar {
|
|
|
|
.Avatar--size(24px);
|
|
|
|
margin: -2px 10px -2px 0;
|
|
|
|
}
|