|
1 | | -/* Custom styles for MDEditor to match the current UI theme */ |
2 | 1 | .w-md-editor { |
3 | 2 | background-color: #1a1a1a !important; |
4 | 3 | border: none !important; |
|
7 | 6 | .w-md-editor-toolbar { |
8 | 7 | background-color: #1a1a1a !important; |
9 | 8 | border-bottom: 1px solid #484848 !important; |
10 | | - padding: 8px 12px !important; |
| 9 | + padding: 15px 12px !important; |
11 | 10 | } |
12 | 11 |
|
13 | 12 | .w-md-editor-toolbar button { |
14 | 13 | color: #b5b5b5 !important; |
15 | 14 | background-color: transparent !important; |
16 | 15 | border: none !important; |
17 | | - padding: 8px !important; |
| 16 | + padding: 10px !important; |
18 | 17 | margin: 2px !important; |
19 | 18 | border-radius: 4px !important; |
20 | 19 | transition: all 0.2s ease !important; |
| 20 | + font-size: 15px !important; |
| 21 | + min-width: 26px !important; |
| 22 | + min-height: 26px !important; |
| 23 | +} |
| 24 | + |
| 25 | +.w-md-editor-toolbar button svg { |
| 26 | + width: 10px !important; |
| 27 | + height: 10px !important; |
21 | 28 | } |
22 | 29 |
|
23 | 30 | .w-md-editor-toolbar button:hover { |
|
30 | 37 | color: #000000 !important; |
31 | 38 | } |
32 | 39 |
|
| 40 | +/* Removed vertical demarcators/dividers */ |
33 | 41 | .w-md-editor-toolbar .w-md-editor-divider { |
34 | | - background-color: #484848 !important; |
35 | | - margin: 4px 8px !important; |
| 42 | + display: none !important; |
36 | 43 | } |
37 | 44 |
|
38 | 45 | .w-md-editor-text-pre, |
39 | 46 | .w-md-editor-text-input { |
40 | | - background-color: #101010 !important; |
41 | 47 | color: #ffffff !important; |
| 48 | + background: #101010 !important; |
42 | 49 | font-size: 14px !important; |
43 | 50 | line-height: 1.5 !important; |
44 | 51 | } |
45 | 52 |
|
46 | | -.w-md-editor-text-pre { |
47 | | - color: #b5b5b5 !important; |
| 53 | +/* Removed conflicting color override for text-pre */ |
| 54 | +.w-md-editor-text-pre > * { |
| 55 | + color: #ffffff !important; |
48 | 56 | } |
49 | 57 |
|
50 | 58 | .w-md-editor-text-input::placeholder { |
|
123 | 131 | gap: 4px; |
124 | 132 | } |
125 | 133 |
|
126 | | -.w-md-editor-toolbar .w-md-editor-toolbar-group:not(:last-child)::after { |
127 | | - content: ''; |
128 | | - width: 1px; |
129 | | - height: 20px; |
130 | | - background-color: #484848; |
131 | | - margin: 0 8px; |
132 | | -} |
133 | | - |
134 | | -/* Hide specific toolbar items if needed */ |
135 | | -/* Uncomment the lines below to hide specific toolbar buttons */ |
136 | | - |
137 | | -/* Hide fullscreen button */ |
138 | | -/* .w-md-editor-toolbar button[data-name="fullscreen"] { |
139 | | - display: none !important; |
140 | | -} */ |
141 | | - |
142 | | -/* Hide help button */ |
143 | | -/* .w-md-editor-toolbar button[data-name="help"] { |
144 | | - display: none !important; |
145 | | -} */ |
146 | | - |
147 | | -/* Hide preview toggle */ |
148 | | -/* .w-md-editor-toolbar button[data-name="preview"] { |
149 | | - display: none !important; |
150 | | -} */ |
151 | | - |
152 | 134 | /* Custom button styling for specific commands */ |
153 | 135 | .w-md-editor-toolbar button[data-name='bold'] { |
154 | 136 | font-weight: bold !important; |
|
161 | 143 | .w-md-editor-toolbar button[data-name='strikethrough'] { |
162 | 144 | text-decoration: line-through !important; |
163 | 145 | } |
| 146 | + |
| 147 | +.w-md-editor-text { |
| 148 | + height: 100vh !important; |
| 149 | + background-color: #101010 !important; |
| 150 | +} |
| 151 | + |
| 152 | +.wmde-markdown-color { |
| 153 | + color: #ffffff !important; |
| 154 | +} |
| 155 | + |
| 156 | +.w-md-editor-text-input, |
| 157 | +.w-md-editor-text-input textarea { |
| 158 | + color: #ffffff !important; |
| 159 | + caret-color: #ffffff !important; |
| 160 | + background-color: transparent !important; |
| 161 | +} |
| 162 | + |
| 163 | +.w-md-editor-area textarea, |
| 164 | +.w-md-editor-input textarea, |
| 165 | +textarea.w-md-editor-text-input { |
| 166 | + color: #ffffff !important; |
| 167 | + background-color: transparent !important; |
| 168 | +} |
| 169 | + |
| 170 | +/* Override any inherited black text color */ |
| 171 | +.w-md-editor-text * { |
| 172 | + color: inherit !important; |
| 173 | +} |
| 174 | + |
| 175 | +.w-md-editor-text, |
| 176 | +.w-md-editor-area, |
| 177 | +.w-md-editor-input { |
| 178 | + color: #ffffff !important; |
| 179 | +} |
| 180 | + |
| 181 | +.w-md-editor-content { |
| 182 | + border: 1px solid transparent !important; |
| 183 | + transition: border-color 0.2s ease !important; |
| 184 | +} |
| 185 | + |
| 186 | +.w-md-editor-content:has(.w-md-editor-text:focus-within) { |
| 187 | + border-color: #a7f950 !important; |
| 188 | +} |
| 189 | + |
| 190 | +.w-md-editor-toolbar button[data-name='help'], |
| 191 | +.w-md-editor-toolbar button[data-name='quote'], |
| 192 | +.w-md-editor-toolbar button[data-name='hr'] { |
| 193 | + display: none !important; |
| 194 | +} |
0 commit comments