51 lines
997 B
SCSS
51 lines
997 B
SCSS
|
.admonition {
|
||
|
background: var(--ui-overlay-transparent);
|
||
|
border-inline-start: 0.4em solid var(--ui-overlay);
|
||
|
border-radius: 0.5em;
|
||
|
padding-inline: 1.5em;
|
||
|
padding-block: 1em;
|
||
|
position: relative;
|
||
|
&-header {
|
||
|
display: contents;
|
||
|
}
|
||
|
&__icon {
|
||
|
position: absolute;
|
||
|
inset-inline-start: -0.4em;
|
||
|
inset-block-start: -0em;
|
||
|
padding: 0.25em;
|
||
|
box-sizing: border-box;
|
||
|
font-size: 3em;
|
||
|
border-radius: 100em;
|
||
|
background: var(--ui-overlay);
|
||
|
}
|
||
|
&__title {
|
||
|
font-size: 1em;
|
||
|
font-weight: bold;
|
||
|
padding-inline: 1em;
|
||
|
margin-block-start: -0.5em;
|
||
|
margin-inline-start: 0.25em;
|
||
|
margin-block-end: 0;
|
||
|
}
|
||
|
&__text {
|
||
|
margin-inline-start: 0.25em;
|
||
|
padding-inline: 1em;
|
||
|
> *:first-child {
|
||
|
margin-block-start: 0;
|
||
|
}
|
||
|
> *:last-child {
|
||
|
margin-block-end: 0;
|
||
|
}
|
||
|
}
|
||
|
.info-icon {
|
||
|
background-color: hsl(210, 50%, 50%);
|
||
|
color: white;
|
||
|
}
|
||
|
.warning-icon {
|
||
|
background-color: hsl(50, 50%, 50%);
|
||
|
color: black;
|
||
|
}
|
||
|
.danger-icon {
|
||
|
background-color: hsl(0, 50%, 50%);
|
||
|
color: white;
|
||
|
}
|
||
|
}
|