Socket
Socket
Sign inDemoInstall

responsive-webpage-header

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    responsive-webpage-header

A simple responsive webpage header template.


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Responsive Webpage Header

A simple responsive webpage header template.

Demo

Install

npm install responsive-webpage-header

Usage

Use header.css file from dist folder or import header.scss into your .scss file. There's a few lines of JavaScript code that you need to include as well.

You can change SASS variables to adapt header to your needs.

Options:

  • Background color of header and nav list
  • Space around content
  • Logo height
  • Breakpoint (There is only one breakpoint and by default it is 968px)
  • Menu btn size

HTML structure

<header class="main-header">
    <!-- Logo -->
    <div class="logo">
        <!--<h1><a href="#">ResponsiveHeader</a></h1>-->
        <div><a href="#"><img src="/images/logo.svg" alt="ResponsiveHeader"></a></div>
    </div>

    <!-- Navigation -->
    <nav class="navigation">
        <span class="btn-menu">Menu</span>
        <ol class="nav-links">
            <li><a href="#">Home</a></li>
            <li><a href="#">About</a></li>
            <li><a href="#">Our work</a></li>
            <li><a href="#">Contact</a></li>
        </ol>
    </nav>
</header>

Fixed header

You can fix a header to the top of the page. All you have to do is to add class fixed to header element. Header will shrink after you scroll 50px from the top.

<header class="main-header fixed">
    ...
</header>

Container

If you need to put logo and navigation inside some kind of a container – just do it.

<header class="main-header fixed">
    <div class="your-container">
        <div class="logo"> ... </div>
        <div class="navigation"> ... </div>
    </div>
</header>

Contributing

Yes please!

License

Licensed under MIT/GPL.

GPL2 license: http://www.gnu.org/licenses/gpl-2.0.html

MIT license: http://www.opensource.org/licenses/mit-license.php

Keywords

FAQs

Last updated on 26 Jul 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc