aboutsummaryrefslogtreecommitdiff
path: root/less
diff options
context:
space:
mode:
authorJacob Rask <[email protected]>2012-02-19 21:29:32 +0100
committerJacob Rask <[email protected]>2012-02-19 21:29:32 +0100
commit51ec513b5c50123761350d2bcd27dafb07192a7e (patch)
tree936a59e4be0244dfe22b2c11190f8077c490b88d /less
parentac6e667ad9ae57c5caa977fd6593a2299887737a (diff)
downloadbootstrap-51ec513b5c50123761350d2bcd27dafb07192a7e.tar.xz
bootstrap-51ec513b5c50123761350d2bcd27dafb07192a7e.zip
Use inherit on alert-heading color
Heading then inherits from the parent alert. Avoids a lot of extra unneccessary CSS.
Diffstat (limited to 'less')
-rw-r--r--less/alerts.less16
1 files changed, 2 insertions, 14 deletions
diff --git a/less/alerts.less b/less/alerts.less
index 562826fd3..46a0d77bf 100644
--- a/less/alerts.less
+++ b/less/alerts.less
@@ -9,10 +9,10 @@
background-color: @warningBackground;
border: 1px solid @warningBorder;
.border-radius(4px);
+ color: @warningText;
}
-.alert,
.alert-heading {
- color: @warningText;
+ color: inherit;
}
// Adjust close link position
@@ -29,32 +29,20 @@
.alert-success {
background-color: @successBackground;
border-color: @successBorder;
-}
-.alert-success,
-.alert-success .alert-heading {
color: @successText;
}
.alert-danger,
.alert-error {
background-color: @errorBackground;
border-color: @errorBorder;
-}
-.alert-danger,
-.alert-error,
-.alert-danger .alert-heading,
-.alert-error .alert-heading {
color: @errorText;
}
.alert-info {
background-color: @infoBackground;
border-color: @infoBorder;
-}
-.alert-info,
-.alert-info .alert-heading {
color: @infoText;
}
-
// Block alerts
// ------------------------
.alert-block {