siyuan/app/src/assets/scss/component/_form.scss

123 lines
2 KiB
SCSS

.b3-form {
&__space {
margin: 16px 24px;
&--small {
margin: 8px 16px;
}
}
&__icon {
position: relative;
color: var(--b3-theme-on-surface);
&-icon {
position: absolute;
left: 9px;
top: 6px;
height: 16px;
width: 16px;
}
&-input {
padding-left: 35px !important;
}
&--small {
.b3-form__icon-icon {
left: 5px;
top: 4px;
height: 14px;
width: 14px;
}
.b3-form__icon-input {
padding-left: 25px !important;
}
}
}
&__icona {
position: relative;
color: var(--b3-theme-on-surface);
&-icon {
position: absolute;
right: 1px;
top: 1px;
height: 16px;
width: 16px;
cursor: pointer;
padding: 5px;
&:hover {
color: var(--b3-theme-on-background);
background-color: var(--b3-list-icon-hover);
}
}
&-input {
width: 100%;
padding-right: 35px !important;
}
}
&__img {
position: relative;
img {
position: absolute;
left: 1px;
top: 1px;
height: 28px;
border-radius: var(--b3-border-radius) 0 0 var(--b3-border-radius);
}
input {
padding-left: 93px;
}
}
&__upload {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
opacity: .001;
overflow: hidden;
cursor: pointer
}
}
.b3-label {
border-bottom: 1px solid var(--b3-border-color);
padding: 16px 24px;
line-height: 20px;
&__text {
// import 的话会导致设置关于中 ft__error 无效
color: var(--b3-theme-on-surface);
font-size: 14px !important;
margin-top: 4px;
overflow: hidden !important;
}
&__icon {
width: 36px;
height: 36px;
align-self: center;
margin-right: 16px;
color: var(--b3-theme-on-surface);
}
&--inner {
border-bottom: 0;
padding: 0 !important;
}
&:last-child,
&--noborder {
border-bottom: 0;
}
}