Changeset - 4c2d11e8d7cb
[Not reviewed]
default
0 1 0
Mads Kiilerich - 8 years ago 2017-06-17 23:36:12
mads@kiilerich.com
style: restore styling for 'error-message' class, used by formencode htmlfill

35d3a85fc650 removed some CSS styling that still is needed for reporting
errors, for example invalid username/password in the login form.

The htmlfill library injects messages with 'error-message' class on errors,
like:
<span class="error-message">Please enter an integer value</span>

There is however nothing that adds the 'success' class.
1 file changed with 9 insertions and 8 deletions:
0 comments (0 inline, 0 general)
kallithea/public/css/style.css
Show inline comments
 
@@ -2380,6 +2380,8 @@ nav.navbar #quick .select2-container .se
 
    margin: 10px 24px 10px 44px;
 
}
 

	
 

	
 
/* formencode htmlfill adds 'error' to failing input fields */
 
#content div.panel div.form div.form-horizontal div.form-group > div input.error,
 
#login div.form div.form-horizontal div.form-group > div input.error,
 
#register div.form div.form-horizontal div.form-group > div input.error {
 
@@ -2390,14 +2392,13 @@ nav.navbar #quick .select2-container .se
 
    border-bottom: 1px solid #FBC2C4;
 
}
 

	
 
#content div.panel div.form div.form-horizontal div.form-group > div input.success,
 
#login div.form div.form-horizontal div.form-group > div input.success,
 
#register div.form div.form-horizontal div.form-group > div input.success {
 
    background: #E6EFC2;
 
    border-top: 1px solid #cebb98;
 
    border-left: 1px solid #cebb98;
 
    border-right: 1px solid #c6d880;
 
    border-bottom: 1px solid #c6d880;
 
/* formencode htmlfill injects 'error-message' */
 
#content div.panel div.form div.form-horizontal div.form-group span.error-message,
 
#login div.form div.form-horizontal div.form-group span.error-message,
 
#register div.form div.form-horizontal div.form-group span.error-message {
 
    display: inline-block;
 
    color: red;
 
    margin: 4px 0 0;
 
}
 

	
 
#content div.panel table th.selected input,
0 comments (0 inline, 0 general)