@@ -52,19 +52,22 @@ $shell-header-icon-03: $eccgui-color-applicationheader-text !default;
5252/// Item link
5353$shell-header-link : $blue-60 !default ;
5454
55+ /// Height
56+ $shell-header-height : mini-units (8 ) !default ;
57+
5558// load library sub component
5659@import " ~@carbon/react/scss/components/ui-shell/header/index" ;
5760
5861// tweak original layout
5962
6063.#{$prefix } --header {
61- height : mini-units ( 8 ) ;
64+ height : $shell-header-height ;
6265}
6366
6467.#{$prefix } --header__action ,
6568.#{$prefix } --header__action.#{$prefix } --btn--icon-only {
66- width : mini-units ( 8 ) ;
67- height : mini-units ( 8 ) ;
69+ width : $shell-header-height ;
70+ height : $shell-header-height ;
6871 padding-block-start : 0 ;
6972 background-color : transparent ;
7073
@@ -128,7 +131,7 @@ span.#{$prefix}--header__name {
128131}
129132
130133.#{$prefix } --header__menu .#{$prefix } --header__menu-item {
131- height : mini-units ( 8 ) ;
134+ height : $shell-header-height ;
132135}
133136
134137// tweak original colors (as long as config does not work properly)
@@ -255,15 +258,15 @@ a.#{$prefix}--header__menu-item:focus > svg {
255258 // adjust position of all other modal dialogs
256259
257260 .#{$ns } -dialog-container {
258- top : mini-units ( 8 ) ;
259- left : mini-units ( 8 ) ;
260- width : calc (100% - #{mini-units ( 8 ) } );
261- min-height : calc (100% - #{mini-units ( 8 ) } );
261+ top : $shell-header-height ;
262+ left : $shell-header-height ;
263+ width : calc (100% - #{$shell-header-height } );
264+ min-height : calc (100% - #{$shell-header-height } );
262265 }
263266
264267 .#{$eccgui } -dialog__wrapper {
265- max-width : calc (100vw - #{mini-units ( 8 ) } - #{2 * $eccgui-size-block-whitespace } );
266- max-height : calc (100vh - #{mini-units ( 8 ) } - #{2 * $eccgui-size-block-whitespace } );
268+ max-width : calc (100vw - #{$shell-header-height } - #{2 * $eccgui-size-block-whitespace } );
269+ max-height : calc (100vh - #{$shell-header-height } - #{2 * $eccgui-size-block-whitespace } );
267270 margin : 0 ;
268271 }
269272}
0 commit comments