fix(identity): draw intro list markers inside list items

This commit is contained in:
2026-10-04 22:51:21 +08:00
parent d6e3b377b4
commit 8fcb136d55
2 changed files with 23 additions and 15 deletions
+23 -8
View File
@@ -612,19 +612,34 @@
}
.uc-auth-form { margin: 0; }
.uc-auth-form__scroll { max-height: 50vh; max-height: 50dvh; }
/* 申请介绍的列表:标记随列表项内容一起绘制(悬挂缩进),
不会被外层滚动区的左边界裁掉一半。 */
.uc-auth-intro ul,
.uc-auth-intro ol {
margin: .6em 0 1em;
padding-left: 1.5em;
padding-left: 0;
list-style: none !important;
}
.uc-auth-intro ul { list-style: disc outside; }
.uc-auth-intro ol { list-style: decimal outside; }
.uc-auth-intro li { margin-bottom: .35em; }
.uc-auth-form__scroll .uc-auth-intro ul,
.uc-auth-form__scroll .uc-auth-intro ol {
padding-left: .5em;
list-style-position: inside;
.uc-auth-intro li {
margin-bottom: .35em;
padding-left: 1.25em;
text-indent: -1.25em;
}
.uc-auth-intro li::before {
content: "\2022";
display: inline-block;
width: 1.25em;
text-indent: 0;
}
.uc-auth-intro ol { counter-reset: uc-auth-intro; }
.uc-auth-intro ol li::before {
content: counter(uc-auth-intro) ".";
counter-increment: uc-auth-intro;
width: auto;
min-width: 1.25em;
}
.uc-auth-intro li > ul,
.uc-auth-intro li > ol { margin: .35em 0 0 1.25em; }
.uc-auth-field { display: block; color: var(--muted-2-color); font-size: .9em; font-weight: 400; }
.uc-auth-field__label { display: block; margin-bottom: 6px; }
.uc-auth-form .form-control { width: 100%; box-sizing: border-box; }