2020-12-02 09:43:34 +00:00
|
|
|
%informed-action {
|
|
|
|
& {
|
2021-10-07 18:21:11 +00:00
|
|
|
border-radius: var(--decor-radius-200);
|
|
|
|
border: var(--decor-border-100);
|
|
|
|
border-color: rgb(var(--tone-gray-300));
|
2021-11-23 18:32:11 +00:00
|
|
|
background-color: rgb(var(--tone-gray-000));
|
2020-12-02 09:43:34 +00:00
|
|
|
}
|
|
|
|
> div {
|
2021-10-07 18:21:11 +00:00
|
|
|
border-top-left-radius: var(--decor-radius-200);
|
|
|
|
border-top-right-radius: var(--decor-radius-200);
|
2020-12-02 09:43:34 +00:00
|
|
|
cursor: default;
|
|
|
|
}
|
|
|
|
header {
|
2021-01-26 17:53:45 +00:00
|
|
|
@extend %h400;
|
2020-12-02 09:43:34 +00:00
|
|
|
}
|
|
|
|
header > * {
|
|
|
|
@extend %typo-inherit;
|
|
|
|
}
|
|
|
|
p {
|
|
|
|
@extend %p2;
|
2021-11-23 18:32:11 +00:00
|
|
|
color: rgb(var(--tone-gray-999));
|
2020-12-02 09:43:34 +00:00
|
|
|
}
|
|
|
|
> ul {
|
|
|
|
list-style: none;
|
|
|
|
}
|
|
|
|
> ul > li > *:hover,
|
|
|
|
> ul > li > *:focus {
|
2021-10-07 18:21:11 +00:00
|
|
|
background-color: rgb(var(--tone-gray-100));
|
2020-12-02 09:43:34 +00:00
|
|
|
}
|
|
|
|
/* variants */
|
|
|
|
&.info {
|
|
|
|
header {
|
2021-10-07 18:21:11 +00:00
|
|
|
color: rgb(var(--tone-blue-700));
|
2020-12-02 09:43:34 +00:00
|
|
|
}
|
|
|
|
header::before {
|
|
|
|
@extend %with-info-circle-fill-mask, %as-pseudo;
|
2021-10-07 18:21:11 +00:00
|
|
|
background-color: rgb(var(--tone-blue-500));
|
2020-12-02 09:43:34 +00:00
|
|
|
margin-right: 5px;
|
|
|
|
}
|
|
|
|
> div {
|
2021-10-07 18:21:11 +00:00
|
|
|
background-color: rgb(var(--tone-blue-010));
|
2020-12-02 09:43:34 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
&.dangerous {
|
|
|
|
header {
|
2021-10-07 18:21:11 +00:00
|
|
|
color: rgb(var(--tone-red-700));
|
2020-12-02 09:43:34 +00:00
|
|
|
}
|
|
|
|
header::before {
|
|
|
|
@extend %with-alert-triangle-mask, %as-pseudo;
|
2021-10-07 18:21:11 +00:00
|
|
|
background-color: rgb(var(--tone-red-500));
|
2020-12-02 09:43:34 +00:00
|
|
|
}
|
|
|
|
> div {
|
2021-10-07 18:21:11 +00:00
|
|
|
background-color: rgb(var(--tone-red-010));
|
2020-12-02 09:43:34 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
&.warning {
|
|
|
|
header {
|
2021-10-07 18:21:11 +00:00
|
|
|
color: rgb(var(--tone-orange-700));
|
2020-12-02 09:43:34 +00:00
|
|
|
}
|
|
|
|
header::before {
|
|
|
|
@extend %with-alert-triangle-mask, %as-pseudo;
|
2021-10-07 18:21:11 +00:00
|
|
|
background-color: rgb(var(--tone-yellow-500));
|
2020-12-02 09:43:34 +00:00
|
|
|
margin-right: 5px;
|
|
|
|
}
|
|
|
|
> div {
|
2021-10-07 18:21:11 +00:00
|
|
|
background-color: rgb(var(--tone-yellow-050));
|
2020-12-02 09:43:34 +00:00
|
|
|
}
|
|
|
|
}
|
2021-05-04 16:21:54 +00:00
|
|
|
/**/
|
2020-12-02 09:43:34 +00:00
|
|
|
> ul > .action > * {
|
2021-10-07 18:21:11 +00:00
|
|
|
color: rgb(var(--tone-blue-500));
|
2020-12-02 09:43:34 +00:00
|
|
|
}
|
|
|
|
> ul > .dangerous > * {
|
|
|
|
@extend %frame-red-300;
|
|
|
|
}
|
|
|
|
> ul > .dangerous > *:hover,
|
|
|
|
> ul > .dangerous > *:focus {
|
|
|
|
@extend %frame-red-700;
|
|
|
|
}
|
|
|
|
}
|