mirror of
https://github.com/wagtail/wagtail.git
synced 2024-11-25 13:10:14 +01:00
e2ce772017
Fixes #10990
84 lines
1.4 KiB
SCSS
84 lines
1.4 KiB
SCSS
@use 'sass:color';
|
|
@use 'sass:map';
|
|
// Help text formatters
|
|
.help-block {
|
|
padding: 1em;
|
|
margin: 1em 0;
|
|
clear: both;
|
|
color: theme('colors.grey.600');
|
|
|
|
p {
|
|
margin-top: 0;
|
|
|
|
&:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
|
|
a {
|
|
color: theme('colors.secondary.400');
|
|
text-decoration: underline;
|
|
text-decoration-thickness: 2px;
|
|
text-underline-offset: 3px;
|
|
|
|
&:hover {
|
|
color: theme('colors.secondary.600');
|
|
text-decoration: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
.help-info,
|
|
.help-warning,
|
|
.help-critical {
|
|
border-radius: 3px;
|
|
padding-inline-start: 3.5em;
|
|
position: relative;
|
|
|
|
.icon {
|
|
@include svg-icon(1rem);
|
|
position: absolute;
|
|
inset-inline-start: 1.125rem;
|
|
top: 0.8125rem;
|
|
}
|
|
}
|
|
|
|
.help-info {
|
|
background-color: theme('colors.info.50');
|
|
|
|
.icon-help {
|
|
color: theme('colors.info.100');
|
|
}
|
|
}
|
|
|
|
.help-warning {
|
|
background-color: theme('colors.warning.50');
|
|
|
|
.icon-warning {
|
|
color: theme('colors.primary.DEFAULT');
|
|
}
|
|
}
|
|
|
|
.help-critical {
|
|
background-color: theme('colors.critical.50');
|
|
|
|
.icon-warning {
|
|
color: theme('colors.critical.200');
|
|
}
|
|
}
|
|
|
|
// Media for Windows High Contrast
|
|
@media (forced-colors: active) {
|
|
.help-block {
|
|
border: 3px solid currentColor; // ensure visible separation in Windows High Contrast mode
|
|
}
|
|
|
|
.help-warning {
|
|
border-style: dotted;
|
|
}
|
|
|
|
.help-critical {
|
|
border-style: dashed;
|
|
}
|
|
}
|