www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 25374ea193e8bfbe77987c393b0aa0a1a88dcd38
parent e418fd9ee32e8504fe9dbd8ba7342afe4c48bd91
Author: Emily Eisenberg <emily@khanacademy.org>
Date:   Thu,  4 Sep 2014 00:56:52 -0700

Change the scriptstyle size from 2/3em to 0.7em

Summary:
I don't know why we originally used 2/3em for scriptstyle, but both TeX
and MathJax use 0.7em for the scriptstyle size.

Test Plan:
- Look at huxley tests, make sure everything that changed is due to the change
  in font size

Reviewers: alpert

Reviewed By: alpert

Differential Revision: http://phabricator.khanacademy.org/D12869

Diffstat:
MStyle.js | 4++--
Mstatic/katex.less | 8++++----
Mtest/huxley/DeepFontSizing.hux/firefox-1.png | 0
Mtest/huxley/Exponents.hux/firefox-1.png | 0
Mtest/huxley/FractionTest.hux/firefox-1.png | 0
Mtest/huxley/NestedFractions.hux/firefox-1.png | 0
Mtest/huxley/Overline.hux/firefox-1.png | 0
Mtest/huxley/PrimeSpacing.hux/firefox-1.png | 0
Mtest/huxley/RlapBug.hux/firefox-1.png | 0
Mtest/huxley/Spacing.hux/firefox-1.png | 0
Mtest/huxley/SupSubCharacterBox.hux/firefox-1.png | 0
Mtest/huxley/SupSubHorizSpacing.hux/firefox-1.png | 0
Mtest/huxley/Text.hux/firefox-1.png | 0
Mtest/huxley/VerticalSpacing.hux/firefox-1.png | 0
14 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/Style.js b/Style.js @@ -63,8 +63,8 @@ var styles = [ new Style(Dc, 0, 1.0, true), new Style(T, 1, 1.0, false), new Style(Tc, 1, 1.0, true), - new Style(S, 2, 0.66667, false), - new Style(Sc, 2, 0.66667, true), + new Style(S, 2, 0.7, false), + new Style(Sc, 2, 0.7, true), new Style(SS, 3, 0.5, false), new Style(SSc, 3, 0.5, true) ]; diff --git a/static/katex.less b/static/katex.less @@ -151,15 +151,15 @@ big parens } .reset-textstyle.textstyle { font-size: 1em; } - .reset-textstyle.scriptstyle { font-size: 0.66667em; } + .reset-textstyle.scriptstyle { font-size: 0.7em; } .reset-textstyle.scriptscriptstyle { font-size: 0.5em; } - .reset-scriptstyle.textstyle { font-size: 1.5em; } + .reset-scriptstyle.textstyle { font-size: 1.42857em; } .reset-scriptstyle.scriptstyle { font-size: 1em; } - .reset-scriptstyle.scriptscriptstyle { font-size: 0.75em; } + .reset-scriptstyle.scriptscriptstyle { font-size: 0.71429em; } .reset-scriptscriptstyle.textstyle { font-size: 2em; } - .reset-scriptscriptstyle.scriptstyle { font-size: 1.5em; } + .reset-scriptscriptstyle.scriptstyle { font-size: 1.4em; } .reset-scriptscriptstyle.scriptscriptstyle { font-size: 1em; } .baseline-align-hack-outer() { diff --git a/test/huxley/DeepFontSizing.hux/firefox-1.png b/test/huxley/DeepFontSizing.hux/firefox-1.png Binary files differ. diff --git a/test/huxley/Exponents.hux/firefox-1.png b/test/huxley/Exponents.hux/firefox-1.png Binary files differ. diff --git a/test/huxley/FractionTest.hux/firefox-1.png b/test/huxley/FractionTest.hux/firefox-1.png Binary files differ. diff --git a/test/huxley/NestedFractions.hux/firefox-1.png b/test/huxley/NestedFractions.hux/firefox-1.png Binary files differ. diff --git a/test/huxley/Overline.hux/firefox-1.png b/test/huxley/Overline.hux/firefox-1.png Binary files differ. diff --git a/test/huxley/PrimeSpacing.hux/firefox-1.png b/test/huxley/PrimeSpacing.hux/firefox-1.png Binary files differ. diff --git a/test/huxley/RlapBug.hux/firefox-1.png b/test/huxley/RlapBug.hux/firefox-1.png Binary files differ. diff --git a/test/huxley/Spacing.hux/firefox-1.png b/test/huxley/Spacing.hux/firefox-1.png Binary files differ. diff --git a/test/huxley/SupSubCharacterBox.hux/firefox-1.png b/test/huxley/SupSubCharacterBox.hux/firefox-1.png Binary files differ. diff --git a/test/huxley/SupSubHorizSpacing.hux/firefox-1.png b/test/huxley/SupSubHorizSpacing.hux/firefox-1.png Binary files differ. diff --git a/test/huxley/Text.hux/firefox-1.png b/test/huxley/Text.hux/firefox-1.png Binary files differ. diff --git a/test/huxley/VerticalSpacing.hux/firefox-1.png b/test/huxley/VerticalSpacing.hux/firefox-1.png Binary files differ.