2020-12-01 16:51:38 +08:00
|
|
|
$icon-size = 1.2rem;
|
2020-03-29 19:54:28 +08:00
|
|
|
|
|
|
|
.search-pop-overlay {
|
|
|
|
position: fixed;
|
2020-12-30 20:09:46 +08:00
|
|
|
display: flex;
|
2020-04-02 22:07:55 +08:00
|
|
|
height: 100%;
|
2020-03-29 19:54:28 +08:00
|
|
|
width: 100%;
|
2020-12-30 20:09:46 +08:00
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
background: rgba(0, 0, 0, 0);
|
|
|
|
visibility: hidden;
|
2020-09-05 22:41:10 +08:00
|
|
|
z-index: $z-index-8;
|
2020-03-29 19:54:28 +08:00
|
|
|
|
2020-12-30 20:09:46 +08:00
|
|
|
transition();
|
|
|
|
|
|
|
|
&.active {
|
|
|
|
background: rgba(0, 0, 0, 0.38);
|
|
|
|
visibility: visible;
|
|
|
|
|
|
|
|
.search-popup {
|
|
|
|
transform: scale(1);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2020-03-29 19:54:28 +08:00
|
|
|
|
2020-12-01 16:51:38 +08:00
|
|
|
.search-popup {
|
|
|
|
background: var(--background-color);
|
2020-12-30 20:09:46 +08:00
|
|
|
border-radius: 5px;
|
2020-12-01 16:51:38 +08:00
|
|
|
height: 80%;
|
|
|
|
width: 70%;
|
2020-12-30 20:09:46 +08:00
|
|
|
margin: auto;
|
|
|
|
transform: scale(0);
|
2020-12-01 16:51:38 +08:00
|
|
|
z-index: $z-index-6;
|
2020-12-30 20:09:46 +08:00
|
|
|
transition();
|
2020-06-04 22:11:27 +08:00
|
|
|
|
2020-12-01 16:51:38 +08:00
|
|
|
+keep-tablet() {
|
|
|
|
width: 80%;
|
|
|
|
}
|
2020-06-04 22:11:27 +08:00
|
|
|
|
2020-12-01 16:51:38 +08:00
|
|
|
+keep-mobile() {
|
|
|
|
width: 90%;
|
|
|
|
}
|
2020-04-07 11:57:53 +08:00
|
|
|
|
2020-12-01 16:51:38 +08:00
|
|
|
.search-header {
|
|
|
|
background: var(--fourth-text-color);
|
|
|
|
border-top-left-radius: 2px;
|
|
|
|
border-top-right-radius: 2px;
|
|
|
|
display: flex;
|
|
|
|
padding: 10px;
|
|
|
|
|
2020-12-30 18:56:43 +08:00
|
|
|
.search-input-field-pre, .popup-btn-close {
|
2020-12-01 16:51:38 +08:00
|
|
|
font-size: $icon-size;
|
|
|
|
padding: 0 10px;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
}
|
2020-03-29 19:54:28 +08:00
|
|
|
|
2020-12-30 18:56:43 +08:00
|
|
|
.search-input-field-pre {
|
|
|
|
cursor: pointer;
|
2020-12-01 16:51:38 +08:00
|
|
|
color: var(--third-text-color);
|
|
|
|
}
|
2020-03-29 19:54:28 +08:00
|
|
|
|
2020-12-01 16:51:38 +08:00
|
|
|
.popup-btn-close {
|
|
|
|
color: var(--default-text-color);
|
|
|
|
}
|
2020-03-29 19:54:28 +08:00
|
|
|
|
|
|
|
|
2020-12-01 16:51:38 +08:00
|
|
|
.search-input-container {
|
2020-03-29 19:54:28 +08:00
|
|
|
|
2020-12-01 16:51:38 +08:00
|
|
|
flex-grow: 1;
|
|
|
|
padding: 2px;
|
2020-03-29 19:54:28 +08:00
|
|
|
|
2020-12-01 16:51:38 +08:00
|
|
|
.search-input {
|
|
|
|
background: transparent;
|
|
|
|
border: 0;
|
|
|
|
outline: 0;
|
|
|
|
width: 100%;
|
|
|
|
font-size: 1.2rem;
|
|
|
|
color: var(--default-text-color);
|
2020-03-29 19:54:28 +08:00
|
|
|
|
2020-12-01 16:51:38 +08:00
|
|
|
&::-webkit-search-cancel-button {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2020-03-29 19:54:28 +08:00
|
|
|
|
2020-04-02 22:07:55 +08:00
|
|
|
|
2020-12-01 16:51:38 +08:00
|
|
|
}
|
2020-03-29 19:54:28 +08:00
|
|
|
|
2020-04-12 00:03:22 +08:00
|
|
|
|
2020-12-01 16:51:38 +08:00
|
|
|
.popup-btn-close {
|
|
|
|
cursor: pointer;
|
2020-04-12 00:03:22 +08:00
|
|
|
|
2020-12-01 16:51:38 +08:00
|
|
|
&:hover .fas, far, fab {
|
|
|
|
color: var(--first-text-color);
|
|
|
|
}
|
2020-04-12 00:03:22 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2020-03-29 19:54:28 +08:00
|
|
|
|
|
|
|
|
2020-12-01 16:51:38 +08:00
|
|
|
#search-result {
|
|
|
|
display: flex;
|
|
|
|
height: calc(100% - 55px);
|
|
|
|
overflow: auto;
|
|
|
|
padding: 5px 25px;
|
|
|
|
|
|
|
|
.search-result-list {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
font-size: 1rem;
|
|
|
|
|
|
|
|
li {
|
|
|
|
border-bottom: 1px dashed var(--border-color);
|
|
|
|
padding: 10px 0;
|
|
|
|
margin: 10px 0;
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
border-bottom: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.search-result-title {
|
|
|
|
position: relative;
|
|
|
|
font-weight: bold;
|
|
|
|
margin-bottom: 10px;
|
|
|
|
padding-left: 16px;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
width: 5px;
|
|
|
|
height: 5px;
|
|
|
|
border-radius: 50%;
|
|
|
|
top: 50%;
|
|
|
|
transform: translateY(-50%);
|
|
|
|
left: 0;
|
|
|
|
background: var(--default-text-color);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.search-result {
|
|
|
|
line-height: 2rem;
|
|
|
|
margin: 0;
|
|
|
|
padding-left: 16px;
|
2021-01-08 10:27:00 +08:00
|
|
|
word-wrap: break-word;
|
2020-12-01 16:51:38 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
&:hover {
|
|
|
|
color: var(--default-text-color);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.search-keyword {
|
|
|
|
border-bottom: 1px dashed var(--primary-color);
|
|
|
|
color: var(--primary-color);
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
2020-03-29 19:54:28 +08:00
|
|
|
|
|
|
|
|
2020-12-01 16:51:38 +08:00
|
|
|
#no-result {
|
|
|
|
color: var(--third-text-color);
|
|
|
|
margin: auto;
|
|
|
|
}
|
2020-03-29 19:54:28 +08:00
|
|
|
|
2020-12-01 16:51:38 +08:00
|
|
|
}
|
2020-03-29 19:54:28 +08:00
|
|
|
}
|
2020-09-03 14:54:46 +08:00
|
|
|
}
|
2020-12-01 16:51:38 +08:00
|
|
|
|