2013-11-16 06:21:12 +08:00
|
|
|
//
|
|
|
|
// Alerts
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
// Base styles
|
|
|
|
// -------------------------
|
|
|
|
|
|
|
|
.alert {
|
|
|
|
padding: 8px 35px 8px 14px;
|
2022-11-03 03:49:38 +08:00
|
|
|
margin-bottom: 1.43em;
|
2013-11-16 06:21:12 +08:00
|
|
|
text-shadow: 0 1px 0 rgba(255,255,255,.5);
|
2022-11-03 03:49:38 +08:00
|
|
|
background-color: var(--warning-bg-clr, #fcf8e3);
|
|
|
|
border: 1px solid var(--warning-border-clr, #fbeed5);
|
2020-09-03 03:30:23 +08:00
|
|
|
border-radius: 4px;
|
2022-11-03 03:49:38 +08:00
|
|
|
color: var(--warning-clr, #c09853);
|
2021-11-05 18:17:46 +08:00
|
|
|
max-width: 800px;
|
2022-11-03 03:49:38 +08:00
|
|
|
min-height: 1.43em;
|
2013-11-16 06:21:12 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// Adjust close link position
|
|
|
|
.alert .close {
|
|
|
|
position: relative;
|
|
|
|
top: -2px;
|
|
|
|
right: -21px;
|
2022-11-03 03:49:38 +08:00
|
|
|
line-height: 1.43em;
|
2013-11-16 06:21:12 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Alternate styles
|
|
|
|
// -------------------------
|
|
|
|
|
|
|
|
.alert-error {
|
2022-11-03 03:49:38 +08:00
|
|
|
background-color: var(--error-bg-clr, #f2dede);
|
|
|
|
border-color: var(--error-border-clr, #eed3d7);
|
2013-11-16 06:21:12 +08:00
|
|
|
}
|
|
|
|
.alert-info {
|
2022-11-03 03:49:38 +08:00
|
|
|
background-color: var(--info-bg-clr, #d9edf7);
|
|
|
|
border-color: var(--info-border-clr, #bce8f1);
|
2023-02-25 01:31:03 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.alert a:not(.close) {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
|
|
|
|
.alert-info,
|
|
|
|
.alert.alert-info a:not(.close) {
|
2022-11-03 03:49:38 +08:00
|
|
|
color: var(--info-clr, #3a87ad);
|
2013-11-16 06:21:12 +08:00
|
|
|
}
|
2023-02-25 01:31:03 +08:00
|
|
|
|
|
|
|
.alert-error,
|
|
|
|
.alert.alert-error a:not(.close) {
|
|
|
|
color: var(--error-clr, #b94a48);
|
|
|
|
}
|