src/style/widget/weui-searchbar/weui-searchbar.less
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
@import "../../base/fn";
.weui-search-bar {
position: relative;
padding: 8px 10px;
display: flex;
box-sizing: border-box;
background-color: #EFEFF4;
&:before {
.setTopLine(#D7D6DC);
}
&:after {
.setBottomLine(#D7D6DC);
}
&.weui-search-bar_focusing{
.weui-search-bar__cancel-btn{
display: block;
}
.weui-search-bar__label{
display: none;
}
}
}
.weui-search-bar__form {
position: relative;
flex: auto;
background-color: #EFEFF4;
&:after{
content: '';
position: absolute;
left: 0;
top:0;
width: 200%;
height: 200%;
transform: scale(.5);
transform-origin: 0 0;
border-radius: 10px;
border: 1px solid #E6E6EA;
box-sizing: border-box;
background: #FFFFFF;
}
}
.weui-search-bar__box {
position: relative;
padding-left: 30px;
padding-right: 30px;
height: 100%;
width: 100%;
box-sizing: border-box;
z-index: 1;
.weui-search-bar__input {
padding: 4px 0;
width: 100%;
height: 20/14em;
border: 0;
font-size: 14px;
line-height: 20/14em;
box-sizing: content-box;
background: transparent;
&:focus {
outline: none;
后面还有 54 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。