Skip to content

Commit

Permalink
fix: css editor (#550)
Browse files Browse the repository at this point in the history
close #537
  • Loading branch information
yanglbme authored Mar 3, 2025
1 parent 28ede70 commit f3337f8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/assets/less/theme.less
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@

.dark {
.container {
.CodeMirror-wrap {
background-color: @nightCodeMirrorColor;
}
.output_night {
.preview {
background-color: @nightPreviewColor;
Expand Down
3 changes: 2 additions & 1 deletion src/components/CodemirrorEditor/RightSlider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,12 @@ const formatOptions = ref<Format[]>([`rgb`, `hex`, `hsl`, `hsv`])

<template>
<div
class="overflow-hidden border-l-2 border-gray/20 bg-gray/20 transition-width duration-300 dark:bg-[#191c20]"
class="overflow-hidden border-l-2 border-gray/20 bg-white transition-width duration-300 dark:bg-[#191c20]"
:class="{
'w-0 border-l-0': !store.isOpenRightSlider,
'w-100': store.isOpenRightSlider,
}"
style="z-index: 999;"
>
<div
class="space-y-4 h-full overflow-auto p-4 transition-transform" :class="{
Expand Down

0 comments on commit f3337f8

Please sign in to comment.