codeapp-js 0.1.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/codeApp/dist/codeapp.js +552 -78
  2. package/codeApp/dist/power-apps-data.js +2531 -2531
  3. package/dev files/outlook.js +218 -9
  4. package/examples/combined demo/dist/codeapp.js +1098 -0
  5. package/examples/combined demo/dist/index.js +69 -114
  6. package/examples/combined demo/dist/power-apps-data.js +646 -170
  7. package/examples/combined demo/power.config.json +42 -42
  8. package/examples/dataverse Demo/dist/codeapp.js +1085 -0
  9. package/examples/dataverse Demo/dist/index.html +54 -54
  10. package/examples/dataverse Demo/dist/index.js +82 -70
  11. package/examples/dataverse Demo/dist/power-apps-data.js +551 -170
  12. package/examples/dataverse Demo/power.config.json +34 -34
  13. package/examples/dataverse Demo/readme.md +79 -79
  14. package/examples/groups Demo/dist/codeapp.js +1085 -0
  15. package/examples/groups Demo/dist/index.js +27 -27
  16. package/examples/groups Demo/dist/power-apps-data.js +551 -170
  17. package/examples/kanban/dist/dataverse.js +94 -94
  18. package/examples/kanban/dist/environmentVar.js +55 -55
  19. package/examples/kanban/dist/office365groups.js +97 -97
  20. package/examples/kanban/dist/office365users.js +169 -169
  21. package/examples/kanban/dist/outlook.js +162 -162
  22. package/examples/kanban/dist/power-apps-data.js +560 -138
  23. package/examples/kanban/dist/sharepoint.js +339 -339
  24. package/examples/myProfile/dist/index.html +184 -184
  25. package/examples/myProfile/dist/index.js +141 -141
  26. package/examples/myProfile/dist/office365users.js +169 -169
  27. package/examples/myProfile/dist/power-apps-data.js +560 -138
  28. package/examples/myProfile/power.config.json +22 -22
  29. package/examples/myProfile/readme.md +79 -79
  30. package/examples/outlook Demo/dist/codeapp.js +1085 -0
  31. package/examples/outlook Demo/dist/index.html +35 -35
  32. package/examples/outlook Demo/dist/index.js +170 -166
  33. package/examples/outlook Demo/dist/outlook.js +121 -121
  34. package/examples/outlook Demo/dist/power-apps-data.js +551 -170
  35. package/examples/outlook Demo/dist/styles.css +84 -84
  36. package/examples/outlook Demo/readme.md +82 -82
  37. package/examples/outlook Demo2/OutlookDemo_1_0_0_1.zip +0 -0
  38. package/examples/outlook Demo2/agent/decision-log.md +7 -0
  39. package/examples/outlook Demo2/dist/codeapp.js +1334 -0
  40. package/examples/outlook Demo2/dist/icon-512.png +0 -0
  41. package/examples/outlook Demo2/dist/index.html +98 -0
  42. package/examples/outlook Demo2/dist/index.js +346 -0
  43. package/examples/outlook Demo2/dist/power-apps-data.js +3007 -0
  44. package/examples/outlook Demo2/dist/styles.css +639 -0
  45. package/examples/outlook Demo2/power.config.json +23 -0
  46. package/examples/outlook Demo2/src/generated/index.ts +14 -0
  47. package/examples/outlook Demo2/src/generated/models/Office365GroupsModel.ts +363 -0
  48. package/examples/outlook Demo2/src/generated/models/Office365OutlookModel.ts +2046 -0
  49. package/examples/outlook Demo2/src/generated/models/Office365UsersModel.ts +254 -0
  50. package/examples/outlook Demo2/src/generated/services/Office365GroupsService.ts +326 -0
  51. package/examples/outlook Demo2/src/generated/services/Office365OutlookService.ts +2476 -0
  52. package/examples/outlook Demo2/src/generated/services/Office365UsersService.ts +358 -0
  53. package/examples/planning Poker/.vscode/settings.json +4 -4
  54. package/examples/planning Poker/additional files/customizations (tables).xml +6428 -6428
  55. package/examples/planning Poker/additional files/dataverse-tables.json +165 -165
  56. package/examples/planning Poker/additional files/readme.md +122 -122
  57. package/examples/planning Poker/dist/dataverse.js +78 -78
  58. package/examples/planning Poker/dist/index.html +198 -198
  59. package/examples/planning Poker/dist/index.js +954 -954
  60. package/examples/planning Poker/dist/power-apps-data.js +560 -138
  61. package/examples/planning Poker/dist/styles.css +815 -815
  62. package/examples/sharePoint Demo/agent/decision-log.md +5 -5
  63. package/examples/sharePoint Demo/dist/codeapp.js +1085 -0
  64. package/examples/sharePoint Demo/dist/index.js +44 -51
  65. package/examples/sharePoint Demo/dist/power-apps-data.js +551 -170
  66. package/examples/sharePoint Demo/power.config.json +22 -22
  67. package/examples/solution explorer/agent/decision-log.md +27 -0
  68. package/examples/solution explorer/agent/mockup-01-swiss-grid.html +452 -0
  69. package/examples/solution explorer/agent/mockup-02-dark-glass.html +496 -0
  70. package/examples/solution explorer/agent/mockup-03-paper-console.html +510 -0
  71. package/examples/solution explorer/agent/mockup-04-neon-noir.html +546 -0
  72. package/examples/solution explorer/agent/mockup-05-zen-garden.html +534 -0
  73. package/examples/solution explorer/dist/codeapp.js +1098 -0
  74. package/examples/solution explorer/dist/icon-512.png +0 -0
  75. package/examples/solution explorer/dist/index.html +80 -0
  76. package/examples/solution explorer/dist/index.js +735 -0
  77. package/examples/solution explorer/dist/power-apps-data.js +3007 -0
  78. package/examples/solution explorer/dist/styles.css +571 -0
  79. package/examples/solution explorer/power.config.json +151 -0
  80. package/examples/todo/dist/dataverse.js +64 -64
  81. package/examples/todo/dist/index.html +75 -75
  82. package/examples/todo/dist/index.js +8 -8
  83. package/examples/todo/dist/power-apps-data.js +560 -138
  84. package/examples/todo/dist/renderer.js +375 -375
  85. package/examples/todo/dist/styles.css +691 -691
  86. package/examples/todo/power.config.json +34 -34
  87. package/package.json +1 -8
  88. package/docs-mockups/atelier/index.html +0 -120
  89. package/docs-mockups/atelier/script.js +0 -23
  90. package/docs-mockups/atelier/styles.css +0 -361
  91. package/docs-mockups/field-guide/index.html +0 -112
  92. package/docs-mockups/field-guide/script.js +0 -20
  93. package/docs-mockups/field-guide/styles.css +0 -272
  94. package/docs-mockups/index.html +0 -80
  95. package/docs-mockups/maker-hub/index.html +0 -178
  96. package/docs-mockups/maker-hub/script.js +0 -20
  97. package/docs-mockups/maker-hub/styles.css +0 -404
  98. package/docs-mockups/script.js +0 -26
  99. package/docs-mockups/signal/index.html +0 -146
  100. package/docs-mockups/signal/script.js +0 -20
  101. package/docs-mockups/signal/styles.css +0 -314
  102. package/docs-mockups/styles.css +0 -287
  103. package/examples/combined demo/dist/dataverse.js +0 -86
  104. package/examples/combined demo/dist/environmentVar.js +0 -55
  105. package/examples/combined demo/dist/office365groups.js +0 -97
  106. package/examples/combined demo/dist/office365users.js +0 -169
  107. package/examples/combined demo/dist/outlook.js +0 -162
  108. package/examples/combined demo/dist/sharepoint.js +0 -339
  109. package/examples/dataverse Demo/dist/dataverse.js +0 -86
  110. package/examples/groups Demo/dist/dataverse.js +0 -86
  111. package/examples/groups Demo/dist/environmentVar.js +0 -55
  112. package/examples/groups Demo/dist/office365groups.js +0 -97
  113. package/examples/groups Demo/dist/office365users.js +0 -169
  114. package/examples/groups Demo/dist/outlook.js +0 -162
  115. package/examples/groups Demo/dist/sharepoint.js +0 -339
  116. package/examples/sharePoint Demo/dist/dataverse.js +0 -94
  117. package/examples/sharePoint Demo/dist/environmentVar.js +0 -55
  118. package/examples/sharePoint Demo/dist/office365groups.js +0 -97
  119. package/examples/sharePoint Demo/dist/office365users.js +0 -169
  120. package/examples/sharePoint Demo/dist/outlook.js +0 -162
  121. package/examples/sharePoint Demo/dist/sharepoint.js +0 -339
@@ -1,691 +1,691 @@
1
- /* ============================================
2
- BRUTALIST THEME - Power DevBox Notes
3
- ============================================ */
4
- :root {
5
- --bg: #f5f0eb;
6
- --bg-elev: #fff;
7
- --surface: #fff;
8
- --text: #111;
9
- --muted: #888;
10
- --primary: #2962ff;
11
- --accent: #4163be;
12
- --danger: #ff3d00;
13
- --black: #111;
14
- --border: 3px solid #111;
15
- --border-thin: 2px solid #111;
16
- --radius: 0px;
17
- --shadow: 4px 4px 0 #111;
18
- --shadow-lg: 6px 6px 0 #111;
19
- }
20
-
21
- /* Prevent text overflow and improve mobile experience */
22
- *, *::before, *::after {
23
- box-sizing: border-box;
24
- max-width: 100%;
25
- }
26
-
27
- /* Improve word wrapping for long content */
28
- .preview, .content, .title, .note-item .title {
29
- word-wrap: break-word;
30
- overflow-wrap: break-word;
31
- hyphens: auto;
32
- }
33
-
34
- /* Ensure inputs don't exceed container width */
35
- input, textarea, select {
36
- max-width: 100%;
37
- font-size: 16px;
38
- }
39
-
40
- #btn-preview {
41
- margin-right: 5px;
42
- }
43
-
44
- /* Specific mobile input fixes */
45
- @media screen and (max-width: 768px) {
46
- input[type="email"], input[type="password"], input[type="text"], textarea {
47
- font-size: 16px;
48
- -webkit-appearance: none;
49
- appearance: none;
50
- border-radius: 0;
51
- }
52
- }
53
-
54
- /* Prevent code blocks from causing horizontal scroll */
55
- .preview pre, .preview code {
56
- overflow-x: auto;
57
- max-width: 100%;
58
- }
59
-
60
- /* Ensure images in preview don't overflow */
61
- .preview img {
62
- max-width: 100%;
63
- height: auto;
64
- }
65
-
66
- html { height: 100%; }
67
- body {
68
- margin: 0;
69
- font-family: 'Space Grotesk', system-ui, sans-serif;
70
- color: var(--text);
71
- background: var(--bg);
72
- overflow-x: hidden;
73
- min-height: 100vh;
74
- display: flex;
75
- flex-direction: column;
76
- }
77
-
78
- /* App bar */
79
- .app-bar {
80
- display: flex;
81
- align-items: center;
82
- justify-content: space-between;
83
- padding: 12px 16px;
84
- position: sticky;
85
- top: 0;
86
- background: var(--bg);
87
- border-bottom: var(--border);
88
- min-width: 0;
89
- z-index: 1000;
90
- }
91
- .app-bar h1 {
92
- margin: 0;
93
- font-family: 'Space Mono', monospace;
94
- font-size: 16px;
95
- font-weight: 700;
96
- text-transform: uppercase;
97
- letter-spacing: 2px;
98
- min-width: 0;
99
- }
100
- .app-bar .left {
101
- display: flex;
102
- gap: 12px;
103
- align-items: center;
104
- min-width: 0;
105
- flex: 1;
106
- }
107
- .app-bar .right {
108
- display: flex;
109
- gap: 8px;
110
- align-items: center;
111
- flex-shrink: 0;
112
- }
113
- .app-bar-logo {
114
- height: 20px;
115
- }
116
- #sync-status {
117
- font-family: 'Space Mono', monospace;
118
- font-size: 11px;
119
- color: var(--muted);
120
- padding: 4px 10px;
121
- background: var(--bg);
122
- border: var(--border-thin);
123
- white-space: nowrap;
124
- text-transform: uppercase;
125
- letter-spacing: 1px;
126
- }
127
-
128
- /* Container layout */
129
- .container {
130
- display: grid;
131
- grid-template-columns: 300px 1fr;
132
- gap: 16px;
133
- padding: 16px;
134
- max-width: 960px;
135
- margin: 0 auto;
136
- min-width: 0;
137
- width: 100%;
138
- flex: 1;
139
- }
140
-
141
- /* Sidebar */
142
- .sidebar {
143
- background: var(--surface);
144
- border: var(--border);
145
- box-shadow: var(--shadow);
146
- padding: 0;
147
- display: flex;
148
- flex-direction: column;
149
- min-height: 70vh;
150
- min-width: 0;
151
- }
152
- .search {
153
- padding: 12px;
154
- border-bottom: var(--border-thin);
155
- display: flex;
156
- gap: 8px;
157
- align-items: center;
158
- }
159
- .search input {
160
- flex: 1;
161
- padding: 10px 12px;
162
- border: var(--border-thin);
163
- background: var(--bg);
164
- color: var(--text);
165
- font-family: 'Space Grotesk', sans-serif;
166
- font-size: 14px;
167
- min-width: 0;
168
- }
169
- .search input:focus {
170
- outline: none;
171
- background: var(--accent);
172
- }
173
- .tags {
174
- display: flex;
175
- flex-wrap: wrap;
176
- gap: 6px;
177
- padding: 8px 12px;
178
- }
179
- .tag {
180
- background: var(--bg);
181
- border: var(--border-thin);
182
- color: var(--text);
183
- padding: 4px 10px;
184
- font-size: 11px;
185
- font-family: 'Space Mono', monospace;
186
- text-transform: uppercase;
187
- letter-spacing: 1px;
188
- cursor: pointer;
189
- white-space: nowrap;
190
- transition: background 0.15s;
191
- }
192
- .tag:hover {
193
- background: var(--accent);
194
- }
195
-
196
- .note-list {
197
- margin: 0;
198
- padding: 0;
199
- list-style: none;
200
- display: flex;
201
- flex-direction: column;
202
- gap: 0;
203
- flex: 1;
204
- overflow-y: auto;
205
- }
206
- .note-item {
207
- display: flex;
208
- align-items: center;
209
- gap: 8px;
210
- padding: 12px 12px;
211
- background: var(--surface);
212
- border-bottom: var(--border-thin);
213
- cursor: grab;
214
- min-width: 0;
215
- font-weight: 700;
216
- transition: background 0.15s;
217
- }
218
- .note-item:hover {
219
- background: var(--accent);
220
- }
221
- .note-item .note-del {
222
- margin-left: auto;
223
- background: transparent;
224
- border: var(--border-thin);
225
- color: var(--text);
226
- width: 24px;
227
- height: 24px;
228
- cursor: pointer;
229
- font-size: 16px;
230
- line-height: 1;
231
- display: flex;
232
- align-items: center;
233
- justify-content: center;
234
- transition: all 0.15s;
235
- }
236
- .note-item .note-del:hover {
237
- background: var(--danger);
238
- color: #fff;
239
- border-color: var(--danger);
240
- }
241
- .note-item .note-del:active {
242
- transform: scale(0.9);
243
- }
244
- .note-item.dragging {
245
- opacity: 0.6;
246
- }
247
- .note-item .title {
248
- flex: 1;
249
- overflow: hidden;
250
- text-overflow: ellipsis;
251
- white-space: nowrap;
252
- min-width: 0;
253
- }
254
-
255
- /* Editor */
256
- .editor {
257
- background: var(--surface);
258
- border: var(--border);
259
- box-shadow: var(--shadow);
260
- padding: 0;
261
- display: flex;
262
- flex-direction: column;
263
- min-height: 70vh;
264
- min-width: 0;
265
- }
266
- .toolbar {
267
- display: flex;
268
- gap: 0;
269
- align-items: center;
270
- flex-wrap: wrap;
271
- border-bottom: var(--border);
272
- padding: 0;
273
- }
274
- .toolbar button {
275
- background: var(--surface);
276
- color: var(--text);
277
- border: none;
278
- border-right: var(--border-thin);
279
- padding: 10px 12px;
280
- cursor: pointer;
281
- white-space: nowrap;
282
- font-family: 'Space Mono', monospace;
283
- font-size: 13px;
284
- font-weight: 700;
285
- text-transform: uppercase;
286
- transition: background 0.15s;
287
- }
288
- .toolbar button:hover {
289
- background: var(--accent);
290
- }
291
- .toolbar .spacer {
292
- flex: 1;
293
- min-width: 8px;
294
- border: none;
295
- }
296
- .title {
297
- font-family: 'Space Grotesk', sans-serif;
298
- font-size: 20px;
299
- font-weight: 700;
300
- text-transform: uppercase;
301
- padding: 12px 16px;
302
- border: none;
303
- border-bottom: var(--border);
304
- background: var(--surface);
305
- color: var(--text);
306
- width: 100%;
307
- min-width: 0;
308
- }
309
- .title:focus {
310
- outline: none;
311
- background: #fffde7;
312
- }
313
- .content {
314
- min-height: 280px;
315
- resize: vertical;
316
- padding: 16px;
317
- border: none;
318
- background: var(--bg);
319
- color: var(--text);
320
- line-height: 1.6;
321
- width: 100%;
322
- min-width: 0;
323
- font-family: 'Space Grotesk', sans-serif;
324
- font-size: 15px;
325
- flex: 1;
326
- }
327
- .content:focus {
328
- outline: none;
329
- background: #fff;
330
- }
331
- .preview {
332
- min-height: 280px;
333
- padding: 16px;
334
- border-top: var(--border);
335
- background: #fff;
336
- width: 100%;
337
- overflow-wrap: break-word;
338
- word-wrap: break-word;
339
- overflow-x: hidden;
340
- flex: 1;
341
- overflow-y: auto;
342
- }
343
- .status-bar {
344
- position: sticky;
345
- bottom: 0;
346
- background: var(--black);
347
- border-top: var(--border);
348
- padding: 8px 16px;
349
- color: #999;
350
- font-family: 'Space Mono', monospace;
351
- font-size: 12px;
352
- text-transform: uppercase;
353
- letter-spacing: 2px;
354
- overflow: hidden;
355
- text-overflow: ellipsis;
356
- white-space: nowrap;
357
- flex-shrink: 0;
358
- z-index: 100;
359
- }
360
-
361
- /* Buttons */
362
- button {
363
- font-family: 'Space Grotesk', sans-serif;
364
- transition: all 0.15s;
365
- }
366
- button:hover {
367
- transform: translate(2px, 2px);
368
- }
369
- button.primary {
370
- background: var(--primary);
371
- color: #fff;
372
- border: var(--border);
373
- box-shadow: var(--shadow);
374
- font-weight: 700;
375
- text-transform: uppercase;
376
- letter-spacing: 1px;
377
- padding: 8px 16px;
378
- }
379
- button.primary:hover {
380
- box-shadow: 2px 2px 0 var(--black);
381
- }
382
- button.tonal {
383
- background: var(--bg);
384
- border: var(--border);
385
- color: var(--text);
386
- box-shadow: var(--shadow);
387
- font-weight: 700;
388
- text-transform: uppercase;
389
- letter-spacing: 1px;
390
- padding: 8px 10px 8px 10px;
391
- }
392
- button.tonal:hover {
393
- background: var(--accent);
394
- box-shadow: 2px 2px 0 var(--black);
395
- }
396
- button.danger {
397
- background: var(--danger);
398
- color: #fff;
399
- border: var(--border);
400
- box-shadow: var(--shadow);
401
- font-weight: 700;
402
- text-transform: uppercase;
403
- letter-spacing: 1px;
404
- padding: 8px 16px;
405
- }
406
- button.danger:hover {
407
- box-shadow: 2px 2px 0 var(--black);
408
- }
409
-
410
- /* New Note button */
411
- #btn-new {
412
- display: flex;
413
- align-items: center;
414
- justify-content: center;
415
- width: 38px;
416
- height: 38px;
417
- padding: 0;
418
- flex-shrink: 0;
419
- font-size: 0;
420
- background: var(--accent);
421
- border: var(--border-thin);
422
- color: var(--black);
423
- box-shadow: 2px 2px 0 var(--black);
424
- cursor: pointer;
425
- transition: all 0.15s;
426
- }
427
- #btn-new::before {
428
- content: '+';
429
- font-size: 22px;
430
- line-height: 1;
431
- font-weight: 700;
432
- color: var(--black);
433
- }
434
- #btn-new:hover {
435
- transform: translate(2px, 2px);
436
- box-shadow: 0 0 0 var(--black);
437
- background: var(--primary);
438
- color: #fff;
439
- }
440
- #btn-new:hover::before {
441
- color: #fff;
442
- }
443
- #btn-new:active {
444
- transform: translate(2px, 2px);
445
- box-shadow: 0 0 0 var(--black);
446
- }
447
- #btn-new:focus-visible {
448
- outline: 3px solid var(--primary);
449
- outline-offset: 2px;
450
- }
451
-
452
- /* Preview content */
453
- .preview h1, .preview h2, .preview h3 {
454
- margin: 16px 0 8px;
455
- font-family: 'Space Grotesk', sans-serif;
456
- text-transform: uppercase;
457
- }
458
- .preview code {
459
- background: var(--bg);
460
- padding: 2px 6px;
461
- border: var(--border-thin);
462
- font-family: 'Space Mono', monospace;
463
- }
464
- .preview pre {
465
- background: var(--black);
466
- color: #e0e0e0;
467
- padding: 16px;
468
- border: var(--border);
469
- overflow: auto;
470
- }
471
- .preview a {
472
- color: var(--primary);
473
- text-decoration: underline;
474
- text-underline-offset: 3px;
475
- }
476
-
477
- /* Muted text utility */
478
- .muted { color: var(--muted); }
479
-
480
- /* Form spacer */
481
- .form-spacer { height: 8px; }
482
-
483
- /* Modal */
484
- .modal[hidden] { display: none; }
485
- .modal {
486
- position: fixed;
487
- inset: 0;
488
- display: grid;
489
- place-items: center;
490
- z-index: 1000;
491
- padding: 16px;
492
- }
493
- .modal__backdrop {
494
- position: absolute;
495
- inset: 0;
496
- background: rgba(0, 0, 0, 0.6);
497
- }
498
- .modal__dialog {
499
- position: relative;
500
- width: min(480px, 92vw);
501
- background: var(--surface);
502
- border: var(--border);
503
- box-shadow: var(--shadow-lg);
504
- padding: 24px;
505
- max-width: 100%;
506
- box-sizing: border-box;
507
- }
508
- .modal__dialog h2 {
509
- margin: 0 0 8px 0;
510
- font-family: 'Space Grotesk', sans-serif;
511
- text-transform: uppercase;
512
- letter-spacing: 1px;
513
- }
514
- .modal__dialog input {
515
- width: 100%;
516
- padding: 10px 12px;
517
- border: var(--border-thin);
518
- background: var(--bg);
519
- color: var(--text);
520
- font-family: 'Space Grotesk', sans-serif;
521
- box-sizing: border-box;
522
- }
523
- .modal__dialog input:focus {
524
- outline: none;
525
- background: var(--accent);
526
- }
527
- .modal__actions {
528
- margin-top: 16px;
529
- display: flex;
530
- justify-content: flex-end;
531
- gap: 8px;
532
- flex-wrap: wrap;
533
- }
534
-
535
- /* Responsive: tablet */
536
- @media (max-width: 900px) {
537
- .container {
538
- grid-template-columns: 1fr;
539
- padding: 12px;
540
- gap: 12px;
541
- }
542
- }
543
-
544
- /* Responsive: mobile */
545
- @media (max-width: 600px) {
546
- .app-bar {
547
- padding: 8px 12px;
548
- gap: 8px;
549
- z-index: 1000;
550
- }
551
- .app-bar h1 {
552
- font-size: 13px;
553
- letter-spacing: 1px;
554
- }
555
- .app-bar .left {
556
- gap: 8px;
557
- }
558
- .app-bar .right {
559
- gap: 6px;
560
- }
561
- .app-bar .right button {
562
- padding: 6px 8px;
563
- font-size: 12px;
564
- }
565
- #sync-status {
566
- font-size: 10px;
567
- padding: 3px 6px;
568
- }
569
- .container {
570
- padding: 8px;
571
- gap: 8px;
572
- padding-bottom: 40px;
573
- }
574
- .sidebar {
575
- padding: 0;
576
- max-height: 35vh !important;
577
- }
578
- .editor {
579
- padding: 0;
580
- overflow-x: hidden;
581
- }
582
- .toolbar {
583
- gap: 0;
584
- flex-wrap: wrap;
585
- }
586
- .toolbar button {
587
- padding: 6px 8px;
588
- font-size: 11px;
589
- }
590
- .toolbar .spacer {
591
- display: none;
592
- }
593
- .title {
594
- font-size: 16px;
595
- padding: 8px 12px;
596
- }
597
- .content {
598
- padding: 10px;
599
- font-size: 14px;
600
- }
601
- .preview {
602
- padding: 10px;
603
- font-size: 14px;
604
- overflow-x: hidden;
605
-
606
- }
607
- .modal__dialog {
608
- width: min(360px, 95vw);
609
- padding: 16px;
610
- }
611
- .sidebar { min-height: auto; }
612
- .note-list { max-height: 50vh; overflow-y: auto; }
613
- }
614
-
615
- /* Responsive: small mobile */
616
- @media (max-width: 400px) {
617
- .sidebar {
618
- max-height: 35vh !important;
619
- }
620
- .app-bar {
621
- flex-wrap: wrap;
622
- gap: 6px;
623
- z-index: 1000;
624
- }
625
- .app-bar .left, .app-bar .right {
626
- gap: 4px;
627
- }
628
- .toolbar button {
629
- padding: 4px 6px;
630
- font-size: 10px;
631
- }
632
- .modal__dialog {
633
- width: min(320px, 98vw);
634
- padding: 12px;
635
- }
636
- .preview {
637
- overflow-y: auto;
638
- }
639
- }
640
-
641
- /* --- Task list checkbox custom style --- */
642
- .preview .task-item input.task-box {
643
- position: absolute;
644
- opacity: 0;
645
- inset: 0;
646
- width: 16px;
647
- height: 16px;
648
- margin: 0;
649
- pointer-events: none;
650
- }
651
- .preview .task-item label {
652
- position: relative;
653
- display: flex;
654
- align-items: flex-start;
655
- gap: 8px;
656
- cursor: pointer;
657
- }
658
- .preview .task-item .checkbox-ui {
659
- position: relative;
660
- width: 16px;
661
- height: 16px;
662
- flex-shrink: 0;
663
- border: 2px solid var(--black);
664
- background: #fff;
665
- transition: border-color 0.15s, background 0.15s;
666
- display: inline-block;
667
- }
668
- .preview .task-item .checkbox-ui:hover {
669
- background: var(--accent);
670
- }
671
- .preview .task-item input.task-box:focus + .checkbox-ui {
672
- outline: 3px solid var(--primary);
673
- outline-offset: 2px;
674
- }
675
- .preview .task-item input.task-box:checked + .checkbox-ui::after {
676
- content: '\2713';
677
- position: absolute;
678
- inset: 0;
679
- display: flex;
680
- align-items: center;
681
- justify-content: center;
682
- font-size: 14px;
683
- font-weight: 700;
684
- color: var(--black);
685
- line-height: 1;
686
- background: none;
687
- }
688
- .preview .task-item .task-text {
689
- line-height: 1.4;
690
- }
691
- /* --- End task list checkbox custom style --- */
1
+ /* ============================================
2
+ BRUTALIST THEME - Power DevBox Notes
3
+ ============================================ */
4
+ :root {
5
+ --bg: #f5f0eb;
6
+ --bg-elev: #fff;
7
+ --surface: #fff;
8
+ --text: #111;
9
+ --muted: #888;
10
+ --primary: #2962ff;
11
+ --accent: #4163be;
12
+ --danger: #ff3d00;
13
+ --black: #111;
14
+ --border: 3px solid #111;
15
+ --border-thin: 2px solid #111;
16
+ --radius: 0px;
17
+ --shadow: 4px 4px 0 #111;
18
+ --shadow-lg: 6px 6px 0 #111;
19
+ }
20
+
21
+ /* Prevent text overflow and improve mobile experience */
22
+ *, *::before, *::after {
23
+ box-sizing: border-box;
24
+ max-width: 100%;
25
+ }
26
+
27
+ /* Improve word wrapping for long content */
28
+ .preview, .content, .title, .note-item .title {
29
+ word-wrap: break-word;
30
+ overflow-wrap: break-word;
31
+ hyphens: auto;
32
+ }
33
+
34
+ /* Ensure inputs don't exceed container width */
35
+ input, textarea, select {
36
+ max-width: 100%;
37
+ font-size: 16px;
38
+ }
39
+
40
+ #btn-preview {
41
+ margin-right: 5px;
42
+ }
43
+
44
+ /* Specific mobile input fixes */
45
+ @media screen and (max-width: 768px) {
46
+ input[type="email"], input[type="password"], input[type="text"], textarea {
47
+ font-size: 16px;
48
+ -webkit-appearance: none;
49
+ appearance: none;
50
+ border-radius: 0;
51
+ }
52
+ }
53
+
54
+ /* Prevent code blocks from causing horizontal scroll */
55
+ .preview pre, .preview code {
56
+ overflow-x: auto;
57
+ max-width: 100%;
58
+ }
59
+
60
+ /* Ensure images in preview don't overflow */
61
+ .preview img {
62
+ max-width: 100%;
63
+ height: auto;
64
+ }
65
+
66
+ html { height: 100%; }
67
+ body {
68
+ margin: 0;
69
+ font-family: 'Space Grotesk', system-ui, sans-serif;
70
+ color: var(--text);
71
+ background: var(--bg);
72
+ overflow-x: hidden;
73
+ min-height: 100vh;
74
+ display: flex;
75
+ flex-direction: column;
76
+ }
77
+
78
+ /* App bar */
79
+ .app-bar {
80
+ display: flex;
81
+ align-items: center;
82
+ justify-content: space-between;
83
+ padding: 12px 16px;
84
+ position: sticky;
85
+ top: 0;
86
+ background: var(--bg);
87
+ border-bottom: var(--border);
88
+ min-width: 0;
89
+ z-index: 1000;
90
+ }
91
+ .app-bar h1 {
92
+ margin: 0;
93
+ font-family: 'Space Mono', monospace;
94
+ font-size: 16px;
95
+ font-weight: 700;
96
+ text-transform: uppercase;
97
+ letter-spacing: 2px;
98
+ min-width: 0;
99
+ }
100
+ .app-bar .left {
101
+ display: flex;
102
+ gap: 12px;
103
+ align-items: center;
104
+ min-width: 0;
105
+ flex: 1;
106
+ }
107
+ .app-bar .right {
108
+ display: flex;
109
+ gap: 8px;
110
+ align-items: center;
111
+ flex-shrink: 0;
112
+ }
113
+ .app-bar-logo {
114
+ height: 20px;
115
+ }
116
+ #sync-status {
117
+ font-family: 'Space Mono', monospace;
118
+ font-size: 11px;
119
+ color: var(--muted);
120
+ padding: 4px 10px;
121
+ background: var(--bg);
122
+ border: var(--border-thin);
123
+ white-space: nowrap;
124
+ text-transform: uppercase;
125
+ letter-spacing: 1px;
126
+ }
127
+
128
+ /* Container layout */
129
+ .container {
130
+ display: grid;
131
+ grid-template-columns: 300px 1fr;
132
+ gap: 16px;
133
+ padding: 16px;
134
+ max-width: 960px;
135
+ margin: 0 auto;
136
+ min-width: 0;
137
+ width: 100%;
138
+ flex: 1;
139
+ }
140
+
141
+ /* Sidebar */
142
+ .sidebar {
143
+ background: var(--surface);
144
+ border: var(--border);
145
+ box-shadow: var(--shadow);
146
+ padding: 0;
147
+ display: flex;
148
+ flex-direction: column;
149
+ min-height: 70vh;
150
+ min-width: 0;
151
+ }
152
+ .search {
153
+ padding: 12px;
154
+ border-bottom: var(--border-thin);
155
+ display: flex;
156
+ gap: 8px;
157
+ align-items: center;
158
+ }
159
+ .search input {
160
+ flex: 1;
161
+ padding: 10px 12px;
162
+ border: var(--border-thin);
163
+ background: var(--bg);
164
+ color: var(--text);
165
+ font-family: 'Space Grotesk', sans-serif;
166
+ font-size: 14px;
167
+ min-width: 0;
168
+ }
169
+ .search input:focus {
170
+ outline: none;
171
+ background: var(--accent);
172
+ }
173
+ .tags {
174
+ display: flex;
175
+ flex-wrap: wrap;
176
+ gap: 6px;
177
+ padding: 8px 12px;
178
+ }
179
+ .tag {
180
+ background: var(--bg);
181
+ border: var(--border-thin);
182
+ color: var(--text);
183
+ padding: 4px 10px;
184
+ font-size: 11px;
185
+ font-family: 'Space Mono', monospace;
186
+ text-transform: uppercase;
187
+ letter-spacing: 1px;
188
+ cursor: pointer;
189
+ white-space: nowrap;
190
+ transition: background 0.15s;
191
+ }
192
+ .tag:hover {
193
+ background: var(--accent);
194
+ }
195
+
196
+ .note-list {
197
+ margin: 0;
198
+ padding: 0;
199
+ list-style: none;
200
+ display: flex;
201
+ flex-direction: column;
202
+ gap: 0;
203
+ flex: 1;
204
+ overflow-y: auto;
205
+ }
206
+ .note-item {
207
+ display: flex;
208
+ align-items: center;
209
+ gap: 8px;
210
+ padding: 12px 12px;
211
+ background: var(--surface);
212
+ border-bottom: var(--border-thin);
213
+ cursor: grab;
214
+ min-width: 0;
215
+ font-weight: 700;
216
+ transition: background 0.15s;
217
+ }
218
+ .note-item:hover {
219
+ background: var(--accent);
220
+ }
221
+ .note-item .note-del {
222
+ margin-left: auto;
223
+ background: transparent;
224
+ border: var(--border-thin);
225
+ color: var(--text);
226
+ width: 24px;
227
+ height: 24px;
228
+ cursor: pointer;
229
+ font-size: 16px;
230
+ line-height: 1;
231
+ display: flex;
232
+ align-items: center;
233
+ justify-content: center;
234
+ transition: all 0.15s;
235
+ }
236
+ .note-item .note-del:hover {
237
+ background: var(--danger);
238
+ color: #fff;
239
+ border-color: var(--danger);
240
+ }
241
+ .note-item .note-del:active {
242
+ transform: scale(0.9);
243
+ }
244
+ .note-item.dragging {
245
+ opacity: 0.6;
246
+ }
247
+ .note-item .title {
248
+ flex: 1;
249
+ overflow: hidden;
250
+ text-overflow: ellipsis;
251
+ white-space: nowrap;
252
+ min-width: 0;
253
+ }
254
+
255
+ /* Editor */
256
+ .editor {
257
+ background: var(--surface);
258
+ border: var(--border);
259
+ box-shadow: var(--shadow);
260
+ padding: 0;
261
+ display: flex;
262
+ flex-direction: column;
263
+ min-height: 70vh;
264
+ min-width: 0;
265
+ }
266
+ .toolbar {
267
+ display: flex;
268
+ gap: 0;
269
+ align-items: center;
270
+ flex-wrap: wrap;
271
+ border-bottom: var(--border);
272
+ padding: 0;
273
+ }
274
+ .toolbar button {
275
+ background: var(--surface);
276
+ color: var(--text);
277
+ border: none;
278
+ border-right: var(--border-thin);
279
+ padding: 10px 12px;
280
+ cursor: pointer;
281
+ white-space: nowrap;
282
+ font-family: 'Space Mono', monospace;
283
+ font-size: 13px;
284
+ font-weight: 700;
285
+ text-transform: uppercase;
286
+ transition: background 0.15s;
287
+ }
288
+ .toolbar button:hover {
289
+ background: var(--accent);
290
+ }
291
+ .toolbar .spacer {
292
+ flex: 1;
293
+ min-width: 8px;
294
+ border: none;
295
+ }
296
+ .title {
297
+ font-family: 'Space Grotesk', sans-serif;
298
+ font-size: 20px;
299
+ font-weight: 700;
300
+ text-transform: uppercase;
301
+ padding: 12px 16px;
302
+ border: none;
303
+ border-bottom: var(--border);
304
+ background: var(--surface);
305
+ color: var(--text);
306
+ width: 100%;
307
+ min-width: 0;
308
+ }
309
+ .title:focus {
310
+ outline: none;
311
+ background: #fffde7;
312
+ }
313
+ .content {
314
+ min-height: 280px;
315
+ resize: vertical;
316
+ padding: 16px;
317
+ border: none;
318
+ background: var(--bg);
319
+ color: var(--text);
320
+ line-height: 1.6;
321
+ width: 100%;
322
+ min-width: 0;
323
+ font-family: 'Space Grotesk', sans-serif;
324
+ font-size: 15px;
325
+ flex: 1;
326
+ }
327
+ .content:focus {
328
+ outline: none;
329
+ background: #fff;
330
+ }
331
+ .preview {
332
+ min-height: 280px;
333
+ padding: 16px;
334
+ border-top: var(--border);
335
+ background: #fff;
336
+ width: 100%;
337
+ overflow-wrap: break-word;
338
+ word-wrap: break-word;
339
+ overflow-x: hidden;
340
+ flex: 1;
341
+ overflow-y: auto;
342
+ }
343
+ .status-bar {
344
+ position: sticky;
345
+ bottom: 0;
346
+ background: var(--black);
347
+ border-top: var(--border);
348
+ padding: 8px 16px;
349
+ color: #999;
350
+ font-family: 'Space Mono', monospace;
351
+ font-size: 12px;
352
+ text-transform: uppercase;
353
+ letter-spacing: 2px;
354
+ overflow: hidden;
355
+ text-overflow: ellipsis;
356
+ white-space: nowrap;
357
+ flex-shrink: 0;
358
+ z-index: 100;
359
+ }
360
+
361
+ /* Buttons */
362
+ button {
363
+ font-family: 'Space Grotesk', sans-serif;
364
+ transition: all 0.15s;
365
+ }
366
+ button:hover {
367
+ transform: translate(2px, 2px);
368
+ }
369
+ button.primary {
370
+ background: var(--primary);
371
+ color: #fff;
372
+ border: var(--border);
373
+ box-shadow: var(--shadow);
374
+ font-weight: 700;
375
+ text-transform: uppercase;
376
+ letter-spacing: 1px;
377
+ padding: 8px 16px;
378
+ }
379
+ button.primary:hover {
380
+ box-shadow: 2px 2px 0 var(--black);
381
+ }
382
+ button.tonal {
383
+ background: var(--bg);
384
+ border: var(--border);
385
+ color: var(--text);
386
+ box-shadow: var(--shadow);
387
+ font-weight: 700;
388
+ text-transform: uppercase;
389
+ letter-spacing: 1px;
390
+ padding: 8px 10px 8px 10px;
391
+ }
392
+ button.tonal:hover {
393
+ background: var(--accent);
394
+ box-shadow: 2px 2px 0 var(--black);
395
+ }
396
+ button.danger {
397
+ background: var(--danger);
398
+ color: #fff;
399
+ border: var(--border);
400
+ box-shadow: var(--shadow);
401
+ font-weight: 700;
402
+ text-transform: uppercase;
403
+ letter-spacing: 1px;
404
+ padding: 8px 16px;
405
+ }
406
+ button.danger:hover {
407
+ box-shadow: 2px 2px 0 var(--black);
408
+ }
409
+
410
+ /* New Note button */
411
+ #btn-new {
412
+ display: flex;
413
+ align-items: center;
414
+ justify-content: center;
415
+ width: 38px;
416
+ height: 38px;
417
+ padding: 0;
418
+ flex-shrink: 0;
419
+ font-size: 0;
420
+ background: var(--accent);
421
+ border: var(--border-thin);
422
+ color: var(--black);
423
+ box-shadow: 2px 2px 0 var(--black);
424
+ cursor: pointer;
425
+ transition: all 0.15s;
426
+ }
427
+ #btn-new::before {
428
+ content: '+';
429
+ font-size: 22px;
430
+ line-height: 1;
431
+ font-weight: 700;
432
+ color: var(--black);
433
+ }
434
+ #btn-new:hover {
435
+ transform: translate(2px, 2px);
436
+ box-shadow: 0 0 0 var(--black);
437
+ background: var(--primary);
438
+ color: #fff;
439
+ }
440
+ #btn-new:hover::before {
441
+ color: #fff;
442
+ }
443
+ #btn-new:active {
444
+ transform: translate(2px, 2px);
445
+ box-shadow: 0 0 0 var(--black);
446
+ }
447
+ #btn-new:focus-visible {
448
+ outline: 3px solid var(--primary);
449
+ outline-offset: 2px;
450
+ }
451
+
452
+ /* Preview content */
453
+ .preview h1, .preview h2, .preview h3 {
454
+ margin: 16px 0 8px;
455
+ font-family: 'Space Grotesk', sans-serif;
456
+ text-transform: uppercase;
457
+ }
458
+ .preview code {
459
+ background: var(--bg);
460
+ padding: 2px 6px;
461
+ border: var(--border-thin);
462
+ font-family: 'Space Mono', monospace;
463
+ }
464
+ .preview pre {
465
+ background: var(--black);
466
+ color: #e0e0e0;
467
+ padding: 16px;
468
+ border: var(--border);
469
+ overflow: auto;
470
+ }
471
+ .preview a {
472
+ color: var(--primary);
473
+ text-decoration: underline;
474
+ text-underline-offset: 3px;
475
+ }
476
+
477
+ /* Muted text utility */
478
+ .muted { color: var(--muted); }
479
+
480
+ /* Form spacer */
481
+ .form-spacer { height: 8px; }
482
+
483
+ /* Modal */
484
+ .modal[hidden] { display: none; }
485
+ .modal {
486
+ position: fixed;
487
+ inset: 0;
488
+ display: grid;
489
+ place-items: center;
490
+ z-index: 1000;
491
+ padding: 16px;
492
+ }
493
+ .modal__backdrop {
494
+ position: absolute;
495
+ inset: 0;
496
+ background: rgba(0, 0, 0, 0.6);
497
+ }
498
+ .modal__dialog {
499
+ position: relative;
500
+ width: min(480px, 92vw);
501
+ background: var(--surface);
502
+ border: var(--border);
503
+ box-shadow: var(--shadow-lg);
504
+ padding: 24px;
505
+ max-width: 100%;
506
+ box-sizing: border-box;
507
+ }
508
+ .modal__dialog h2 {
509
+ margin: 0 0 8px 0;
510
+ font-family: 'Space Grotesk', sans-serif;
511
+ text-transform: uppercase;
512
+ letter-spacing: 1px;
513
+ }
514
+ .modal__dialog input {
515
+ width: 100%;
516
+ padding: 10px 12px;
517
+ border: var(--border-thin);
518
+ background: var(--bg);
519
+ color: var(--text);
520
+ font-family: 'Space Grotesk', sans-serif;
521
+ box-sizing: border-box;
522
+ }
523
+ .modal__dialog input:focus {
524
+ outline: none;
525
+ background: var(--accent);
526
+ }
527
+ .modal__actions {
528
+ margin-top: 16px;
529
+ display: flex;
530
+ justify-content: flex-end;
531
+ gap: 8px;
532
+ flex-wrap: wrap;
533
+ }
534
+
535
+ /* Responsive: tablet */
536
+ @media (max-width: 900px) {
537
+ .container {
538
+ grid-template-columns: 1fr;
539
+ padding: 12px;
540
+ gap: 12px;
541
+ }
542
+ }
543
+
544
+ /* Responsive: mobile */
545
+ @media (max-width: 600px) {
546
+ .app-bar {
547
+ padding: 8px 12px;
548
+ gap: 8px;
549
+ z-index: 1000;
550
+ }
551
+ .app-bar h1 {
552
+ font-size: 13px;
553
+ letter-spacing: 1px;
554
+ }
555
+ .app-bar .left {
556
+ gap: 8px;
557
+ }
558
+ .app-bar .right {
559
+ gap: 6px;
560
+ }
561
+ .app-bar .right button {
562
+ padding: 6px 8px;
563
+ font-size: 12px;
564
+ }
565
+ #sync-status {
566
+ font-size: 10px;
567
+ padding: 3px 6px;
568
+ }
569
+ .container {
570
+ padding: 8px;
571
+ gap: 8px;
572
+ padding-bottom: 40px;
573
+ }
574
+ .sidebar {
575
+ padding: 0;
576
+ max-height: 35vh !important;
577
+ }
578
+ .editor {
579
+ padding: 0;
580
+ overflow-x: hidden;
581
+ }
582
+ .toolbar {
583
+ gap: 0;
584
+ flex-wrap: wrap;
585
+ }
586
+ .toolbar button {
587
+ padding: 6px 8px;
588
+ font-size: 11px;
589
+ }
590
+ .toolbar .spacer {
591
+ display: none;
592
+ }
593
+ .title {
594
+ font-size: 16px;
595
+ padding: 8px 12px;
596
+ }
597
+ .content {
598
+ padding: 10px;
599
+ font-size: 14px;
600
+ }
601
+ .preview {
602
+ padding: 10px;
603
+ font-size: 14px;
604
+ overflow-x: hidden;
605
+
606
+ }
607
+ .modal__dialog {
608
+ width: min(360px, 95vw);
609
+ padding: 16px;
610
+ }
611
+ .sidebar { min-height: auto; }
612
+ .note-list { max-height: 50vh; overflow-y: auto; }
613
+ }
614
+
615
+ /* Responsive: small mobile */
616
+ @media (max-width: 400px) {
617
+ .sidebar {
618
+ max-height: 35vh !important;
619
+ }
620
+ .app-bar {
621
+ flex-wrap: wrap;
622
+ gap: 6px;
623
+ z-index: 1000;
624
+ }
625
+ .app-bar .left, .app-bar .right {
626
+ gap: 4px;
627
+ }
628
+ .toolbar button {
629
+ padding: 4px 6px;
630
+ font-size: 10px;
631
+ }
632
+ .modal__dialog {
633
+ width: min(320px, 98vw);
634
+ padding: 12px;
635
+ }
636
+ .preview {
637
+ overflow-y: auto;
638
+ }
639
+ }
640
+
641
+ /* --- Task list checkbox custom style --- */
642
+ .preview .task-item input.task-box {
643
+ position: absolute;
644
+ opacity: 0;
645
+ inset: 0;
646
+ width: 16px;
647
+ height: 16px;
648
+ margin: 0;
649
+ pointer-events: none;
650
+ }
651
+ .preview .task-item label {
652
+ position: relative;
653
+ display: flex;
654
+ align-items: flex-start;
655
+ gap: 8px;
656
+ cursor: pointer;
657
+ }
658
+ .preview .task-item .checkbox-ui {
659
+ position: relative;
660
+ width: 16px;
661
+ height: 16px;
662
+ flex-shrink: 0;
663
+ border: 2px solid var(--black);
664
+ background: #fff;
665
+ transition: border-color 0.15s, background 0.15s;
666
+ display: inline-block;
667
+ }
668
+ .preview .task-item .checkbox-ui:hover {
669
+ background: var(--accent);
670
+ }
671
+ .preview .task-item input.task-box:focus + .checkbox-ui {
672
+ outline: 3px solid var(--primary);
673
+ outline-offset: 2px;
674
+ }
675
+ .preview .task-item input.task-box:checked + .checkbox-ui::after {
676
+ content: '\2713';
677
+ position: absolute;
678
+ inset: 0;
679
+ display: flex;
680
+ align-items: center;
681
+ justify-content: center;
682
+ font-size: 14px;
683
+ font-weight: 700;
684
+ color: var(--black);
685
+ line-height: 1;
686
+ background: none;
687
+ }
688
+ .preview .task-item .task-text {
689
+ line-height: 1.4;
690
+ }
691
+ /* --- End task list checkbox custom style --- */