Permalink
Browse files

Updated admin alert colors

refs #21220.
  • Loading branch information...
Ryan Allen authored and timgraham committed Oct 7, 2013
1 parent ec0e780 commit f719d4afc74e750b34247a574f800598c3daf1cc
Showing with 41 additions and 27 deletions.
  1. +41 −27 django/contrib/admin/static/admin/css/base.css
@@ -512,54 +512,63 @@ textarea, select, .vTextField {
/* MESSAGES & ERRORS */
ul.messagelist {
- padding: 0 0 5px 0;
+ padding: 0;
margin: 0;
}
ul.messagelist li {
font-size: 12px;
+ font-weight: bold;
display: block;
- padding: 4px 5px 4px 25px;
+ padding: 5px 5px 4px 25px;
margin: 0 0 3px 0;
border-bottom: 1px solid #ddd;
color: #666;
- background: #ffc url(../img/icon_success.gif) 5px .3em no-repeat;
+ background: #dfd url(../img/icon_success.gif) 5px .3em no-repeat;
}
-ul.messagelist li.warning{
- background-image: url(../img/icon_alert.gif);
+ul.messagelist li.warning {
+ background: #ffc url(../img/icon_alert.gif) 5px .3em no-repeat;
}
-ul.messagelist li.error{
- background-image: url(../img/icon_error.gif);
+ul.messagelist li.error {
+ background: #ffefef url(../img/icon_error.gif) 5px .3em no-repeat;
}
.errornote {
font-size: 12px !important;
+ font-weight: bold;
display: block;
- padding: 4px 5px 4px 25px;
+ padding: 5px 5px 4px 25px;
margin: 0 0 3px 0;
- border: 1px solid red;
- color: red;
- background: #ffc url(../img/icon_error.gif) 5px .3em no-repeat;
+ border: 1px solid #c22;
+ color: #c11;
+ background: #ffefef url(../img/icon_error.gif) 5px .38em no-repeat;
+}
+
+.errornote, ul.errorlist {
+ border-radius: 1px;
}
ul.errorlist {
- margin: 0 !important;
+ margin: 0 0 4px !important;
padding: 0 !important;
+ color: #fff;
+ background: #c11;
}
-.errorlist li {
+ul.errorlist li {
font-size: 12px !important;
display: block;
- padding: 4px 5px 4px 25px;
- margin: 0 0 3px 0;
- border: 1px solid red;
- color: #fff;
- background: red url(../img/icon_alert.gif) 5px .3em no-repeat;
+ padding: 5px 5px 4px 7px;
+ margin: 3px 0 0 0;
+}
+
+ul.errorlist li:first-child {
+ margin-top: 0;
}
-.errorlist li a {
+ul.errorlist li a {
color: #fff;
text-decoration: underline;
}
@@ -573,12 +582,17 @@ td ul.errorlist li {
margin: 0 !important;
}
-.errors {
- background: #ffc;
+.errors, .form-row.errors {
+ background: #ffefef;
+}
+
+.form-row.errors {
+ border: 1px solid #c22;
+ margin: -1px;
}
.errors input, .errors select, .errors textarea {
- border: 1px solid red;
+ border: 1px solid #c11;
}
div.system-message {
@@ -591,8 +605,8 @@ div.system-message {
div.system-message p.system-message-title {
padding: 4px 5px 4px 25px;
margin: 0;
- color: red;
- background: #ffc url(../img/icon_error.gif) 5px .3em no-repeat;
+ color: #c11;
+ background: #ffefef url(../img/icon_error.gif) 5px .3em no-repeat;
}
.description {
@@ -603,12 +617,12 @@ div.system-message p.system-message-title {
/* BREADCRUMBS */
div.breadcrumbs {
- background: white url(../img/nav-bg-reverse.gif) 0 -10px repeat-x;
+ background: #fff url(../img/nav-bg-reverse.gif) 0 -10px repeat-x;
padding: 2px 8px 3px 8px;
font-size: 11px;
color: #999;
- border-top: 1px solid white;
- border-bottom: 1px solid #ccc;
+ border-top: 1px solid #fff;
+ border-bottom: 1px solid #ddd;
text-align: left;
}

0 comments on commit f719d4a

Please sign in to comment.