2020-04-07 11:57:53 +08:00
|
|
|
$icon-size = 1.2em;
|
2020-03-29 19:54:28 +08:00
|
|
|
|
|
|
|
.search-pop-overlay {
|
|
|
|
display: none;
|
|
|
|
position: fixed;
|
2020-04-02 22:07:55 +08:00
|
|
|
left: 0;
|
2020-03-29 19:54:28 +08:00
|
|
|
top: 0;
|
2020-04-02 22:07:55 +08:00
|
|
|
height: 100%;
|
2020-03-29 19:54:28 +08:00
|
|
|
width: 100%;
|
2020-04-02 22:07:55 +08:00
|
|
|
background: rgba(0, 0, 0, 0.4);
|
2020-09-05 22:41:10 +08:00
|
|
|
z-index: $z-index-8;
|
2020-03-29 19:54:28 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.search-popup {
|
2020-04-02 22:07:55 +08:00
|
|
|
background: var(--background-color);
|
|
|
|
border-radius: 2px;
|
2020-03-29 19:54:28 +08:00
|
|
|
height: 80%;
|
2020-04-02 22:07:55 +08:00
|
|
|
left: 50%;
|
|
|
|
transform: translateX(-50%);
|
2020-03-29 19:54:28 +08:00
|
|
|
position: fixed;
|
|
|
|
top: 10%;
|
2020-04-02 22:07:55 +08:00
|
|
|
width: 70%;
|
2020-03-29 19:54:28 +08:00
|
|
|
|
2020-11-20 12:02:22 +08:00
|
|
|
+keep-tablet() {
|
2020-06-04 22:11:27 +08:00
|
|
|
width: 80%;
|
|
|
|
}
|
|
|
|
|
2020-11-20 12:02:22 +08:00
|
|
|
+keep-mobile() {
|
2020-06-04 22:11:27 +08:00
|
|
|
width: 90%;
|
|
|
|
}
|
|
|
|
|
|
|
|
z-index: $z-index-6;
|
2020-04-07 11:57:53 +08:00
|
|
|
|
2020-03-29 19:54:28 +08:00
|
|
|
.search-icon, .popup-btn-close {
|
2020-11-18 11:56:47 +08:00
|
|
|
color: var(--default-text-color);
|
2020-03-29 19:54:28 +08:00
|
|
|
font-size: $icon-size;
|
|
|
|
padding: 0 10px;
|
2020-04-07 11:57:53 +08:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2020-03-29 19:54:28 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.popup-btn-close {
|
|
|
|
cursor: pointer;
|
|
|
|
|
2020-11-24 10:55:24 +08:00
|
|
|
&:hover .fas, far, fab {
|
2020-04-02 22:07:55 +08:00
|
|
|
color: var(--first-text-color);
|
2020-03-29 19:54:28 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.search-header {
|
2020-04-30 00:34:31 +08:00
|
|
|
background: var(--fourth-text-color);
|
2020-04-02 22:07:55 +08:00
|
|
|
border-top-left-radius: 2px;
|
|
|
|
border-top-right-radius: 2px;
|
2020-03-29 19:54:28 +08:00
|
|
|
display: flex;
|
|
|
|
padding: 10px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
input.search-input {
|
|
|
|
background: transparent;
|
|
|
|
border: 0;
|
|
|
|
outline: 0;
|
|
|
|
width: 100%;
|
2020-04-07 11:57:53 +08:00
|
|
|
font-size: 1.2em;
|
2020-11-18 11:56:47 +08:00
|
|
|
color: var(--default-text-color);
|
2020-03-29 19:54:28 +08:00
|
|
|
|
|
|
|
&::-webkit-search-cancel-button {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.search-popup {
|
2020-04-02 22:07:55 +08:00
|
|
|
|
2020-03-29 19:54:28 +08:00
|
|
|
.search-input-container {
|
|
|
|
flex-grow: 1;
|
|
|
|
padding: 2px;
|
|
|
|
}
|
|
|
|
|
|
|
|
ul.search-result-list {
|
2020-04-02 22:07:55 +08:00
|
|
|
margin: 10px 5px;
|
2020-03-29 19:54:28 +08:00
|
|
|
width: 100%;
|
2020-04-12 00:03:22 +08:00
|
|
|
|
|
|
|
li {
|
|
|
|
border-bottom: 1px solid var(--border-color);
|
|
|
|
margin-bottom: 20px;
|
|
|
|
|
|
|
|
a {
|
|
|
|
display: block;
|
|
|
|
margin-bottom: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:last-child {
|
2020-09-03 14:54:46 +08:00
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2020-04-12 00:03:22 +08:00
|
|
|
}
|
2020-03-29 19:54:28 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
p.search-result {
|
2020-04-12 00:03:22 +08:00
|
|
|
margin 0
|
|
|
|
padding 0
|
2020-03-29 19:54:28 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
a.search-result-title {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
.search-keyword {
|
2020-04-02 22:07:55 +08:00
|
|
|
border-bottom: 1px dashed var(--primary-color);
|
|
|
|
color: var(--primary-color);
|
2020-03-29 19:54:28 +08:00
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
#search-result {
|
|
|
|
display: flex;
|
|
|
|
height: calc(100% - 55px);
|
|
|
|
overflow: auto;
|
|
|
|
padding: 5px 25px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#no-result {
|
2020-04-02 22:07:55 +08:00
|
|
|
color: var(--third-text-color);
|
2020-03-29 19:54:28 +08:00
|
|
|
margin: auto;
|
|
|
|
}
|
2020-09-03 14:54:46 +08:00
|
|
|
}
|