Files
com.xaymar.www/_sass/_block-alert.scss
T
2024-09-07 11:32:43 +02:00

100 lines
1.9 KiB
SCSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
alert.block {
position: relative;
display: block;
margin: .5em;
margin-left: 1.5em;
margin-right: 1.5em;
padding: .5em;
padding-left: 4em;
min-height: 4em;
border: 2px solid hsl($theme-hue, 30%, 40%);
border-radius: 0.2rem;
background: hsl($theme-hue, 20%, 30%);
box-shadow: 0px 0px 2px 2px rgb(0, 0, 0);
overflow: hidden;
}
alert::before {
content: "📌";
position: absolute;
top: 0px;
bottom: 0px;
left: 0px;
display: block;
min-width: 4rem;
min-height: 4rem;
font-size: 3rem;
white-space: no-wrap;
text-align: center;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
}
alert.block[data-type*="good"] {
border-color: oklch(60.0% 0.75 150.0);
background: oklch(30.0% 0.75 150.0);
}
alert[data-type*="good"]::before {
content: "👍";
}
alert.block[data-type*="bad"] {
border-color: oklch(60.0% 0.2568 29.234);
background: oklch(30.00% 0.2576 29.234);
}
alert[data-type*="bad"]::before {
content: "👎";
}
alert.block[data-type*="info"] {
border-color: oklch(69.41% 0.138 238.24);
background: oklch(45.00% 0.0785 238.24);
}
alert[data-type*="info"]::before {
content: "";
border: 2px solid black;
margin: .5rem;
min-width: 3rem;
min-height: 3rem;
background: #0078d7;
}
alert.block[data-type*="hint"] {
border-color: oklch(69.41% 0.138 238.24);
background: oklch(45.00% 0.0785 238.24);
}
alert[data-type*="hint"]::before {
content: "";
}
alert.block[data-type*="notice"] {
border-color: oklch(69.41% 0.138 238.24);
background: oklch(49.11% 0.0785 238.24);
}
alert[data-type*="notice"]::before {
content: "🔍";
}
alert.block[data-type*="warning"] {
border-color: oklch(71.76% 0.187 49.76);
background: oklch(52.65% 0.113 49.76);
}
alert[data-type*="warning"]::before {
content: "";
}
alert.block[data-type*="error"] {
border-color: oklch(62.8% 0.2568 29.234);
background: oklch(52.37% 0.1576 29.234);
}
alert[data-type*="error"]::before {
content: "";
}