From d8debf1a52cbac0c5b7c6b9e960581e5b2f21511 Mon Sep 17 00:00:00 2001 From: Ladd Date: Sat, 27 Dec 2025 19:38:36 -0600 Subject: [PATCH] moved options to second toolbar --- config.js | 2 ++ index.html | 31 ++++++++++++++++++++++++++----- simulator.js | 7 ++++++- tool.js | 12 +++++------- tool/options.js | 3 +-- toolbar.js | 16 +++++++++++----- 6 files changed, 51 insertions(+), 20 deletions(-) diff --git a/config.js b/config.js index 964d04c..5da4ecc 100644 --- a/config.js +++ b/config.js @@ -44,6 +44,8 @@ export const GRAVITATIONAL_CONSTANT = 1E5; // CSS CLASS NAMES export const DRAGGABLE_ELEMENT_CLASSNAME = 'lhg-draggable-element'; +export const TOOL_CLASSNAME = 'lhg-tool'; +export const TOOLBAR_CLASSNAME = 'lhg-toolbar'; // EVENT NAMES export const EVENT_MODE_LEAVE = 'lhg-mode-leave'; diff --git a/index.html b/index.html index 8ce8cfb..1e24e76 100644 --- a/index.html +++ b/index.html @@ -15,7 +15,7 @@ body { } div[id=simulator] { - position: float; + position: absolute; top: 0; left: 0; width: 100%; @@ -23,16 +23,37 @@ div[id=simulator] { button { width: 8em; - padding-left: 0.5em; - padding-right: 0.5em; - padding-top: 0; - padding-bottom: 0; + border-radius: 0.5EM; + /* margin-left: 0.5em; */ + /* margin-right: 0.5em; */ + /* padding-top: 0; */ + /* padding-bottom: 0; */ } button.wide { width: 16em; } +div.lhg-tool { + position: relative; + top: 0; + left: 0; + width: 14EM; + + /* border: 1px #0fb solid; */ + /* margin: 1EM; */ + padding: 1EM; +} + +div.lhg-toolbar { + position: fixed; + z-index: 2; + width: fit-content; + /* border: 2px #00f dashed; */ + /* margin: '1EM'; */ + /* padding: '1EM'; */ +} +