humhub/static/less/search.less

210 lines
5.5 KiB
Plaintext
Raw Normal View History

2024-02-16 18:43:15 +01:00
#dropdown-search.dropdown-menu {
left: auto;
right: 0;
2024-02-19 18:57:13 +01:00
max-width: 100%;
2024-02-16 18:43:15 +01:00
min-width: 350px;
2024-02-20 18:30:47 +01:00
padding: 0;
2024-02-27 12:13:14 +01:00
border: none;
border-radius: 8px;
box-shadow: 0 0 8px #CCC;
top: 115%;
2024-02-20 18:30:47 +01:00
2024-02-16 18:43:15 +01:00
.dropdown-header {
2024-03-07 09:26:16 +01:00
font-size: 20px;
2024-02-16 18:43:15 +01:00
font-weight: 600;
color: #000;
2024-03-07 09:26:16 +01:00
padding: 24px;
2024-02-27 15:09:11 +01:00
margin: 0;
flex: 0 0 auto;
.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: #CCC;
top: -8px;
z-index: 1035;
&:after {
position: absolute;
border-color: transparent;
border-style: solid;
border-width: 8px;
content: " ";
top: 1px;
margin-left: -8px;
border-top-width: 0;
border-bottom-color: #FFF;
z-index: 1035;
}
}
#dropdown-search-close {
float: right;
font-size: 18px;
cursor: pointer;
}
2024-02-16 18:43:15 +01:00
}
.dropdown-search-form {
position: relative;
2024-03-07 09:26:16 +01:00
padding: 0 16px 24px;
2024-02-27 15:09:11 +01:00
flex: 0 1 auto;
2024-02-16 18:43:15 +01:00
.dropdown-search-keyword {
background: #f8f8f8;
border-color: #f3f3f3;
padding-left: 32px;
2024-02-27 15:09:11 +01:00
&:-webkit-autofill,
&:-webkit-autofill:hover,
&:-webkit-autofill:focus,
&:-webkit-autofill:active {
-webkit-text-fill-color: #777 !important;
-webkit-box-shadow: 0 0 0 30px #f8f8f8 inset !important;
}
2024-02-16 18:43:15 +01:00
}
.dropdown-search-button {
position: absolute;
padding: 5px 10px;
background: none;
border: 0;
font-size: 16px;
color: #555 !important;
&:active {
box-shadow: none;
}
}
}
2024-02-27 15:09:11 +01:00
.dropdown-search-list {
list-style: none;
2024-03-07 09:26:16 +01:00
padding: 0 16px 24px;
2024-02-27 15:09:11 +01:00
display: none;
flex: 0 1 auto;
> li:first-child {
margin-top: 0;
padding-top: 0;
}
}
2024-02-27 18:40:45 +01:00
.search-provider {
2024-02-16 18:43:15 +01:00
display: none;
2024-03-07 09:26:16 +01:00
padding-top: 24px;
2024-02-27 18:40:45 +01:00
.search-provider-title {
2024-03-07 09:26:16 +01:00
padding-left: 8px;
2024-02-16 18:43:15 +01:00
font-weight: 600;
2024-03-07 09:26:16 +01:00
font-size: 18px;
2024-02-16 18:43:15 +01:00
color: #000;
> span {
2024-03-07 09:26:16 +01:00
font-size: 14px;
2024-02-16 18:43:15 +01:00
}
}
2024-02-20 18:30:47 +01:00
&:hover {
color: inherit;
}
2024-02-16 18:43:15 +01:00
&.provider-searched {
display: block;
}
&.provider-searching {
2024-02-27 18:40:45 +01:00
.search-provider-title, .search-provider-content {
2024-02-16 18:43:15 +01:00
float: left;
}
}
2024-02-27 18:40:45 +01:00
.search-provider-content {
a.search-provider-record {
2024-02-19 18:57:13 +01:00
display: flex;
align-items: center;
2024-03-07 09:26:16 +01:00
padding: 8px;
margin-top: 8px;
2024-02-29 10:49:18 +01:00
&:hover, &:focus {
2024-02-19 18:57:13 +01:00
background: #f8f8f8;
border-radius: 3px;
2024-02-29 10:49:18 +01:00
outline: none;
2024-02-19 18:57:13 +01:00
}
2024-02-27 18:40:45 +01:00
.search-provider-record-image {
2024-02-19 18:57:13 +01:00
width: 36px;
flex: 0 0 36px;
> i {
font-size: 32px;
color: @info;
}
}
2024-02-27 18:40:45 +01:00
.search-provider-record-text {
2024-03-07 09:26:16 +01:00
font-size: 16px;
font-weight: 500;
padding-left: 16px;
2024-02-19 18:57:13 +01:00
flex: 1;
min-width: 0;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
2024-02-27 18:40:45 +01:00
.highlight {
background: transparent;
font-weight: 800;
color: #333;
}
.search-provider-record-desc {
2024-02-19 18:57:13 +01:00
display: block;
2024-03-07 09:26:16 +01:00
font-size: 14px;
2024-02-19 18:57:13 +01:00
font-weight: 400;
color: #555;
text-overflow: ellipsis;
overflow: hidden;
2024-02-27 18:40:45 +01:00
.highlight {
font-weight: 700;
}
2024-02-19 18:57:13 +01:00
}
}
}
}
2024-02-27 18:40:45 +01:00
.search-provider-no-results {
margin-top: 15px;
}
2024-03-07 09:26:16 +01:00
.search-provider-actions {
padding: 16px 8px 0;
}
2024-02-27 18:40:45 +01:00
.search-provider-show-all {
2024-02-16 18:43:15 +01:00
width: 100%;
2024-03-07 09:26:16 +01:00
color: #555 !important;
background: #F3F3F3;
&:hover, &:active, &:focus {
2024-02-19 18:57:13 +01:00
background: #d7d7d7;
2024-03-07 09:26:16 +01:00
box-shadow: none;
2024-02-19 18:57:13 +01:00
}
2024-02-16 18:43:15 +01:00
}
}
}
2024-02-27 15:09:11 +01:00
.open > #dropdown-search.dropdown-menu {
display: flex;
flex-direction: column;
}
2024-02-27 12:13:14 +01:00
.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;
2024-03-01 11:44:36 +01:00
position: relative;
2024-02-27 12:13:14 +01:00
}
}
2024-02-27 18:40:45 +01:00
@media (max-width: 390px) {
.dropdown.search-menu {
position: initial;
}
#dropdown-search.dropdown-menu {
width: 100%;
min-width: initial;
2024-02-27 18:40:45 +01:00
.dropdown-header .arrow {
right: 25px;
}
}
}