|
6 | 6 | :style="{ maxHeight: '70%', overflowY: 'auto' }">
|
7 | 7 | <div class="flex justify-end items-center px-4 py-3 dark:border-[#2a3828]">
|
8 | 8 | <button @click="closeSheet"
|
9 |
| - class="bg-white dark:bg-[#171717] dark:border-[#484747] dark:text-gray-50 border border-gray-200 text-onPrimaryContainer backdrop-blur-xl flex px-2 p-2 rounded-2xl justify-center items-center cursor-pointer drop-shadow-cool tab-item"> |
10 |
| - <svg xmlns="http://www.w3.org/2000/svg" width="21" viewBox="0 0 24 24" class="drop-shadow-sm"> |
| 9 | + class="bg-white dark:bg-[#171717] dark:border-[#484747] dark:text-gray-50 border border-gray-200 text-black backdrop-blur-xl flex px-2 p-2 rounded-2xl justify-center items-center cursor-pointer drop-shadow-cool tab-item"> |
| 10 | + <svg xmlns="http://www.w3.org/2000/svg" width="20" viewBox="0 0 24 24" class="drop-shadow-sm"> |
11 | 11 | <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"
|
12 | 12 | d="M19 5L5 19M5 5l14 14" color="currentColor" />
|
13 | 13 | </svg>
|
|
17 | 17 | <Menu as="div" class="relative text-left">
|
18 | 18 | <div>
|
19 | 19 | <MenuButton
|
20 |
| - class="bg-white dark:bg-[#171717] dark:border-[#484747] dark:text-gray-50 border border-gray-200 text-onPrimaryContainer backdrop-blur-xl flex px-3 p-2 rounded-2xl justify-center items-center cursor-pointer drop-shadow-cool"> |
| 20 | + class="bg-white dark:bg-[#171717] dark:border-[#484747] dark:text-gray-50 border border-gray-200 text-black backdrop-blur-xl flex px-3 p-2 rounded-2xl justify-center items-center cursor-pointer drop-shadow-cool"> |
21 | 21 | <span class="mr-2 text-[18px]" :style="{ fontFamily: selectedFont }">{{ selectedFont || 'Select Font'
|
22 | 22 | }}</span>
|
23 |
| - <svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 24 24" |
24 |
| - class="opacity-20 dark:opacity-80"> |
| 23 | + <svg xmlns="http://www.w3.org/2000/svg" width="18" viewBox="0 0 24 24"> |
25 | 24 | <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"
|
26 | 25 | stroke-width="2" d="m6 9l6 6l6-6" />
|
27 | 26 | </svg>
|
|
33 | 32 | leave-active-class="transition duration-75 ease-in" leave-from-class="transform scale-100 opacity-100"
|
34 | 33 | leave-to-class="transform scale-95 opacity-0">
|
35 | 34 | <MenuItems
|
36 |
| - class="z-10 right-0 mt-4 origin-top-right divide-y rounded-2xl text-onPrimaryContainer overflow-hidden max-h-60 overflow-y-auto inline-block dark:bg-[#171717] dark:!border-[#484747] bg-white border !border-gray-200 backdrop-blur-xl justify-center items-center cursor-pointer drop-shadow-cool"> |
| 35 | + class="z-10 right-0 mt-4 origin-top-right divide-y rounded-2xl text-black overflow-hidden max-h-60 overflow-y-auto inline-block dark:bg-[#171717] dark:!border-[#484747] bg-white border !border-gray-200 backdrop-blur-xl justify-center items-center cursor-pointer drop-shadow-cool"> |
37 | 36 | <div class="p-2 inline-flex space-x-2">
|
38 | 37 | <input v-model="searchQuery" placeholder="Search"
|
39 | 38 | class="placeholder:text-gray-400 dark:placeholder:text-gray-200/80 bg-transparent outline-none mt-1 p-2 px-3 bg-white border dark:border-none border-gray-200 rounded-xl drop-shadow-cool text-black dark:bg-[#404040] dark:border-[#525252] dark:text-gray-50 flex justify-center" />
|
|
47 | 46 | </svg>
|
48 | 47 | </button>
|
49 | 48 | </div>
|
50 |
| - <div v-if="filteredFonts.length === 0" class="p-4 text-onPrimaryContainer drop-shadow-sm"> |
| 49 | + <div v-if="filteredFonts.length === 0" class="p-4 text-black drop-shadow-sm"> |
51 | 50 | No fonts found.
|
52 | 51 | </div>
|
53 |
| - <div v-else class="p-2 flex flex-col space-y-2 text-onPrimaryContainer"> |
| 52 | + <div v-else class="p-2 flex flex-col space-y-2 text-black"> |
54 | 53 | <MenuItem v-for="font in filteredFonts" :key="font" v-slot="{ active }">
|
55 | 54 | <button :class="[
|
56 | 55 | 'block w-full px-4 hover:border rounded-xl !text-xl py-2 text-left 1 dark:text-white hover:bg-gray-50 dark:hover:bg-[#404040] dark:hover:border-[#414040]', active ? 'bg-gray-50' : ''
|
|
65 | 64 |
|
66 | 65 | <div class="flex my-3 space-x-4 items-center">
|
67 | 66 | <div
|
68 |
| - class="bg-white dark:bg-[#171717] dark:border-[#484747] dark:text-gray-50 border border-gray-200 text-onPrimaryContainer backdrop-blur-xl flex px-3 p-2 rounded-2xl justify-center items-center cursor-pointer drop-shadow-cool space-x-2 text-[18px]"> |
| 67 | + class="bg-white dark:bg-[#171717] dark:border-[#484747] dark:text-gray-50 border border-gray-200 text-black backdrop-blur-xl flex px-3 p-2 rounded-2xl justify-center items-center cursor-pointer drop-shadow-cool space-x-2 text-[18px]"> |
69 | 68 | <span>Color</span>
|
70 | 69 | <input ref="colorPicker" type="color" :value="currentColor" @input="updateColor"
|
71 | 70 | class="color-picker hidden" />
|
|
86 | 85 | <div class="flex space-x-4">
|
87 | 86 | <div class="flex space-x-4 dark:text-white/40 text-black/30">
|
88 | 87 | <div
|
89 |
| - class="bg-white dark:bg-[#171717] dark:border-[#484747] dark:text-gray-50 border border-gray-200 text-onPrimaryContainer backdrop-blur-xl flex px-3 p-2 rounded-2xl justify-center items-center cursor-pointer drop-shadow-cool space-x-1 text-[18px]"> |
| 88 | + class="bg-white dark:bg-[#171717] dark:border-[#484747] dark:text-gray-50 border border-gray-200 text-black backdrop-blur-xl flex px-3 p-2 rounded-2xl justify-center items-center cursor-pointer drop-shadow-cool space-x-1 text-[18px]"> |
90 | 89 | <svg xmlns="http://www.w3.org/2000/svg" width="22" viewBox="0 0 24 24" class="drop-shadow-sm">
|
91 | 90 | <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"
|
92 | 91 | stroke-width="1.5"
|
93 | 92 | d="M10.855 8.891C11.383 8.297 11.648 8 12 8s.617.297 1.145.891l1.3 1.461c.704.79 1.055 1.185 1.055 1.648s-.351.858-1.055 1.648l-1.3 1.46c-.528.595-.793.892-1.145.892s-.617-.297-1.145-.891l-1.3-1.461C8.852 12.858 8.5 12.463 8.5 12s.351-.858 1.055-1.648zM5 12H2m20 0h-3m-7 7v3m0-20v3"
|
94 | 93 | color="currentColor" />
|
95 | 94 | </svg><span>Text align</span>
|
96 | 95 |
|
97 |
| - <div class="pl-2 flex space-x-1 text-gray-400 dark:text-white/40"><button @click="setTextAlign('left')" |
98 |
| - :class="{ 'text-gray-900 hover:text-gray-900 dark:text-white/90 dark:hover:text-white/90': isActiveAlign('left') }" |
| 96 | + <div class="pl-2 flex space-x-1 text-black/40 dark:text-white/40"><button @click="setTextAlign('left')" |
| 97 | + :class="{ 'text-black hover:text-black dark:text-white/90 dark:hover:text-white/90': isActiveAlign('left') }" |
99 | 98 | class="p-1 hover:text-gray-500 dark:hover:text-gray-200 rounded-lg">
|
100 | 99 | <svg xmlns="http://www.w3.org/2000/svg" width="20" viewBox="0 0 24 24" class="drop-shadow-sm">
|
101 | 100 | <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"
|
|
104 | 103 | </button>
|
105 | 104 |
|
106 | 105 | <button @click="setTextAlign('center')"
|
107 |
| - :class="{ 'text-gray-900 hover:text-gray-900 dark:text-white/90 dark:hover:text-white/90': isActiveAlign('center') }" |
| 106 | + :class="{ 'text-black hover:text-black dark:text-white/90 dark:hover:text-white/90': isActiveAlign('center') }" |
108 | 107 | class="p-1 hover:text-gray-500 dark:hover:text-gray-200 rounded-lg">
|
109 | 108 | <svg xmlns="http://www.w3.org/2000/svg" width="20" viewBox="0 0 24 24" class="drop-shadow-sm">
|
110 | 109 | <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"
|
|
113 | 112 | </button>
|
114 | 113 |
|
115 | 114 | <button @click="setTextAlign('right')"
|
116 |
| - :class="{ 'text-gray-900 hover:text-gray-900 dark:text-white/90 dark:hover:text-white/90': isActiveAlign('right') }" |
| 115 | + :class="{ 'text-black hover:text-black dark:text-white/90 dark:hover:text-white/90': isActiveAlign('right') }" |
117 | 116 | class="p-1 hover:text-gray-500 dark:hover:text-gray-200 rounded-lg">
|
118 | 117 | <svg xmlns="http://www.w3.org/2000/svg" width="20" viewBox="0 0 24 24" class="drop-shadow-sm">
|
119 | 118 | <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"
|
|
122 | 121 | </button>
|
123 | 122 |
|
124 | 123 | <button @click="setTextAlign('justify')"
|
125 |
| - :class="{ 'text-gray-900 hover:text-gray-900 dark:text-white/90 dark:hover:text-white/90': isActiveAlign('justify') }" |
| 124 | + :class="{ 'text-black hover:text-black dark:text-white/90 dark:hover:text-white/90': isActiveAlign('justify') }" |
126 | 125 | class="p-1 hover:text-gray-500 dark:hover:text-gray-200 rounded-lg">
|
127 | 126 | <svg xmlns="http://www.w3.org/2000/svg" width="20" viewBox="0 0 24 24" class="drop-shadow-sm">
|
128 | 127 | <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"
|
|
0 commit comments