mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-05 11:18:39 +00:00
Add square roots (\sqrt)
Summary: Follow the TeXbook instructions on how to construct square roots. Using makeCustomSizedDelim, this becomes nearly trivial. Test Plan: - Make sure normal tests work - Make sure the new huxley test looks good, and other huxley tests haven't changed. Reviewers: alpert Reviewed By: alpert Differential Revision: http://phabricator.khanacademy.org/D12918
This commit is contained in:
@@ -350,6 +350,46 @@ big parens
|
||||
}
|
||||
}
|
||||
|
||||
.sqrt {
|
||||
> .sqrt-sign {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
> .sqrt-body {
|
||||
.baseline-align-hack-outer;
|
||||
|
||||
> .sqrt-line,
|
||||
> .sqrt-inner,
|
||||
> .fix-ie {
|
||||
.baseline-align-hack-middle;
|
||||
position: relative;
|
||||
|
||||
> span {
|
||||
.baseline-align-hack-inner;
|
||||
}
|
||||
}
|
||||
|
||||
> .sqrt-line > .line {
|
||||
width: 100%;
|
||||
|
||||
&:before {
|
||||
border-bottom-style: solid;
|
||||
border-bottom-width: 1px;
|
||||
content: "";
|
||||
display: block;
|
||||
}
|
||||
|
||||
&:after {
|
||||
border-bottom-style: solid;
|
||||
border-bottom-width: 0.04em;
|
||||
content: "";
|
||||
display: block;
|
||||
margin-top: -1px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.sizing, .fontsize-ensurer {
|
||||
display: inline-block;
|
||||
|
||||
|
Reference in New Issue
Block a user