Skip to content

Commit 0259f2e

Browse files
renovate[bot]ntnyq
authored andcommitted
docs: fix playground style when dark
1 parent 99bb476 commit 0259f2e

File tree

3 files changed

+15
-68
lines changed

3 files changed

+15
-68
lines changed

docs/.vitepress/components/Playground/index.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<script lang="ts" setup>
2-
import './style.css'
32
import 'splitpanes/dist/splitpanes.css'
43
import { Pane, Splitpanes } from 'splitpanes'
54
</script>
@@ -17,7 +16,6 @@ import { Pane, Splitpanes } from 'splitpanes'
1716
<Pane
1817
:min-size="12"
1918
:max-size="24"
20-
:size="18"
2119
>
2220
<ActionContainer />
2321
</Pane>

docs/.vitepress/components/Playground/style.css

Lines changed: 0 additions & 66 deletions
This file was deleted.

docs/.vitepress/theme/app.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,21 @@
1616
--at-apply: "hidden";
1717
}
1818

19+
/* Overrides splitpane default theme */
20+
.page-playground .splitpanes.default-theme .splitpanes__pane {
21+
background-color: transparent;
22+
}
23+
.page-playground .splitpanes.default-theme .splitpanes__splitter {
24+
background-color: var(--vp-c-gutter);
25+
}
26+
27+
.v-codemirror {
28+
--at-apply: "h-full block!";
29+
}
30+
.v-codemirror .cm-editor {
31+
--at-apply: "h-full";
32+
}
33+
1934
/* set height for playground core */
2035
@media screen and (min-width: 960px) {
2136
.page-playground .page-playground-core {

0 commit comments

Comments
 (0)