nnp-shared-styles 1.1.6

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.
package/dist/index.css ADDED
@@ -0,0 +1,730 @@
1
+ :root {
2
+ --font-family-special: Verdana, sans-serif;
3
+ --font-family-header: "Helvetica";
4
+ --font-family-body: "Helvetica";
5
+ --font-size-md: 0.98rem;
6
+ --font-size-nm: 0.85rem;
7
+ --font-size-xs: 0.70rem;
8
+ --font-size-sm: 0.78rem;
9
+ --font-size-lg: 1.115rem;
10
+ --font-size-xl: 1.25rem;
11
+ --font-size-xxl: 2rem;
12
+ --font-light: 200;
13
+ --font-normal: 400;
14
+ --font-bold: 600;
15
+ --fold-bolder: 800;
16
+ --radius-small: 0.15rem;
17
+ --radius-medium: 0.25rem;
18
+ --radius-large: 0.75rem;
19
+ --border-color: #999999;
20
+ --modal-box-shadow: 0 20px 25px -5px rgba(0,0,0,.1),
21
+ 0 8px 10px -6px rgba(0,0,0,.1);
22
+ /* Light Theme */
23
+ --base-color-primary: #E8E8E8;
24
+ --base-color-secondary: #000000;
25
+ --base-color-tertiary: #444444;
26
+ --component-color-primary: #666666;
27
+ --component-color-secondary: #fffbfb;
28
+ --component-color-tertiary: #cccccc;
29
+ --component-color-highlight: #0099cc;
30
+ --component-color-blue: #336699;
31
+ --component-color-grey: #939498;
32
+ --text-color-primary: #000000;
33
+ --text-color-secondary: #ffffff;
34
+ --text-color-tertiary: #0099cc;
35
+ --text-color-quaternary: #7e7e7e;
36
+ --text-color-link: #0099cc;
37
+ --text-color-disabled: #f44336;
38
+ --top-header-background-color: #000000;
39
+ --bottom-footer-background-color: #000000;
40
+ --nnp-padding-small: 0.5rem;
41
+ --nnp-padding-medium: 1rem;
42
+ --nnp-padding-large: 2rem;
43
+ --component-height-small: 30px;
44
+ --component-height-medium: 50px;
45
+ --component-height-large: 150px;
46
+ --nav-width: 260px;
47
+ --nnp-date-formate: "DD/MM/YYYY";
48
+ --nnp-time-formate: "HH:mm:ss";
49
+ --grid-odd-row-color: #E3E2D6;
50
+ --grid-even-row-color: #f9f9f9;
51
+ --grid-header-color: #0099CC;
52
+ --grid-header-text-color: #dddddd;
53
+ }
54
+
55
+ /* Dark Theme Variables */
56
+ html.dark,
57
+ body.dark-theme {
58
+ --base-color-primary: #3D3D3D;
59
+ --base-color-secondary: #1e1e1e;
60
+ --base-color-tertiary: #444444;
61
+ --component-color-primary: #666666;
62
+ --component-color-secondary: #1e1e1e;
63
+ --component-color-tertiary: #2f2f2f;
64
+ --component-color-highlight: #0099cc;
65
+ --component-color-blue: #336699;
66
+ --component-color-grey: #939498;
67
+ --text-color-primary: #ffffff;
68
+ --text-color-secondary: #ffffff;
69
+ --text-color-tertiary: #b0bec5;
70
+ --text-color-quaternary: #a6a6a6;
71
+ --text-color-link: #84DEF1;
72
+ --text-color-disabled: #f44336;
73
+ --top-header-background-color: #121212;
74
+ --bottom-footer-background-color: #1e1e1e;
75
+ }
76
+
77
+ .flex-center-center {
78
+ display: flex;
79
+ justify-content: center;
80
+ align-items: center;
81
+ }
82
+
83
+ .flex-center-top {
84
+ display: flex;
85
+ justify-content: center;
86
+ align-items: top;
87
+ }
88
+
89
+ .flex-space-center {
90
+ display: flex;
91
+ justify-content: space-between;
92
+ align-items: center;
93
+ }
94
+
95
+ .flex-start-center {
96
+ display: flex;
97
+ justify-content: start;
98
+ align-items: center;
99
+ }
100
+
101
+ .flex-column {
102
+ display: flex;
103
+ flex-direction: column;
104
+ }
105
+
106
+ .flex-row {
107
+ display: flex;
108
+ flex-direction: row;
109
+ }
110
+
111
+ .full-height {
112
+ height: 100%;
113
+ }
114
+
115
+ .full-width {
116
+ width: 100%;
117
+ }
118
+
119
+ .fixed-top {
120
+ position: fixed;
121
+ top: 0;
122
+ left: 0;
123
+ }
124
+
125
+ .max-height, .nnp-modal-container {
126
+ height: 100vh;
127
+ }
128
+
129
+ .max-width, .nnp-modal-container {
130
+ width: 100vw;
131
+ }
132
+
133
+ .cursor-pointer, .nnp-btn {
134
+ cursor: pointer;
135
+ }
136
+
137
+ .page-padding-large {
138
+ padding: var(--nnp-padding-large);
139
+ }
140
+
141
+ .page-padding-medium {
142
+ padding: var(--nnp-padding-medium);
143
+ }
144
+
145
+ .page-margin-small {
146
+ margin: var(--nnp-padding-small);
147
+ }
148
+
149
+ .medium-margin-bottom {
150
+ margin-bottom: var(--nnp-padding-medium);
151
+ }
152
+
153
+ .large-margin-bottom {
154
+ margin-bottom: var(--nnp-padding-large);
155
+ }
156
+
157
+ .header-font, .nnp-title, .nnp-header, .nnp-btn {
158
+ font-family: var(--font-family-header);
159
+ font-size: var(--font-size-md);
160
+ }
161
+
162
+ .header-font-smaller, .nnp-header-mb {
163
+ font-family: var(--font-family-header);
164
+ font-size: var(--font-size-sm);
165
+ }
166
+
167
+ .body-font {
168
+ font-family: var(--font-family-body);
169
+ font-size: var(--font-size-sm);
170
+ }
171
+
172
+ .special-font, .nnp-top-header, .nnp-side-nav {
173
+ font-family: var(--font-family-special);
174
+ font-size: var(--font-size-sm);
175
+ }
176
+
177
+ .nnp-border {
178
+ border: 1px solid var(--border-color);
179
+ }
180
+
181
+ .nnp-border-bottom {
182
+ border-bottom: 1px solid var(--border-color);
183
+ }
184
+
185
+ .font-md {
186
+ font-size: var(--font-size-md);
187
+ }
188
+
189
+ .font-xs {
190
+ font-size: var(--font-size-xs);
191
+ }
192
+
193
+ .font-sm {
194
+ font-size: var(--font-size-sm);
195
+ }
196
+
197
+ .font-lg {
198
+ font-size: var(--font-size-lg);
199
+ }
200
+
201
+ .font-xl {
202
+ font-size: var(--font-size-xl);
203
+ }
204
+
205
+ .font-xxl {
206
+ font-size: var(--font-size-xxl);
207
+ }
208
+
209
+ .textLink {
210
+ color: var(--text-color-link);
211
+ cursor: pointer;
212
+ }
213
+ .textLink:hover {
214
+ text-decoration: underline;
215
+ }
216
+
217
+ .font-md {
218
+ font-size: var(--font-size-md);
219
+ }
220
+
221
+ .font-nm {
222
+ font-size: var(--font-size-nm);
223
+ }
224
+
225
+ .font-xs {
226
+ font-size: var(--font-size-xs);
227
+ }
228
+
229
+ .font-sm {
230
+ font-size: var(--font-size-sm);
231
+ }
232
+
233
+ .font-lg {
234
+ font-size: var(--font-size-lg);
235
+ }
236
+
237
+ .font-xl {
238
+ font-size: var(--font-size-xl);
239
+ }
240
+
241
+ .font-xxl {
242
+ font-size: var(--font-size-xxl);
243
+ }
244
+
245
+ .font-thin {
246
+ font-weight: var(--font-light);
247
+ }
248
+
249
+ .font-normal {
250
+ font-weight: var(--font-normal);
251
+ }
252
+
253
+ .font-bold {
254
+ font-weight: var(--font-bold);
255
+ }
256
+
257
+ .font-bolder {
258
+ font-weight: var(--font-bolder);
259
+ }
260
+
261
+ .special-font-family {
262
+ font-family: var(--font-family-special);
263
+ }
264
+
265
+ .header-font-family {
266
+ font-family: var(--font-family-header);
267
+ }
268
+
269
+ .body-font-family {
270
+ font-family: var(--font-family-body);
271
+ }
272
+
273
+ .nnp-layout-container {
274
+ display: flex;
275
+ flex-direction: column;
276
+ min-height: 100vh;
277
+ position: relative;
278
+ overflow: hidden;
279
+ }
280
+
281
+ .nnp-main-container {
282
+ padding-top: var(--component-height-medium);
283
+ flex-grow: 1;
284
+ overflow-y: auto;
285
+ }
286
+
287
+ .nnp-main-content {
288
+ position: relative;
289
+ height: 100%;
290
+ display: flex;
291
+ flex-direction: column;
292
+ }
293
+
294
+ .nnp-top-header {
295
+ width: 100%;
296
+ height: var(--component-height-medium);
297
+ background-color: var(--base-color-secondary);
298
+ color: var(--text-color-secondary);
299
+ font-size: 0.85rem;
300
+ display: flex;
301
+ justify-content: space-between;
302
+ align-items: center;
303
+ }
304
+
305
+ .nnp-menu-item {
306
+ display: flex;
307
+ align-items: center;
308
+ justify-content: center;
309
+ padding: 0 var(--nnp-padding-medium);
310
+ height: 100%;
311
+ cursor: pointer;
312
+ }
313
+
314
+ .nnp-menu-item:hover {
315
+ background-color: #06b9f5;
316
+ color: var(--text-color-secondary);
317
+ }
318
+
319
+ .nnp-menu-item.active {
320
+ background-color: var(--component-color-highlight);
321
+ color: var(--text-color-secondary);
322
+ }
323
+
324
+ .nnp-body-content {
325
+ height: calc(100% - var(--component-height-medium));
326
+ }
327
+
328
+ .nnp-logo-panel {
329
+ display: flex;
330
+ justify-content: center;
331
+ align-items: center;
332
+ background-color: var(--base-color-secondary);
333
+ height: var(--component-height-large);
334
+ }
335
+ .nnp-logo-panel img {
336
+ height: 90%;
337
+ }
338
+
339
+ .nnp-bottom-footer {
340
+ background-color: var(--base-color-secondary);
341
+ color: var(--text-color-secondary);
342
+ height: var(--component-height-large);
343
+ gap: 1rem;
344
+ display: flex;
345
+ flex-direction: column;
346
+ display: flex;
347
+ justify-content: center;
348
+ align-items: center;
349
+ }
350
+
351
+ .nnp-title {
352
+ padding-bottom: var(--nnp-padding-medium);
353
+ }
354
+
355
+ .nnp-header {
356
+ height: var(--component-height-medium);
357
+ min-height: var(--component-height-medium) !important;
358
+ padding: 0 var(--nnp-padding-medium);
359
+ }
360
+
361
+ .nnp-header-mb {
362
+ height: var(--component-height-medium);
363
+ min-height: var(--component-height-medium) !important;
364
+ padding: 0 var(--nnp-padding-medium);
365
+ }
366
+
367
+ .nnp-header-body {
368
+ height: calc(100% - var(--component-height-medium));
369
+ }
370
+
371
+ .nnp-header-primary {
372
+ background-color: var(--component-color-primary);
373
+ color: var(--text-color-secondary);
374
+ }
375
+
376
+ .nnp-header-secondary {
377
+ background-color: var(--component-color-secondary);
378
+ color: var(--text-color-primary);
379
+ }
380
+
381
+ .nnp-header-highlight {
382
+ background-color: var(--component-color-highlight);
383
+ color: var(--text-color-secondary);
384
+ }
385
+
386
+ .nnp-body-minus-header {
387
+ height: calc(100% - var(--component-height-medium));
388
+ }
389
+
390
+ .nnp-btn {
391
+ height: var(--component-height-small);
392
+ min-height: var(--component-height-small) !important;
393
+ padding: 0 var(--nnp-padding-small);
394
+ display: flex;
395
+ justify-content: center;
396
+ align-items: center;
397
+ border-radius: var(--radius-medium);
398
+ padding: 0 var(--nnp-padding-medium);
399
+ }
400
+
401
+ .nnp-btn-primary {
402
+ background-color: var(--component-color-highlight);
403
+ color: var(--text-color-secondary);
404
+ }
405
+ .nnp-btn-primary:hover {
406
+ background-color: var(--component-color-tertiary);
407
+ }
408
+
409
+ .nnp-btn-secondary {
410
+ background-color: var(--component-color-primary);
411
+ color: var(--text-color-secondary);
412
+ }
413
+ .nnp-btn-secondary:hover {
414
+ background-color: var(--component-color-tertiary);
415
+ }
416
+
417
+ .nnp-btn-tertiary {
418
+ background-color: var(--base-color-primary);
419
+ color: var(--text-color-secondary);
420
+ }
421
+ .nnp-btn-tertiary:hover {
422
+ background-color: var(--component-color-tertiary);
423
+ color: var(--text-color-primary);
424
+ }
425
+
426
+ .nnp-btn-disabled {
427
+ background-color: var(--component-color-secondary);
428
+ color: var(--text-color-secondary);
429
+ cursor: not-allowed !important;
430
+ }
431
+ .nnp-btn-disabled:hover {
432
+ background-color: var(--component-color-secondary);
433
+ color: var(--text-color-secondary);
434
+ }
435
+
436
+ .nnp-modal-container {
437
+ position: absolute;
438
+ inset: 0;
439
+ backdrop-filter: blur(2px);
440
+ z-index: 100;
441
+ display: flex;
442
+ justify-content: center;
443
+ align-items: center;
444
+ }
445
+
446
+ .nnp-modal-content {
447
+ background-color: var(--base-color-primary);
448
+ border: 1px solid #cccccc !important;
449
+ box-shadow: var(--modal-box-shadow);
450
+ margin: 20px 0;
451
+ display: flex;
452
+ flex-direction: column;
453
+ }
454
+ .nnp-modal-content .nnp-modal-body {
455
+ padding: var(--nnp-padding-medium);
456
+ flex-grow: 1;
457
+ overflow: auto;
458
+ }
459
+
460
+ .nnp-side-layout-container {
461
+ height: calc(100vh - var(--component-height-medium));
462
+ overflow: hidden;
463
+ }
464
+
465
+ .nnp-side-main-container {
466
+ display: flex;
467
+ flex-direction: row;
468
+ height: 100%;
469
+ }
470
+
471
+ .nnp-side-main-content {
472
+ width: calc(100vw - var(--nav-width));
473
+ height: calc(100% - var(--nnp-padding-large));
474
+ padding: var(--nnp-padding-medium) var(--nnp-padding-large);
475
+ overflow-y: auto;
476
+ }
477
+
478
+ .nnp-side-main-content-full {
479
+ width: 100vw;
480
+ height: calc(100% - var(--nnp-padding-large));
481
+ padding: var(--nnp-padding-medium) var(--nnp-padding-large);
482
+ overflow-y: auto;
483
+ }
484
+
485
+ .nnp-side-nav {
486
+ display: flex;
487
+ flex-direction: column;
488
+ width: var(--nav-width);
489
+ background-color: var(--component-color-secondary);
490
+ color: var(--text-color-primary);
491
+ border-right: 1px solid var(--border-color);
492
+ transition: width 0.3s ease;
493
+ height: 100%;
494
+ overflow-y: auto;
495
+ }
496
+ .nnp-side-nav .nnp-side-menu-item {
497
+ display: flex;
498
+ flex-direction: column;
499
+ }
500
+ .nnp-side-nav .nnp-side-menu-header {
501
+ display: flex;
502
+ justify-content: space-between;
503
+ align-items: center;
504
+ height: var(--component-height-medium);
505
+ cursor: pointer;
506
+ padding: 0 var(--nnp-padding-small);
507
+ }
508
+ .nnp-side-nav .nnp-side-menu-header:hover {
509
+ background-color: var(--component-color-tertiary);
510
+ }
511
+ .nnp-side-nav .nnp-side-menu-header .nnp-side-menu-arrow {
512
+ font-size: var(--font-size-md);
513
+ }
514
+ .nnp-side-nav .nnp-side-menu-header .nnp-side-menu-children {
515
+ font-size: var(--font-size-xs);
516
+ }
517
+ .nnp-side-nav .nnp-side-menu-header.selected {
518
+ background-color: var(--component-color-primary) !important;
519
+ color: var(--text-color-secondary) !important;
520
+ }
521
+ .nnp-side-nav .nnp-side-menu-header.active {
522
+ background-color: var(--component-color-tertiary);
523
+ }
524
+
525
+ .nnp-side-nav.collapsed {
526
+ width: 0;
527
+ }
528
+
529
+ .nnp-side-menu-children {
530
+ max-height: 0;
531
+ transition: max-height 1s ease-out;
532
+ overflow: hidden;
533
+ }
534
+
535
+ .nnp-side-menu-children.open {
536
+ max-height: 300vh;
537
+ transition: max-height 1s ease-in;
538
+ }
539
+
540
+ .nnp-accordian-component-primary {
541
+ background-color: var(--component-color-primary) !important;
542
+ }
543
+
544
+ .nnp-accordian-component-secondary {
545
+ background-color: var(--component-color-primary) !important;
546
+ }
547
+
548
+ /* Body Theme Styling */
549
+ html.dark,
550
+ body.dark-theme {
551
+ background-color: var(--base-color-primary);
552
+ color: var(--text-color-primary);
553
+ }
554
+
555
+ /* Inputs */
556
+ html.dark input,
557
+ html.dark textarea,
558
+ html.dark select,
559
+ body.dark-theme input,
560
+ body.dark-theme textarea,
561
+ body.dark-theme select {
562
+ border-color: #424242;
563
+ color: #cccccc !important;
564
+ }
565
+
566
+ /* Labels */
567
+ html.dark label,
568
+ body.dark-theme label {
569
+ color: #cccccc !important;
570
+ }
571
+
572
+ /* Main Container */
573
+ html.dark .nnp-main-container,
574
+ body.dark-theme .nnp-main-container {
575
+ background-color: var(--base-color-primary);
576
+ }
577
+
578
+ /* Material UI DataGrid */
579
+ html.dark .MuiDataGrid-root,
580
+ body.dark-theme .MuiDataGrid-root {
581
+ background-color: #1e1e1e !important;
582
+ color: #ffffff !important;
583
+ }
584
+ html.dark .MuiDataGrid-root .MuiDataGrid-row,
585
+ body.dark-theme .MuiDataGrid-root .MuiDataGrid-row {
586
+ background-color: #1e1e1e !important;
587
+ color: #d1d1d1 !important;
588
+ }
589
+ html.dark .MuiDataGrid-root .MuiDataGrid-row:hover,
590
+ body.dark-theme .MuiDataGrid-root .MuiDataGrid-row:hover {
591
+ background-color: #333333 !important;
592
+ }
593
+ html.dark .MuiDataGrid-root .MuiDataGrid-cell,
594
+ body.dark-theme .MuiDataGrid-root .MuiDataGrid-cell {
595
+ border-color: #5e5e5e !important;
596
+ }
597
+ html.dark .MuiDataGrid-root .MuiDataGrid-columnHeaders,
598
+ body.dark-theme .MuiDataGrid-root .MuiDataGrid-columnHeaders {
599
+ background-color: #5e5e5e !important;
600
+ }
601
+
602
+ /* Dark Theme Modal Header & Footer Override */
603
+ html.dark .nnp-modal-content .nnp-header-primary,
604
+ body.dark-theme .nnp-modal-content .nnp-header-primary {
605
+ background-color: #373b42 !important;
606
+ }
607
+
608
+ /* Reusable Accordions styling */
609
+ .nnp-accordion {
610
+ border: 1px solid #444444;
611
+ border-bottom: 1px solid #444444;
612
+ background: transparent;
613
+ height: 100%;
614
+ display: flex;
615
+ flex-direction: column;
616
+ }
617
+ .nnp-accordion .MuiCollapse-root {
618
+ flex-grow: 1;
619
+ display: flex;
620
+ flex-direction: column;
621
+ }
622
+ .nnp-accordion .MuiCollapse-wrapper,
623
+ .nnp-accordion .MuiCollapse-wrapperInner,
624
+ .nnp-accordion .MuiAccordionDetails-root {
625
+ flex-grow: 1;
626
+ display: flex;
627
+ flex-direction: column;
628
+ height: 100%;
629
+ position: relative;
630
+ }
631
+
632
+ .nnp-accordion-summary {
633
+ min-height: 42px !important;
634
+ letter-spacing: 0.02em;
635
+ font-size: 0.86rem;
636
+ font-weight: 600;
637
+ text-transform: uppercase;
638
+ padding-right: 0.75rem !important;
639
+ border-bottom: 1px solid #444444;
640
+ background-color: #B8B8B8 !important;
641
+ color: #000000 !important;
642
+ }
643
+ html.dark .nnp-accordion-summary, body.dark-theme .nnp-accordion-summary {
644
+ background-color: #2E2E2E !important;
645
+ color: #2799CC !important;
646
+ }
647
+ .nnp-accordion-summary .MuiAccordionSummary-content {
648
+ margin: 0.45rem 0 !important;
649
+ }
650
+
651
+ html.dark .nnp-accordion,
652
+ body.dark-theme .nnp-accordion {
653
+ border-color: var(--border-color);
654
+ }
655
+
656
+ html.dark .nnp-accordion-summary,
657
+ body.dark-theme .nnp-accordion-summary {
658
+ border-bottom-color: var(--border-color);
659
+ }
660
+
661
+ .nnp-accordion-toggle {
662
+ display: inline-flex;
663
+ align-items: center;
664
+ justify-content: center;
665
+ width: 1.2rem;
666
+ height: 1.2rem;
667
+ border: 1px solid currentColor;
668
+ border-radius: 2px;
669
+ font-size: 1rem;
670
+ line-height: 1;
671
+ flex-shrink: 0;
672
+ }
673
+
674
+ /* Reusable Feature Card Icon styles */
675
+ .nnp-feature-icon-container {
676
+ position: absolute;
677
+ top: 16px; /* aligned to the top of the card body */
678
+ right: 24px; /* positioned on the right side of the card body */
679
+ width: 35px;
680
+ height: 35px;
681
+ display: flex;
682
+ align-items: center;
683
+ justify-content: center;
684
+ pointer-events: none;
685
+ }
686
+
687
+ .nnp-feature-icon {
688
+ width: 100%;
689
+ height: 100%;
690
+ object-fit: contain;
691
+ }
692
+
693
+ input:-webkit-autofill,
694
+ input:-webkit-autofill:hover,
695
+ input:-webkit-autofill:focus,
696
+ input:-webkit-autofill:active {
697
+ -webkit-background-clip: text !important;
698
+ -webkit-text-fill-color: var(--text-color-primary) !important;
699
+ transition: background-color 5000s ease-in-out 0s !important;
700
+ }
701
+
702
+ /* Global Scrollbar Styles */
703
+ * {
704
+ scrollbar-width: thin;
705
+ /* For Firefox */
706
+ scrollbar-color: var(--text-color-tertiary) transparent;
707
+ }
708
+
709
+ /* Chrome, Edge, and Safari */
710
+ *::-webkit-scrollbar {
711
+ width: 2px;
712
+ height: 2px;
713
+ /* optional: for horizontal scrollbars */
714
+ background: transparent;
715
+ /* transparent background */
716
+ }
717
+
718
+ *::-webkit-scrollbar-thumb {
719
+ background-color: var(--text-color-tertiary);
720
+ border-radius: 4px;
721
+ /* optional for smoothness */
722
+ }
723
+
724
+ *::-webkit-scrollbar-thumb:hover {
725
+ background-color: var(--text-color-quaternary);
726
+ }
727
+
728
+ *::-webkit-scrollbar-track {
729
+ background: transparent;
730
+ }