Your Name commited on
Commit
a61ffde
·
1 Parent(s): 135c452

feat: update stroke and fill colors in math plots to use starlight variable

Browse files
Files changed (1) hide show
  1. static/math.css +6 -6
static/math.css CHANGED
@@ -89,8 +89,8 @@ html.math-on, html.math-on body{overflow:hidden}
89
  .mx-plot svg{display:block;width:100%;height:auto}
90
  .mx-plot .g{stroke:var(--line);stroke-width:1}
91
  .mx-plot .a{stroke:var(--muted);stroke-width:1.5}
92
- .mx-plot .c{fill:none;stroke:var(--uc);stroke-width:2.5}
93
- .mx-plot circle{fill:var(--uc)}
94
  .mx-plot text{font:11px var(--f-body);fill:var(--muted)}
95
  /* a photographed problem */
96
  .mx-thumb{display:block;max-width:100%;max-height:180px;object-fit:contain;align-self:center;border-radius:10px;border:1px solid var(--line)}
@@ -112,12 +112,12 @@ html.math-on, html.math-on body{overflow:hidden}
112
  @media (prefers-reduced-motion:no-preference){.mx-sheet{animation:mx-up .22s ease-out}@keyframes mx-up{from{transform:translateY(30px);opacity:.4}}}
113
  .mx-figure{direction:ltr;align-self:center;width:100%;max-width:340px;text-align:center}
114
  .mx-figure svg{display:block;width:100%;height:auto}
115
- .mx-figure .s{stroke:var(--uc);stroke-width:2.2;fill:none;stroke-linejoin:round;stroke-linecap:round}
116
- .mx-figure .d{stroke:var(--uc);stroke-width:1.6;stroke-dasharray:5 4;fill:none}
117
  .mx-figure .m{stroke:var(--ink);stroke-width:1.4;fill:none;opacity:.75}
118
  .mx-figure .g{stroke:var(--line);stroke-width:1}
119
  .mx-figure .ax{stroke:var(--muted);stroke-width:1.4}
120
- .mx-figure circle{fill:var(--uc)}
121
  .mx-figure text{text-anchor:middle;fill:var(--ink);font:600 13px var(--f-body)}
122
  .mx-figure .v{font:italic 700 15px var(--f-body)}
123
  .mx-figure .n{font:500 9px var(--f-body);fill:var(--muted)}
@@ -126,7 +126,7 @@ html.math-on, html.math-on body{overflow:hidden}
126
  .mx-figure small{font-size:12px;color:var(--muted)}
127
  .mx-geometry{direction:ltr;align-self:center;width:100%;max-width:320px;text-align:center}
128
  .mx-geometry svg{display:block;width:100%;height:auto}
129
- .mx-geometry path{stroke:var(--uc);stroke-width:2;fill:none}
130
  .mx-geometry text{fill:var(--ink);font:16px var(--f-body)}
131
  .mx-geometry small{font-size:12px;color:var(--muted)}
132
  /* Handwritten answer scanning */
 
89
  .mx-plot svg{display:block;width:100%;height:auto}
90
  .mx-plot .g{stroke:var(--line);stroke-width:1}
91
  .mx-plot .a{stroke:var(--muted);stroke-width:1.5}
92
+ .mx-plot .c{fill:none;stroke:var(--uc,var(--starlight));stroke-width:2.5}
93
+ .mx-plot circle{fill:var(--uc,var(--starlight))}
94
  .mx-plot text{font:11px var(--f-body);fill:var(--muted)}
95
  /* a photographed problem */
96
  .mx-thumb{display:block;max-width:100%;max-height:180px;object-fit:contain;align-self:center;border-radius:10px;border:1px solid var(--line)}
 
112
  @media (prefers-reduced-motion:no-preference){.mx-sheet{animation:mx-up .22s ease-out}@keyframes mx-up{from{transform:translateY(30px);opacity:.4}}}
113
  .mx-figure{direction:ltr;align-self:center;width:100%;max-width:340px;text-align:center}
114
  .mx-figure svg{display:block;width:100%;height:auto}
115
+ .mx-figure .s{stroke:var(--uc,var(--starlight));stroke-width:2.2;fill:none;stroke-linejoin:round;stroke-linecap:round}
116
+ .mx-figure .d{stroke:var(--uc,var(--starlight));stroke-width:1.6;stroke-dasharray:5 4;fill:none}
117
  .mx-figure .m{stroke:var(--ink);stroke-width:1.4;fill:none;opacity:.75}
118
  .mx-figure .g{stroke:var(--line);stroke-width:1}
119
  .mx-figure .ax{stroke:var(--muted);stroke-width:1.4}
120
+ .mx-figure circle{fill:var(--uc,var(--starlight))}
121
  .mx-figure text{text-anchor:middle;fill:var(--ink);font:600 13px var(--f-body)}
122
  .mx-figure .v{font:italic 700 15px var(--f-body)}
123
  .mx-figure .n{font:500 9px var(--f-body);fill:var(--muted)}
 
126
  .mx-figure small{font-size:12px;color:var(--muted)}
127
  .mx-geometry{direction:ltr;align-self:center;width:100%;max-width:320px;text-align:center}
128
  .mx-geometry svg{display:block;width:100%;height:auto}
129
+ .mx-geometry path{stroke:var(--uc,var(--starlight));stroke-width:2;fill:none}
130
  .mx-geometry text{fill:var(--ink);font:16px var(--f-body)}
131
  .mx-geometry small{font-size:12px;color:var(--muted)}
132
  /* Handwritten answer scanning */