Files
com.xaymar.www/_sass/_block-alert.scss
T

94 lines
1.9 KiB
SCSS
Raw Normal View History

2024-05-16 11:40:24 +02:00
alert.block {
position: relative;
display: block;
2024-09-07 14:20:24 +02:00
margin: .5em -.5em;
2024-05-16 12:00:42 +02:00
padding: .5em;
2024-05-16 11:40:24 +02:00
min-height: 4em;
2024-09-07 14:20:24 +02:00
border-left: 1em solid hsl($theme-hue, 30%, 40%);
background: hsl($theme-hue, 20%, 30%);
2024-09-07 14:20:24 +02:00
box-shadow: 0px 0px 8px 2px rgb(0, 0, 0);
2024-05-16 11:40:24 +02:00
overflow: hidden;
}
alert::before {
2024-09-07 11:32:43 +02:00
content: "📌";
2024-05-16 12:00:42 +02:00
2024-05-16 11:40:24 +02:00
display: block;
min-width: 4rem;
min-height: 4rem;
2024-09-07 14:20:24 +02:00
float: left;
shape-outside: polygon(0em 0em, 3em 0em, 3em 3em, 0em 3em);
2024-05-16 12:00:42 +02:00
font-size: 3rem;
2024-09-07 14:20:24 +02:00
white-space: nowrap;
2024-05-16 11:40:24 +02:00
text-align: center;
2024-05-16 12:00:42 +02:00
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
2024-05-16 11:40:24 +02:00
}
2024-05-16 12:00:42 +02:00
alert.block[data-type*="good"] {
2024-09-07 11:32:43 +02:00
border-color: oklch(60.0% 0.75 150.0);
background: oklch(30.0% 0.75 150.0);
2024-05-16 12:00:42 +02:00
}
alert[data-type*="good"]::before {
content: "👍";
}
alert.block[data-type*="bad"] {
2024-09-07 11:32:43 +02:00
border-color: oklch(60.0% 0.2568 29.234);
background: oklch(30.00% 0.2576 29.234);
2024-05-16 12:00:42 +02:00
}
alert[data-type*="bad"]::before {
content: "👎";
}
2024-09-07 11:32:43 +02:00
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;
}
2024-05-16 12:00:42 +02:00
alert.block[data-type*="hint"] {
2024-09-07 11:32:43 +02:00
border-color: oklch(69.41% 0.138 238.24);
background: oklch(45.00% 0.0785 238.24);
2024-05-16 12:00:42 +02:00
}
alert[data-type*="hint"]::before {
2024-05-16 11:40:24 +02:00
content: "";
}
2024-05-16 12:00:42 +02:00
alert.block[data-type*="notice"] {
2024-09-07 11:32:43 +02:00
border-color: oklch(69.41% 0.138 238.24);
background: oklch(49.11% 0.0785 238.24);
2024-05-16 12:00:42 +02:00
}
alert[data-type*="notice"]::before {
content: "🔍";
}
alert.block[data-type*="warning"] {
2024-09-07 11:32:43 +02:00
border-color: oklch(71.76% 0.187 49.76);
background: oklch(52.65% 0.113 49.76);
2024-05-16 12:00:42 +02:00
}
alert[data-type*="warning"]::before {
2024-05-16 11:40:24 +02:00
content: "";
}
2024-05-16 12:00:42 +02:00
alert.block[data-type*="error"] {
2024-09-07 11:32:43 +02:00
border-color: oklch(62.8% 0.2568 29.234);
background: oklch(52.37% 0.1576 29.234);
2024-05-16 11:40:24 +02:00
}
2024-05-16 12:00:42 +02:00
alert[data-type*="error"]::before {
content: "";
2024-09-07 11:32:43 +02:00
}