plutonium 0.15.18 → 0.15.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/plutonium.css +1 -1
- data/app/views/components/table/table_component.rb +1 -1
- data/lib/generators/pu/core/assets/assets_generator.rb +15 -1
- data/lib/generators/pu/core/assets/templates/postcss.config.js +12 -0
- data/lib/plutonium/resource/query_object.rb +5 -5
- data/lib/plutonium/ui/layout/base.rb +20 -19
- data/lib/plutonium/ui/table/components/scopes_bar.rb +4 -4
- data/lib/plutonium/ui/table/resource.rb +4 -1
- data/lib/plutonium/version.rb +1 -1
- data/package-lock.json +58 -5
- data/package.json +2 -1
- data/postcss-gem-import.js +28 -0
- data/postcss.config.js +1 -0
- data/src/css/core.css +13 -0
- data/src/css/easymde.css +649 -0
- data/src/css/plutonium.css +3 -15
- data/tailwind.options.js +3 -1
- metadata +6 -2
data/src/css/easymde.css
ADDED
@@ -0,0 +1,649 @@
|
|
1
|
+
/**
|
2
|
+
* EasyMDE + CodeMirror Styles
|
3
|
+
* Based on easymde v2.18.0
|
4
|
+
* Adapted for Tailwind with dark mode support
|
5
|
+
*/
|
6
|
+
|
7
|
+
@layer components {
|
8
|
+
|
9
|
+
/* CodeMirror Core */
|
10
|
+
.CodeMirror {
|
11
|
+
@apply font-mono relative overflow-hidden bg-white dark:bg-gray-800 text-black dark:text-white;
|
12
|
+
direction: ltr;
|
13
|
+
}
|
14
|
+
|
15
|
+
.CodeMirror-lines {
|
16
|
+
padding: 4px 0;
|
17
|
+
}
|
18
|
+
|
19
|
+
.CodeMirror-scroll {
|
20
|
+
overflow: scroll !important;
|
21
|
+
margin-bottom: -50px;
|
22
|
+
margin-right: -50px;
|
23
|
+
padding-bottom: 50px;
|
24
|
+
height: 100%;
|
25
|
+
outline: none;
|
26
|
+
position: relative;
|
27
|
+
z-index: 0;
|
28
|
+
-webkit-overflow-scrolling: touch;
|
29
|
+
}
|
30
|
+
|
31
|
+
.CodeMirror-sizer {
|
32
|
+
position: relative;
|
33
|
+
border-right: 50px solid transparent;
|
34
|
+
box-sizing: content-box;
|
35
|
+
}
|
36
|
+
|
37
|
+
.CodeMirror-vscrollbar,
|
38
|
+
.CodeMirror-hscrollbar,
|
39
|
+
.CodeMirror-scrollbar-filler,
|
40
|
+
.CodeMirror-gutter-filler {
|
41
|
+
position: absolute;
|
42
|
+
z-index: 6;
|
43
|
+
display: none;
|
44
|
+
outline: none;
|
45
|
+
}
|
46
|
+
|
47
|
+
.CodeMirror-vscrollbar {
|
48
|
+
right: 0;
|
49
|
+
top: 0;
|
50
|
+
overflow-x: hidden;
|
51
|
+
overflow-y: scroll;
|
52
|
+
}
|
53
|
+
|
54
|
+
.CodeMirror-hscrollbar {
|
55
|
+
bottom: 0;
|
56
|
+
left: 0;
|
57
|
+
overflow-y: hidden;
|
58
|
+
overflow-x: scroll;
|
59
|
+
}
|
60
|
+
|
61
|
+
.CodeMirror-scrollbar-filler {
|
62
|
+
right: 0;
|
63
|
+
bottom: 0;
|
64
|
+
}
|
65
|
+
|
66
|
+
.CodeMirror-gutter-filler {
|
67
|
+
left: 0;
|
68
|
+
bottom: 0;
|
69
|
+
}
|
70
|
+
|
71
|
+
.CodeMirror-gutters {
|
72
|
+
@apply absolute left-0 top-0 min-h-full z-[3] border-r border-gray-200 dark:border-gray-600 bg-gray-50 dark:bg-gray-700;
|
73
|
+
white-space: nowrap;
|
74
|
+
box-sizing: content-box;
|
75
|
+
}
|
76
|
+
|
77
|
+
.CodeMirror-linenumber {
|
78
|
+
@apply text-gray-500 dark:text-gray-400;
|
79
|
+
padding: 0 3px 0 5px;
|
80
|
+
min-width: 20px;
|
81
|
+
text-align: right;
|
82
|
+
white-space: nowrap;
|
83
|
+
}
|
84
|
+
|
85
|
+
/* Cursor and Selection */
|
86
|
+
.CodeMirror-cursor {
|
87
|
+
@apply border-l border-black dark:border-white border-r-0;
|
88
|
+
width: 0;
|
89
|
+
position: absolute;
|
90
|
+
pointer-events: none;
|
91
|
+
}
|
92
|
+
|
93
|
+
.cm-fat-cursor .CodeMirror-cursor {
|
94
|
+
width: auto;
|
95
|
+
border: 0 !important;
|
96
|
+
background: #77ee77;
|
97
|
+
}
|
98
|
+
|
99
|
+
.cm-fat-cursor div.CodeMirror-cursors {
|
100
|
+
z-index: 1;
|
101
|
+
}
|
102
|
+
|
103
|
+
.CodeMirror-selected {
|
104
|
+
@apply bg-gray-200 dark:bg-gray-600;
|
105
|
+
}
|
106
|
+
|
107
|
+
.CodeMirror-focused .CodeMirror-selected {
|
108
|
+
@apply bg-blue-100 dark:bg-blue-900/30;
|
109
|
+
}
|
110
|
+
|
111
|
+
/* Line Styles */
|
112
|
+
.CodeMirror pre.CodeMirror-line,
|
113
|
+
.CodeMirror pre.CodeMirror-line-like {
|
114
|
+
padding: 0 4px;
|
115
|
+
margin: 0;
|
116
|
+
border-radius: 0;
|
117
|
+
border-width: 0;
|
118
|
+
background: transparent;
|
119
|
+
font-family: inherit;
|
120
|
+
font-size: inherit;
|
121
|
+
white-space: pre;
|
122
|
+
word-wrap: normal;
|
123
|
+
line-height: inherit;
|
124
|
+
color: inherit;
|
125
|
+
z-index: 2;
|
126
|
+
position: relative;
|
127
|
+
overflow: visible;
|
128
|
+
-webkit-tap-highlight-color: transparent;
|
129
|
+
font-variant-ligatures: contextual;
|
130
|
+
}
|
131
|
+
|
132
|
+
.CodeMirror-wrap pre.CodeMirror-line,
|
133
|
+
.CodeMirror-wrap pre.CodeMirror-line-like {
|
134
|
+
word-wrap: break-word;
|
135
|
+
white-space: pre-wrap;
|
136
|
+
word-break: normal;
|
137
|
+
}
|
138
|
+
|
139
|
+
/* Gutter */
|
140
|
+
.CodeMirror-gutter {
|
141
|
+
white-space: normal;
|
142
|
+
height: 100%;
|
143
|
+
display: inline-block;
|
144
|
+
vertical-align: top;
|
145
|
+
margin-bottom: -50px;
|
146
|
+
box-sizing: content-box;
|
147
|
+
}
|
148
|
+
|
149
|
+
.CodeMirror-gutter-wrapper {
|
150
|
+
position: absolute;
|
151
|
+
z-index: 4;
|
152
|
+
background: none !important;
|
153
|
+
border: none !important;
|
154
|
+
}
|
155
|
+
|
156
|
+
/* EasyMDE Container */
|
157
|
+
.EasyMDEContainer {
|
158
|
+
@apply block;
|
159
|
+
}
|
160
|
+
|
161
|
+
.EasyMDEContainer.sided--no-fullscreen {
|
162
|
+
@apply flex flex-row flex-wrap;
|
163
|
+
}
|
164
|
+
|
165
|
+
.EasyMDEContainer .CodeMirror {
|
166
|
+
@apply box-border border h-auto border-gray-300 dark:border-gray-600 rounded-b-lg p-2.5 z-0 break-words;
|
167
|
+
}
|
168
|
+
|
169
|
+
.EasyMDEContainer .CodeMirror-fullscreen {
|
170
|
+
@apply fixed inset-x-0 top-[50px] bottom-0 h-auto z-40 border-r-0 rounded-br-none bg-white dark:bg-gray-800;
|
171
|
+
}
|
172
|
+
|
173
|
+
.EasyMDEContainer .CodeMirror-sided {
|
174
|
+
width: 50% !important;
|
175
|
+
}
|
176
|
+
|
177
|
+
.EasyMDEContainer.sided--no-fullscreen .CodeMirror-sided {
|
178
|
+
@apply border-r-0 rounded-br-none relative flex-1;
|
179
|
+
}
|
180
|
+
|
181
|
+
.EasyMDEContainer .CodeMirror-placeholder {
|
182
|
+
@apply opacity-50;
|
183
|
+
}
|
184
|
+
|
185
|
+
/* Editor Toolbar */
|
186
|
+
.editor-toolbar {
|
187
|
+
@apply relative select-none p-2.5 border-t border-l border-r border-gray-300 dark:border-gray-600 rounded-t-lg bg-white dark:bg-gray-800 space-x-1;
|
188
|
+
}
|
189
|
+
|
190
|
+
.editor-toolbar.fullscreen {
|
191
|
+
@apply w-full h-[50px] py-2.5 px-0 box-border fixed top-0 left-0 opacity-100 z-50 border-0;
|
192
|
+
}
|
193
|
+
|
194
|
+
.editor-toolbar button {
|
195
|
+
@apply bg-transparent inline-block text-center no-underline h-[30px] m-0 p-0 border border-transparent rounded cursor-pointer min-w-[30px] px-1.5 whitespace-nowrap text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 font-bold;
|
196
|
+
}
|
197
|
+
|
198
|
+
.editor-toolbar button.active {
|
199
|
+
@apply bg-gray-100 dark:bg-gray-700 border-gray-300 dark:border-gray-600;
|
200
|
+
}
|
201
|
+
|
202
|
+
.editor-toolbar i.separator {
|
203
|
+
@apply inline-block w-0 border-l border-r border-l-gray-300 border-r-white dark:border-l-gray-600 dark:border-r-gray-800 text-transparent -indent-[10px] mx-1.5;
|
204
|
+
}
|
205
|
+
|
206
|
+
.editor-toolbar button:after {
|
207
|
+
font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
|
208
|
+
font-size: 65%;
|
209
|
+
vertical-align: text-bottom;
|
210
|
+
position: relative;
|
211
|
+
top: 2px;
|
212
|
+
}
|
213
|
+
|
214
|
+
.editor-toolbar button.heading-1:after {
|
215
|
+
content: "1";
|
216
|
+
}
|
217
|
+
|
218
|
+
.editor-toolbar button.heading-2:after {
|
219
|
+
content: "2";
|
220
|
+
}
|
221
|
+
|
222
|
+
.editor-toolbar button.heading-3:after {
|
223
|
+
content: "3";
|
224
|
+
}
|
225
|
+
|
226
|
+
.editor-toolbar button.heading-bigger:after {
|
227
|
+
content: "▲";
|
228
|
+
}
|
229
|
+
|
230
|
+
.editor-toolbar button.heading-smaller:after {
|
231
|
+
content: "▼";
|
232
|
+
}
|
233
|
+
|
234
|
+
/* Preview */
|
235
|
+
.editor-preview {
|
236
|
+
@apply p-2.5 bg-gray-50 dark:bg-gray-900 prose dark:prose-invert max-w-none prose-sm sm:prose-base;
|
237
|
+
}
|
238
|
+
|
239
|
+
.editor-preview-side {
|
240
|
+
@apply fixed bottom-0 w-1/2 top-[50px] right-0 z-50 overflow-auto hidden box-border border border-gray-300 dark:border-gray-600 break-words prose dark:prose-invert max-w-none prose-sm sm:prose-base;
|
241
|
+
}
|
242
|
+
|
243
|
+
.editor-preview-active-side {
|
244
|
+
@apply block;
|
245
|
+
}
|
246
|
+
|
247
|
+
.EasyMDEContainer.sided--no-fullscreen .editor-preview-active-side {
|
248
|
+
@apply flex-1 h-auto static;
|
249
|
+
}
|
250
|
+
|
251
|
+
.editor-preview>p {
|
252
|
+
@apply mt-0;
|
253
|
+
}
|
254
|
+
|
255
|
+
.editor-preview pre {
|
256
|
+
@apply bg-gray-100 dark:bg-gray-800 mb-2.5;
|
257
|
+
}
|
258
|
+
|
259
|
+
.editor-preview table td,
|
260
|
+
.editor-preview table th {
|
261
|
+
@apply border border-gray-300 dark:border-gray-600 p-1.5;
|
262
|
+
}
|
263
|
+
|
264
|
+
/* Status Bar */
|
265
|
+
.editor-statusbar {
|
266
|
+
@apply p-2 text-sm text-gray-500 dark:text-gray-400 text-right;
|
267
|
+
}
|
268
|
+
|
269
|
+
.EasyMDEContainer.sided--no-fullscreen .editor-statusbar {
|
270
|
+
@apply w-full;
|
271
|
+
}
|
272
|
+
|
273
|
+
.editor-statusbar span {
|
274
|
+
@apply inline-block min-w-[4em] ml-4;
|
275
|
+
}
|
276
|
+
|
277
|
+
.editor-statusbar .lines:before {
|
278
|
+
content: 'lines: ';
|
279
|
+
}
|
280
|
+
|
281
|
+
.editor-statusbar .words:before {
|
282
|
+
content: 'words: ';
|
283
|
+
}
|
284
|
+
|
285
|
+
.editor-statusbar .characters:before {
|
286
|
+
content: 'characters: ';
|
287
|
+
}
|
288
|
+
|
289
|
+
/* Syntax Highlighting */
|
290
|
+
/* .cm-s-easymde .cm-header {
|
291
|
+
@apply text-blue-600 dark:text-blue-400;
|
292
|
+
} */
|
293
|
+
|
294
|
+
.cm-s-easymde .cm-em {
|
295
|
+
@apply italic text-secondary-600 dark:text-secondary-400;
|
296
|
+
}
|
297
|
+
|
298
|
+
.cm-s-easymde .cm-strong {
|
299
|
+
@apply font-bold text-secondary-600 dark:text-secondary-400;
|
300
|
+
}
|
301
|
+
|
302
|
+
.cm-s-easymde .cm-strikethrough {
|
303
|
+
@apply line-through italic text-secondary-600 dark:text-secondary-400;
|
304
|
+
}
|
305
|
+
|
306
|
+
.cm-s-easymde .cm-quote {
|
307
|
+
@apply text-green-700 dark:text-green-400;
|
308
|
+
}
|
309
|
+
|
310
|
+
.cm-s-easymde .cm-keyword {
|
311
|
+
@apply text-purple-600 dark:text-purple-400;
|
312
|
+
}
|
313
|
+
|
314
|
+
.cm-s-easymde .cm-atom {
|
315
|
+
@apply text-blue-800 dark:text-blue-300;
|
316
|
+
}
|
317
|
+
|
318
|
+
.cm-s-easymde .cm-number {
|
319
|
+
@apply text-green-800 dark:text-green-300;
|
320
|
+
}
|
321
|
+
|
322
|
+
.cm-s-easymde .cm-def {
|
323
|
+
@apply text-blue-600 dark:text-blue-400;
|
324
|
+
}
|
325
|
+
|
326
|
+
.cm-s-easymde .cm-variable {
|
327
|
+
@apply text-gray-800 dark:text-gray-300;
|
328
|
+
}
|
329
|
+
|
330
|
+
.cm-s-easymde .cm-variable-2 {
|
331
|
+
@apply text-blue-700 dark:text-blue-300;
|
332
|
+
}
|
333
|
+
|
334
|
+
.cm-s-easymde .cm-variable-3 {
|
335
|
+
@apply text-teal-700 dark:text-teal-300;
|
336
|
+
}
|
337
|
+
|
338
|
+
.cm-s-easymde .cm-link {
|
339
|
+
@apply text-secondary-700 dark:text-secondary-300;
|
340
|
+
}
|
341
|
+
|
342
|
+
.cm-s-easymde .cm-url {
|
343
|
+
@apply text-primary-700 dark:text-primary-300;
|
344
|
+
}
|
345
|
+
|
346
|
+
.cm-s-easymde .cm-string-2 {
|
347
|
+
@apply text-orange-600 dark:text-orange-300;
|
348
|
+
}
|
349
|
+
|
350
|
+
.cm-s-easymde .cm-comment {
|
351
|
+
@apply text-gray-600 dark:text-gray-400 font-mono;
|
352
|
+
}
|
353
|
+
|
354
|
+
.cm-s-easymde .cm-tag {
|
355
|
+
color: #63a35c;
|
356
|
+
}
|
357
|
+
|
358
|
+
.cm-s-easymde .cm-meta {
|
359
|
+
@apply text-gray-600 dark:text-gray-400;
|
360
|
+
}
|
361
|
+
|
362
|
+
.cm-s-easymde .cm-attribute {
|
363
|
+
color: #795da3;
|
364
|
+
}
|
365
|
+
|
366
|
+
.cm-s-easymde .cm-error {
|
367
|
+
@apply text-red-600 dark:text-red-400;
|
368
|
+
}
|
369
|
+
|
370
|
+
.cm-s-easymde .cm-header-1 {
|
371
|
+
font-size: calc(1.375rem + 1.5vw);
|
372
|
+
}
|
373
|
+
|
374
|
+
.cm-s-easymde .cm-header-2 {
|
375
|
+
font-size: calc(1.325rem + .9vw);
|
376
|
+
}
|
377
|
+
|
378
|
+
.cm-s-easymde .cm-header-3 {
|
379
|
+
font-size: calc(1.3rem + .6vw);
|
380
|
+
}
|
381
|
+
|
382
|
+
.cm-s-easymde .cm-header-4 {
|
383
|
+
font-size: calc(1.275rem + .3vw);
|
384
|
+
}
|
385
|
+
|
386
|
+
.cm-s-easymde .cm-header-5 {
|
387
|
+
font-size: 1.25rem;
|
388
|
+
}
|
389
|
+
|
390
|
+
.cm-s-easymde .cm-header-6 {
|
391
|
+
font-size: 1rem;
|
392
|
+
}
|
393
|
+
|
394
|
+
.cm-s-easymde .cm-header-1,
|
395
|
+
.cm-s-easymde .cm-header-2,
|
396
|
+
.cm-s-easymde .cm-header-3,
|
397
|
+
.cm-s-easymde .cm-header-4,
|
398
|
+
.cm-s-easymde .cm-header-5,
|
399
|
+
.cm-s-easymde .cm-header-6 {
|
400
|
+
@apply mb-2 leading-tight;
|
401
|
+
}
|
402
|
+
|
403
|
+
/* Dropdown */
|
404
|
+
.editor-toolbar .easymde-dropdown {
|
405
|
+
@apply relative bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-600;
|
406
|
+
background: linear-gradient(to bottom right, #fff 0, #fff 84%, #333 50%, #333 100%);
|
407
|
+
}
|
408
|
+
|
409
|
+
.editor-toolbar .easymde-dropdown:hover {
|
410
|
+
background: linear-gradient(to bottom right, #fff 0, #fff 84%, #333 50%, #333 100%);
|
411
|
+
}
|
412
|
+
|
413
|
+
.easymde-dropdown-content {
|
414
|
+
@apply block invisible absolute bg-gray-50 dark:bg-gray-800 shadow-lg p-2 z-20 top-[30px];
|
415
|
+
}
|
416
|
+
|
417
|
+
.easymde-dropdown:active .easymde-dropdown-content,
|
418
|
+
.easymde-dropdown:focus .easymde-dropdown-content,
|
419
|
+
.easymde-dropdown:focus-within .easymde-dropdown-content {
|
420
|
+
@apply visible;
|
421
|
+
}
|
422
|
+
|
423
|
+
/* Fullscreen Gradients */
|
424
|
+
.editor-toolbar.fullscreen::before {
|
425
|
+
@apply w-5 h-[50px] fixed top-0 left-0 m-0 p-0;
|
426
|
+
background: linear-gradient(to right, #fff 0%, rgba(255, 255, 255, 0) 100%);
|
427
|
+
}
|
428
|
+
|
429
|
+
.editor-toolbar.fullscreen::after {
|
430
|
+
@apply w-5 h-[50px] fixed top-0 right-0 m-0 p-0;
|
431
|
+
background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, #fff 100%);
|
432
|
+
}
|
433
|
+
|
434
|
+
/* Dark mode fullscreen gradients */
|
435
|
+
.dark .editor-toolbar.fullscreen::before {
|
436
|
+
background: linear-gradient(to right, #1f2937 0%, rgba(31, 41, 55, 0) 100%);
|
437
|
+
}
|
438
|
+
|
439
|
+
.dark .editor-toolbar.fullscreen::after {
|
440
|
+
background: linear-gradient(to right, rgba(31, 41, 55, 0) 0%, #1f2937 100%);
|
441
|
+
}
|
442
|
+
|
443
|
+
/* Mobile Responsiveness */
|
444
|
+
@media only screen and (max-width: 700px) {
|
445
|
+
.editor-toolbar i.no-mobile {
|
446
|
+
@apply hidden;
|
447
|
+
}
|
448
|
+
}
|
449
|
+
|
450
|
+
/* Spell Check */
|
451
|
+
.CodeMirror .cm-spell-error:not(.cm-url):not(.cm-comment):not(.cm-tag):not(.cm-word) {
|
452
|
+
@apply bg-red-100/50 dark:bg-red-900/30;
|
453
|
+
}
|
454
|
+
|
455
|
+
/* Image Handling */
|
456
|
+
span[data-img-src]::after {
|
457
|
+
content: '';
|
458
|
+
background-image: var(--bg-image);
|
459
|
+
@apply block max-h-full max-w-full bg-contain bg-no-repeat;
|
460
|
+
height: 0;
|
461
|
+
padding-top: var(--height);
|
462
|
+
width: var(--width);
|
463
|
+
}
|
464
|
+
|
465
|
+
/* RTL Support */
|
466
|
+
.CodeMirror-rtl pre {
|
467
|
+
direction: rtl;
|
468
|
+
}
|
469
|
+
|
470
|
+
/* Selection Styles */
|
471
|
+
/* .CodeMirror-line::selection,
|
472
|
+
.CodeMirror-line>span::selection,
|
473
|
+
.CodeMirror-line>span>span::selection {
|
474
|
+
@apply bg-accent-100 dark:bg-accent-900/30;
|
475
|
+
}
|
476
|
+
|
477
|
+
.CodeMirror-line::-moz-selection,
|
478
|
+
.CodeMirror-line>span::-moz-selection,
|
479
|
+
.CodeMirror-line>span>span::-moz-selection {
|
480
|
+
@apply bg-accent-100 dark:bg-accent-900/30;
|
481
|
+
} */
|
482
|
+
|
483
|
+
.CodeMirror-selectedtext {
|
484
|
+
@apply bg-gray-200/70 dark:bg-gray-600/50;
|
485
|
+
}
|
486
|
+
|
487
|
+
/* Cursor Animations */
|
488
|
+
@keyframes blink {
|
489
|
+
50% {
|
490
|
+
background-color: transparent;
|
491
|
+
}
|
492
|
+
}
|
493
|
+
|
494
|
+
@-moz-keyframes blink {
|
495
|
+
50% {
|
496
|
+
background-color: transparent;
|
497
|
+
}
|
498
|
+
}
|
499
|
+
|
500
|
+
@-webkit-keyframes blink {
|
501
|
+
50% {
|
502
|
+
background-color: transparent;
|
503
|
+
}
|
504
|
+
}
|
505
|
+
|
506
|
+
.cm-fat-cursor .CodeMirror-cursor {
|
507
|
+
@apply bg-[#7e7];
|
508
|
+
width: auto;
|
509
|
+
border: 0 !important;
|
510
|
+
}
|
511
|
+
|
512
|
+
.cm-fat-cursor div.CodeMirror-cursors {
|
513
|
+
z-index: 1;
|
514
|
+
}
|
515
|
+
|
516
|
+
.cm-fat-cursor .CodeMirror-line::selection,
|
517
|
+
.cm-fat-cursor .CodeMirror-line>span::selection,
|
518
|
+
.cm-fat-cursor .CodeMirror-line>span>span::selection {
|
519
|
+
background: transparent;
|
520
|
+
}
|
521
|
+
|
522
|
+
.cm-fat-cursor .CodeMirror-line::-moz-selection,
|
523
|
+
.cm-fat-cursor .CodeMirror-line>span::-moz-selection,
|
524
|
+
.cm-fat-cursor .CodeMirror-line>span>span::-moz-selection {
|
525
|
+
background: transparent;
|
526
|
+
}
|
527
|
+
|
528
|
+
.cm-fat-cursor {
|
529
|
+
caret-color: transparent;
|
530
|
+
}
|
531
|
+
|
532
|
+
/* Print Styles */
|
533
|
+
@media print {
|
534
|
+
.CodeMirror div.CodeMirror-cursors {
|
535
|
+
visibility: hidden;
|
536
|
+
}
|
537
|
+
}
|
538
|
+
|
539
|
+
/* Additional Utility Classes */
|
540
|
+
.CodeMirror-selected {
|
541
|
+
@apply bg-gray-200 dark:bg-gray-600;
|
542
|
+
}
|
543
|
+
|
544
|
+
.CodeMirror-focused .CodeMirror-selected {
|
545
|
+
@apply bg-blue-100 dark:bg-blue-900/30;
|
546
|
+
}
|
547
|
+
|
548
|
+
.CodeMirror-crosshair {
|
549
|
+
@apply cursor-crosshair;
|
550
|
+
}
|
551
|
+
|
552
|
+
.CodeMirror-line {
|
553
|
+
@apply outline-none;
|
554
|
+
}
|
555
|
+
|
556
|
+
/* Fix for tab character rendering */
|
557
|
+
.cm-tab-wrap-hack:after {
|
558
|
+
content: '';
|
559
|
+
}
|
560
|
+
|
561
|
+
/* Cursor visibility states */
|
562
|
+
div.CodeMirror-cursors {
|
563
|
+
@apply invisible relative z-[3];
|
564
|
+
}
|
565
|
+
|
566
|
+
div.CodeMirror-dragcursors {
|
567
|
+
@apply visible;
|
568
|
+
}
|
569
|
+
|
570
|
+
.CodeMirror-focused div.CodeMirror-cursors {
|
571
|
+
@apply visible;
|
572
|
+
}
|
573
|
+
|
574
|
+
/* Measure element used for character width calculations */
|
575
|
+
.CodeMirror-measure {
|
576
|
+
@apply absolute w-full h-0 overflow-hidden invisible;
|
577
|
+
}
|
578
|
+
|
579
|
+
/* Line background and widgets */
|
580
|
+
.CodeMirror-linebackground {
|
581
|
+
@apply absolute inset-0 z-0;
|
582
|
+
}
|
583
|
+
|
584
|
+
.CodeMirror-linewidget {
|
585
|
+
@apply relative z-[2];
|
586
|
+
padding: 0.1px;
|
587
|
+
}
|
588
|
+
|
589
|
+
/* Gutter click prevention */
|
590
|
+
.CodeMirror-gutter,
|
591
|
+
.CodeMirror-gutters,
|
592
|
+
.CodeMirror-linenumber {
|
593
|
+
-moz-user-select: none;
|
594
|
+
-webkit-user-select: none;
|
595
|
+
user-select: none;
|
596
|
+
}
|
597
|
+
|
598
|
+
/* Ensure proper line wrapping in various scenarios */
|
599
|
+
.CodeMirror-wrap pre.CodeMirror-line,
|
600
|
+
.CodeMirror-wrap pre.CodeMirror-line-like {
|
601
|
+
@apply break-words whitespace-pre-wrap break-normal;
|
602
|
+
}
|
603
|
+
|
604
|
+
/* Composing indicator for IME */
|
605
|
+
.CodeMirror-composing {
|
606
|
+
@apply border-b-2 border-solid;
|
607
|
+
}
|
608
|
+
|
609
|
+
/* Matching brackets highlighting */
|
610
|
+
div.CodeMirror span.CodeMirror-matchingbracket {
|
611
|
+
@apply text-green-700 dark:text-green-400;
|
612
|
+
}
|
613
|
+
|
614
|
+
div.CodeMirror span.CodeMirror-nonmatchingbracket {
|
615
|
+
@apply text-red-600 dark:text-red-400;
|
616
|
+
}
|
617
|
+
|
618
|
+
/* Active line background */
|
619
|
+
.CodeMirror-activeline-background {
|
620
|
+
@apply bg-blue-50 dark:bg-blue-900/10;
|
621
|
+
}
|
622
|
+
|
623
|
+
/* Ensure proper z-index stacking in fullscreen mode */
|
624
|
+
.CodeMirror-fullscreen {
|
625
|
+
@apply z-[9999];
|
626
|
+
}
|
627
|
+
|
628
|
+
/* Preview mode button states */
|
629
|
+
.editor-toolbar.disabled-for-preview button:not(.no-disable) {
|
630
|
+
@apply opacity-60 pointer-events-none;
|
631
|
+
}
|
632
|
+
|
633
|
+
/* Ensure proper box sizing for measurement */
|
634
|
+
.CodeMirror-measure pre {
|
635
|
+
@apply static;
|
636
|
+
}
|
637
|
+
|
638
|
+
/* Fix for Safari overflow issues */
|
639
|
+
.CodeMirror-scroll {
|
640
|
+
-webkit-overflow-scrolling: touch;
|
641
|
+
}
|
642
|
+
|
643
|
+
/* System-specific font smoothing */
|
644
|
+
.CodeMirror pre.CodeMirror-line,
|
645
|
+
.CodeMirror pre.CodeMirror-line-like {
|
646
|
+
-webkit-font-smoothing: antialiased;
|
647
|
+
-moz-osx-font-smoothing: grayscale;
|
648
|
+
}
|
649
|
+
}
|
data/src/css/plutonium.css
CHANGED
@@ -1,18 +1,6 @@
|
|
1
|
+
@import "core.css";
|
2
|
+
@import "easymde.css";
|
3
|
+
|
1
4
|
@tailwind base;
|
2
5
|
@tailwind components;
|
3
6
|
@tailwind utilities;
|
4
|
-
|
5
|
-
|
6
|
-
@layer components {
|
7
|
-
.pu-color-input::-webkit-color-swatch-wrapper {
|
8
|
-
@apply p-0;
|
9
|
-
}
|
10
|
-
|
11
|
-
.pu-color-input::-webkit-color-swatch {
|
12
|
-
@apply border-none rounded-lg;
|
13
|
-
}
|
14
|
-
|
15
|
-
.pu-color-input::-moz-color-swatch {
|
16
|
-
@apply border-none rounded-lg;
|
17
|
-
}
|
18
|
-
}
|
data/tailwind.options.js
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
export const content = [
|
2
|
-
`${__dirname}/src/**/*.
|
2
|
+
`${__dirname}/src/css/**/*.css`,
|
3
|
+
`${__dirname}/src/js/**/*.js`,
|
3
4
|
`${__dirname}/app/views/**/*.{rb,erb,js}`,
|
4
5
|
`${__dirname}/config/initializers/simple_form.rb`,
|
5
6
|
`${__dirname}/lib/plutonium/**/*.rb`,
|
@@ -12,6 +13,7 @@ export const darkMode = "selector";
|
|
12
13
|
export const plugins = [
|
13
14
|
// requires users to have the required packages installed in their own project.
|
14
15
|
"@tailwindcss/forms",
|
16
|
+
"@tailwindcss/typography",
|
15
17
|
"flowbite/plugin",
|
16
18
|
function ({ addVariant }) {
|
17
19
|
// This creates a variant that applies when an ancestor has data-dyna="true"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: plutonium
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.15.
|
4
|
+
version: 0.15.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Froelich
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-11-
|
11
|
+
date: 2024-11-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: zeitwerk
|
@@ -1084,6 +1084,7 @@ files:
|
|
1084
1084
|
- lib/active_model/validations/url_validator.rb
|
1085
1085
|
- lib/generators/pu/core/assets/assets_generator.rb
|
1086
1086
|
- lib/generators/pu/core/assets/templates/.keep
|
1087
|
+
- lib/generators/pu/core/assets/templates/postcss.config.js
|
1087
1088
|
- lib/generators/pu/core/assets/templates/tailwind.config.js
|
1088
1089
|
- lib/generators/pu/core/install/install_generator.rb
|
1089
1090
|
- lib/generators/pu/core/install/templates/.keep
|
@@ -1427,6 +1428,7 @@ files:
|
|
1427
1428
|
- lib/tasks/create_rodauth_admin.rake
|
1428
1429
|
- package-lock.json
|
1429
1430
|
- package.json
|
1431
|
+
- postcss-gem-import.js
|
1430
1432
|
- postcss.config.js
|
1431
1433
|
- public/.keep
|
1432
1434
|
- public/plutonium-assets/application.js
|
@@ -1436,6 +1438,8 @@ files:
|
|
1436
1438
|
- public/plutonium-assets/plutonium.ico
|
1437
1439
|
- sig/.keep
|
1438
1440
|
- src/.npmignore
|
1441
|
+
- src/css/core.css
|
1442
|
+
- src/css/easymde.css
|
1439
1443
|
- src/css/plutonium.css
|
1440
1444
|
- src/js/controllers/color_mode_controller.js
|
1441
1445
|
- src/js/controllers/form_controller.js
|