Skip to content
This repository has been archived by the owner on Oct 23, 2018. It is now read-only.

Commit

Permalink
v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Malinochkin committed Feb 16, 2015
1 parent f220c63 commit 4c4ab30
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 17 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,14 @@ You can change the settings:
How to use
--------------

**HTML:**

````HTML
<button class="navigation-toggle" data-tools="collapse" data-target="#globalNavbar">
<span class="menu-icon"></span>
</button>
```

**Less:**

Required mixin of settings `.hamburger-settings()`.
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hamburger-icon",
"version": "1.0.0",
"version": "1.0.1",
"authors": [
"Denis Malinochkin <dmalinochkin@land.ru>"
],
Expand Down
8 changes: 3 additions & 5 deletions hamburger-icon.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// Name: Hamburger Icon
// Description: Mixins for creating hamburger icons.
// Version: 1.0.0
// Version: 1.0.1
//
// Author: Denis Malinochkin
// Git: https://github.com/mrmlnc/hamburger-icon
Expand Down Expand Up @@ -71,9 +71,7 @@
// Hamburger Animation
// ------------------------------------------------------------------------
.hamburger-animation() {
& {
background-color: transparent;
}
background-color: transparent;

&:before {
transform: translateY(@hamburger-gutter + @hamburger-height) rotate(45deg);
Expand All @@ -82,4 +80,4 @@
&:after {
transform: translateY(-(@hamburger-gutter + @hamburger-height)) rotate(-45deg);
}
}
}
9 changes: 3 additions & 6 deletions hamburger-icon.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// Name: Hamburger Icon
// Description: Mixins for creating hamburger icons.
// Version: 1.0.0
// Version: 1.0.1
//
// Author: Denis Malinochkin
// Git: https://github.com/mrmlnc/hamburger-icon
Expand All @@ -11,7 +11,7 @@
//
// ========================================================================

// Hamburger Settins
// Hamburger Settings
// ------------------------------------------------------------------------
$hamburger-settings: () !default;

Expand Down Expand Up @@ -67,10 +67,7 @@ $hamburger-settings: () !default;
@mixin hamburger-animation {
$height: nth($hamburger-settings, 1);
$gutter: nth($hamburger-settings, 2);

& {
background-color: transparent;
}
background-color: transparent;

&:before {
transform: translateY($gutter + $height) rotate(45deg);
Expand Down
8 changes: 3 additions & 5 deletions hamburger-icon.styl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// Name: Hamburger Icon
// Description: Mixins for creating hamburger icons.
// Version: 1.0.0
// Version: 1.0.1
//
// Author: Denis Malinochkin
// Git: https://github.com/mrmlnc/hamburger-icon
Expand All @@ -11,7 +11,7 @@
//
// ========================================================================

// Hamburger Settins
// Hamburger Settings
// ------------------------------------------------------------------------
$hamburger-settings = ();

Expand Down Expand Up @@ -61,9 +61,7 @@ hamburger-generator($width = 32px, $height = 3px, $gutter = 5px, $color = #000,
hamburger-animation()
$height = $hamburger-settings[0]
$gutter = $hamburger-settings[1]

&
background-color: transparent
background-color: transparent

&:before
transform: translateY($gutter + $height) rotate(45deg)
Expand Down

0 comments on commit 4c4ab30

Please sign in to comment.