darabos commited on
Commit
8abbae8
·
1 Parent(s): 64d244a

Smooth color changes for progress.

Browse files
Files changed (1) hide show
  1. lynxkite-app/web/src/index.css +46 -13
lynxkite-app/web/src/index.css CHANGED
@@ -92,21 +92,31 @@ body {
92
  .lynxkite-node .title {
93
  font-weight: bold;
94
  padding: 8px;
95
- }
96
-
97
- .lynxkite-node .title.active {
98
- background: linear-gradient(
99
  to right,
100
- oklch(75% 0.2 55),
101
- oklch(90% 0.2 55),
102
- oklch(75% 0.1 55)
103
  );
104
  background-size: 180% 180%;
105
- animation: active-node-gradient-animation 2s ease-in-out infinite;
 
 
 
 
 
 
 
 
 
 
 
106
  }
107
 
108
  .lynxkite-node .title.planned {
109
- background: oklch(75% 0.1 55);
 
 
110
  }
111
 
112
  .handle-name {
@@ -350,6 +360,24 @@ body {
350
  }
351
  }
352
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
353
  .react-flow__edge.selected path.react-flow__edge-path {
354
  outline: var(--xy-selection-border, var(--xy-selection-border-default));
355
  outline-offset: 10px;
@@ -407,13 +435,15 @@ body {
407
  display: flex;
408
  justify-content: space-between;
409
  padding: 8px 12px;
410
- border-bottom: 1px solid #ccc; /* Adds a separator between rows */
 
411
  }
412
 
413
  /* Alternating background colors for table-like effect */
414
  .graph-creation-view .df-head:nth-child(odd) {
415
  background-color: #f9f9f9;
416
  }
 
417
  .graph-creation-view .df-head:nth-child(even) {
418
  background-color: #e0e0e0;
419
  }
@@ -421,7 +451,8 @@ body {
421
  .graph-relation-attributes {
422
  display: flex;
423
  flex-direction: column;
424
- gap: 10px; /* Adds space between each label-input pair */
 
425
  width: 100%;
426
  }
427
 
@@ -430,7 +461,8 @@ body {
430
  font-weight: bold;
431
  display: block;
432
  margin-bottom: 2px;
433
- color: #666; /* Lighter text for labels */
 
434
  }
435
 
436
  .graph-relation-attributes input {
@@ -443,7 +475,8 @@ body {
443
  }
444
 
445
  .graph-relation-attributes input:focus {
446
- border-color: #007bff; /* Highlight input on focus */
 
447
  }
448
 
449
  .add-relationship-button {
 
92
  .lynxkite-node .title {
93
  font-weight: bold;
94
  padding: 8px;
95
+ background-image: linear-gradient(
 
 
 
96
  to right,
97
+ var(--status-color-1),
98
+ var(--status-color-2),
99
+ var(--status-color-3)
100
  );
101
  background-size: 180% 180%;
102
+ --status-color-1: oklch(75% 0.2 55);
103
+ --status-color-2: oklch(75% 0.2 55);
104
+ --status-color-3: oklch(75% 0.2 55);
105
+ transition: --status-color-1 0.3s, --status-color-2 0.3s, --status-color-3
106
+ 0.3s;
107
+ }
108
+
109
+ .lynxkite-node .title.active {
110
+ --status-color-1: oklch(75% 0.2 55);
111
+ --status-color-2: oklch(90% 0.2 55);
112
+ --status-color-3: oklch(75% 0.1 55);
113
+ /* animation: active-node-gradient-animation 2s ease-in-out infinite; */
114
  }
115
 
116
  .lynxkite-node .title.planned {
117
+ --status-color-1: oklch(75% 0.1 55);
118
+ --status-color-2: oklch(75% 0.1 55);
119
+ --status-color-3: oklch(75% 0.1 55);
120
  }
121
 
122
  .handle-name {
 
360
  }
361
  }
362
 
363
+ @property --status-color-1 {
364
+ syntax: "<color>";
365
+ initial-value: red;
366
+ inherits: false;
367
+ }
368
+
369
+ @property --status-color-2 {
370
+ syntax: "<color>";
371
+ initial-value: red;
372
+ inherits: false;
373
+ }
374
+
375
+ @property --status-color-3 {
376
+ syntax: "<color>";
377
+ initial-value: red;
378
+ inherits: false;
379
+ }
380
+
381
  .react-flow__edge.selected path.react-flow__edge-path {
382
  outline: var(--xy-selection-border, var(--xy-selection-border-default));
383
  outline-offset: 10px;
 
435
  display: flex;
436
  justify-content: space-between;
437
  padding: 8px 12px;
438
+ /* Adds a separator between rows */
439
+ border-bottom: 1px solid #ccc;
440
  }
441
 
442
  /* Alternating background colors for table-like effect */
443
  .graph-creation-view .df-head:nth-child(odd) {
444
  background-color: #f9f9f9;
445
  }
446
+
447
  .graph-creation-view .df-head:nth-child(even) {
448
  background-color: #e0e0e0;
449
  }
 
451
  .graph-relation-attributes {
452
  display: flex;
453
  flex-direction: column;
454
+ /* Adds space between each label-input pair */
455
+ gap: 10px;
456
  width: 100%;
457
  }
458
 
 
461
  font-weight: bold;
462
  display: block;
463
  margin-bottom: 2px;
464
+ /* Lighter text for labels */
465
+ color: #666;
466
  }
467
 
468
  .graph-relation-attributes input {
 
475
  }
476
 
477
  .graph-relation-attributes input:focus {
478
+ /* Highlight input on focus */
479
+ border-color: #007bff;
480
  }
481
 
482
  .add-relationship-button {