MCBBS Wiki欢迎您共同参与编辑!在参与编辑之前请先阅读Wiki方针

如果在编辑的过程中遇到了什么问题,可以去讨论板提问。

为了您能够无阻碍地参与编辑 未验证/绑定过邮箱的用户,请尽快绑定/验证

MCBBS Wiki GitHub群组已上线!

您可以在回声洞中发表吐槽!

服务器状态监控。点击进入

本站由MCBBS用户自行搭建,与MCBBS及东银河系漫游指南(北京)科技有限公司没有从属关系。点此了解 MCBBS Wiki 不是什么>>

用户:CrablePotion/CSS/动态搜索栏.css

来自MCBBS Wiki
CrablePotion留言 | 贡献2023年4月27日 (四) 19:35的版本 (// Edit via Wikiplus)
跳到导航 跳到搜索

.vector-search-box-input {

   color: #000000;
   height: 2.45384615em;
   box-sizing: border-box;
   border: 2px solid #a2a9b1;
   border-radius: 4px;
   box-shadow: inset 0 0 0 1px transparent;
   font-size: 0.8125em;
   direction: ltr;
   transition: border-color 250ms ease-in-out, box-shadow 250ms ease-in-out;
   width: 60%;
   background-color: #fdf6e6;
   background-position: 10px 10px;
   background-repeat: no-repeat;
   padding: 0 0 0 6px;

}

.vector-search-box-input:focus {

   width: 100%;

}

.searchButton {

   position: absolute;
   bottom: 1px;
   right: 40%;
   min-width: 28px;
   width: 2.45384615em;
   border: none;
   padding: 0;
   cursor: pointer;
   font-size: 0.8125em;
   direction: ltr;
   text-indent: -99999px;
   white-space: nowrap;
   overflow: hidden;
   z-index: 1;
   transition: all 0.4s ease-in-out;

}

.vector-search-box-input:focus~.searchButton {

   right: 0;

}