added global styles for highlighted content

This commit is contained in:
2026-08-15 22:17:01 +02:00
parent ef1a5ad7a1
commit abb11077de
+37
View File
@@ -482,6 +482,43 @@ html.dark-theme {
transform: scale(1);
}
}
/* highlighted text */
.app-highlight-mark {
background-color: rgba(255, 214, 0, 0.35);
border-radius: 2px;
padding: 0 1px;
}
.app-highlight-mark--topic {
background: transparent;
color: var(--t);
text-decoration: underline;
text-decoration-color: var(--t);
text-decoration-thickness: 2px;
text-underline-offset: 2px;
font-weight: inherit;
border-radius: 2px;
padding: 0 1px;
transition: background 0.15s;
&:hover {
background: color-mix(in srgb, var(--t) 15%, var(--sg-color-mix-base));
}
}
@keyframes kw-flash {
0%,
40% {
background: color-mix(in srgb, var(--t) 45%, var(--sg-color-mix-base));
}
100% {
background: transparent;
}
}
.kw-flash {
animation: kw-flash 2.4s ease-out forwards;
}
/* Theme-aware text skeleton */
.sk-text-loading {
display: inline-block;