angular-docs-cn/public/docs/_examples/cb-form-validation/ts/forms.css

8 lines
163 B
CSS

.ng-valid[required], .ng-valid.required {
border-left: 5px solid #42A948; /* green */
}
.ng-invalid:not(form) {
border-left: 5px solid #a94442; /* red */
}