Skip to content

Commit 90d9dd2

Browse files
committed
docs: improve styles in dark mode
1 parent e1f40af commit 90d9dd2

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

docs/.vitepress/components/DropdownMobileDemo.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export default {
5151

5252
<div v-if="isMobile">
5353
<button
54-
class="bg-gray-300 rounded px-4 py-2 w-full"
54+
class="bg-gray-300/25 rounded px-4 py-2 w-full"
5555
@click="hide()"
5656
>
5757
Cancel

docs/.vitepress/components/DropdownPlacement.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
<select
3232
v-model="placement"
33-
class="bg-gray-300 rounded px-4 py-2"
33+
class="bg-gray-300/25 rounded px-4 py-2"
3434
>
3535
<option
3636
v-for="p of placements"

docs/.vitepress/components/TooltipPlacement.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
<select
1818
v-model="placement"
19-
class="bg-gray-300 rounded px-4 py-2"
19+
class="bg-gray-300/25 rounded px-4 py-2"
2020
>
2121
<option
2222
v-for="p of placements"

docs/.vitepress/components/theme-editor/Button.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default {
2323
hover: 'hover:bg-red-200 hover:text-red-900',
2424
},
2525
gray: {
26-
normal: 'bg-gray-300 text-gray-900',
26+
normal: 'bg-gray-300/25 text-gray-900',
2727
hover: 'hover:bg-gray-200 hover:text-gray-900',
2828
},
2929
}

docs/.vitepress/theme/style.postcss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
@tailwind utilities;
44

55
.example {
6-
@apply border-gray-300 border rounded-lg bg-gray-100 p-6 text-center;
6+
@apply border-gray-500/25 border rounded-lg p-6 text-center;
7+
background-color: var(--vp-c-mute);
78
}
89

910
.v-popper__popper {

0 commit comments

Comments
 (0)