humhub/static/less/search.less

138 lines
3.6 KiB
Plaintext

#dropdown-search.dropdown-menu {
left: auto;
right: 0;
max-height: 800px;
max-width: 100%;
min-width: 350px;
padding: 20px;
border-radius: 6px;
li:hover {
color: inherit;
}
.arrow {
position: absolute;
display: block;
width: 0;
height: 0;
border-color: transparent;
border-style: solid;
border-width: 11px;
right: 10px;
margin-left: -18px;
border-top-width: 0;
border-bottom-color: rgba(0, 0, 0, 0.15);
top: -11px;
z-index: 1100;
&:after {
position: absolute;
display: block;
width: 0;
height: 0;
border-color: transparent;
border-style: solid;
border-width: 10px;
content: " ";
top: 1px;
margin-left: -10px;
border-top-width: 0;
border-bottom-color: #fff;
z-index: 1100;
}
}
.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%;
}
}
&.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;
}
}
}
}