@khanacademy/perseus 22.5.0 → 22.6.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.
package/dist/es/index.css CHANGED
@@ -3203,6 +3203,13 @@ body.sat-section .perseus-widget-passage {
3203
3203
  .perseus-widget-radio li table {
3204
3204
  border: 1px solid #ccc;
3205
3205
  }
3206
+ .perseus-widget-radio .perseus-radio-option {
3207
+ /* Radio options with images that are set apart should be on their own line */
3208
+ }
3209
+ .perseus-widget-radio .perseus-radio-option .paragraph + .paragraph:has(img:only-child),
3210
+ .perseus-widget-radio .perseus-radio-option .paragraph:has(img:only-child):has(+ .paragraph) {
3211
+ display: block;
3212
+ }
3206
3213
  .perseus-widget-radio-fieldset .instructions {
3207
3214
  font-family: "Lato", sans-serif;
3208
3215
  }
@@ -4170,6 +4177,7 @@ html body .mq-editable-field .mq-selection .mq-nthroot-container * {
4170
4177
  --mafs-origin-color: var(--mafs-fg);
4171
4178
  --mafs-line-color: #555;
4172
4179
  --mafs-line-stroke-dash-style: 4, 3;
4180
+ --mafs-axis-stroke-width: 1px;
4173
4181
  --grid-line-subdivision-color: #222;
4174
4182
 
4175
4183
  --mafs-red: #f11d0e;
@@ -4286,6 +4294,9 @@ html body .mq-editable-field .mq-selection .mq-nthroot-container * {
4286
4294
  /* Grid lines */
4287
4295
  --mafs-line-color: rgba(33, 36, 44, 0.16); /* WB color.offBlack16*/
4288
4296
 
4297
+ /* Axis lines */
4298
+ --mafs-axis-stroke-width: 2px;
4299
+
4289
4300
  --mafs-blue: #1865f2; /* WB color.blue */
4290
4301
  --mafs-red: #d92916; /* WB color.red */
4291
4302
  --mafs-green: #00a60e; /* WB color.green */
@@ -4429,6 +4440,17 @@ html body .mq-editable-field .mq-selection .mq-nthroot-container * {
4429
4440
  cursor: grab;
4430
4441
  }
4431
4442
 
4443
+ .MafsView .movable-circle .circle {
4444
+ stroke: var(--mafs-blue);
4445
+ stroke-width: 2px;
4446
+ fill: transparent;
4447
+ }
4448
+
4449
+ .MafsView .movable-circle:hover .circle {
4450
+ fill: var(--mafs-blue);
4451
+ fill-opacity: 0.16;
4452
+ }
4453
+
4432
4454
  .MafsView .movable-circle.movable-circle--dragging {
4433
4455
  cursor: grabbing;
4434
4456
  outline: none;
@@ -4466,7 +4488,53 @@ html body .mq-editable-field .mq-selection .mq-nthroot-container * {
4466
4488
  format("woff");
4467
4489
  }
4468
4490
 
4469
- .MafsView .axis-ticks text {
4491
+ .axis-tick-labels {
4470
4492
  font-size: 14px;
4471
4493
  font-family: "Mafs-MJXTEX";
4494
+ line-height: 1.5em;
4495
+ /* Prevent labels from being selected, and from interfering with click and
4496
+ * drag interactions on the graph. */
4497
+ user-select: none;
4498
+ pointer-events: none;
4499
+ }
4500
+
4501
+ .y-axis-tick-labels {
4502
+ width: 1.75em;
4503
+ display: flex;
4504
+ flex-flow: column;
4505
+ transform: translateX(calc(-100% - 0.5em));
4506
+ position: absolute;
4507
+ text-align: right;
4508
+ }
4509
+ .y-axis-right-of-grid {
4510
+ transform: translateX(calc(50% + 0.5em));
4511
+ }
4512
+ .x-axis-tick-labels {
4513
+ display: flex;
4514
+ flex-flow: row;
4515
+ flex-direction: row-reverse;
4516
+ position: absolute;
4517
+ transform: translateY(calc(50% - 0.25em));
4518
+ }
4519
+ .x-axis-top-of-grid {
4520
+ transform: translateY(calc(-100% + 0.25em));
4521
+ }
4522
+
4523
+ .x-axis-tick-labels span,
4524
+ .y-axis-tick-labels span {
4525
+ &::before {
4526
+ content: attr(data-content);
4527
+ position: absolute;
4528
+ transform: translate(-100%);
4529
+ }
4530
+ }
4531
+
4532
+ .y-axis-tick-labels span {
4533
+ display: inline-block;
4534
+ height: var(--y-axis-label-height, 20px);
4535
+ }
4536
+
4537
+ .x-axis-tick-labels span {
4538
+ text-align: center;
4539
+ width: var(--x-axis-label-width, 20px);
4472
4540
  }