@mathscan/math-exercise-engine 1.0.17 → 1.1.0

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 (2) hide show
  1. package/dist/style.css +21 -17
  2. package/package.json +1 -1
package/dist/style.css CHANGED
@@ -107,12 +107,13 @@
107
107
  NUMBER LINE — HIGHLIGHT COLORS
108
108
  ======================================== */
109
109
 
110
- --nl-highlight-blue: rgba(0, 122, 204, 0.25);
111
- --nl-highlight-red: rgba(239, 68, 68, 0.25);
112
- --nl-highlight-green: rgba(34, 197, 94, 0.25);
113
- --nl-highlight-orange: rgba(249, 115, 22, 0.25);
114
- --nl-highlight-purple: rgba(112, 93, 192, 0.25);
115
- --nl-highlight-yellow: rgba(255, 215, 0, 0.35);
110
+ --nl-axis-color: #705DC0;
111
+ --nl-highlight-blue: #007ACC;
112
+ --nl-highlight-red: #EF4444;
113
+ --nl-highlight-green: #22C55E;
114
+ --nl-highlight-orange: #F97316;
115
+ --nl-highlight-purple: #705DC0;
116
+ --nl-highlight-yellow: #FFD700;
116
117
  }
117
118
 
118
119
  /* Layout & Structure */
@@ -1027,7 +1028,7 @@ th.exercise-table-cell {
1027
1028
  right: var(--nl-side-pad, 7%);
1028
1029
  top: 50%;
1029
1030
  height: 2px;
1030
- background-color: var(--exercise-text, #333);
1031
+ background-color: var(--nl-axis-color);
1031
1032
  transform: translateY(-50%);
1032
1033
  /* transition on base state so both enter and exit are smooth */
1033
1034
  transition: all 0.2s ease;
@@ -1068,7 +1069,7 @@ th.exercise-table-cell {
1068
1069
  transform: translateY(-50%);
1069
1070
  border-top: 5px solid transparent;
1070
1071
  border-bottom: 5px solid transparent;
1071
- border-left: 8px solid var(--exercise-text, #333);
1072
+ border-left: 8px solid var(--nl-axis-color);
1072
1073
  }
1073
1074
 
1074
1075
  /* Left-pointing arrow — tip extends just past the left end of the track, offset outward by --nl-arrow-gap */
@@ -1078,7 +1079,7 @@ th.exercise-table-cell {
1078
1079
  transform: translate(-100%, -50%);
1079
1080
  border-top: 5px solid transparent;
1080
1081
  border-bottom: 5px solid transparent;
1081
- border-right: 8px solid var(--exercise-text, #333);
1082
+ border-right: 8px solid var(--nl-axis-color);
1082
1083
  }
1083
1084
 
1084
1085
  /* Geometric line style — arrows reach the full container edges */
@@ -1099,7 +1100,8 @@ th.exercise-table-cell {
1099
1100
  transform: translate(-50%, -50%);
1100
1101
  width: 2px;
1101
1102
  height: 14px;
1102
- background-color: var(--exercise-text, #333);
1103
+ background-color: var(--nl-axis-color);
1104
+ z-index: 2;
1103
1105
  transition: transform 0.1s ease, background-color 0.1s ease, width 0.1s ease;
1104
1106
  }
1105
1107
 
@@ -1111,7 +1113,8 @@ th.exercise-table-cell {
1111
1113
  transform: translate(-50%, -50%);
1112
1114
  width: 1px;
1113
1115
  height: 8px;
1114
- background-color: var(--exercise-text-light, #555);
1116
+ background-color: var(--nl-axis-color);
1117
+ z-index: 2;
1115
1118
  transition: transform 0.1s ease, background-color 0.1s ease, width 0.1s ease;
1116
1119
  }
1117
1120
 
@@ -1309,7 +1312,7 @@ th.exercise-table-cell {
1309
1312
  transform: translateX(-50%);
1310
1313
  /** Slightly smaller than base font — same pattern as secondary text in the app */
1311
1314
  font-size: calc(var(--exercise-font-size) * 0.8);
1312
- color: var(--exercise-text-light, #555);
1315
+ color: var(--nl-axis-color);
1313
1316
  white-space: nowrap;
1314
1317
  }
1315
1318
 
@@ -1321,11 +1324,12 @@ th.exercise-table-cell {
1321
1324
 
1322
1325
  .number-line-highlight-band {
1323
1326
  position: absolute;
1324
- top: 0;
1325
- height: 100%;
1326
- background-color: var(--nl-highlight-color, var(--nl-highlight-blue, rgba(0, 122, 204, 0.25)));
1327
- border-radius: 2px;
1328
- z-index: 0;
1327
+ top: 50%;
1328
+ height: 6px;
1329
+ transform: translateY(-50%);
1330
+ background-color: var(--nl-highlight-color, var(--nl-highlight-purple, #705DC0));
1331
+ border-radius: 0;
1332
+ z-index: 1;
1329
1333
  pointer-events: none;
1330
1334
  }
1331
1335
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mathscan/math-exercise-engine",
3
- "version": "1.0.17",
3
+ "version": "1.1.0",
4
4
  "description": "A DSL parser and validator for math exercises - transforms text-based exercise definitions into structured AST and JSON",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",