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:
+5
-9
@@ -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%);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user