diff --git a/static/admin.js b/static/admin.js index 80d2059..7195bb5 100644 --- a/static/admin.js +++ b/static/admin.js @@ -135,7 +135,7 @@ async function doLogin() { if (adminUsrInput && adminPassInput) { adminToken = await getAdminToken(adminUsrInput.value, adminPassInput.value); if (adminToken) { - adminWrapper.style.display="block"; + adminWrapper.style.display="inline"; getTables(); adminZone.style.display = "block"; } else { @@ -144,13 +144,6 @@ async function doLogin() { } } -function showAdminModal(show) { - const modal = document.getElementById("admin_modal") - if (modal) { - modal.style.display = show ? "block" : "none"; - } -} - async function getAdminToken(user, pass) { const headers = new Headers(); headers.set('Authorization', 'Basic ' + btoa(user + ":" + pass)); diff --git a/static/index.html b/static/index.html index 7a1e829..c8daece 100644 --- a/static/index.html +++ b/static/index.html @@ -7,23 +7,25 @@ +
-
+ + +
dice
-
-
- -
+ +
status

+ +
+
admin +
+ + +
+
+
+ +

+ + diff --git a/static/style.css b/static/style.css index dcb2071..726628f 100644 --- a/static/style.css +++ b/static/style.css @@ -11,12 +11,6 @@ body { background-repeat: repeat; } -nav, #table_modal, #admin_modal { - color: #fff; - background: #000; - padding: 0.5em; -} - label { font-size: 80%; } @@ -32,6 +26,10 @@ input:active, input:focus, select:active, select:focus { border: solid 1px cyan; } +ul { + margin: 2em; +} + button { padding: 0.5ch; background: #000; @@ -80,23 +78,71 @@ button:hover { } #aux { - display: block; - background: #fff; - color: #000; - height: auto; - width: auto; - border: solid 1px dimgray; + +} + +pre { + font-size: 125%; + background: #222; + color: #93a1a1; +} + +#auxMsgZone { + width: 100%; + color: #fff; + background: #002b36; + padding:0.2em; } #adminWrapper { - position: fixed; - top: 2em; - right: 0; - padding: 1em; - border: solid 1px #fff; - background: rgba(0,0,0,0.8); - color: #fff; - box-sizing: border-box; - max-height: calc(100vh - 4em); - overflow-y: auto; +} + +.ui_win { + text-align: left; + position: relative; + margin: 2em; + background: rgba(0,0,0,0.7); + color: #eee; + display: inline; + height: min-content; + z-index:1; + padding: 0.25em; + border: 2px solid dimgray;; +} + +.ui_win:hover, .ui_win:active { + border: 2px solid #1f9b92; +} + +.ui_win * { + margin: 0.25em; +} + +.ui_win a { + color: #1f9b92; +} + +.ui_win a:hover, ui_win a:active { + color: #ff; +} + +.admin_section { + text-align: right; +} + +.admin_win { + float:right; +} + + +#map { + position:fixed; + width:100%; + height: 100%; + z-index:0; +} + +nav { + display: grid; + grid-template-columns: 1fr 1fr; } \ No newline at end of file