12 Star 68 Fork 16

xhhhhh/uni-app-style

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
input.scss 1.16 KB
一键复制 编辑 原始数据 按行查看 历史
theBestXH 提交于 2020-10-06 10:00 . first commit
@mixin flex {
display: flex;
align-items: center;
}
@mixin name {
.name {
min-width: 120upx;
padding-right: 20upx;
&.required:before {
content: '*';
color: #fe6367;
}
&:after {
content: ':';
}
}
}
@mixin icon {
.icon {
font-size: 40upx;
padding-right: 20upx;
}
}
@mixin input {
input,
textarea {
-webkit-appearance: none;
flex: 1;
width: 100%;
height: 100%;
background-color: transparent;
color: #999999;
&::-webkit-input-placeholder {
color: #999999;
}
&:disabled {
-webkit-opacity: 1;
-webkit-text-fill-color: #999999;
background-color: transparent;
color: #999999;
}
}
}
.input {
&-small {
@include flex;
@include name;
@include icon;
@include input;
height: 60upx;
}
&-medium {
@include flex;
@include name;
@include icon;
@include input;
height: 80upx;
}
&-large {
@include flex;
@include name;
@include icon;
@include input;
height: 90upx;
}
}
.textarea {
@include flex;
@include name;
@include icon;
@include input;
align-items: flex-start;
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
CSS
1
https://gitee.com/thebestweb/uni-app-style.git
git@gitee.com:thebestweb/uni-app-style.git
thebestweb
uni-app-style
uni-app-style
master

搜索帮助