mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 12:42:24 -05:00
[feature/frontend] Respect color scheme preference for highlighted code blocks (#4201)
That's it! It just conditionally imports prism light or prism dark depending on the theme. Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4201 Co-authored-by: tobi <tobi.smethurst@protonmail.com> Co-committed-by: tobi <tobi.smethurst@protonmail.com>
This commit is contained in:
parent
6c1b674278
commit
2c73bb3602
17 changed files with 75 additions and 31 deletions
|
|
@ -3,6 +3,9 @@
|
|||
theme-description: Official light blurple theme
|
||||
*/
|
||||
|
||||
/* Use light code highlights. */
|
||||
@import url("../dist/_prism-light.css");
|
||||
|
||||
:root {
|
||||
/* Define our nice blurple palette */
|
||||
--blurple1: #ebe6f8;
|
||||
|
|
@ -90,8 +93,8 @@ html, body {
|
|||
/* Code snippets */
|
||||
pre, pre[class*="language-"],
|
||||
code, code[class*="language-"] {
|
||||
background-color: var(--blurple7);
|
||||
color: var(--blurple2);
|
||||
background-color: var(--blurple1);
|
||||
color: var(--blurple7);
|
||||
}
|
||||
|
||||
/* Block quotes */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue