dokuwiki-template-sprintdoc.../css/area_msg.less

93 lines
1.7 KiB
Text

/**
* This file provides the design styles for message block
*/
.msg-area {
clear: both;
padding-top: 1.6rem;
div {
line-height: 135%;
}
&:empty {
display: none;
}
}
div.success,
div.error,
div.info,
div.notify {
@media @screen_max-md {
flex-direction: column;
}
display: flex;
align-items: start;
gap: 0.5rem;
border: none;
border-left: solid 0.5rem var(--color-shade-4);
border-radius: 0.5rem;
padding: 1em;
background-image: none;
background-color: var(--color-shade-1);
&::before {
content: "";
flex-shrink: 0;
margin-top: 0.3em;
width: 1em;
height: 1em;
mask-size: contain;
mask-position: center top;
mask-repeat: no-repeat;
background-color: currentColor;
}
&.success {
color: var(--color-success);
&::before {
mask-image: url(img/tick_small.svg);
}
}
&.error {
border-left-color: var(--color-error);
color: var(--color-foreground);
&::before {
background-color: var(--color-error);
mask-image: url(img/power.svg);
}
}
&.info {
color: var(--color-foreground);
&::before {
mask-image: url(img/info.svg);
}
}
&.notify {
border-left-color: var(--color-warning);
color: var(--color-foreground);
&::before {
background-color: var(--color-warning);
mask-image: url(img/warning.svg);
}
}
a {
text-decoration: underline;
&:hover,
&:focus,
&:active {
text-decoration: none;
}
}
}