From 3bac526593c373c05cdb8af58c04694f268bb71e Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Mon, 10 Jan 2022 12:00:26 -0800 Subject: [PATCH] Update toolbar with center position --- wise-ui/pom.xml | 4 +- wise-webapp/src/main/webapp/css/editor.less | 26 +++-- wise-webapp/src/main/webapp/css/embedded.less | 95 ------------------- wise-webapp/src/main/webapp/css/header.less | 11 ++- wise-webapp/src/main/webapp/css/skin.less | 4 +- wise-webapp/src/main/webapp/css/toolbar.less | 6 ++ .../webapp/images/editor/center_focus.svg | 1 + .../src/main/webapp/jsp/mindmapEditor.jsp | 5 + .../main/webapp/jsp/mindmapEditorToolbar.jsf | 1 + .../src/main/webapp/jsp/mindmapViewonly.jsp | 16 +++- 10 files changed, 55 insertions(+), 114 deletions(-) delete mode 100644 wise-webapp/src/main/webapp/css/embedded.less create mode 100644 wise-webapp/src/main/webapp/images/editor/center_focus.svg diff --git a/wise-ui/pom.xml b/wise-ui/pom.xml index 59b6bd65..0644cca3 100644 --- a/wise-ui/pom.xml +++ b/wise-ui/pom.xml @@ -29,11 +29,11 @@ - + - + diff --git a/wise-webapp/src/main/webapp/css/editor.less b/wise-webapp/src/main/webapp/css/editor.less index 595ea35b..d6d84eaf 100644 --- a/wise-webapp/src/main/webapp/css/editor.less +++ b/wise-webapp/src/main/webapp/css/editor.less @@ -19,7 +19,6 @@ body { div#mindplot { position: relative; top: @header-toolbar-height; - top: 0; left: 0; width: 100%; height: 100%; @@ -31,12 +30,6 @@ div#mindplot { background-size: 50px 50px; } -div#small_error_icon { - padding-left: 18px; - min-height: 16px; - background: url(../images/error_icon.png) bottom left no-repeat !important; -} - .notesTip { background-color: #dfcf3c; padding: 5px 15px; @@ -149,11 +142,27 @@ div#bottom-logo { position: fixed; left: 20px; bottom: 10px; - background: url(../../images/editor/logo-text-black.svg) no-repeat; + background: url(../images/logo-text-black.svg) no-repeat; width: 90px; height: 40px; } +div#position { + margin-top: 5px; +} + +#position-button { + cursor: pointer; + border: solid black 1px; + width: 40px; + height: 40px; + background-position: center; + background-repeat: no-repeat; + background-size: 40px 40px; + background-color: #FFF; + border-radius: 8px; +} + #zoom-button { width: 40px; border: 0; @@ -161,6 +170,7 @@ div#bottom-logo { #zoom-plus, #zoom-minus { + border: solid black 1px; height: 40px; width: 40px; background-repeat: no-repeat; diff --git a/wise-webapp/src/main/webapp/css/embedded.less b/wise-webapp/src/main/webapp/css/embedded.less deleted file mode 100644 index 7a1f0bae..00000000 --- a/wise-webapp/src/main/webapp/css/embedded.less +++ /dev/null @@ -1,95 +0,0 @@ -@import "editor.less"; - -/* Overwrite some styles */ -body { - position: inherit; -} - -div#headerInfo { - height: 0; -} - -div#header { - height: 35px; -} - -div#headerMapTitle, -#headerActions, -#headerLogo { - display: none; -} - -/* Footer Styles */ -div#footer { - position: absolute; - height: 0px; - width: 100%; - bottom: 0; - left: 0; -} - -div#zoomIn { - background: url(../images/zoom-in.png) no-repeat left top; - margin-top: 10px; - margin-left: 10px; -} - -#zoomOut { - background: url(../images/zoom-out.png) no-repeat left top; - margin-top: 10px; - margin-left: 5px; -} - -.button { - width: 20px; - height: 20px; - float: left; - cursor: pointer; - white-space: nowrap; - margin: 1px; -} - -.button:hover { - float: left; - cursor: pointer; - border: 1px solid black; - border-top-color: white; - border-left-color: white; - margin: 0; -} - -div#mapDetails { - float: right; - padding-top: 10px; - margin-right: 130px; - -} - -div#mapDetails .title { - font-weight: bold; - margin-left: 10px; - margin-right: 3px; -} - -div#infoPanel { - border: 2px black solid; - position: absolute; - background: gray; - width: 100px; - height: 300px; - z-index: 100; - padding: 5px; - border-radius: 8px; - top: 150px; - right: 10px; - text-align: center; -} - -div#infoPanel .textNode { - background-color: #E0E5EF; - height: 20px; - width: 80px; - border: 3px #023BB9 solid; - padding: 4px; - cursor: move -} \ No newline at end of file diff --git a/wise-webapp/src/main/webapp/css/header.less b/wise-webapp/src/main/webapp/css/header.less index 84ccfc1e..8201612b 100644 --- a/wise-webapp/src/main/webapp/css/header.less +++ b/wise-webapp/src/main/webapp/css/header.less @@ -1,10 +1,8 @@ -@header-height : 0px; @header-toolbar-height : 50px; -@header-info-height : @header-height - @header-toolbar-height; div#header { width: 100%; - height: @header-height; + height: 0px; background: #202020; z-index: 1000; position: absolute; @@ -41,7 +39,6 @@ div#toolbarRight { margin: 6px 10px; height: 100%; } - #account { float: right; display: inline; @@ -52,6 +49,10 @@ div#toolbarRight { height: 36px; } +#accountSettingsPanel{ + padding:10px 10px; +} + #share { margin: 0 30px; } @@ -78,4 +79,4 @@ div#toolbarRight { transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; } -@import "toolbar.less"; +@import "toolbar.less"; \ No newline at end of file diff --git a/wise-webapp/src/main/webapp/css/skin.less b/wise-webapp/src/main/webapp/css/skin.less index ff43407e..916bf61d 100644 --- a/wise-webapp/src/main/webapp/css/skin.less +++ b/wise-webapp/src/main/webapp/css/skin.less @@ -1,3 +1 @@ -@header-height: 75px; -@header-toolbar-height: 35px; -@header-info-height: @header-height - @header-toolbar-height; \ No newline at end of file +@header-toolbar-height: 50px; \ No newline at end of file diff --git a/wise-webapp/src/main/webapp/css/toolbar.less b/wise-webapp/src/main/webapp/css/toolbar.less index 62d991e9..12e2d5ee 100644 --- a/wise-webapp/src/main/webapp/css/toolbar.less +++ b/wise-webapp/src/main/webapp/css/toolbar.less @@ -64,6 +64,7 @@ div#toolbar .buttonOn { div#toolbar .buttonOff { opacity: 0.4; + // background: url(../images/btn-bg-normal.png) no-repeat center top; } div#exportAnchor { @@ -91,19 +92,24 @@ div#toolbar .buttonExtOn:hover { div#toolbar .buttonExtOn:hover { opacity: 1; + // background: url(../images/btne-bg-hover.png) no-repeat center top; + } div#toolbar .buttonExtActive { opacity: 1; + // background: url(../images/btne-bg-selected.png) no-repeat center top; } div#toolbar .buttonExtOn { opacity: 0.8; cursor: pointer + // background: url(../images/btne-bg-normal.png) no-repeat center top; } div#toolbar .buttonExtOff { opacity: 0.4; + // background: url(../images/btne-bg-normal.png) no-repeat center top; } div#exportAnchor { diff --git a/wise-webapp/src/main/webapp/images/editor/center_focus.svg b/wise-webapp/src/main/webapp/images/editor/center_focus.svg new file mode 100644 index 00000000..e8017c36 --- /dev/null +++ b/wise-webapp/src/main/webapp/images/editor/center_focus.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/wise-webapp/src/main/webapp/jsp/mindmapEditor.jsp b/wise-webapp/src/main/webapp/jsp/mindmapEditor.jsp index c9f52271..d10d6c90 100644 --- a/wise-webapp/src/main/webapp/jsp/mindmapEditor.jsp +++ b/wise-webapp/src/main/webapp/jsp/mindmapEditor.jsp @@ -55,6 +55,11 @@ +
+ +
diff --git a/wise-webapp/src/main/webapp/jsp/mindmapEditorToolbar.jsf b/wise-webapp/src/main/webapp/jsp/mindmapEditorToolbar.jsf index c16a2672..b085f837 100644 --- a/wise-webapp/src/main/webapp/jsp/mindmapEditorToolbar.jsf +++ b/wise-webapp/src/main/webapp/jsp/mindmapEditorToolbar.jsf @@ -93,4 +93,5 @@
Share
+ \ No newline at end of file diff --git a/wise-webapp/src/main/webapp/jsp/mindmapViewonly.jsp b/wise-webapp/src/main/webapp/jsp/mindmapViewonly.jsp index c2dc81be..7fef87ac 100644 --- a/wise-webapp/src/main/webapp/jsp/mindmapViewonly.jsp +++ b/wise-webapp/src/main/webapp/jsp/mindmapViewonly.jsp @@ -45,22 +45,36 @@ +
+ +