| 1 |
@tailwind base; |
| 2 |
@tailwind components; |
| 3 |
@tailwind utilities; |
| 4 |
|
| 5 |
@layer base { |
| 6 |
:root { |
| 7 |
--background: 0 0% 100%; |
| 8 |
--foreground: 222.2 84% 4.9%; |
| 9 |
--card: 0 0% 100%; |
| 10 |
--card-foreground: 222.2 84% 4.9%; |
| 11 |
--popover: 0 0% 100%; |
| 12 |
--popover-foreground: 222.2 84% 4.9%; |
| 13 |
--primary: 221.2 83.2% 53.3%; |
| 14 |
--primary-foreground: 210 40% 98%; |
| 15 |
--secondary: 210 40% 96.1%; |
| 16 |
--secondary-foreground: 222.2 47.4% 11.2%; |
| 17 |
--muted: 210 40% 96.1%; |
| 18 |
--muted-foreground: 215.4 16.3% 46.9%; |
| 19 |
--accent: 210 40% 96.1%; |
| 20 |
--accent-foreground: 222.2 47.4% 11.2%; |
| 21 |
--destructive: 0 84.2% 60.2%; |
| 22 |
--destructive-foreground: 210 40% 98%; |
| 23 |
--border: 214.3 31.8% 91.4%; |
| 24 |
--input: 214.3 31.8% 91.4%; |
| 25 |
--ring: 221.2 83.2% 53.3%; |
| 26 |
--radius: 0.5rem; |
| 27 |
} |
| 28 |
|
| 29 |
.dark { |
| 30 |
--background: 222.2 84% 4.9%; |
| 31 |
--foreground: 210 40% 98%; |
| 32 |
--card: 222.2 84% 4.9%; |
| 33 |
--card-foreground: 210 40% 98%; |
| 34 |
--popover: 222.2 84% 4.9%; |
| 35 |
--popover-foreground: 210 40% 98%; |
| 36 |
--primary: 217.2 91.2% 59.8%; |
| 37 |
--primary-foreground: 222.2 47.4% 11.2%; |
| 38 |
--secondary: 217.2 32.6% 17.5%; |
| 39 |
--secondary-foreground: 210 40% 98%; |
| 40 |
--muted: 217.2 32.6% 17.5%; |
| 41 |
--muted-foreground: 215 20.2% 65.1%; |
| 42 |
--accent: 217.2 32.6% 17.5%; |
| 43 |
--accent-foreground: 210 40% 98%; |
| 44 |
--destructive: 0 62.8% 30.6%; |
| 45 |
--destructive-foreground: 210 40% 98%; |
| 46 |
--border: 217.2 32.6% 17.5%; |
| 47 |
--input: 217.2 32.6% 17.5%; |
| 48 |
--ring: 224.3 76.3% 94.9%; |
| 49 |
} |
| 50 |
} |
| 51 |
|
| 52 |
@layer base { |
| 53 |
* { |
| 54 |
@apply border-border; |
| 55 |
} |
| 56 |
body { |
| 57 |
@apply bg-background text-foreground; |
| 58 |
} |
| 59 |
} |
| 60 |
|
| 61 |
/* Quill Editor Custom Styles - Reusable Component */ |
| 62 |
.yatra-quill-editor .quill { |
| 63 |
display: flex; |
| 64 |
flex-direction: column; |
| 65 |
} |
| 66 |
|
| 67 |
/* Toolbar - Light gray background to differentiate from editor */ |
| 68 |
.yatra-quill-editor .ql-toolbar { |
| 69 |
border: 1px solid #e5e7eb; |
| 70 |
border-bottom: none; |
| 71 |
border-radius: 0.5rem 0.5rem 0 0; |
| 72 |
background-color: #f9fafb; |
| 73 |
padding: 0.5rem; |
| 74 |
} |
| 75 |
|
| 76 |
/* Editor Container - White background */ |
| 77 |
.yatra-quill-editor .ql-container { |
| 78 |
border: 1px solid #e5e7eb; |
| 79 |
border-top: none; |
| 80 |
border-radius: 0 0 0.5rem 0.5rem; |
| 81 |
background-color: #ffffff; |
| 82 |
font-family: inherit; |
| 83 |
font-size: 1rem; |
| 84 |
flex: 1; |
| 85 |
} |
| 86 |
|
| 87 |
/* Editor Content Area */ |
| 88 |
.yatra-quill-editor .ql-editor { |
| 89 |
min-height: 280px; |
| 90 |
max-height: 600px; |
| 91 |
overflow-y: auto; |
| 92 |
padding: 1rem; |
| 93 |
line-height: 1.6; |
| 94 |
} |
| 95 |
|
| 96 |
/* Placeholder styling */ |
| 97 |
.yatra-quill-editor .ql-editor.ql-blank::before { |
| 98 |
color: #9ca3af; |
| 99 |
font-style: italic; |
| 100 |
left: 1rem; |
| 101 |
right: 1rem; |
| 102 |
} |
| 103 |
|
| 104 |
/* Toolbar button styling */ |
| 105 |
.yatra-quill-editor .ql-toolbar button { |
| 106 |
width: 28px; |
| 107 |
height: 28px; |
| 108 |
display: inline-flex; |
| 109 |
align-items: center; |
| 110 |
justify-content: center; |
| 111 |
border-radius: 0.25rem; |
| 112 |
transition: background-color 0.15s ease; |
| 113 |
} |
| 114 |
|
| 115 |
.yatra-quill-editor .ql-toolbar button:hover { |
| 116 |
background-color: #e5e7eb; |
| 117 |
} |
| 118 |
|
| 119 |
.yatra-quill-editor .ql-toolbar button.ql-active { |
| 120 |
background-color: #dbeafe; |
| 121 |
color: #3b82f6; |
| 122 |
} |
| 123 |
|
| 124 |
/* Dropdown styling */ |
| 125 |
.yatra-quill-editor .ql-toolbar .ql-picker { |
| 126 |
border-radius: 0.25rem; |
| 127 |
} |
| 128 |
|
| 129 |
.yatra-quill-editor .ql-toolbar .ql-picker:hover { |
| 130 |
background-color: #e5e7eb; |
| 131 |
} |
| 132 |
|
| 133 |
/* Dark mode support */ |
| 134 |
.dark .yatra-quill-editor .ql-toolbar { |
| 135 |
background-color: #374151; |
| 136 |
border-color: #4b5563; |
| 137 |
} |
| 138 |
|
| 139 |
.dark .yatra-quill-editor .ql-container { |
| 140 |
background-color: #1f2937; |
| 141 |
border-color: #4b5563; |
| 142 |
} |
| 143 |
|
| 144 |
.dark .yatra-quill-editor .ql-editor { |
| 145 |
color: #f9fafb; |
| 146 |
} |
| 147 |
|
| 148 |
.dark .yatra-quill-editor .ql-editor.ql-blank::before { |
| 149 |
color: #6b7280; |
| 150 |
} |
| 151 |
|
| 152 |
.dark .yatra-quill-editor .ql-toolbar button:hover { |
| 153 |
background-color: #4b5563; |
| 154 |
} |
| 155 |
|
| 156 |
.dark .yatra-quill-editor .ql-toolbar button.ql-active { |
| 157 |
background-color: #1e3a8a; |
| 158 |
color: #93c5fd; |
| 159 |
} |
| 160 |
|
| 161 |
.dark .yatra-quill-editor .ql-toolbar .ql-picker:hover { |
| 162 |
background-color: #4b5563; |
| 163 |
} |
| 164 |
|
| 165 |
.dark .yatra-quill-editor .ql-stroke { |
| 166 |
stroke: #d1d5db; |
| 167 |
} |
| 168 |
|
| 169 |
.dark .yatra-quill-editor .ql-fill { |
| 170 |
fill: #d1d5db; |
| 171 |
} |
| 172 |
|
| 173 |
.dark .yatra-quill-editor .ql-picker-label { |
| 174 |
color: #d1d5db; |
| 175 |
} |
| 176 |
|
| 177 |
.dark .yatra-quill-editor .ql-picker-options { |
| 178 |
background-color: #374151; |
| 179 |
border-color: #4b5563; |
| 180 |
} |
| 181 |
|
| 182 |
.dark .yatra-quill-editor .ql-picker-item:hover { |
| 183 |
background-color: #4b5563; |
| 184 |
color: #f9fafb; |
| 185 |
} |
| 186 |
|