用户:CrablePotion/CSS/动态搜索栏.css:修订间差异
< 用户:CrablePotion | CSS
CrablePotion(留言 | 贡献) 小 (// Edit via Wikiplus) |
CrablePotion(留言 | 贡献) 小无编辑摘要 |
||
| (未显示同一用户的5个中间版本) | |||
| 第1行: | 第1行: | ||
.vector-search-box-input { | .vector-search-box-input { | ||
color: #000; | |||
height: 2.45em; | |||
border: 2px solid #a2a9b1; | |||
border-radius: 4px; | |||
background-color: #fdf6e6; | |||
padding: 0 0 0 6px; | |||
box-sizing: border-box; | |||
font-size: 0.8125rem; | |||
width: 60%; | |||
transition: all 0.4s ease-in-out; | |||
} | } | ||
.vector-search-box-input:focus { | .vector-search-box-input:focus { | ||
width: 100%; | |||
} | } | ||
.searchButton { | .searchButton { | ||
position: absolute; | |||
bottom: 1px; | |||
right: 40%; | |||
min-width: 28px; | |||
width: 2.45em; | |||
text-indent: -99999px; | |||
white-space: nowrap; | |||
overflow: hidden; | |||
cursor: pointer; | |||
z-index: 1; | |||
transition: all 0.4s ease-in-out; | |||
} | } | ||
.vector-search-box-input:focus~.searchButton { | .vector-search-box-input:focus~.searchButton { | ||
right: 0; | |||
} | } | ||
2023年5月9日 (二) 21:28的最新版本
.vector-search-box-input {
color: #000;
height: 2.45em;
border: 2px solid #a2a9b1;
border-radius: 4px;
background-color: #fdf6e6;
padding: 0 0 0 6px;
box-sizing: border-box;
font-size: 0.8125rem;
width: 60%;
transition: all 0.4s ease-in-out;
}
.vector-search-box-input:focus {
width: 100%;
}
.searchButton {
position: absolute;
bottom: 1px;
right: 40%;
min-width: 28px;
width: 2.45em;
text-indent: -99999px;
white-space: nowrap;
overflow: hidden;
cursor: pointer;
z-index: 1;
transition: all 0.4s ease-in-out;
}
.vector-search-box-input:focus~.searchButton {
right: 0;
}