From 2d337923a3c4f94be387eb893c7478fb6497ef9f Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Thu, 8 Feb 2018 13:42:42 +0100 Subject: [PATCH] adjustments to editor header layout --- .../src/less/components/editor.less | 2 +- .../components/umb-editor-navigation.less | 6 + src/Umbraco.Web.UI.Client/src/less/panel.less | 17 ++- .../src/less/variables.less | 2 +- .../components/editor/umb-editor-header.html | 132 ++++++++---------- .../editor/umb-editor-navigation.html | 30 ++-- 6 files changed, 89 insertions(+), 100 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/less/components/editor.less b/src/Umbraco.Web.UI.Client/src/less/components/editor.less index b5006caaf9..285dd219af 100644 --- a/src/Umbraco.Web.UI.Client/src/less/components/editor.less +++ b/src/Umbraco.Web.UI.Client/src/less/components/editor.less @@ -71,7 +71,7 @@ box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.16); width: 100%; box-sizing: border-box; - height: 60px; + height: @editorHeaderHeight; } .umb-editor-header__back { diff --git a/src/Umbraco.Web.UI.Client/src/less/components/umb-editor-navigation.less b/src/Umbraco.Web.UI.Client/src/less/components/umb-editor-navigation.less index e7cde9e909..267ea1b5b0 100644 --- a/src/Umbraco.Web.UI.Client/src/less/components/umb-editor-navigation.less +++ b/src/Umbraco.Web.UI.Client/src/less/components/umb-editor-navigation.less @@ -13,6 +13,11 @@ min-width: 70px; border-right: 1px solid @gray-9; box-sizing: border-box; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + height: 100%; } .umb-sub-views-nav-item:focus { @@ -36,6 +41,7 @@ font-size: 24px; display: block; text-align: center; + margin-bottom: 5px; } .umb-sub-views-nav-item-text { diff --git a/src/Umbraco.Web.UI.Client/src/less/panel.less b/src/Umbraco.Web.UI.Client/src/less/panel.less index 75df57ec06..9b439c2d60 100644 --- a/src/Umbraco.Web.UI.Client/src/less/panel.less +++ b/src/Umbraco.Web.UI.Client/src/less/panel.less @@ -373,7 +373,7 @@ .umb-panel-header-icon { cursor: pointer; margin-right: 5px; - height: 55px; + height: 50px; display: flex; justify-content: center; align-items: center; @@ -381,7 +381,7 @@ border: 1px solid @gray-8; animation: fadeIn 0.5s; border-radius: 3px; - width: 55px; + width: 50px; } .umb-panel-header-title-wrapper { @@ -418,7 +418,7 @@ } .umb-panel-header-icon .icon { - font-size: 35px; + font-size: 30px; color: @gray-7; } @@ -449,8 +449,8 @@ input.umb-panel-header-description { margin-bottom: 0; font-size: 13px; box-sizing: border-box; - height: 25px; - line-height: 25px; + height: 22px; + line-height: 22px; width: 100%; &:hover { background: @white; @@ -460,8 +460,7 @@ input.umb-panel-header-description { .umb-panel-header-locked-description { font-size: 12px; - margin-left: 2px; - margin-top: 3px; - height: 25px; - line-height: 25px; + margin-top: 2px; + height: 22px; + line-height: 22px; } diff --git a/src/Umbraco.Web.UI.Client/src/less/variables.less b/src/Umbraco.Web.UI.Client/src/less/variables.less index 6223a88591..0c93ad027b 100644 --- a/src/Umbraco.Web.UI.Client/src/less/variables.less +++ b/src/Umbraco.Web.UI.Client/src/less/variables.less @@ -107,7 +107,7 @@ @bodyBackground: @gray-10; @textColor: @gray-2; -@editorHeaderHeight: 60px; +@editorHeaderHeight: 70px; @editorFooterHeight: 50px; diff --git a/src/Umbraco.Web.UI.Client/src/views/components/editor/umb-editor-header.html b/src/Umbraco.Web.UI.Client/src/views/components/editor/umb-editor-header.html index 85e81e5e99..9cf0a47217 100644 --- a/src/Umbraco.Web.UI.Client/src/views/components/editor/umb-editor-header.html +++ b/src/Umbraco.Web.UI.Client/src/views/components/editor/umb-editor-header.html @@ -8,7 +8,7 @@ -
+
-
- - - - - - {{vm.currentVariant.cultureDisplayName}} -   - +
- - - - {{variant.cultureDisplayName}} - {{variant.state}} - -
Open in split view
-
-
+ + +
{{ name }}
+ + + +
{{ description }}
-
{{ name }}
-
@@ -82,44 +107,6 @@
-
\ No newline at end of file diff --git a/src/Umbraco.Web.UI.Client/src/views/components/editor/umb-editor-navigation.html b/src/Umbraco.Web.UI.Client/src/views/components/editor/umb-editor-navigation.html index 55afc72aae..26cc7c794d 100644 --- a/src/Umbraco.Web.UI.Client/src/views/components/editor/umb-editor-navigation.html +++ b/src/Umbraco.Web.UI.Client/src/views/components/editor/umb-editor-navigation.html @@ -1,16 +1,14 @@ -
- -
+