Skip to content
Snippets Groups Projects
Commit ed949d35 authored by Claas Kazzer's avatar Claas Kazzer :speech_balloon: Committed by Frank Morgner
Browse files

refs #10651

* [minor] adds comments concerning the use of affix and navbar-fixed-top
parent 8d66b7b0
No related merge requests found
......@@ -159,7 +159,9 @@ $sidebar-item-active-hover-bg: transparentize($brand-primary, .1) !default;
$grid-gutter-width: 30px !default;
//// Navbar gets a minimum-height of 50px by default, activate and change here!
//// for fixed navbars, the body requires a padding-bottom of the same height as the navbar
//// For fixed navbars ('navbar-fixed-top' in 'header.phtml'), the body requires a padding-bottom of the same height as the navbar because of postition.fixed
//// When using 'affix' instead of 'navbar-fixed-top', set '$navbar-height', '$navbar-height-xs' and '$navbar-height-sm' to '=0'
//// or set the paddings-top under 'body' in compiled.scss to '=0'; see also the comment in header.phtml
$navbar-height: 80px !default;
$navbar-height-sm: $navbar-height / 2 !default;
//// Set navbar-height for small devices, USE px as rem will throw an error in conjunction _variables.scss
......
<!-- finc HEADER -->
<? $account = $this->auth()->getManager(); ?>
<? /* This nav element is the sticky element in the header - CK */ ?>
<? /* This nav element is the sticky element in the header - CK;
you can use 'Affix' as an alternative to 'navbar-fixed-top' like so:
<div data-spy="affix" data-offset-top="1" class="navbar">
Do not use 'navbar-fixed-top' and 'affix* at the same time.
When using 'affix', set the variables for '$navbar-height', '$navbar-height-xs' and '$navbar-height-sm' in _customVariables.scss to '=0'
or set the paddings-top under 'body' in compiled.scss to '=0'
*/ ?>
<nav class="navbar navbar-fixed-top">
<div class="container-fluid">
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment