Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add !default to hamburger variables #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions sass/_components.hamburger.scss
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
/* -----------------------------------------------------------------------------

HAMBURGER ICONS COMPONENT

----------------------------------------------------------------------------- */

// vars

$button-width: 96px; // The width of the button area
$button-height: 96px; // The height of the button area
$bar-thickness: 8px; // The thickness of the button bars
$button-pad: 18px; // The left/right padding between button area and bars.
$button-bar-space: 12px; // The spacing between button bars
$button-transistion-duration: 0.3s; // The transition duration
$button-width: 96px !default; // The width of the button area
$button-height: 96px !default; // The height of the button area
$bar-thickness: 8px !default; // The thickness of the button bars
$button-pad: 18px !default; // The left/right padding between button area and bars.
$button-bar-space: 12px !default; // The spacing between button bars
$button-transistion-duration: 0.3s !default; // The transition duration

/**
* Toggle Switch Globals
Expand Down Expand Up @@ -101,7 +101,7 @@ $button-transistion-duration: 0.3s; // The transition duration

/**
* Style 2
*
*
* Hamburger to "x" (htx). Takes on a hamburger shape, bars slide
* down to center and transform into an "x".
*/
Expand Down Expand Up @@ -171,7 +171,7 @@ $button-transistion-duration: 0.3s; // The transition duration

.c-hamburger--htla span::before,
.c-hamburger--htla span::after {

}

.c-hamburger--htla span::before {
Expand Down Expand Up @@ -213,7 +213,7 @@ $button-transistion-duration: 0.3s; // The transition duration
* Style 4
*
* Hamburger to right-arrow (htra). Hamburger menu transforms to a
* right-pointing arrow. Usually indicates an off canvas menu sliding in from
* right-pointing arrow. Usually indicates an off canvas menu sliding in from
* right that will be close on re-click of the icon.
*/

Expand All @@ -227,7 +227,7 @@ $button-transistion-duration: 0.3s; // The transition duration

.c-hamburger--htra span::before,
.c-hamburger--htra span::after {

}

.c-hamburger--htra span::before {
Expand Down Expand Up @@ -263,4 +263,4 @@ $button-transistion-duration: 0.3s; // The transition duration
.c-hamburger--htra.is-active span::after {
bottom: 0;
transform: translateX(-$bar-thickness) translateY(-$bar-thickness/2) rotate(45deg);
}
}