mirror of https://github.com/status-im/consul.git
87 lines
1.8 KiB
SCSS
87 lines
1.8 KiB
SCSS
%informed-action {
|
|
& {
|
|
border-radius: var(--decor-radius-200);
|
|
border: var(--decor-border-100);
|
|
border-color: rgb(var(--tone-gray-300));
|
|
background-color: rgb(var(--white));
|
|
}
|
|
> div {
|
|
border-top-left-radius: var(--decor-radius-200);
|
|
border-top-right-radius: var(--decor-radius-200);
|
|
cursor: default;
|
|
}
|
|
header {
|
|
@extend %h400;
|
|
}
|
|
header > * {
|
|
@extend %typo-inherit;
|
|
}
|
|
p {
|
|
@extend %p2;
|
|
color: var(--black);
|
|
}
|
|
> ul {
|
|
list-style: none;
|
|
}
|
|
> ul > li > *:hover,
|
|
> ul > li > *:focus {
|
|
background-color: rgb(var(--tone-gray-100));
|
|
}
|
|
/* variants */
|
|
&.info {
|
|
header {
|
|
color: rgb(var(--tone-blue-700));
|
|
}
|
|
header::before {
|
|
@extend %with-info-circle-fill-mask, %as-pseudo;
|
|
background-color: rgb(var(--tone-blue-500));
|
|
margin-right: 5px;
|
|
}
|
|
> div {
|
|
background-color: rgb(var(--tone-blue-010));
|
|
}
|
|
}
|
|
&.dangerous {
|
|
header {
|
|
color: rgb(var(--tone-red-700));
|
|
}
|
|
header::before {
|
|
@extend %with-alert-triangle-mask, %as-pseudo;
|
|
background-color: rgb(var(--tone-red-500));
|
|
}
|
|
> div {
|
|
background-color: rgb(var(--tone-red-010));
|
|
}
|
|
}
|
|
&.warning {
|
|
header {
|
|
color: rgb(var(--tone-orange-700));
|
|
}
|
|
header::before {
|
|
@extend %with-alert-triangle-mask, %as-pseudo;
|
|
background-color: rgb(var(--tone-yellow-500));
|
|
margin-right: 5px;
|
|
}
|
|
> div {
|
|
background-color: rgb(var(--tone-yellow-050));
|
|
}
|
|
}
|
|
/* brands */
|
|
&.kubernetes {
|
|
header::before {
|
|
@extend %with-logo-kubernetes-color-icon, %without-mask, %as-pseudo;
|
|
}
|
|
}
|
|
/**/
|
|
> ul > .action > * {
|
|
color: rgb(var(--tone-blue-500));
|
|
}
|
|
> ul > .dangerous > * {
|
|
@extend %frame-red-300;
|
|
}
|
|
> ul > .dangerous > *:hover,
|
|
> ul > .dangerous > *:focus {
|
|
@extend %frame-red-700;
|
|
}
|
|
}
|