全文检索移动端适配

This commit is contained in:
结发受长生
2019-07-08 21:14:40 +08:00
parent 0917a4c8ed
commit 0e94c2d863
5 changed files with 97 additions and 59 deletions
+16
View File
@@ -341,4 +341,20 @@
}
}
}
}
#search-panel {
width: 100%;
height: 100%;
top: 0;
left: 0;
transform: none;
.search-container {
display: flex;
width: 100%;
height: 100%;
flex-direction: column;
.search-result {
flex-grow: 1;
}
}
}
+2 -3
View File
@@ -61,7 +61,6 @@
&.in {
display: block;
visibility: visible;
opacity: 1;
}
@@ -79,7 +78,7 @@
}
.mask {
visibility: hidden;
display: none;
position: fixed;
top: 0;
left: 0;
@@ -93,7 +92,7 @@
pointer-events: none;
transition: .3s ease-in-out;
&.in {
visibility: visible;
display: block;
pointer-events: auto;
opacity: .3;
}
+15 -10
View File
@@ -245,13 +245,12 @@ label.bui-switch-label {
}
}
.js-search-box {
#search-panel {
width: 500px;
top: 10%;
transform: translate(-50%,0);
.search {
border-bottom: 1px solid #ccc;
background: #f5f5f5;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
width: 500px;
display: flex;
line-height: 40px;
.search-input-icon {
@@ -269,9 +268,9 @@ label.bui-switch-label {
}
}
.search-result {
height: 600px;
width: 500px;
max-height: 600px;
overflow-y: auto;
position: relative;
.search-result-item {
text-align: left;
border-bottom: 1px dashed $colorC;
@@ -280,10 +279,16 @@ label.bui-switch-label {
border-bottom-color: $colorA;
}
}
.tip {
text-align: center;
}
.more-item {
cursor: pointer;
text-align: center;
transform: rotate(180deg)
}
transform: rotate(180deg) translateY(60px);
background: linear-gradient(-180deg,$colorBg 10%,rgba(255, 255, 255, 0) 100%);
position: absolute;
height: 70px;
width: 100%;
}
}
}