Skip to content

Commit f91af93

Browse files
committed
refactor: 增加验证样式
1 parent 1f8ce14 commit f91af93

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

  • src/components/BootstrapBlazor.SummerNote/wwwroot/css

src/components/BootstrapBlazor.SummerNote/wwwroot/css/editor.css

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.editor .editor-body {
1+
.editor .editor-body {
22
cursor: pointer;
33
min-height: 50px;
44
height: auto;
@@ -58,6 +58,16 @@
5858
display: block;
5959
}
6060

61+
.editor.is-invalid .note-frame,
62+
.editor.is-invalid > .form-control {
63+
border: 1px solid var(--bs-danger) !important;
64+
}
65+
66+
.editor.is-valid .note-frame,
67+
.editor.is-valid > .form-control {
68+
border: 1px solid var(--bs-success) !important;
69+
}
70+
6171
.modal-body .note-form-group:not(:last-child) {
6272
margin-bottom: 0.5rem;
6373
}

0 commit comments

Comments
 (0)