1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-26 15:26:19 +00:00

add icon for search item, add repo_name for link-content (#2803)

* add icon for search item, add repo_name for link-content

* improve search module
This commit is contained in:
杨顺强
2019-01-10 16:36:54 +08:00
committed by Daniel Pan
parent 61d1518fcd
commit f674f7c21c
2 changed files with 26 additions and 15 deletions

View File

@@ -51,10 +51,11 @@
}
.search-result-container .search-result-item {
display: flex;
padding: 0.25rem 0.75rem;
border-left: 2px solid #fff;
cursor: pointer;
font-size: 0.8125rem;
cursor: pointer;
}
.search-result-container .search-result-item:hover {
@@ -62,22 +63,25 @@
background-color: #eee;
}
.search-result-item .item-content {
font-weight: normal;
display: block;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
.search-result-item .item-img {
width: 36px;
height: 36px;
}
.search-result-item .item-name {
.search-result-item .item-content {
flex: 1;
width: 0;
margin-left: 0.25rem;
}
.item-content .item-name {
color: #eb8205 !important;
}
.search-result-item .item-link {
.item-content .item-link {
color: #888;
}
.search-result-item .item-text {
margin: 0;
}
.search-result-item .item-text b {
.item-content .item-text {
margin: 0;
}
.item-content .item-text b {
font-weight: bold;
}