aboutsummaryrefslogtreecommitdiff
path: root/less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-05-16 20:53:59 -0700
committerMark Otto <[email protected]>2013-05-16 20:53:59 -0700
commit9762f95bde0fc251aa42d2e843cf5885f264cca3 (patch)
tree94d30c84a0ff06316a89b3b6b18f9ef2276cf18c /less
parent0f4b4acce1df7f2cdfc6e0ad6dca59480868bd8d (diff)
downloadbootstrap-9762f95bde0fc251aa42d2e843cf5885f264cca3.tar.xz
bootstrap-9762f95bde0fc251aa42d2e843cf5885f264cca3.zip
Change up link alerts
* No more children selectors to set all links in alerts as a special color because buttons and more wrongly inherited color * Adds .alert-link for easy styling in any alert
Diffstat (limited to 'less')
-rw-r--r--less/alerts.less14
1 files changed, 5 insertions, 9 deletions
diff --git a/less/alerts.less b/less/alerts.less
index bb7846249..24b791143 100644
--- a/less/alerts.less
+++ b/less/alerts.less
@@ -24,9 +24,8 @@
hr {
border-top-color: darken(@alert-border, 5%);
}
- // Inherit color for immediate links and bolden them some
- > a,
- > p > a {
+ // Provide class for links that match alerts
+ .alert-link {
font-weight: 500;
color: darken(@alert-text, 10%);
}
@@ -50,8 +49,7 @@
hr {
border-top-color: darken(@alert-success-border, 5%);
}
- > a,
- > p > a {
+ .alert-link {
color: darken(@alert-success-text, 10%);
}
}
@@ -62,8 +60,7 @@
hr {
border-top-color: darken(@alert-danger-border, 5%);
}
- > a,
- > p > a {
+ .alert-link {
color: darken(@alert-danger-text, 10%);
}
}
@@ -74,8 +71,7 @@
hr {
border-top-color: darken(@alert-info-border, 5%);
}
- > a,
- > p > a {
+ .alert-link {
color: darken(@alert-info-text, 10%);
}
}