Skeleton Website Framework

StellarNav Menu System

This framework uses StellarNav

You can edit the navigation items by simply editing navigation.md

- [Home]()
- [Markdown Tutorial](markdowntutorial)
- [Jac](jac)
- [Posts/Archives](archives)
- [Dropdown Item](javascript:void(0);)<!-- Use javascript:void(0); as the link target on top level items to avoid them being clickable and thus confusing visitors -->
  - [Navigation Tutorial](navigationtutorial.md)
  - [Site Navigation File](navigation.md)
  - [Item](javascript:void(0);)
    - [Drop left menu item](n)
    - [Drop left menu item](#)

Sub items are accomplished by simply intenting.

StellarNav.js

Responsive, lightweight, multi-level dropdown menu. Stellarnav is a great solution for long navigation menus with lots of menu items.

Click here to see StellarNav.js in action.

Installation

CSS

Include the StellarNav stylesheet.

<link rel="stylesheet" type="text/css" media="all" href="css/stellarnav.min.css">

HTML

Add a stellarnav class to your menu div.

<div class="stellarnav">
     <ul>
        <li><a href="#">Item</a></li>
        <li><a href="#">Item</a></li>
        <li><a href="#">Item</a></li>
     </ul>
</div>

Javascript

Include stellarnav.min.js and call stellarNav().

<script type="text/javascript" src="js/stellarnav.js"></script>
<script type="text/javascript">
    jQuery(document).ready(function($) {
        jQuery('.stellarnav').stellarNav();
    });
</script>

Options

Here's a list of available settings.

jQuery('.stellarnav').stellarNav({
  theme: 'plain', // adds default color to nav. (light, dark)
  breakpoint: 768, // number in pixels to determine when the nav should turn mobile friendly
  menuLabel: 'Menu', // label for the mobile nav
  sticky: false, // makes nav sticky on scroll (desktop only)
  position: 'static', // 'static', 'top', 'left', 'right' - when set to 'top', this forces the mobile nav to be placed absolutely on the very top of page
  openingSpeed: 250, // how fast the dropdown should open in milliseconds
  closingDelay: 250, // controls how long the dropdowns stay open for in milliseconds
  showArrows: true, // shows dropdown arrows next to the items that have sub menus
  phoneBtn: '', // adds a click-to-call phone link to the top of menu - i.e.: "18009084500"
  phoneLabel: 'Call Us', // label for the phone button
  locationBtn: '', // adds a location link to the top of menu - i.e.: "/location/", "http://site.com/contact-us/"
  locationLabel: 'Location', // label for the location button
  closeBtn: false, // adds a close button to the end of nav
  closeLabel: 'Close', // label for the close button
  mobileMode: false,
  scrollbarFix: false // fixes horizontal scrollbar issue on very long navs
});
AttributeTypeDefaultDescription
themeStringplainAdds default color to nav. [plain, light, dark]
breakpointInteger768Number in pixels to determine when the nav should turn mobile friendly.
menuLabelStringMenuLabel (text) for the mobile nav.
stickyBooleanfalseMakes nav sticky on scroll.
positionStringstatic[static, top, left, right] - When set to 'top', this forces the mobile nav to be placed absolutely on the very top of page. When set to 'left' or 'right', mobile nav fades in/out from left or right, accordingly.
openingSpeedInteger250Controls how fast the dropdowns open in milliseconds.
closingDelayInteger250Controls how long the dropdowns stay open for in milliseconds.
showArrowsBooleantrueShows dropdown arrows next to the items that have sub menus.
phoneBtnString''Adds a click-to-call phone link to the top of menu - i.e.: "18009084500".
phoneLabelStringCall UsLabel (text) for the phone button.
locationBtnString''Adds a location link to the top of menu - i.e.: "/location/", "http://site.com/contact-us/".
locationLabelStringLocationLabel (text) for the location button.
closeBtnBooleanfalseAdds a close button to the end of nav.
closeLabelStringCloseLabel (text) for the close button.
mobileModeBooleanfalseTurns the menu mobile friendly by default.
scrollbarFixBooleanfalseFixes horizontal scrollbar issue on very long menus.

Mega Dropdowns

The mega dropdown feature allows you to fully extend the width of the dropdown and group the sub-dropdown items by a specific number of columns. This is extremely useful when dealing large menus.

You can turn any dropdown into a mega dropdown menu by simply adding a class of mega and an html attribute of data-columns to the top-level item. The number of columns for the data-columns attribute that can be any integer from 2 to 8. Example:

<div class="stellarnav">
     <ul>
        <li class="mega" data-columns="4">
          <a href="#">Item</a>
          <a href="#">Item</a>
          <a href="#">Item</a>
          <a href="#">Item</a>
          <a href="#">Item</a>
          <a href="#">Item</a>
          <a href="#">Item</a>
          <a href="#">Item</a>
        </li>
        <li><a href="#">Item</a></li>
        <li><a href="#">Item</a></li>
     </ul>
</div>

*Note: data-columns defaults to 4. If you specify a number other than 2-8 or forget to add the data-columns attribute to the list item, the dropdown menu will automatically be divided into 4 columns.

Extra

Open / Close Menu

You can add the css classes stellarnav-open or stellarnav-close to any html element on the page to activate opening or closing of menu on click.

Drop Left

For long dropdown menus and for some of the last navigation items, you may use the class drop-left to the list item so that the dropdown drops leftward. This prevents menu from breaking the grid and getting a horizontal scrollbar.

<div class="stellarnav">
     <ul>
        <li><a href="#">Item</a></li>
        <li><a href="#">Item</a></li>
        <li><a href="#">Item</a></li>
        <li><a href="#">Item</a></li>
        <li class="drop-left"><a href="#">Last Dropdown Item</a>
            <ul>
                <li><a href="#">Item</a></li>
                <li><a href="#">Item</a>
                    <ul>
                        <li><a href="#">Drop left menu item</a></li>
                        <li><a href="#">Drop left menu item</a></li>
                    </ul>
                </li>
            </ul>
        </li>
     </ul>
</div>

If this is not an option and you are still getting a scrollbar, you may also set the scrollbarFix option to true.

Explore Our Framework

Discover the endless possibilities of the Skeleton Website Framework. From streamlined development to enhanced security features, explore how our framework can elevate your website projects. Start exploring today!

Contribute on GitHub

Join our community on GitHub and contribute to the evolution of Skeleton Website Framework. Visit the repository at Skeleton Website Framework on Github to access the latest updates, report issues, and submit pull requests. Your contributions are invaluable to us!

Living Documentation

Immerse yourself in the comprehensive documentation of the Skeleton Website Framework, right here on our website. Explore the various capabilities, features, and functionalities of our framework in real-time. From detailed tutorials to practical examples, dive deep into the heart of the Skeleton Website Framework and unleash your creativity like never before.