Skip to content

Commit fa5635f

Browse files
authored
Merge pull request #47 from joelpittet/alert-styles
alert styles
2 parents ec7d548 + be407b2 commit fa5635f

File tree

2 files changed

+35
-34
lines changed

2 files changed

+35
-34
lines changed

css/clf_drupal.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

less/components/alert.less

Lines changed: 34 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,28 @@
11
/* UNIT Alert Styles
22
-------------------------------------------------- */
33

4-
/*
4+
/* VARIABLES */
5+
@unit-warning: #ef8843;
6+
@unit-danger: #b33542;
7+
@unit-error: @unit-danger;
8+
@unit-success: #95be4f;
9+
@unit-info: #324d6a;
10+
@unit-status: @unit-info;
511

6-
SAMPLE MARKUP:
7-
--------------------------------------------------
8-
9-
see: http://getbootstrap.com/2.3.2/components.html#alerts
10-
11-
VARIABLES
12-
--------------------------------------------------
13-
@unit-warning: #f39c12;
14-
@unit-danger: #e74c3c;
15-
@unit-error: #e74c3c;
16-
@unit-success: #18bc9c;
17-
@unit-info: #3498db;
18-
@unit-status: #3498db;
19-
20-
*/
21-
@unit-warning: #f39c12;
22-
@unit-danger: #e74c3c;
23-
@unit-error: #e74c3c;
24-
@unit-success: #18bc9c;
25-
@unit-info: #3498db;
26-
@unit-status: #3498db;
27-
/* GENERAL STYLES
28-
*/
12+
/* GENERAL STYLES */
2913
.alert {
30-
padding: 15px 35px 15px 15px;
31-
margin-bottom: 21px;
32-
border-radius: 4px;
3314
color: #fff;
34-
a {
15+
16+
padding: 15px 35px 15px 15px;
17+
18+
margin-top: 1em;
19+
margin-bottom: 1em;
20+
21+
border-width: 2px;
22+
border-radius: 0;
23+
24+
a,
25+
h4 {
3526
color: #fff;
3627
}
3728
}
@@ -53,19 +44,29 @@ a.close {
5344
opacity: 1;
5445
}
5546
}
47+
5648
.alert h4.alert-heading {
5749
margin-top: 0;
58-
color: white;
5950
}
51+
6052
.alert-warning {
6153
background-color: @unit-warning;
54+
border-color: #d77a3c;
6255
}
63-
.alert-danger, .alert-error {
56+
57+
.alert-danger,
58+
.alert-error {
6459
background-color: @unit-danger;
60+
border-color: #900f1d;
6561
}
66-
.alert-success {
62+
63+
.alert-success,
64+
.alert-status {
6765
background-color: @unit-success;
66+
border-color: #73963d;
6867
}
69-
.alert-info, .alert-status {
68+
69+
.alert-info {
7070
background-color: @unit-info;
71-
}
71+
border-color: #00162f;
72+
}

0 commit comments

Comments
 (0)