2021-12-23 03:42:22 +01:00
|
|
|
@use 'sass:color';
|
|
|
|
@use 'sass:map';
|
2019-01-02 00:11:47 +01:00
|
|
|
// Help text formatters
|
|
|
|
.help-block {
|
|
|
|
padding: 1em;
|
|
|
|
margin: 1em 0;
|
|
|
|
clear: both;
|
2023-04-19 07:58:14 +02:00
|
|
|
color: theme('colors.grey.600');
|
2019-01-02 00:11:47 +01:00
|
|
|
|
|
|
|
p {
|
|
|
|
margin-top: 0;
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
2019-01-02 00:11:47 +01:00
|
|
|
|
|
|
|
a {
|
2023-10-04 15:54:20 +02:00
|
|
|
color: theme('colors.secondary.400');
|
2022-07-23 15:47:27 +02:00
|
|
|
text-decoration: underline;
|
|
|
|
text-decoration-thickness: 2px;
|
|
|
|
text-underline-offset: 3px;
|
|
|
|
|
|
|
|
&:hover {
|
2023-10-04 15:54:20 +02:00
|
|
|
color: theme('colors.secondary.600');
|
2022-07-23 15:47:27 +02:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
2019-01-02 00:11:47 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.help-info,
|
|
|
|
.help-warning,
|
|
|
|
.help-critical {
|
|
|
|
border-radius: 3px;
|
2022-03-15 14:21:06 +01:00
|
|
|
padding-inline-start: 3.5em;
|
2019-01-02 00:11:47 +01:00
|
|
|
position: relative;
|
|
|
|
|
2022-03-07 18:06:19 +01:00
|
|
|
.icon {
|
2023-03-31 05:46:34 +02:00
|
|
|
@include svg-icon(1rem);
|
2019-01-02 00:11:47 +01:00
|
|
|
position: absolute;
|
2022-03-15 14:21:06 +01:00
|
|
|
inset-inline-start: 1.125rem;
|
2022-03-07 18:06:19 +01:00
|
|
|
top: 0.8125rem;
|
2019-01-02 00:11:47 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.help-info {
|
2022-07-09 08:32:51 +02:00
|
|
|
background-color: theme('colors.info.50');
|
2019-01-02 00:11:47 +01:00
|
|
|
|
2022-03-07 18:06:19 +01:00
|
|
|
.icon-help {
|
2022-07-09 08:32:51 +02:00
|
|
|
color: theme('colors.info.100');
|
2019-01-02 00:11:47 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.help-warning {
|
2022-07-09 08:32:51 +02:00
|
|
|
background-color: theme('colors.warning.50');
|
2019-01-02 00:11:47 +01:00
|
|
|
|
2022-03-07 18:06:19 +01:00
|
|
|
.icon-warning {
|
2022-07-23 15:47:27 +02:00
|
|
|
color: theme('colors.primary.DEFAULT');
|
2019-01-02 00:11:47 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.help-critical {
|
2022-07-09 08:32:51 +02:00
|
|
|
background-color: theme('colors.critical.50');
|
2019-01-02 00:11:47 +01:00
|
|
|
|
2022-03-07 18:06:19 +01:00
|
|
|
.icon-warning {
|
2022-07-09 08:32:51 +02:00
|
|
|
color: theme('colors.critical.200');
|
2019-01-02 00:11:47 +01:00
|
|
|
}
|
|
|
|
}
|
2021-10-28 03:31:29 +02:00
|
|
|
|
|
|
|
// Media for Windows High Contrast
|
2022-07-14 13:06:40 +02:00
|
|
|
@media (forced-colors: active) {
|
2021-10-28 03:31:29 +02:00
|
|
|
.help-block {
|
2022-07-14 13:06:40 +02:00
|
|
|
border: 3px solid currentColor; // ensure visible separation in Windows High Contrast mode
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
2021-10-28 03:31:29 +02:00
|
|
|
|
|
|
|
.help-warning {
|
2022-07-14 13:06:40 +02:00
|
|
|
border-style: dotted;
|
2021-10-28 03:31:29 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.help-critical {
|
2022-07-14 13:06:40 +02:00
|
|
|
border-style: dashed;
|
2021-10-28 03:31:29 +02:00
|
|
|
}
|
|
|
|
}
|