Set header height to 54px equivalent in ems

Same patch as I4eed89f6a64eeb369c1ab0bb47f0462de7b0ceb3 but
destination is `em`s.

Bug: T195795
Change-Id: I1165f1e3f6fe1b86f843c2acb7a87681eda3aec6
This commit is contained in:
jdlrobson 2019-07-18 08:27:18 -07:00 committed by Volker E
parent 1bf2f51cdf
commit 4a5561257c
3 changed files with 8 additions and 4 deletions

View file

@ -14,6 +14,8 @@
*/
@fontFamilySans: -apple-system, 'BlinkMacSystemFont', 'Segoe UI', 'Roboto', 'Lato', 'Helvetica', 'Arial', sans-serif;
@fontFamilyBase: @fontFamilySans;
@fontSizeBrowserDefault: 16; // Assumed browser default of `16px`.
@tocFontSize: 0.8em;
@indicatorFontSize: 0.4em;
@ -44,7 +46,8 @@
@contentMargin: 16px;
// Header
@headerHeight: 3.35em;
@headerHeight: unit( 54 / @fontSizeBrowserDefault, em );
@headerVerticalPadding: 0.15em;
@headerMarginTop: -1px; // used to hide the header border top when a banner is not present
@searchBoxWidth: 375/16em;
@iconSizeTotal: @iconSize + @iconGutterWidth + @iconGutterWidth;

View file

@ -25,7 +25,7 @@
}
.overlay-header .overlay-title {
padding: 0.15em 0;
padding: @headerVerticalPadding 0;
&:last-child {
// Reserve space to the right in case the search form in the header or

View file

@ -11,9 +11,10 @@
.clear {
position: absolute;
top: ( @headerHeight / 2 ) - ( @iconSize / 2 );
// the icon should take into account overlay-title top padding
// and then be centered
top: ( @iconSize / 2 ) + @headerVerticalPadding;
right: 0;
margin-top: @headerMarginTop;
}
}