From ddef21cd7ee216501656cd1f17d7f1b00eb0160c Mon Sep 17 00:00:00 2001 From: Trevor Buckner Date: Mon, 4 Dec 2023 21:54:44 -0500 Subject: [PATCH] Give editor highlighting sub/superscript alignment --- client/homebrew/editor/editor.less | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/client/homebrew/editor/editor.less b/client/homebrew/editor/editor.less index 1f8b6e718..b165f91db 100644 --- a/client/homebrew/editor/editor.less +++ b/client/homebrew/editor/editor.less @@ -44,12 +44,16 @@ color : green; } .superscript:not(.cm-comment) { - font-weight : bold; - color : goldenrod; + font-weight : bold; + color : goldenrod; + vertical-align : super; + font-size : 0.9em; } .subscript:not(.cm-comment) { - font-weight : bold; - color : rgb(123, 123, 15); + font-weight : bold; + color : rgb(123, 123, 15); + vertical-align : sub; + font-size : 0.9em; } }