1
0
mirror of https://github.com/flarum/core.git synced 2025-08-11 19:04:29 +02:00

Search for users in autocomplete popup + other tweaks

- Highlight matching parts of usernames
- Fix positioning edge cases
This commit is contained in:
Toby Zerner
2015-05-18 12:24:48 +09:30
parent 547631ac93
commit 547b2b1304
2 changed files with 121 additions and 63 deletions

View File

@@ -30,13 +30,25 @@
max-height: 200px;
overflow: auto;
position: absolute;
& mark {
padding: 0;
}
& > li > a:hover {
background: none;
}
}
.post-preview {
color: @fl-body-muted-color !important;
& .avatar {
.avatar-size(32px);
margin: 3px 0 3px -45px;
.avatar-size(24px);
margin: 0 0 0 -37px;
.suggestion-post& {
margin-top: 3px;
margin-bottom: 3px;
}
}
& .username {
color: @fl-body-color;
@@ -44,7 +56,7 @@
}
}
.post-preview-content {
padding-left: 45px;
padding-left: 37px;
overflow: hidden;
line-height: 1.7em;
}