diff --git a/docs/customization/navigation.html b/docs/customization/navigation.html index 7985475..c4c77f5 100644 --- a/docs/customization/navigation.html +++ b/docs/customization/navigation.html @@ -57,14 +57,101 @@

Menus and navigation are some of the most important elements for any website or web app and their design and ease-of-use are key factors that can determine a page's bounce rates. The navigation module takes a step back from all the complicated menu and navigation design paradigms of the modern web, like dropdown menus and hamburger buttons, and tries to reinvent the basics for page navigation using HTML5 elements (i.e. header, nav and footer) and make navigation fully accessible for screen readers. Instead of sticking to either horizontal navigation menus (headers) or vertical menus (sidebars), we opted to allow the use of both for different things. Header menus are designed to stand out and contain links to help users find new content, whereas vertical navigation aims to provide a more traditional navigation menu that maps out your website's structure. Finally, footers are also part of the navigation module, as they can often provide the user with useful information and/or links that are very important to enhancing their experience.


-

Quick start

-

To use the navigation module, simply include the link to the flavor you are using and start writing your HTML page as usual. One suggestion we will make is to add the following line inside your HTML page's <head> to utilize the viewport meta tag:


-
<meta name="viewport" content="width=device-width, initial-scale=1">

+

Quick start

+

To customize the navigation module, duplicate an existing flavor file (we suggest you use the mini-default.scss flavor file) and use this page's variable tables and mixins as a reference to change only the values you need. Remember to compile your flavor file (not the module's partial file) using a Sass preprocessor (we highly recommend using sass-autocompile if you are working with Atom).


- + +
+
+
+

Header

+
+

The navigation module contains definitions for styling the <header> element, along with its contents (logo and links).


+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
VariableTypeDescriptionSample value
$header-heightHeightThe height of the <header> element44px
$header-back-colorColorBackground color for the <header> element#263238
$header-fore-colorColorText color for the <header> element#fafafa
$header-border-styleBorderBorder style for the <header> element1px solid #424242
$header-marginMarginMargin for the <header> element0
$header-paddingPaddingPadding for the <header> element2px 8px
$header-box-shadowBox shadowBox shadow for the <header> element0 1px 3px rgba(0,0,0, 0.1)
$header-logo-nameStringClass name for the <header> element's logo'logo'
$header-logo-font-sizeFont sizeFont size for the <header> element's logo1.75em
$header-logo-line-heightLine heightLine height for the <header> element's logo1.2
$header-logo-marginMarginMargin for the <header> element's logo1px
$header-logo-paddingPaddingPadding for the <header> element's logo3px 0 0
$header-link-hover-colorColorHover color for the <header> element's links#37474f
$header-link-marginMarginMargin for the <header> element's links2px 0 0
$include-header-stickyLogicalEnables sticky <header> elements1true
$header-sticky-nameStringClass name for the sticky <header> element1'sticky'

+
+
+

Notes:

+
    +
  1. The value of $header-sticky-name will only be used if $include-header-sticky is set to true.
  2. +
+
+
+
+
+

If you want to learn more about customizing mini.css, go back to the customization page or choose a module from the top menu to see its documentation.