u
This commit is contained in:
1 parent
261a263180
commit
de2351e1b2
10 files changed
+269
-119
No files matched your search
@@ -0,0 +1,38 @@
|
||||
@use '../_styles/theme/index' as *;
|
||||
@use 'sass:color';
|
||||
|
||||
$textarea-prefix: #{$prefix}-textarea;
|
||||
|
||||
.#{$textarea-prefix}-wrapper {
|
||||
width: 100%;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 2px;
|
||||
box-sizing: border-box;
|
||||
position: relative;
|
||||
padding: 0;
|
||||
|
||||
&:hover {
|
||||
border-color: $input-hover-color;
|
||||
}
|
||||
|
||||
&:focus-within {
|
||||
border-color: $input-focus-color;
|
||||
box-shadow: $input-focus-shadow;
|
||||
}
|
||||
|
||||
.#{$textarea-prefix}-inner {
|
||||
width: 100%;
|
||||
min-height: 80px; // 可根据需要
|
||||
padding: 8px; // 内边距
|
||||
border: none; // 去掉默认边框
|
||||
outline: none;
|
||||
resize: vertical;
|
||||
box-sizing: border-box;
|
||||
font-size: 13px;
|
||||
color: #000;
|
||||
|
||||
&::placeholder {
|
||||
color: #999999;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user