From 868b3ec4472c4c8f55fa6194372ec30b2df45c42 Mon Sep 17 00:00:00 2001 From: paulmasson Date: Thu, 21 Jan 2016 13:20:47 -0800 Subject: [PATCH] Reformat math with CSS --- .../webgl_multiple_elements_with_text.html | 236 +++++++++++++++++- 1 file changed, 226 insertions(+), 10 deletions(-) diff --git a/examples/webgl_multiple_elements_with_text.html b/examples/webgl_multiple_elements_with_text.html index fd612fd2d54711..e5ad196607b897 100644 --- a/examples/webgl_multiple_elements_with_text.html +++ b/examples/webgl_multiple_elements_with_text.html @@ -48,6 +48,47 @@ color: #0080ff; } + .math { + + text-align: center; + + } + + .math-frac { + + display: inline-block; + vertical-align: middle; + + } + + .math-num { + + display: block; + + } + + .math-denom { + + display: block; + border-top: 1px solid; + + } + + .math-sqrt { + + display: inline-block; + transform: scale(1, 1.3); + + } + + .math-sqrt-stem { + + display: inline-block; + border-top: 1px solid; + margin-top: 5px; + + } + @@ -57,11 +98,9 @@
three.js - multiple elements with text - webgl
- + - -