2015-06-08 02:46:53 +03:00
|
|
|
// Animated hamburger icon
|
|
|
|
//
|
|
|
|
// Add an animation to Bootstrap's `.navbar-toggle` hamburger icon,
|
|
|
|
// courtesy of Julien Melissas.
|
|
|
|
//
|
2015-06-06 16:32:11 +03:00
|
|
|
// @see http://codepen.io/JulienMelissas/pen/LEBGLj
|
2015-06-08 02:46:53 +03:00
|
|
|
// @see http://julienmelissas.com/animated-x-icon-for-the-bootstrap-navbar-toggle/
|
2015-06-06 16:32:11 +03:00
|
|
|
|
2015-04-28 02:15:49 +03:00
|
|
|
.navbar-toggle {
|
|
|
|
border: none;
|
|
|
|
background: transparent !important;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background: transparent !important;
|
|
|
|
}
|
2015-06-06 16:32:11 +03:00
|
|
|
|
2015-04-28 02:15:49 +03:00
|
|
|
.icon-bar {
|
|
|
|
width: 22px;
|
|
|
|
transition: all 0.2s;
|
|
|
|
}
|
2015-06-06 16:32:11 +03:00
|
|
|
|
2015-04-28 02:15:49 +03:00
|
|
|
.top-bar {
|
|
|
|
transform: rotate(45deg);
|
|
|
|
transform-origin: 10% 10%;
|
|
|
|
}
|
2015-06-06 16:32:11 +03:00
|
|
|
|
2015-04-28 02:15:49 +03:00
|
|
|
.middle-bar {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
2015-06-06 16:32:11 +03:00
|
|
|
|
2015-04-28 02:15:49 +03:00
|
|
|
.bottom-bar {
|
|
|
|
transform: rotate(-45deg);
|
|
|
|
transform-origin: 10% 90%;
|
|
|
|
}
|
2015-06-06 16:32:11 +03:00
|
|
|
|
|
|
|
&.collapsed {
|
|
|
|
.top-bar {
|
|
|
|
transform: rotate(0);
|
|
|
|
}
|
|
|
|
|
|
|
|
.middle-bar {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.bottom-bar {
|
|
|
|
transform: rotate(0);
|
|
|
|
}
|
2015-04-28 02:15:49 +03:00
|
|
|
}
|
|
|
|
}
|