From ab884f1f76653fa31a739a020b6ce88e265f1713 Mon Sep 17 00:00:00 2001 From: bhomie Date: Thu, 28 May 2020 21:48:21 -0700 Subject: [PATCH] Fix caret scaling and size support for all carets --- public/css/style.scss | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/public/css/style.scss b/public/css/style.scss index 142d5f382..38922e2df 100644 --- a/public/css/style.scss +++ b/public/css/style.scss @@ -299,7 +299,6 @@ a:hover { } #caret { - width: 2px; height: 1.5rem; background: var(--caret-color); animation-name: caretFlash; @@ -309,6 +308,11 @@ a:hover { position: absolute; border-radius: var(--roundness); // transition: 0.05s; + transform-origin: top left; +} + +#caret.default{ + width: 2px; } #caret.block{ @@ -325,24 +329,25 @@ a:hover { #caret.underline{ height: 2px; - width: .7em; - margin-top: 1.2em; - padding-left: .5em; + width: 0.8em; + margin-top: 1.3em; + margin-left: 0.3em; } +#caret.underline.size125{margin-top: 1.8em;} +#caret.underline.size15{margin-top: 2.1em;} +#caret.underline.size2{margin-top: 2.7em;} + #caret.size125{ - height: 2rem; - width: 2px; + transform: scale(1.25); } #caret.size15{ - height: 2.25rem; - width: 3px; + transform: scale(1.45); } #caret.size2{ - height: 3rem; - width: 4px; + transform: scale(1.9); } @keyframes caretFlash {