mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 09:41:49 +08:00
a9ded36b57
- Get rid of Bootstrap (except we still rely on some JS) - Use BEM class names - Rework variables/theme config - Fix various bugs, including some on mobile The CSS is still not ideal – it needs to be cleaned up some more. But that can be a focus for after beta.
68 lines
1.1 KiB
Plaintext
Executable File
68 lines
1.1 KiB
Plaintext
Executable File
@media @tablet-up {
|
|
.Search {
|
|
input:focus, &.active input, .Search-results {
|
|
width: 400px;
|
|
}
|
|
}
|
|
}
|
|
.Search-results {
|
|
max-height: 70vh;
|
|
overflow: auto;
|
|
left: auto;
|
|
right: 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: 7px 0;
|
|
line-height: 1.5;
|
|
pointer-events: none;
|
|
}
|
|
input {
|
|
float: left;
|
|
width: 225px;
|
|
padding-left: 36px;
|
|
padding-right: 36px;
|
|
.transition(~"all 0.4s");
|
|
}
|
|
.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;
|
|
}
|