开始改造搜索框

This commit is contained in:
结发受长生 2019-05-17 08:03:49 +08:00
parent 559c17ef0d
commit d0b854e9a3
3 changed files with 23 additions and 8 deletions

View File

@ -34,9 +34,6 @@ html, body, #container {
}
.tools-wrap, .tools-section {
width: 300px;
.search-wrap {
width: 280px;
}
.search-tag.tagcloud {
margin-right: -30px;
}

View File

@ -45,6 +45,6 @@
width: 130px;
height: 130px;
border: 6px solid $colorBorder;
border-radius: 3px;
border-radius: $radiusSmall;
}
}

View File

@ -33,20 +33,20 @@
}
.tools-section {
.search-wrap {
width: 310px;
margin: 20px 20px 10px 20px;
position: relative;
border-bottom: 2px solid $colorF;
cursor: text;
.search-ipt {
width: 310px;
width: 50px;
color: $colorF;
background: none;
border: none;
border-bottom: 2px solid $colorF;
}
.icon {
position: absolute;
right: 0;
top: 7px;
bottom: 7px;
color: $colorF;
cursor: pointer;
@extend %trans;
@ -54,6 +54,24 @@
transform: scale(1.2);
}
}
.search-item {
border: 1px solid $colorF;
padding-left: 5px;
line-height: 1.4em;
display: inline-block;
border-radius: $radiusBase;
&::after {
content: "x";
border-left: 1px solid $colorF;
width: 20px;
height: 20px;
display: inline-block;
margin: 3px 0 3px 3px;
line-height: 20px;
text-align: center;
cursor: pointer;
}
}
::-webkit-input-placeholder {
color: #ededed;
}