diff --git a/webapp/src/styles.scss b/webapp/src/styles.scss index 6d39dd4b..14690546 100644 --- a/webapp/src/styles.scss +++ b/webapp/src/styles.scss @@ -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;