public/Temml-Local.css
249 lines · 5601 bytes
1/*
2Temml.woff2 is a clone of KaTeX_Script-Regular, except that the code points
3have been changed from ASCII to Unicode Mathematical Alphanumeric Symbols Script capitals,
4Unicode range 1D49C to 1D4B5.
5*/
6
7@font-face {
8 font-family: 'Temml';
9 src: url('Temml.woff2') format('woff2');
10 font-weight: normal;
11 font-style: normal;
12}
13
14math {
15 font-family: "Cambria Math", 'STIXTwoMath-Regular', 'NotoSansMath-Regular', math;
16 font-style: normal;
17 font-weight: normal;
18 line-height: normal;
19 font-size-adjust: none;
20 text-indent: 0;
21 text-transform: none;
22 letter-spacing: normal;
23 word-wrap: normal;
24 direction: ltr;
25 /* Prevent Firefox from omitting the dot on i or j. */
26 font-feature-settings: "dtls" off;
27}
28
29math * {
30 border-color: currentColor;
31}
32
33/* Next line is active in Firefox and Safari.
34 * Not in Chromium, which recognizes display: "block math" written inline. */
35math.tml-display { display: block; }
36
37*.mathcal {
38 /* NotoSans */
39 font-feature-settings: 'ss01';
40}
41
42math .mathscr {
43 font-family: "Temml";
44}
45
46mo.tml-prime {
47 font-family: Temml;
48}
49
50/* Prevent f' from overlapping in Chromium */
51mo.prime-pad {
52 padding-left: 0.08em;
53}
54
55/* \cancel & \phase use background images. Get them to print. */
56menclose {
57 -webkit-print-color-adjust: exact; /* Chrome & Edge */
58 print-color-adjust: exact;
59}
60
61/* Array cell justification in Firefox & WebKit */
62.tml-right {
63 text-align: right;
64}
65.tml-left {
66 text-align: left;
67}
68
69/* Styles for Chromium only */
70@supports (not (-webkit-backdrop-filter: blur(1px))) and (not (-moz-appearance: none)) {
71 /* MathML Core & Chromium do not support the MathML 3.0 element <menclose> attributes. */
72 /* So use styles. */
73 menclose {
74 position: relative;
75 padding: 0.5ex 0ex;
76 }
77
78 .tml-overline {
79 padding: 0.1em 0 0 0;
80 border-top: 0.065em solid;
81 }
82
83 .tml-underline {
84 padding: 0 0 0.1em 0;
85 border-bottom: 0.065em solid;
86 }
87
88 .tml-cancel {
89 display: inline-block;
90 position: absolute;
91 left: 0.5px;
92 bottom: 0;
93 width: 100%;
94 height: 100%;
95 background-color: currentColor;
96 }
97 .upstrike {
98 clip-path: polygon(0.05em 100%, 0em calc(100% - 0.05em), calc(100% - 0.05em) 0em, 100% 0.05em);
99 }
100 .downstrike {
101 clip-path: polygon(0em 0.05em, 0.05em 0em, 100% calc(100% - 0.05em), calc(100% - 0.05em) 100%);
102 }
103 .sout {
104 clip-path: polygon(0em calc(55% + 0.0333em), 0em calc(55% - 0.0333em), 100% calc(55% - 0.0333em), 100% calc(55% + 0.0333em));
105 }
106 .tml-xcancel {
107 background: linear-gradient(to top left,
108 rgba(0,0,0,0) 0%,
109 rgba(0,0,0,0) calc(50% - 0.06em),
110 rgba(0,0,0,1) 50%,
111 rgba(0,0,0,0) calc(50% + 0.06em),
112 rgba(0,0,0,0) 100%),
113 linear-gradient(to top right,
114 rgba(0,0,0,0) 0%,
115 rgba(0,0,0,0) calc(50% - 0.06em),
116 rgba(0,0,0,1) 50%,
117 rgba(0,0,0,0) calc(50% + 0.06em),
118 rgba(0,0,0,0) 100%)
119 }
120
121 .longdiv-top {
122 border-top: 0.067em solid;
123 padding: 0.1em 0.2em 0.2em 0.433em;
124 }
125 .longdiv-arc {
126 position: absolute;
127 top: 0;
128 bottom: 0.1em;
129 left: -0.4em;
130 width: 0.7em;
131 border: 0.067em solid;
132 transform: translateY(-0.067em);
133 border-radius: 70%;
134 clip-path: inset(0 0 0 0.4em);
135 box-sizing: border-box;}
136 .menclose {display: inline-block;
137 text-align: left;
138 position: relative;
139 }
140
141 .phasor-bottom {
142 border-bottom: 0.067em solid;
143 padding: 0.2em 0.2em 0.1em 0.6em;
144 }
145 .phasor-angle {
146 display: inline-block;
147 position: absolute;
148 left: 0.5px;
149 bottom: -0.04em;
150 height: 100%;
151 aspect-ratio: 0.5;
152 background-color: currentColor;
153 clip-path: polygon(0.05em 100%, 0em calc(100% - 0.05em), calc(100% - 0.05em) 0em, 100% 0.05em);
154 }
155
156 .tml-box {
157 padding: 3pt 0 3pt 0;
158 border: 1px solid;
159 }
160 .tml-fbox {
161 padding: 3pt;
162 border: 1px solid;
163 }
164
165 .circle-pad {
166 padding: 0.267em;
167 }
168 .textcircle {
169 position: absolute;
170 top: 0;
171 bottom: 0;
172 right: 0;
173 left: 0;
174 border: 0.067em solid;
175 border-radius: 50%;
176 }
177
178 .actuarial {
179 padding: 0.03889em 0.03889em 0 0.03889em;
180 border-width: 0.08em 0.08em 0em 0em;
181 border-style: solid;
182 margin-right: 0.03889em;
183 }
184
185 /* Stretch \widetilde */
186 .tml-crooked-2 {
187 transform: scale(2.0, 1.1)
188 }
189 .tml-crooked-3 {
190 transform: scale(3.0, 1.3)
191 }
192 .tml-crooked-4 {
193 transform: scale(4.0, 1.4)
194 }
195 /* set array cell justification */
196 .tml-right {
197 text-align: -webkit-right;
198 }
199 .tml-left {
200 text-align: -webkit-left;
201 }
202}
203
204/* Adjust WebKit accents */
205@supports (-webkit-backdrop-filter: blur(1px)) {
206 .tml-xshift { transform: translate(0px, 0.45em) }
207 .tml-capshift { transform: translate(0px, 0.35em) }
208}
209
210/* flex-wrap for line-breaking in Chromium */
211math {
212 display: inline-flex;
213 flex-wrap: wrap;
214 align-items: baseline;
215}
216math > mrow {
217 padding: 0.5ex 0ex;
218}
219
220/* Default mtd top padding is 0.5ex per MathML-Core and user-agent CSS */
221/* We adjust for jot and small */
222mtable.tml-jot mtd {
223 padding-top: 0.7ex;
224 padding-bottom: 0.7ex;
225}
226mtable.tml-small mtd {
227 padding-top: 0.35ex;
228 padding-bottom: 0.35ex;
229}
230
231/* Firefox */
232@-moz-document url-prefix() {
233 /* Avoid flex-wrap */
234 math { display: inline; }
235 math > mrow { padding: 0 }
236 /* Adjust Firefox spacing between array rows */
237 mtd, mtable.tml-small mtd { padding-top: 0; padding-bottom: 0; }
238 mtable.tml-jot mtd { padding-top: 0.2ex; padding-bottom: 0.ex; }
239}
240
241/* AMS environment auto-numbering via CSS counter. */
242.tml-eqn::before {
243 counter-increment: tmlEqnNo;
244 content: "(" counter(tmlEqnNo) ")";
245}
246
247body {
248 counter-reset: tmlEqnNo;
249}