|
1 | 1 | .promptWrapperCustom { |
2 | | - @apply relative; |
3 | | - @apply flex; |
4 | | - @apply items-center; |
5 | | - @apply rounded-2xl; |
6 | | - @apply bg-white; |
7 | | - @apply text-base; |
8 | | - @apply shadow-sm; |
| 2 | + @apply relative, |
| 3 | + flex, |
| 4 | + items-center, |
| 5 | + rounded-2xl, |
| 6 | + bg-white, |
| 7 | + text-base, |
| 8 | + shadow-sm, |
| 9 | + !bg-neutral-900, |
| 10 | + !border, |
| 11 | + !border-neutral-700, |
| 12 | + !text-white; |
9 | 13 |
|
10 | | - background-color: #1a1a1a !important; |
11 | | - border: 1px solid #2c3437 !important; |
12 | | - color: #fff !important; |
13 | 14 | margin: 0 var(--spacing-l, calc(16rem / var(--orama-base-font-size, 16))) !important; |
14 | 15 | } |
15 | 16 |
|
16 | 17 | .promptFieldCustom { |
17 | | - @apply w-full; |
18 | | - @apply resize-none; |
19 | | - @apply border-0; |
20 | | - @apply px-0; |
21 | | - @apply py-0; |
22 | | - @apply text-white; |
23 | | - @apply placeholder:text-neutral-400; |
24 | | - @apply focus:outline-none; |
25 | | - |
26 | | - background: transparent !important; |
| 18 | + @apply w-full, |
| 19 | + resize-none, |
| 20 | + border-0, |
| 21 | + px-0, |
| 22 | + py-0, |
| 23 | + text-white, |
| 24 | + placeholder:text-neutral-400, |
| 25 | + focus:outline-none, |
| 26 | + !bg-transparent; |
27 | 27 | } |
28 | 28 |
|
29 | 29 | .promptButtonCustom { |
30 | | - @apply cursor-pointer; |
31 | | - @apply rounded-lg; |
32 | | - @apply p-4; |
33 | | - @apply text-white; |
34 | | - @apply transition-colors; |
35 | | - @apply duration-300; |
36 | | - @apply disabled:cursor-not-allowed; |
37 | | - @apply disabled:bg-neutral-600; |
38 | | - @apply disabled:text-neutral-400; |
39 | | - |
40 | | - background: #22c55e !important; |
| 30 | + @apply cursor-pointer, |
| 31 | + rounded-lg, |
| 32 | + p-4, |
| 33 | + text-white, |
| 34 | + transition-colors, |
| 35 | + duration-300, |
| 36 | + disabled:cursor-not-allowed, |
| 37 | + disabled:bg-neutral-600, |
| 38 | + disabled:text-neutral-400, |
| 39 | + !bg-green-500; |
41 | 40 | } |
42 | 41 |
|
43 | 42 | /* High specificity overrides for Orama textarea components */ |
44 | 43 | :global(.oramaPromptTextarea) { |
45 | | - background-color: #1a1a1a !important; |
46 | | - border: 1px solid #2c3437 !important; |
47 | | - border-radius: 16px !important; |
48 | | - color: #fff !important; |
| 44 | + @apply !bg-neutral-900, |
| 45 | + !border, |
| 46 | + !border-neutral-700, |
| 47 | + !rounded-2xl, |
| 48 | + !text-white, |
| 49 | + !font-normal, |
| 50 | + !text-base, |
| 51 | + !leading-normal, |
| 52 | + !outline-none, |
| 53 | + !resize-none, |
| 54 | + !w-full; |
| 55 | + |
49 | 56 | font-family: inherit !important; |
50 | | - font-size: 16px !important; |
51 | | - font-weight: 400 !important; |
52 | | - line-height: 1.5 !important; |
53 | 57 | margin: 0 var(--spacing-l, calc(16rem / var(--orama-base-font-size, 16))) !important; |
54 | | - outline: none !important; |
55 | 58 | padding: 12px 16px !important; |
56 | | - resize: none !important; |
57 | | - width: 100% !important; |
58 | 59 | } |
59 | 60 |
|
60 | 61 | :global(.oramaPromptTextarea::placeholder) { |
61 | | - color: #9ca3af !important; |
| 62 | + @apply !text-gray-400; |
62 | 63 | } |
63 | 64 |
|
64 | 65 | :global(.oramaPromptTextarea:focus) { |
65 | | - border-color: #374151 !important; |
66 | | - outline: none !important; |
| 66 | + @apply !border-gray-600, |
| 67 | + !outline-none; |
67 | 68 | } |
68 | 69 |
|
69 | 70 | /* Responsive font sizes */ |
70 | 71 | @media (max-width: 768px) { |
71 | 72 | :global(.oramaPromptTextarea) { |
72 | | - font-size: 16px !important; |
| 73 | + @apply !text-base; |
73 | 74 | } |
74 | 75 | } |
75 | 76 |
|
76 | 77 | .slidingPanelFooter { |
77 | | - @apply flex; |
78 | | - @apply items-center; |
79 | | - @apply justify-center; |
80 | | - @apply pt-1; |
81 | | - @apply text-xs; |
82 | | - @apply text-neutral-400; |
| 78 | + @apply flex, |
| 79 | + items-center, |
| 80 | + justify-center, |
| 81 | + pt-1, |
| 82 | + text-xs, |
| 83 | + text-neutral-400; |
83 | 84 |
|
84 | 85 | margin-top: 16px; |
85 | 86 | } |
0 commit comments