From 5c10112a6ba8572131436d8188c5d5d1bcb5a6df Mon Sep 17 00:00:00 2001 From: lxieyang Date: Thu, 19 Nov 2020 12:46:46 -0500 Subject: [PATCH] fix bbox display bug --- src/pages/Content/content.styles.css | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/pages/Content/content.styles.css b/src/pages/Content/content.styles.css index a0ab512..6720af1 100644 --- a/src/pages/Content/content.styles.css +++ b/src/pages/Content/content.styles.css @@ -1,9 +1,3 @@ -#screenshot-bbox { - box-sizing: border-box; - border: 2px dashed rgba(255, 72, 0, 0.829); - background-color: rgba(182, 238, 144, 0.26); -} - .no-select { -webkit-touch-callout: none; -webkit-user-select: none; @@ -13,3 +7,15 @@ user-select: none; cursor: crosshair; } + +#screenshot-bbox { + box-sizing: border-box; + border: 2px dashed rgba(255, 72, 0, 0.829); + background-color: rgba(182, 238, 144, 0.26); + + display: none; +} + +.no-select #screenshot-bbox { + display: block; +}