12 Star 70 Fork 14

xhhhhh / uni-app-style

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
input.scss 1.16 KB
Copy Edit Raw Blame History
theBestXH authored 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;
}
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

Search