Skip to content

Commit 5e106c4

Browse files
committed
docs: style fixes
1 parent 47b3834 commit 5e106c4

File tree

7 files changed

+27
-5
lines changed

7 files changed

+27
-5
lines changed

Diff for: docs/.vitepress/components/ArrowPadding.vue

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
:prevent-overflow="false"
1010
:arrow-padding="tempPadding"
1111
:auto-hide="false"
12+
class="w-max"
1213
>
1314
<button class="px-4 py-12 md:p-16 bg-gray-500 text-white rounded-lg !md:text-sm">
1415
Reference

Diff for: docs/.vitepress/components/DropdownSimpleExample.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
@apply-hide="log('apply-hide')"
88
@update:shown="log('update:shown', $event)"
99
>
10-
<button class="border border-gray-300 rounded px-4 py-2">
10+
<button class="border border-gray-500 rounded px-4 py-2">
1111
Click me
1212
</button>
1313

Diff for: docs/.vitepress/components/MenuSimpleExample.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<template>
22
<div class="example flex justify-center">
33
<VMenu>
4-
<button class="border border-gray-300 rounded px-4 py-2">
4+
<button class="border border-gray-500 rounded px-4 py-2">
55
Hover me
66
</button>
77

88
<template #popper>
99
<button
10-
class="border border-gray-300 rounded px-4 py-2 m-4"
10+
class="border border-gray-500 rounded px-4 py-2 m-4"
1111
@click="count++"
1212
>
1313
+{{ count }}

Diff for: docs/.vitepress/components/OffsetExample.vue

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
:skidding="tempOffset[0]"
1010
:prevent-overflow="false"
1111
:arrow-padding="6"
12+
class="w-max"
1213
>
1314
<button class="px-4 py-12 md:p-16 bg-gray-500 text-white rounded-lg !md:text-sm">
1415
Reference

Diff for: docs/.vitepress/components/SubMenuExample.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
placement="right-start"
2828
instant-move
2929
>
30-
<button class="rounded hover:bg-green-100 px-4 py-2">
30+
<button class="rounded hover:bg-green-100 px-4 py-2 w-full">
3131
Option {{ m }} >
3232
</button>
3333

Diff for: docs/.vitepress/theme/style.postcss

+20
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
@tailwind components;
33
@tailwind utilities;
44

5+
:root {
6+
--vp-z-index-nav: 10500;
7+
}
8+
59
.example {
610
@apply border-gray-500/25 border rounded-lg p-6 text-center;
711
background-color: var(--vp-c-mute);
@@ -18,3 +22,19 @@
1822
.v-popper--theme-_editor-dropdown .v-popper__inner {
1923
@apply p-2;
2024
}
25+
26+
27+
/* Fix base styles for Tailwind (vitepress) */
28+
29+
button, input, optgroup, select, textarea {
30+
border-style: solid;
31+
}
32+
33+
.example select {
34+
appearance: auto;
35+
}
36+
37+
.example option {
38+
color: black;
39+
background: white;
40+
}

Diff for: docs/guide/component.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Component
1+
# Components
22

33
For more advanced use cases such as dropdowns, you can use the components instead of the `v-tooltip` directive.
44

0 commit comments

Comments
 (0)