Skip to content

Commit

Permalink
Extend alerts.less with "alert-error" class
Browse files Browse the repository at this point in the history
Add this alert class for backwards compatibility, since Bootstrap 3 removed
the "alert-error" class, but it has the same properties as "alert-danger".
  • Loading branch information
Aleksandar Jovanov committed Jul 4, 2017
1 parent 0daeba3 commit 85cf609
Show file tree
Hide file tree
Showing 7 changed files with 62 additions and 1 deletion.
11 changes: 11 additions & 0 deletions ckan/public/base/css/fuchsia.css
Expand Up @@ -10205,6 +10205,17 @@ h4 small {
.datapusher-form {
margin-bottom: 20px;
}
.alert-error {
background-color: #f2dede;
border-color: #ebccd1;
color: #a94442;
}
.alert-error hr {
border-top-color: #e4b9c0;
}
.alert-error .alert-link {
color: #843534;
}
body {
background: #E73892 url("../../../base/images/bg.png");
}
Expand Down
11 changes: 11 additions & 0 deletions ckan/public/base/css/green.css
Expand Up @@ -10205,6 +10205,17 @@ h4 small {
.datapusher-form {
margin-bottom: 20px;
}
.alert-error {
background-color: #f2dede;
border-color: #ebccd1;
color: #a94442;
}
.alert-error hr {
border-top-color: #e4b9c0;
}
.alert-error .alert-link {
color: #843534;
}
body {
background: #2F9B45 url("../../../base/images/bg.png");
}
Expand Down
11 changes: 11 additions & 0 deletions ckan/public/base/css/main.css
Expand Up @@ -10205,6 +10205,17 @@ h4 small {
.datapusher-form {
margin-bottom: 20px;
}
.alert-error {
background-color: #f2dede;
border-color: #ebccd1;
color: #a94442;
}
.alert-error hr {
border-top-color: #e4b9c0;
}
.alert-error .alert-link {
color: #843534;
}
body {
background: #005d7a url("../../../base/images/bg.png");
}
Expand Down
11 changes: 11 additions & 0 deletions ckan/public/base/css/maroon.css
Expand Up @@ -10205,6 +10205,17 @@ h4 small {
.datapusher-form {
margin-bottom: 20px;
}
.alert-error {
background-color: #f2dede;
border-color: #ebccd1;
color: #a94442;
}
.alert-error hr {
border-top-color: #e4b9c0;
}
.alert-error .alert-link {
color: #843534;
}
body {
background: #810606 url("../../../base/images/bg.png");
}
Expand Down
11 changes: 11 additions & 0 deletions ckan/public/base/css/red.css
Expand Up @@ -10205,6 +10205,17 @@ h4 small {
.datapusher-form {
margin-bottom: 20px;
}
.alert-error {
background-color: #f2dede;
border-color: #ebccd1;
color: #a94442;
}
.alert-error hr {
border-top-color: #e4b9c0;
}
.alert-error .alert-link {
color: #843534;
}
body {
background: #C14531 url("../../../base/images/bg.png");
}
Expand Down
5 changes: 5 additions & 0 deletions ckan/public/base/less/alerts.less
@@ -0,0 +1,5 @@
// Add this alert class for backwards compatibility, since Bootstrap 3 removed
// the "alert-error" class, but it has the same properties as "alert-danger".
.alert-error {
.alert-variant(@alert-danger-bg; @alert-danger-border; @alert-danger-text);
}
3 changes: 2 additions & 1 deletion ckan/public/base/less/ckan.less
Expand Up @@ -22,6 +22,7 @@
@import "dashboard.less";
@import "resource-view.less";
@import "datapusher.less";
@import "alerts.less";
body {
// Using the masthead/footer gradient prevents the color from changing
// at the bottom of the window on pages with little content.
Expand Down Expand Up @@ -149,4 +150,4 @@ iframe {
padding: 3px 5px;
}

// @import "iehacks.less";
// @import "iehacks.less";

0 comments on commit 85cf609

Please sign in to comment.