Skip to content

Commit

Permalink
Set style to error text.
Browse files Browse the repository at this point in the history
Signed-off-by: leozhang2018 <[email protected]>
  • Loading branch information
leozhang2018 committed Nov 17, 2021
1 parent ca1c03b commit 2e5bb05
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion custom-web/static/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,15 @@ a {
}

.login .login-inner-form .form-group {
margin-bottom: 25px;
margin-bottom: 15px;
text-align: left;
}

.login .login-inner-form .error-text {
margin-bottom: 5px;
color: #f56c6c;
}

.login .login-inner-form .input-text {
width: 100%;
height: 45px;
Expand Down
2 changes: 1 addition & 1 deletion custom-web/templates/password.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<input required id="password" name="password" type="password" class="form-control" placeholder="请输入密码" {{ if .Invalid }} autofocus {{ end }}/>
</div>
{{ if .Invalid }}
<p class="text-left">{{ .UsernamePrompt }} 和密码不正确</p>
<p class="text-left error-text">{{ .UsernamePrompt }}和密码不正确</p>
{{ end }}
<button type="submit" class="btn btn-primary btn-md btn-block">登录</button>
</form>
Expand Down

0 comments on commit 2e5bb05

Please sign in to comment.