Skip to content

Commit

Permalink
fix: Fullsize spoilered codeblocks (#270)
Browse files Browse the repository at this point in the history
  • Loading branch information
ToxicAven authored Dec 1, 2023
1 parent 6a26ec1 commit 9a91745
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/_chat.scss
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,11 @@ main[class^="chatContent"] div[id^="message-content"] svg[class^="icon"] {
@include header-list(lighten($surface2, 5%));
}
}

pre div[class^="codeContainer"]:hover {
background-color: lighten($surface2, 5%);
border-radius: 4px;
}
}

div[class^="spoilerContainer"] {
Expand Down
3 changes: 3 additions & 0 deletions src/components/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,9 @@ html {
--interactive-active: #{$text};

--search-popout-option-non-text-color: #{$subtext0};

--__spoiler-background-color--hidden: #{$surface2};
--__spoiler-warning-background-color: #{lighten($surface2, 5%)};
}

::selection {
Expand Down

0 comments on commit 9a91745

Please sign in to comment.