Skip to content

Commit

Permalink
Fix CSS class override for admin forms. Fixes #2404
Browse files Browse the repository at this point in the history
applies white color to error message text so that it is more visible on
the red background.
  • Loading branch information
atodorov committed Jul 10, 2021
1 parent 09b9ba6 commit 117bca1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 7 additions & 2 deletions tcms/static/style/patternfly_override.css
Expand Up @@ -12,8 +12,13 @@ nav.navbar-default { border-top-color: #3C8D2C; }

/* continue with styles for Kiwi TCMS */

/* todo: used in form error messages, can be improved */
.errorlist { background: #AF2B2B; border:1px solid #6F1B1B; color:#FFF; font-weight:bold; }
/* used in regular/admin form error messages */
.errorlist, p.errornote + ul.errorlist {
background: #AF2B2B;
border:1px solid #6F1B1B;
color:#FFF;
font-weight:bold;
}

/* typeahead.js styling for autocomplete */
.tt-menu {
Expand Down
3 changes: 2 additions & 1 deletion tcms/templates/admin/base_site.html
Expand Up @@ -10,7 +10,8 @@
{% endblock %}

{% block extrastyle %}
<link rel="stylesheet" type="text/css" href="{% static 'style/admin.css' %}" media="screen" />
<link rel="stylesheet" type="text/css" href="{% static 'style/admin.css' %}" media="screen">
<link rel="stylesheet" href="{% static 'style/patternfly_override.css' %}">
{% endblock %}

{% block javascripts %}
Expand Down

0 comments on commit 117bca1

Please sign in to comment.