From 25ec0132fcbb08bea16ee59c1a17bec1f9bd6b1a Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Mon, 30 Oct 2023 12:09:30 +0530 Subject: [PATCH] Update back office page header design --- .../default/sass/partials/_content.sass | 2 +- .../default/sass/partials/_toolbar.sass | 20 ++++++++++++++----- .../modules/page_header_toolbar.tpl | 10 +++++----- .../default/template/page_header_toolbar.tpl | 4 ++-- 4 files changed, 23 insertions(+), 13 deletions(-) diff --git a/admin/themes/default/sass/partials/_content.sass b/admin/themes/default/sass/partials/_content.sass index 2a765f62e..860ae4a67 100644 --- a/admin/themes/default/sass/partials/_content.sass +++ b/admin/themes/default/sass/partials/_content.sass @@ -16,7 +16,7 @@ body @include float(left) #content.bootstrap - padding: 120px 10px 0 + padding: 90px 10px 0 @include transition-property(margin) @include transition-duration(0.4s) @include transition-timing-function(ease-out) diff --git a/admin/themes/default/sass/partials/_toolbar.sass b/admin/themes/default/sass/partials/_toolbar.sass index 309eb663a..1ca4ee007 100644 --- a/admin/themes/default/sass/partials/_toolbar.sass +++ b/admin/themes/default/sass/partials/_toolbar.sass @@ -1,6 +1,6 @@ .page-head width: 100% - height: 100px + height: 78px padding: 0 margin: 0 position: fixed @@ -14,7 +14,7 @@ @include float(left) position: relative margin: 0 - font: 20pt $font-family-sans-serif + font: 14pt $font-family-sans-serif color: #363A41 white-space: nowrap @include padding(26px, 0, 0, ($widthSidebarNav+20px)) @@ -48,7 +48,8 @@ @include padding(3px, 0, 0, 0) .toolbar_btn position: relative - padding: 20px 5px !important + padding: 6px 8px !important + top: 18px font-size: 12px line-height: 8px color: $main-color @@ -57,22 +58,31 @@ white-space: nowrap overflow: hidden text-overflow: ellipsis + border: 1px solid $toolbar-buttons-color @include margin(0, 3px, 2px, 0) @media (max-width: $screen-desktop) width: 46px font-size: 11px i + display: inline color: $toolbar-buttons-color + font-size: 18px &:hover color: $toolbar-buttons-hover-color - div - padding-top: 10px + span + position: relative + top: -2px + left: 2px .dropdown-toolbar display: none @include float(right) @include border-radius(3px) @media (max-width: $screen-sm) display: block + + #toolbar-nav + li + li + margin-left: 8px ul.page-breadcrumb position: absolute list-style: none diff --git a/admin/themes/default/template/controllers/modules/page_header_toolbar.tpl b/admin/themes/default/template/controllers/modules/page_header_toolbar.tpl index 8396a808b..0a5b764c7 100644 --- a/admin/themes/default/template/controllers/modules/page_header_toolbar.tpl +++ b/admin/themes/default/template/controllers/modules/page_header_toolbar.tpl @@ -49,7 +49,7 @@
  • -
    {l s='Update all'}
    + {l s='Update all'}
  • {/if} @@ -57,28 +57,28 @@
  • -
    {l s='Check for update'}
    + {l s='Check for update'}
  • {/if}
  • -
    {l s='Recommended Modules and Services'}
    + {l s='Recommended Modules and Services'}
  • {if $add_permission eq '1' && ($context_mode != Context::MODE_HOST)}
  • -
    {l s='Add a new module'}
    + {l s='Add a new module'}
  • {else}
  • -
    {l s='Add a new module'}
    + {l s='Add a new module'}
  • {/if} diff --git a/admin/themes/default/template/page_header_toolbar.tpl b/admin/themes/default/template/page_header_toolbar.tpl index 8aaaa9726..ef5384745 100644 --- a/admin/themes/default/template/page_header_toolbar.tpl +++ b/admin/themes/default/template/page_header_toolbar.tpl @@ -83,7 +83,7 @@
  • - {$btn.desc|escape} + {$btn.desc|escape}
  • {/if} @@ -92,7 +92,7 @@
  • - {$toolbar_btn['modules-list'].desc} + {$toolbar_btn['modules-list'].desc}
  • {/if}