2019-01-02 00:11:47 +01:00
|
|
|
// Help text formatters
|
|
|
|
.help-block {
|
|
|
|
padding: 1em;
|
|
|
|
margin: 1em 0;
|
|
|
|
clear: both;
|
|
|
|
color: $color-text-base;
|
|
|
|
|
|
|
|
p {
|
|
|
|
margin-top: 0;
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
2019-05-23 16:55:14 +02:00
|
|
|
color: $color-link;
|
2019-01-02 00:11:47 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.help-info,
|
|
|
|
.help-warning,
|
|
|
|
.help-critical {
|
|
|
|
border-radius: 3px;
|
|
|
|
padding-left: 3.5em;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
font-family: wagtail;
|
|
|
|
position: absolute;
|
|
|
|
left: 1em;
|
|
|
|
top: 0.7em;
|
2019-06-06 19:00:57 +02:00
|
|
|
content: map-get($icons, 'help');
|
2019-01-02 00:11:47 +01:00
|
|
|
font-size: 1.4em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.help-info {
|
|
|
|
background-color: lighten($color-blue, 30%);
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
color: $color-blue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.help-warning {
|
|
|
|
background-color: lighten($color-orange, 30%);
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
color: $color-orange;
|
2019-06-06 19:00:57 +02:00
|
|
|
content: map-get($icons, 'warning');
|
2019-01-02 00:11:47 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.help-critical {
|
|
|
|
background-color: lighten($color-red, 40%);
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
color: $color-red;
|
2019-06-06 19:00:57 +02:00
|
|
|
content: map-get($icons, 'warning');
|
2019-01-02 00:11:47 +01:00
|
|
|
}
|
|
|
|
}
|
2021-10-28 03:31:29 +02:00
|
|
|
|
|
|
|
// Media for Windows High Contrast
|
|
|
|
@media (forced-colors: $media-forced-colours) {
|
|
|
|
.help-block {
|
|
|
|
forced-color-adjust: none;
|
|
|
|
border: 1px solid $system-color-link-text; // ensure visible separation in Windows High Contrast mode
|
|
|
|
background-color: transparent;
|
|
|
|
color: $color-white;
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
color: currentColor;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.help-warning {
|
|
|
|
color: $color-text-warning-forced-color;
|
|
|
|
border-color: $color-text-warning-forced-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.help-critical {
|
|
|
|
color: $color-text-error-forced-color;
|
|
|
|
border-color: $color-text-error-forced-color;
|
|
|
|
}
|
|
|
|
}
|