inline-size: min(80ch, 100% - 16px);
}
- pre {
+ pre,
+ code {
background: hsl(216deg 50% 90%);
- padding: 8px;
border-radius: 4px;
border: 1px solid hsl(216deg 50% 75%);
overflow: auto;
+ transition: background-color 500ms, filter 800ms;
+ }
+
+ pre {
+ padding: 8px;
+ }
+
+ code {
+ padding-block: 2px;
+ padding-inline: 4px;
+ }
+
+ :is(pre, code):is(:hover, :focus-within) {
+ background: hsl(216deg 50% 87%);
+ filter: drop-shadow(0 0 8px hsl(216deg 50% 90%));
+ transition: background-color 200ms, filter 300ms;
}
.line-clamp {