Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

tasty-burger

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tasty-burger

Build your own tasty burger menu icon just with one line of code

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

Build Status

:fire: :hamburger: Tasty Burger

Mmmmhmmm this is a tasty burger

Mmmmhmmm this is a tasty burger

Demo

https://hinok.github.io/tasty-burger/

Usage

Take meat

<link rel="stylesheet" href="tasty-burger.css">

Put it on grill

<div class="tb tb--lg"><span></span></div>

Sizes --sm, --md, --lg

<!-- Small - 12px -->
<div class="tb tb--sm"><span></span></div>

<!-- Large - 24px -->
<div class="tb tb--md"><span></span></div>

<!-- Large - 44px -->
<div class="tb tb--lg"><span></span></div>

Your own size

@import 'tasty-burger';

@include tasty-burger($size-name: 'medium-rare', $icon-size: 32px);
<div class="tb tb--medium-rare"><span></span></div>

Your own everything

$tb-class: '.my-tasty-burger';
$tb-color: pink;
$tb-bar-height: 4px;
$tb-animation-time: 0.15s;
$tb-sizes: (default: 30px);

@import 'tasty-burger';
<div class="my-tasty-burger my-tasty-burger--default"><span></span></div>

API

Variables

$tb-class, defaults .tb

Base css class that will be generated.

$tb-color, defaults #000

Color of each icon's bar.

$tb-bar-height, defaults 2px

Height of each bar in the icon.

$tb-animation-time, defaults 0.3s

Duration of animation.

$tb-sizes, defaults (sm: 12px, md: 24px, lg: 44px)

Map that holds sizes for generated CSS, depends on $tb-class.

Mixins

@mixin tasty-burger($size-name, $icon-size)

  • $size-name - name of modifier for base class
  • $icon-size - height of the icon

Supported browsers (source)

  • Firefox 4.0 and up
  • Safari 6.1 and up
  • Chrome 26 and up
  • Opera 15 and up (post Blink)
  • IE 10 and up
  • Safari iOS 7

License

MIT

Keywords

hamburger

FAQs

Package last updated on 26 Sep 2016

Did you know?

Socket

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