From 95efa891abce74af627d1eac26f05cbf485cf653 Mon Sep 17 00:00:00 2001 From: bluesaxman Date: Tue, 20 Dec 2022 10:53:20 -0700 Subject: [PATCH] added some tweeks to the demo index.html --- css/css.css | 6 ++++++ index.html | 21 ++++++++++++++++----- 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/css/css.css b/css/css.css index 3e092bb..f6c30db 100644 --- a/css/css.css +++ b/css/css.css @@ -15,6 +15,7 @@ body > .bui_window_root { flex:1; width: 99%; height: 99%; + overflow: hidden; } .bui_window_content { @@ -55,6 +56,7 @@ body > .bui_window_root { .bui_window_titlebar { background: rgba(100,100,100,1); padding: 5px; + user-select: none; } .bui_window_title { @@ -79,3 +81,7 @@ body > .bui_window_root { background: rgba(0,0,0,0.01); cursor: pointer; } + +.active_window { + z-index: 1000; +} diff --git a/index.html b/index.html index 20159f6..304ccbd 100644 --- a/index.html +++ b/index.html @@ -63,13 +63,24 @@ blueui.js - Adds classes for several highly reusable ui objects such as buttons document.body.appendChild(window.bdescription.root); window.bdescription.content.appendChild(window.bcore.root); - window.bcore.root.style.top = "40px"; + window.bcore.root.style.top = "80px"; + window.bcore.root.style.left = "80px"; window.bdescription.content.appendChild(window.baudio.root); - window.baudio.root.style.top = "80px"; + window.baudio.root.style.top = "120px"; + window.baudio.root.style.left = "120px"; window.bdescription.content.appendChild(window.bmath.root); - window.bmath.root.style.top = "120px"; + window.bmath.root.style.top = "160px"; + window.bmath.root.style.left = "160px"; window.bdescription.content.appendChild(window.bpixle.root); - window.bpixle.root.style.top = "160px"; + window.bpixle.root.style.top = "200px"; + window.bpixle.root.style.left = "200px"; window.bdescription.content.appendChild(window.bui.root); - window.bui.root.style.top = "200px"; + window.bui.root.style.top = "240px"; + window.bui.root.style.left = "240px"; + + window.bcore.minimizeButton.root.click(); + window.baudio.minimizeButton.root.click(); + window.bmath.minimizeButton.root.click(); + window.bpixle.minimizeButton.root.click(); + window.bui.minimizeButton.root.click();