@haniffalab/cherita-react 0.2.0 → 0.2.1-dev.2025-02-19.e6d8aac6

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/scss/cherita.scss CHANGED
@@ -1,3 +1,8 @@
1
+ @import "components/layouts";
2
+ @import "components/plots";
3
+ @import "components/scrollbars";
4
+ @import "components/plotly";
5
+
1
6
  .loading-spinner {
2
7
  @extend .bg-light;
3
8
 
@@ -24,25 +29,6 @@
24
29
  overflow: hidden;
25
30
  }
26
31
 
27
- .cherita-navbar {
28
- @extend .mx-1;
29
- @extend .my-2;
30
- @extend .d-block;
31
- @extend .d-xl-none;
32
-
33
- position: absolute;
34
- z-index: 11;
35
- top: 0;
36
- left: 0;
37
- right: 0;
38
- border-radius: 0.25rem;
39
- }
40
-
41
- .cherita-container .cherita-navbar-item > .dropdown-menu {
42
- height: var(--dropdown-height);
43
- overflow: hidden scroll;
44
- }
45
-
46
32
  /* Scrollbar styling */
47
33
 
48
34
  /* Works on Firefox */
@@ -79,14 +65,6 @@
79
65
  height: 100%;
80
66
  }
81
67
 
82
- .cherita-spatial-controls {
83
- position: absolute;
84
- z-index: 10;
85
- top: 1rem;
86
- left: 1rem;
87
- width: 3rem;
88
- }
89
-
90
68
  .cherita-spatial-footer {
91
69
  position: absolute;
92
70
  z-index: 10;
@@ -258,12 +236,6 @@
258
236
  margin: 0;
259
237
  }
260
238
 
261
- .cherita-app {
262
- @extend .container-fluid;
263
-
264
- position: relative;
265
- }
266
-
267
239
  .cherita-app-plot {
268
240
  @extend .col;
269
241
  @extend .col-12;
@@ -275,19 +247,6 @@
275
247
  max-height: 100%;
276
248
  }
277
249
 
278
- .cherita-app-obs {
279
- @extend .col;
280
- @extend .d-none;
281
- @extend .d-lg-block;
282
- @extend .col-lg-4;
283
- @extend .col-xl-3;
284
- @extend .col-xxl-3;
285
-
286
- border-right: 5px solid #f5f5f5;
287
- overflow-y: scroll;
288
- height: 100%;
289
- }
290
-
291
250
  .cherita-app-var {
292
251
  @extend .p-3;
293
252
  @extend .col;
@@ -352,3 +311,64 @@
352
311
  .deck-tooltip {
353
312
  z-index: 100 !important;
354
313
  }
314
+
315
+ .pseudospatial-reference-img {
316
+ width: 100%;
317
+ height: 100%;
318
+ object-fit: contain; /* Keeps the image inside its allocated space */
319
+ }
320
+
321
+ .cherita-pseudospatial-controls {
322
+ position: absolute;
323
+ z-index: 10;
324
+ bottom: 1rem;
325
+ left: 1rem;
326
+ }
327
+
328
+ /* Styling the obs-accordion-header */
329
+ .obs-accordion {
330
+ margin-bottom: 10px; /* Space between each accordion */
331
+ }
332
+
333
+ .obs-accordion-header {
334
+ @extend .btn;
335
+ @extend .btn-light-primary !optional;
336
+ @extend .btn-light;
337
+ @extend .text-primary;
338
+
339
+ display: flex;
340
+ align-items: center; /* Center the content vertically */
341
+ margin: 10px 10px 0 10px;
342
+ padding: 8px 12px; /* Adjust padding for spacing */
343
+ border-radius: 8px; /* Optional: rounded corners */
344
+ transition: background-color 0.3s ease; /* Smooth transition for background change */
345
+ cursor: pointer;
346
+
347
+ .obs-accordion-header-chevron {
348
+ display: flex;
349
+ justify-content: center;
350
+ align-items: center;
351
+ width: 20px; /* Fixed width to prevent layout shifts */
352
+ height: 20px; /* Ensures a consistent square */
353
+ margin-right: 10px;
354
+ }
355
+ .obs-accordion-header-title {
356
+ font-size: 1rem;
357
+ }
358
+
359
+ &.active {
360
+ @extend .btn-primary;
361
+ @extend .text-light;
362
+ }
363
+ &:hover {
364
+ background-color: var(--geeks-btn-hover-bg);
365
+ border-color: var(--geeks-btn-hover-border-color);
366
+ }
367
+ }
368
+
369
+ .obs-accordion-body {
370
+ @extend .card;
371
+
372
+ margin: 10px;
373
+ position: relative;
374
+ }
@@ -0,0 +1,101 @@
1
+ .cherita-app {
2
+ position: relative;
3
+ }
4
+
5
+ .cherita-app .cherita-navbar {
6
+ @extend .m-3;
7
+ @extend .d-block;
8
+ @extend .d-xl-none;
9
+
10
+ position: absolute;
11
+ z-index: 11;
12
+ top: 0;
13
+ left: 0;
14
+ right: 0;
15
+ border-radius: 0.25rem;
16
+ @media (min-width: 992px) and (max-width: 1199px) {
17
+ margin-left: calc(33.33333333% + 1rem) !important;
18
+ }
19
+ }
20
+
21
+ .cherita-app-canvas {
22
+ position: relative;
23
+ }
24
+
25
+ .cherita-app-obs {
26
+ @extend .col;
27
+ @extend .d-none;
28
+ @extend .d-lg-block;
29
+ @extend .col-lg-4;
30
+ @extend .col-xl-3;
31
+ @extend .col-xxl-3;
32
+
33
+ overflow-y: scroll;
34
+ }
35
+
36
+ .cherita-app-sidebar {
37
+ @extend .d-none;
38
+ @extend .d-xl-flex;
39
+
40
+ width: 20%;
41
+ position: relative;
42
+
43
+ .card {
44
+ width: 100%;
45
+ }
46
+
47
+ .card-body {
48
+ overflow-y: hidden;
49
+ }
50
+
51
+ .sidebar-pseudospatial {
52
+ padding: 10px;
53
+ border-bottom: 1px solid #dee2e6;
54
+
55
+ .cherita-legend {
56
+ margin: 0 auto;
57
+ }
58
+ }
59
+
60
+ .sidebar-features {
61
+ padding: 10px;
62
+ margin-bottom: 10px;
63
+ overflow-y: auto;
64
+ }
65
+
66
+ .accordion-header-wrapper {
67
+ cursor: pointer;
68
+ padding: var(--geeks-accordion-btn-padding-y)
69
+ var(--geeks-accordion-btn-padding-x);
70
+ color: var(--geeks-accordion-btn-color);
71
+ background-color: var(--geeks-accordion-btn-bg);
72
+ border: 0;
73
+ border-radius: 0;
74
+ transition: var(--geeks-accordion-transition);
75
+ display: flex;
76
+ align-items: center;
77
+ width: 100%;
78
+
79
+ &:after {
80
+ content: "";
81
+ flex-shrink: 0;
82
+ width: var(--geeks-accordion-btn-icon-width);
83
+ height: var(--geeks-accordion-btn-icon-width);
84
+ margin-left: 8px;
85
+ background-image: var(--geeks-accordion-btn-icon);
86
+ background-repeat: no-repeat;
87
+ background-size: var(--geeks-accordion-btn-icon-width);
88
+ transition: var(--geeks-accordion-btn-icon-transition);
89
+ }
90
+ }
91
+
92
+ .accordion-header-wrapper:not(.collapsed) {
93
+ color: var(--geeks-accordion-active-color);
94
+ background-color: var(--geeks-accordion-active-bg);
95
+
96
+ &:after {
97
+ background-image: var(--geeks-accordion-btn-active-icon);
98
+ transform: var(--geeks-accordion-btn-icon-transform);
99
+ }
100
+ }
101
+ }
@@ -0,0 +1,30 @@
1
+ .js-plotly-plot .plotly .modebar {
2
+ border-radius: 5px;
3
+ background-color: rgba(0, 0, 0, 0.6);
4
+ padding: 0 4px !important;
5
+
6
+ .modebar-group {
7
+ margin: 0 !important;
8
+ padding: 0 !important;
9
+ background-color: transparent !important;
10
+
11
+ .modebar-btn {
12
+ fill: white !important; /* Ensures white icons */
13
+ color: white !important; /* Ensures text/icons are visible */
14
+ position: relative;
15
+ font-size: 16px;
16
+ padding: 4px;
17
+ height: auto;
18
+ cursor: pointer;
19
+ line-height: normal;
20
+
21
+ svg {
22
+ position: relative;
23
+ top: auto;
24
+ bottom: auto;
25
+ left: auto;
26
+ right: auto;
27
+ }
28
+ }
29
+ }
30
+ }
@@ -0,0 +1,13 @@
1
+ .cherita-spatial-controls {
2
+ position: absolute;
3
+ z-index: 10;
4
+ top: 1rem;
5
+ left: 1rem;
6
+ width: 3rem;
7
+ }
8
+
9
+ @media (max-width: 1199.98px) {
10
+ .cherita-spatial-controls {
11
+ top: 5rem;
12
+ }
13
+ }
@@ -0,0 +1,18 @@
1
+ .modern-scrollbars::-webkit-scrollbar {
2
+ width: 20px;
3
+ }
4
+
5
+ .modern-scrollbars::-webkit-scrollbar-track {
6
+ background-color: transparent;
7
+ }
8
+
9
+ .modern-scrollbars::-webkit-scrollbar-thumb {
10
+ background-color: #d6dee1;
11
+ border-radius: 20px;
12
+ border: 6px solid transparent;
13
+ background-clip: content-box;
14
+ }
15
+
16
+ .modern-scrollbars::-webkit-scrollbar-thumb:hover {
17
+ background-color: #a8bbbf;
18
+ }