2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-08 17:22:31 +03:00

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
This commit is contained in:
Mark Otto
2013-05-16 20:53:59 -07:00
parent 0f4b4acce1
commit 9762f95bde
5 changed files with 39 additions and 18 deletions
+5 -9
View File
@@ -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%);
}
}