@khanacademy/perseus 19.6.3 → 19.7.1

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 CHANGED
@@ -4163,3 +4163,174 @@ html body .mq-editable-field .mq-selection .mq-nthroot-container * {
4163
4163
  box-sizing: content-box;
4164
4164
  }
4165
4165
 
4166
+
4167
+ .MafsView {
4168
+ display: block;
4169
+ background: var(--mafs-bg);
4170
+ overflow: hidden;
4171
+ -webkit-user-select: none;
4172
+ user-select: none;
4173
+ font-family: inherit;
4174
+ font-variant-numeric: tabular-nums;
4175
+ touch-action: none;
4176
+ outline: 0;
4177
+
4178
+ --mafs-bg: black;
4179
+ --mafs-fg: white;
4180
+
4181
+ --mafs-origin-color: var(--mafs-fg);
4182
+ --mafs-line-color: #555;
4183
+ --grid-line-subdivision-color: #222;
4184
+
4185
+ --mafs-red: #f11d0e;
4186
+ --mafs-orange: #f14e0e;
4187
+ --mafs-yellow: #ffe44a;
4188
+ --mafs-green: #15e272;
4189
+ --mafs-blue: #58a6ff;
4190
+ --mafs-indigo: #7c58ff;
4191
+ --mafs-violet: #ae58ff;
4192
+ --mafs-pink: #ee00ab;
4193
+ }
4194
+
4195
+ .MafsView text {
4196
+ fill: var(--mafs-fg);
4197
+ cursor: default;
4198
+ }
4199
+
4200
+ .MafsView path {
4201
+ stroke: var(--mafs-fg);
4202
+ }
4203
+
4204
+ .MafsView:focus-visible {
4205
+ border-radius: 5px;
4206
+ outline: 3px solid #58a6ff;
4207
+ }
4208
+
4209
+ @supports not selector(:focus-visible) {
4210
+ .MafsView:focus {
4211
+ border-radius: 5px;
4212
+ outline: 3px solid #58a6ff;
4213
+ }
4214
+ }
4215
+
4216
+ .mafs-shadow {
4217
+ paint-order: stroke;
4218
+ stroke-width: 3px;
4219
+ stroke: var(--mafs-bg);
4220
+ stroke-opacity: 0.75;
4221
+ stroke-linejoin: round;
4222
+ }
4223
+
4224
+ .mafs-movable-point {
4225
+ cursor: grab;
4226
+ touch-action: none;
4227
+ }
4228
+
4229
+ .mafs-movable-point-dragging {
4230
+ cursor: grabbing;
4231
+ }
4232
+
4233
+ .mafs-movable-point:focus {
4234
+ outline: 0;
4235
+ }
4236
+
4237
+ .mafs-movable-point * {
4238
+ fill: none;
4239
+ stroke: none;
4240
+ }
4241
+
4242
+ .mafs-movable-point-hitbox {
4243
+ fill: transparent;
4244
+ }
4245
+
4246
+ .mafs-movable-point-focus {
4247
+ stroke: var(--movable-point-color);
4248
+ stroke-width: 2;
4249
+ stroke-opacity: 0;
4250
+ fill: none;
4251
+ transition: stroke-opacity 0.2s ease;
4252
+ }
4253
+
4254
+ .mafs-movable-point-ring {
4255
+ fill: var(--movable-point-color);
4256
+ fill-opacity: 0.25;
4257
+ stroke: none;
4258
+ transition: r 0.2s ease;
4259
+ }
4260
+
4261
+ .mafs-movable-point-point {
4262
+ fill: var(--movable-point-color);
4263
+ transition: r 0.2s ease;
4264
+ }
4265
+
4266
+ /* Hover */
4267
+
4268
+ .mafs-movable-point:hover .mafs-movable-point-point,
4269
+ .mafs-movable-point:focus-visible .mafs-movable-point-point {
4270
+ r: calc(var(--movable-point-ring-size) - 2px);
4271
+ }
4272
+
4273
+ .mafs-movable-point:hover .mafs-movable-point-ring,
4274
+ .mafs-movable-point:focus-visible .mafs-movable-point-ring {
4275
+ r: calc(var(--movable-point-ring-size) + 3px);
4276
+ }
4277
+
4278
+ .mafs-movable-point.mafs-movable-point-dragging .mafs-movable-point-ring {
4279
+ r: var(--movable-point-ring-size);
4280
+ }
4281
+
4282
+ /* Focus */
4283
+
4284
+ .mafs-movable-point:focus-visible .mafs-movable-point-focus {
4285
+ stroke-opacity: 1;
4286
+ }
4287
+
4288
+ @font-face {
4289
+ font-family: "CMU Serif";
4290
+ font-style: roman;
4291
+ font-weight: 500;
4292
+ src: url("./fonts/cmu-serif-500-roman.woff2") format("woff2"), url("./fonts/cmu-serif-500-roman.ttf") format("truetype");
4293
+ }
4294
+
4295
+ @font-face {
4296
+ font-family: "CMU Serif";
4297
+ font-style: italic;
4298
+ font-weight: 500;
4299
+ src: url("./fonts/cmu-serif-500-italic.woff2") format("woff2"), url("./fonts/cmu-serif-500-italic.ttf") format("truetype");
4300
+ }
4301
+
4302
+ @font-face {
4303
+ font-family: "CMU Serif";
4304
+ font-style: roman;
4305
+ font-weight: 700;
4306
+ src: url("./fonts/cmu-serif-700-roman.woff2") format("woff2"), url("./fonts/cmu-serif-700-roman.ttf") format("truetype");
4307
+ }
4308
+
4309
+ @font-face {
4310
+ font-family: "CMU Serif";
4311
+ font-style: italic;
4312
+ font-weight: 700;
4313
+ src: url("./fonts/cmu-serif-700-italic.woff2") format("woff2"), url("./fonts/cmu-serif-700-italic.ttf") format("truetype");
4314
+ }
4315
+
4316
+ .MafsView {
4317
+ font-family: "CMU Serif", serif;
4318
+ }
4319
+
4320
+ /**
4321
+ * Overrides of mafs styles-- we will want to move this into JS land
4322
+ * to take advantage of WB tokens, but I cannot get that to work at the moment
4323
+ */
4324
+ .MafsView {
4325
+ --mafs-bg: transparent;
4326
+ --mafs-fg: rgb(33, 36, 44); /* WB color.offBlack */
4327
+
4328
+ --mafs-line-color: var(--mafs-fg);
4329
+ --grid-line-subdivision-color: rgba(33, 36, 44, 0.16);
4330
+
4331
+ --mafs-blue: #1865f2; /* WB color.blue */
4332
+ --mafs-red: #d92916; /* WB color.red */
4333
+ --mafs-green: #00a60e; /* WB color.green */
4334
+ --mafs-violet: #9059ff; /* WB color.purple */
4335
+ --mafs-yellow: #ffb100; /* WB color.gold */
4336
+ }