From 024ceef0e00330dd0c83bc1f1630b2be80a4c4ee Mon Sep 17 00:00:00 2001 From: David Mosbach Date: Tue, 29 Aug 2023 16:10:34 +0200 Subject: [PATCH] added cursor toolbar --- editor.css | 38 +++++++++++ editor.html | 168 +++++++++++++++++++++++++++++++++++++++++++++- editor.ts | 3 +- images/cursor.svg | 82 ++++++++++++++++++++++ images/select.svg | 88 ++++++++++++++++++++++++ start.sh | 6 +- 6 files changed, 381 insertions(+), 4 deletions(-) create mode 100644 images/cursor.svg create mode 100644 images/select.svg diff --git a/editor.css b/editor.css index c70c173..4fc7a6a 100644 --- a/editor.css +++ b/editor.css @@ -690,6 +690,43 @@ label { stroke: rgba(135, 135, 135, 0.6); } +#tools { + position: fixed; + left: 15px; + top: 50%; + transform: translateY(-50%); + box-shadow: 0 0px 5px 0 rgba(0, 0, 0, 0.315); + border-radius: 15px; + /* padding-top: 5px; + padding-bottom: 5px; */ + transition: all 300ms ease; +} + +#tools div { + padding: 5px; +} + +#tools div svg { + width: 25px; + height: 25px; + transition: all 300ms ease; +} + +#tools.menu-darkmode div svg { + stroke: white; + fill: white; +} + +#tools.menu-lightmode div svg { + stroke: black; + fill: black; +} + +#tools div:hover svg { + stroke: rgb(75, 151, 151); + fill: rgb(75, 151, 151); +} + #footer { font-family: 'Inter'; font-size: .75em; @@ -702,6 +739,7 @@ label { padding: 5px 10px; z-index: 11; float: left; + transition: all 300ms ease; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); -webkit-user-select: none; diff --git a/editor.html b/editor.html index 2c2a32c..937c2db 100644 --- a/editor.html +++ b/editor.html @@ -516,7 +516,173 @@ SPDX-License-Identifier: AGPL-3.0-or-later
-