ultimenu.hamburger.css in Ultimenu 8.2
This file contains the Ultimenu hamburger skin for the main menu.
File
css/components/ultimenu.hamburger.cssView source
- /**
- * @file
- * This file contains the Ultimenu hamburger skin for the main menu.
- */
-
- /** This double is another sample to work around theme compatibility issue. */
- .button.button--ultimenu {
- background: #555;
- border: 0;
- border-radius: 2px;
- cursor: pointer;
- display: block;
- font-size: 0;
- height: 40px;
- margin: 0;
- padding: 0;
- position: fixed;
- right: 15px;
- text-align: center;
- text-indent: -999px;
- top: 15px;
- width: 42px;
- z-index: 9999;
- transition: background-color .3s, transform .2s;
- }
-
- .button.button--ultimenu:hover,
- .button.button--ultimenu:active,
- .button.button--ultimenu:focus {
- background: #111;
- }
-
- /** Inspired by callmenick. */
- .button--ultimenu .bars,
- .button--ultimenu .bars::before,
- .button--ultimenu .bars::after {
- background-color: #fff;
- content: '';
- display: block;
- height: 4px;
- pointer-events: none;
- position: absolute;
- left: 0;
- right: 0;
- width: 32px;
- }
-
- .button--ultimenu .bars {
- height: 4px;
- left: 5px;
- right: 5px;
- top: 18px;
- transition: background-color 0s .3s;
- }
-
- .button--ultimenu .bars::before,
- .button--ultimenu .bars::after {
- transition-duration: .3s, .3s;
- transition-delay: .3s, 0s;
- }
-
- .button--ultimenu .bars::before {
- transition-property: top, transform;
- top: -10px;
- }
-
- .button--ultimenu .bars::after {
- transition-property: bottom, transform;
- bottom: -10px;
- }
-
- .is-ultimenu-expanded .button--ultimenu .bars {
- background-color: transparent;
- }
-
- .is-ultimenu-expanded .button--ultimenu .bars::before,
- .is-ultimenu-expanded .button--ultimenu .bars::after {
- transition-delay: 0s, .3s;
- }
-
- .is-ultimenu-expanded .button--ultimenu .bars::before {
- top: 0;
- transform: rotate(45deg);
- }
-
- .is-ultimenu-expanded .button--ultimenu .bars::after {
- bottom: 0;
- transform: rotate(-45deg);
- }
-
- /**
- * 944px+ with 16px base font.
- * .is-ultimenu-canvas--hover is only available if off-canvas is not enabled for
- * both modile and desktop.
- */
- @media all and (min-width: 59em) {
-
- /** Hide mobile menu, if off-canvas is DISABLED for desktop. */
- .is-ultimenu-canvas--hover .button.button--ultimenu {
- display: none;
- }
- }