summaryrefslogtreecommitdiff
path: root/bower_components/bootstrap/less/alerts.less
diff options
context:
space:
mode:
Diffstat (limited to 'bower_components/bootstrap/less/alerts.less')
-rwxr-xr-x[-rw-r--r--]bower_components/bootstrap/less/alerts.less46
1 files changed, 24 insertions, 22 deletions
diff --git a/bower_components/bootstrap/less/alerts.less b/bower_components/bootstrap/less/alerts.less
index 66aa6cf2..3ba463db 100644..100755
--- a/bower_components/bootstrap/less/alerts.less
+++ b/bower_components/bootstrap/less/alerts.less
@@ -7,7 +7,7 @@
// -------------------------
.alert {
- padding: 10px 35px 10px 15px;
+ padding: @alert-padding;
margin-bottom: @line-height-computed;
color: @alert-text;
background-color: @alert-bg;
@@ -26,10 +26,27 @@
}
// Provide class for links that match alerts
.alert-link {
- font-weight: 500;
+ font-weight: @alert-link-font-weight;
color: darken(@alert-text, 10%);
}
+ // Improve alignment and spacing of inner content
+ > p,
+ > ul {
+ margin-bottom: 0;
+ }
+ > p + p {
+ margin-top: 5px;
+ }
+}
+
+// Dismissable alerts
+//
+// Expand the right padding and account for the close button's positioning.
+
+.alert-dismissable {
+ padding-right: (@alert-padding + 20);
+
// Adjust close link position
.close {
position: relative;
@@ -40,30 +57,15 @@
}
// Alternate styles
-// -------------------------
+//
+// Generate contextual modifier classes for colorizing the alert.
.alert-success {
- .alert-variant(@alert-success-bg, @alert-success-border, @alert-success-text);
+ .alert-variant(@alert-success-bg; @alert-success-border; @alert-success-text);
}
.alert-danger {
- .alert-variant(@alert-danger-bg, @alert-danger-border, @alert-danger-text);
+ .alert-variant(@alert-danger-bg; @alert-danger-border; @alert-danger-text);
}
.alert-info {
- .alert-variant(@alert-info-bg, @alert-info-border, @alert-info-text);
-}
-
-// Block alerts
-// -------------------------
-
-.alert-block {
- padding-top: 15px;
- padding-bottom: 15px;
-
- > p,
- > ul {
- margin-bottom: 0;
- }
- p + p {
- margin-top: 5px;
- }
+ .alert-variant(@alert-info-bg; @alert-info-border; @alert-info-text);
}