humhub/static/less/search.less
2024-02-27 12:13:14 +01:00

156 lines
3.8 KiB
Plaintext

#dropdown-search.dropdown-menu {
left: auto;
right: 0;
max-width: 100%;
min-width: 350px;
padding: 0;
border: none;
border-radius: 8px;
box-shadow: 0 0 8px #CCC;
top: 115%;
.dropdown-search-list {
list-style: none;
padding: 20px;
height: 100%;
}
.arrow {
position: absolute;
display: block;
width: 0;
height: 0;
border-color: transparent;
border-style: solid;
border-width: 8px;
right: 10px;
margin-left: -18px;
border-top-width: 0;
border-bottom-color: #fff;
top: -8px;
z-index: 1035;
}
.dropdown-header {
font-weight: 600;
color: #000;
padding: 0;
}
.dropdown-search-form {
position: relative;
.dropdown-search-keyword {
background: #f8f8f8;
border-color: #f3f3f3;
padding-left: 32px;
}
.dropdown-search-button {
position: absolute;
padding: 5px 10px;
background: none;
border: 0;
font-size: 16px;
color: #555 !important;
&:active {
box-shadow: none;
}
}
}
.dropdown-search-provider {
display: none;
padding-top: 20px;
.dropdown-search-provider-title {
font-weight: 600;
font-size: 16px;
color: #000;
> span {
font-size: 80%;
}
}
&:hover {
color: inherit;
}
&.provider-searched {
display: block;
}
&.provider-searching {
.dropdown-search-provider-title, .dropdown-search-provider-content {
float: left;
}
}
.dropdown-search-provider-content {
> a.dropdown-search-provider-content-item {
display: flex;
align-items: center;
padding: 10px;
margin-top: 5px;
&:hover {
background: #f8f8f8;
border-radius: 3px;
}
> span:first-child {
width: 36px;
flex: 0 0 36px;
> i {
font-size: 32px;
color: @info;
}
}
> span:last-child {
font-weight: 600;
padding-left: 10px;
flex: 1;
min-width: 0;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
> span {
display: block;
font-size: 80%;
font-weight: 400;
color: #555;
text-overflow: ellipsis;
overflow: hidden;
}
}
}
}
.dropdown-search-provider-no-results {
margin-top: 15px;
}
.dropdown-search-provider-show-all {
margin-top: 20px;
width: 100%;
&:hover, &:active, &:focus {
background: #d7d7d7;
}
}
}
}
.dropdown.search-menu {
.dropdown-backdrop {
background: rgba(0, 0, 0, 0.15);
}
&.open #search-menu {
background: #FFF;
border-bottom: 3px solid @info;
z-index: 1000;
}
}
@media (max-width: 380px) {
.dropdown.search-menu {
position: initial;
}
#dropdown-search.dropdown-menu {
width: 100%;
min-width: initial;
.arrow {
right: 25px;
}
}
}