diff --git a/theme/formal_white/lib.php b/theme/formal_white/lib.php index 27d10ba661f..c9cd2103407 100644 --- a/theme/formal_white/lib.php +++ b/theme/formal_white/lib.php @@ -102,9 +102,9 @@ function formal_white_set_framemargin($css, $framemargin) { $tag = '[[setting:framemargin]]'; $css = str_replace($tag, $framemargin.'px', $css); - // Set .headermenu right - $calculated = $framemargin + 17; // 17px is the width of the frame - $tag = '[[calculated:headermenuright]]'; + // Set .headermenu margin + $calculated = $framemargin + 22; // 17px is the width of the frame; 5px to avoid to have all stuck + $tag = '[[calculated:headermenumargin]]'; $css = str_replace($tag, $calculated.'px', $css); return $css; diff --git a/theme/formal_white/style/formal_white.css b/theme/formal_white/style/formal_white.css index 354a0919ea3..8cf94810a01 100644 --- a/theme/formal_white/style/formal_white.css +++ b/theme/formal_white/style/formal_white.css @@ -39,6 +39,7 @@ h2.main, h3.main, h4.main {margin:1em;padding:0;text-align:center;} margin: 0; padding: 0; width: auto; + line-height: 0; } .dir-rtl #headerlogo { @@ -47,20 +48,28 @@ h2.main, h3.main, h4.main {margin:1em;padding:0;text-align:center;} /* headermenu */ .headermenu { - float: right; font-size: 90%; line-height: 1.7em; - margin: 0.5em; - position: relative; - right: 0; - text-align: right; + position: absolute; top: 0; } + +.dir-ltr .headermenu { + float: right; + margin: 1.7em [[calculated:headermenumargin]] 0 0; + right: 0; + text-align: right; + } + .dir-rtl .headermenu { float: left; + margin: 1.7em 0 0 [[calculated:headermenumargin]]; + left: 0; + text-align: left; } + .langmenu { - margin-right: 0.4em + margin-right: 0.1em; } #dock {background-color:[[setting:blockcontentbgc]];border-right:1px dashed #000;}