From b44df9183903a59ea34f9ecadc54186a3275a6fe Mon Sep 17 00:00:00 2001 From: Rainer Simon Date: Sun, 21 Mar 2021 10:38:20 +0100 Subject: [PATCH] Delete button style tweaks --- src/editor/Editor.jsx | 2 +- themes/default/editor/_editor.scss | 18 +++++++++++------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/editor/Editor.jsx b/src/editor/Editor.jsx index 449ac40..285a13e 100644 --- a/src/editor/Editor.jsx +++ b/src/editor/Editor.jsx @@ -194,7 +194,7 @@ const Editor = props => { className="r6o-btn left delete-annotation" title={i18n.t('Delete')} onClick={onDelete}> - + )} diff --git a/themes/default/editor/_editor.scss b/themes/default/editor/_editor.scss index 1ed8cd7..5b62266 100644 --- a/themes/default/editor/_editor.scss +++ b/themes/default/editor/_editor.scss @@ -64,24 +64,28 @@ .r6o-btn.delete-annotation { position:absolute; - top:5px; - left:5px; + top:7px; + left:7px; background-color:transparent; border:none; - color:rgba($ocean, .8); - width:36px; - height:36px; + color:$ocean; + width:32px; + height:32px; min-width:0; border-radius: 100%; padding:0; display: flex; justify-content:center; align-items:center; + -webkit-transition:all .1s ease-in; + -moz-transition:all .1s ease-in; + -o-transition:all .1s ease-in; + transition:all .1s ease-in; } .r6o-btn.delete-annotation:hover { - color:$ocean; - background-color:$blueish-white-hi; + color:#fff; + background-color:#ef352c; } }