From bbbd8f6365df178a283455bce2d4f373e10eee78 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Sat, 3 Nov 2018 12:16:13 +0100 Subject: [PATCH] Reworked basic UI and added the hostbanner to the UI --- ChangeLog.md | 4 + shared/css/frame/SelectInfo.scss | 63 ++++++++++++ shared/css/general.scss | 48 +++++++++ shared/css/ts/chat.scss | 2 + shared/html/templates.html | 128 ++++++++++++++++-------- shared/js/ui/frames/SelectedItemInfo.ts | 64 +++++++++++- shared/js/ui/server.ts | 5 + web/css/main.scss | 16 +-- 8 files changed, 276 insertions(+), 54 deletions(-) diff --git a/ChangeLog.md b/ChangeLog.md index 5e6a0e82..c0f522b8 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,4 +1,8 @@ # Changelog: +* **03.11.18** + - Reworked on the basic overlay sizes + - Added hostbanner to the UI + * **28.10.18** - Restructured the project - Added a lot of helper scripts diff --git a/shared/css/frame/SelectInfo.scss b/shared/css/frame/SelectInfo.scss index 1564fc7c..66fd2d35 100644 --- a/shared/css/frame/SelectInfo.scss +++ b/shared/css/frame/SelectInfo.scss @@ -26,4 +26,67 @@ color: green; } } + + .container { + max-height: 100%; + display: flex; + flex-direction: column; + + .hostbanner { + overflow: hidden; + } + } +} + +/* +
+
+
+
+ */ +.select_info { + display: flex; + flex-direction: column; + justify-content: stretch; + width: 100%; + + > div { + width: 100%; + } + + .container-banner { + flex-grow: 1; + flex-shrink: 2; + max-height: 25%; + display: flex; + justify-content: stretch; + + overflow: hidden; + + &:not(:disabled) { + margin-bottom: 5px; + } + + .hostbanner { + position: relative; + flex-grow: 1; + + img { + position: absolute; + } + } + } + + .container-select-info { + flex-grow: 1; + flex-shrink: 1; + + display: flex; + flex-direction: column; + justify-content: stretch; + + > div { + flex-grow: 1; + } + } } \ No newline at end of file diff --git a/shared/css/general.scss b/shared/css/general.scss index fc5eae29..491fbd1b 100644 --- a/shared/css/general.scss +++ b/shared/css/general.scss @@ -266,4 +266,52 @@ footer .container { position: relative; vertical-align: center; justify-content: center; +} + +.app { + .container-channel-chat { + > div { + min-height: 100px; + min-width: 100px; + max-width: 100%; + } + + min-width: 100px; + display: flex; + flex-direction: column; + flex-grow: 1; + + .container-channel { + flex-grow: 60; + display: flex; + justify-content: stretch; + + overflow: auto; + overflow-x: visible; + + + background: white; + border: 2px solid lightgray; + border-right-width: 0; + } + + .container-chat { + display: flex; + flex-direction: column; + justify-content: stretch; + + max-height: 400px; + height: 250px; + border-radius: 0 0 0 2px; + border-top-width: 0; + border-right-width: 0; + } + } + + .container-info { + min-width: 100px; + max-width: 40%; + width: 40%; + border-radius: 0 0 2px 0; + } } \ No newline at end of file diff --git a/shared/css/ts/chat.scss b/shared/css/ts/chat.scss index 773d087e..1b177cbf 100644 --- a/shared/css/ts/chat.scss +++ b/shared/css/ts/chat.scss @@ -7,6 +7,8 @@ height: 100%; display: flex; flex-direction: column; + + flex-grow: 1; } #chat div { diff --git a/shared/html/templates.html b/shared/html/templates.html index 4314f935..d3c81b03 100644 --- a/shared/html/templates.html +++ b/shared/html/templates.html @@ -69,14 +69,13 @@ -
-
-
+
+
+
-
-
+
+ +
@@ -90,15 +89,16 @@
-
+
+
+
-
+