mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-06 04:08:22 +01:00
Fixes #7150: colorize links in alerts
This commit is contained in:
parent
7e933db2dd
commit
fe2658ed61
24
docs/assets/css/bootstrap.css
vendored
24
docs/assets/css/bootstrap.css
vendored
@ -1721,6 +1721,7 @@ select:focus:invalid:focus {
|
|||||||
.btn.disabled,
|
.btn.disabled,
|
||||||
.btn[disabled],
|
.btn[disabled],
|
||||||
fieldset[disabled] .btn {
|
fieldset[disabled] .btn {
|
||||||
|
pointer-events: none;
|
||||||
cursor: default;
|
cursor: default;
|
||||||
opacity: 0.65;
|
opacity: 0.65;
|
||||||
filter: alpha(opacity=65);
|
filter: alpha(opacity=65);
|
||||||
@ -4261,6 +4262,12 @@ button.close {
|
|||||||
border-top-color: #f8e5be;
|
border-top-color: #f8e5be;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.alert > a,
|
||||||
|
.alert > p > a {
|
||||||
|
font-weight: 500;
|
||||||
|
color: #a47e3c;
|
||||||
|
}
|
||||||
|
|
||||||
.close {
|
.close {
|
||||||
position: relative;
|
position: relative;
|
||||||
top: -2px;
|
top: -2px;
|
||||||
@ -4279,6 +4286,11 @@ button.close {
|
|||||||
border-top-color: #c9e2b3;
|
border-top-color: #c9e2b3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.alert-success > a,
|
||||||
|
.alert-success > p > a {
|
||||||
|
color: #356635;
|
||||||
|
}
|
||||||
|
|
||||||
.alert-danger,
|
.alert-danger,
|
||||||
.alert-error {
|
.alert-error {
|
||||||
color: #b94a48;
|
color: #b94a48;
|
||||||
@ -4291,6 +4303,13 @@ button.close {
|
|||||||
border-top-color: #e6c1c7;
|
border-top-color: #e6c1c7;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.alert-danger > a,
|
||||||
|
.alert-error > a,
|
||||||
|
.alert-danger > p > a,
|
||||||
|
.alert-error > p > a {
|
||||||
|
color: #953b39;
|
||||||
|
}
|
||||||
|
|
||||||
.alert-info {
|
.alert-info {
|
||||||
color: #3a87ad;
|
color: #3a87ad;
|
||||||
background-color: #d9edf7;
|
background-color: #d9edf7;
|
||||||
@ -4301,6 +4320,11 @@ button.close {
|
|||||||
border-top-color: #a6e1ec;
|
border-top-color: #a6e1ec;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.alert-info > a,
|
||||||
|
.alert-info > p > a {
|
||||||
|
color: #2d6987;
|
||||||
|
}
|
||||||
|
|
||||||
.alert-block {
|
.alert-block {
|
||||||
padding-top: 14px;
|
padding-top: 14px;
|
||||||
padding-bottom: 14px;
|
padding-bottom: 14px;
|
||||||
|
@ -24,6 +24,12 @@
|
|||||||
hr {
|
hr {
|
||||||
border-top-color: darken(@state-warning-border, 5%);
|
border-top-color: darken(@state-warning-border, 5%);
|
||||||
}
|
}
|
||||||
|
// Inherit color for immediate links and bolden them some
|
||||||
|
> a,
|
||||||
|
> p > a {
|
||||||
|
font-weight: 500;
|
||||||
|
color: darken(@state-warning-text, 10%);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Adjust close link position
|
// Adjust close link position
|
||||||
@ -45,6 +51,10 @@
|
|||||||
hr {
|
hr {
|
||||||
border-top-color: darken(@state-success-border, 5%);
|
border-top-color: darken(@state-success-border, 5%);
|
||||||
}
|
}
|
||||||
|
> a,
|
||||||
|
> p > a {
|
||||||
|
color: darken(@state-success-text, 10%);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.alert-danger,
|
.alert-danger,
|
||||||
.alert-error {
|
.alert-error {
|
||||||
@ -54,6 +64,10 @@
|
|||||||
hr {
|
hr {
|
||||||
border-top-color: darken(@state-error-border, 5%);
|
border-top-color: darken(@state-error-border, 5%);
|
||||||
}
|
}
|
||||||
|
> a,
|
||||||
|
> p > a {
|
||||||
|
color: darken(@state-error-text, 10%);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.alert-info {
|
.alert-info {
|
||||||
background-color: @state-info-background;
|
background-color: @state-info-background;
|
||||||
@ -62,6 +76,10 @@
|
|||||||
hr {
|
hr {
|
||||||
border-top-color: darken(@state-info-border, 5%);
|
border-top-color: darken(@state-info-border, 5%);
|
||||||
}
|
}
|
||||||
|
> a,
|
||||||
|
> p > a {
|
||||||
|
color: darken(@state-info-text, 10%);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Block alerts
|
// Block alerts
|
||||||
|
Loading…
x
Reference in New Issue
Block a user