GithubHelp home page GithubHelp logo

jaggedsoft / paradeiser Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lucidlemon/paradeiser

0.0 2.0 0.0 4.27 MB

small and sleek mobile navigation

Home Page: http://lucidlemon.github.io/paradeiser/

HTML 79.03% CSS 17.18% JavaScript 3.79%

paradeiser's Introduction

Paradeiser

The only menu you will ever need to kill the hamburger.

Paradeiser is a slim package for dealing with one of the major problems in responsive webdesign: The navigation.

We all know that problem when it comes down to which navigation you might wanna use, and it is often the most comfortable way to go with any of the hamburger menus like hamburgler, but as many folks already discovered the hamburger menu is often not the best choice.

Asides from its recognition value, which is still pretty bad, it still affords to clicks to access your most important links.

On the other hand other methods like a select box (also double click needed) or displaying all the links on top like a styles ul list don't look that good.

So that's where Paradeiser comes in. You get your most important links and even your company logo in the header bar, and for less important stuff you still have an overflow right there.

Demo of Paradeiser

And it only weighs 1.3kb gzipped.

Features

Based upon webkit, so all the links take the space they need and center themselves, therefore your may use 1, 2 or even 5 links within the navbar.

You may also adjust the sizes etc by overwriting the variables of the scss file.

Requirements

CSS Only Version

  • CSS.
  • Really. That's it.

Thanks to andreruffert Paradeiser is now CSS only.

Automatic Hiding on scroll

There is also basic support for hiding on scroll, which is implemented via Headroom.js, see demo 4 for details on the implementation.

Install via bower

bower install Paradeiser --save

Usage

Required Files

paradeiser/
└── dist/
    └── min/ 
	    └── paradeiser.min.css

HTML Markup

Within your head or wherever you might find it suits you, include the source file

<link rel="stylesheet" href="path-to/paradeiser.min.css">

And then place this stuff right below your <body> opening tag:

For further demonstration, visit the Demo pages

<nav class="paradeiser">
    <a href="#">
        <img src="http://danielwinter.at/apple-touch-icon_76x76.png" alt="Logo of Daniel Winter" class="paradeiser_logo">
    </a>
    <a href="#">
        <icon class="paradeiser_icon_canvas">
            <img src="img/menu_home.svg" alt="Navigate to Home">
        </icon>
        <span>Home</span>
    </a>
    <a href="#">
        <icon class="paradeiser_icon_canvas">
            <img src="img/menu_shop.svg" alt="Navigate to Shop">
        </icon>
        <span>Shop</span>
    </a>
    <a href="#">
        <icon class="paradeiser_icon_canvas">
            <img src="img/menu_cart.svg" alt="Navigate to Cart">
        </icon>
        <span>Cart</span>
    </a>
    <a href="#">
        <icon class="paradeiser_icon_canvas">
            <img src="img/menu_contact.svg" alt="Navigate to Contact">
        </icon>
        <span>Contact</span>
    </a>
    <!-- and include the dropdown aswell -->
    <span class="paradeiser_dropdown">
        <a href="#paradeiser-more">
            <icon class="paradeiser_icon_canvas">
                <img src="img/menu_overflow.svg" alt="">
            </icon>
            <span>More</span>
        </a>
        <ul class="paradeiser_children" id="paradeiser-more">
            <li><a href="#">Terms of Service</a></li>
            <li><a href="#">About Us</a></li>
            <li><a href="#">Yolo</a></li>
            <li class="paradeiser-hidden-desktop"><a href="#">Hidden on desktop</a></li>
            <li class="paradeiser-hidden-tablet"><a href="#">Hidden on tablet</a></li>
            <li class="paradeiser-hidden-phone"><a href="#">Hidden on phone</a></li>
            <li><a href="#!"></a></li>
        </ul>
    </span>
</nav>

Plans for the Future

  • Better animations on the popout
  • Support for one-page websites with automatic highlighting of the correct link

Why the heck is this called Paradeiser?

Paradeiser is Austrian for tomato, I just thought it might sound cool, and it has a nice ring to it (Paradise - eh?).

Changelog

v 0.2.5.

As suggested in #9 hiding on scrolling is now implemented with Headroom.js, but there are still bugs with the overflow menu. If you don't use the overflow though, you can get a demo here. I included headroom.js via the Cloudflare CDN, so no additional download is needed. Paradeiser itself stays JS free.

v 0.2.0

Paradeiser is now CSS only, thanks to andreruffert and the CSS :target selector. Mind the reworked HTML Markup.

v 0.1.2

Added paradeiser-hidden-* classes for hiding links on different devices. This way you can move links from the navbar to the overflow menu when switching to mobile

v 0.1.0

Paradeiser is now visible on Desktop systems aswell, if you want to supress this behaviour, just set the $paradeiser-mobile-only variable to true while importing the paradeiser_variables.

paradeiser's People

Contributors

lucidlemon avatar andreruffert avatar mischah avatar ferdiesletering avatar

Watchers

James Cloos avatar jagged avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.