framework/less/lib/search.less

83 lines
1.4 KiB
Plaintext
Raw Normal View History

@media @tablet, @desktop, @desktop-hd {
.search-box {
& input:focus, &.active input, & .search-results {
width: 400px;
}
2015-06-03 16:40:56 +08:00
}
}
.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;
2015-06-03 16:40:56 +08:00
color: @fl-body-muted-color;
font-size: 11px;
}
}
.user-search-result {
& .avatar {
.avatar-size(24px);
margin: -2px 10px -2px 0;
}
}