Skip to content

Commit

Permalink
Add css styling for form notifications
Browse files Browse the repository at this point in the history
refs #9203
  • Loading branch information
Alexander Fuhr committed May 15, 2015
1 parent 9f35db7 commit 93470db
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
3 changes: 3 additions & 0 deletions public/css/icinga/defaults.less
Expand Up @@ -23,6 +23,9 @@
@colorUnreachableHandled: #cc77ff;
@colorPending: #77aaff;
@colorInvalid: #999;
@colorFormNotificationInfo: #77aaff;
@colorFormNotificationWarning: #ffaa44;
@colorFormNotificationError: #ff5566;

/* Mixins */

Expand Down
26 changes: 26 additions & 0 deletions public/css/icinga/forms.less
Expand Up @@ -165,6 +165,32 @@ form ul.form-errors {
}
}

form ul.form-notifications {
.non-list-like-list;
margin-bottom: 1em;
padding: 0em;

li.info {
background: @colorFormNotificationInfo;
}

li.warning {
background: @colorFormNotificationWarning;
}

li.error {
background: @colorFormNotificationError;
}

li {
color: white;
font-weight: bold;
line-height: 1.5em;
padding: 0.5em;
margin-bottom: 0.5em;
}
}

form div.element {
margin: 0.5em 0;
}
Expand Down

0 comments on commit 93470db

Please sign in to comment.