You are here

ultimenu.hamburger.css in Ultimenu 8.2

This file contains the Ultimenu hamburger skin for the main menu.

File

css/components/ultimenu.hamburger.css
View source
  1. /**
  2. * @file
  3. * This file contains the Ultimenu hamburger skin for the main menu.
  4. */
  5. /** This double is another sample to work around theme compatibility issue. */
  6. .button.button--ultimenu {
  7. background: #555;
  8. border: 0;
  9. border-radius: 2px;
  10. cursor: pointer;
  11. display: block;
  12. font-size: 0;
  13. height: 40px;
  14. margin: 0;
  15. padding: 0;
  16. position: fixed;
  17. right: 15px;
  18. text-align: center;
  19. text-indent: -999px;
  20. top: 15px;
  21. width: 42px;
  22. z-index: 9999;
  23. transition: background-color .3s, transform .2s;
  24. }
  25. .button.button--ultimenu:hover,
  26. .button.button--ultimenu:active,
  27. .button.button--ultimenu:focus {
  28. background: #111;
  29. }
  30. /** Inspired by callmenick. */
  31. .button--ultimenu .bars,
  32. .button--ultimenu .bars::before,
  33. .button--ultimenu .bars::after {
  34. background-color: #fff;
  35. content: '';
  36. display: block;
  37. height: 4px;
  38. pointer-events: none;
  39. position: absolute;
  40. left: 0;
  41. right: 0;
  42. width: 32px;
  43. }
  44. .button--ultimenu .bars {
  45. height: 4px;
  46. left: 5px;
  47. right: 5px;
  48. top: 18px;
  49. transition: background-color 0s .3s;
  50. }
  51. .button--ultimenu .bars::before,
  52. .button--ultimenu .bars::after {
  53. transition-duration: .3s, .3s;
  54. transition-delay: .3s, 0s;
  55. }
  56. .button--ultimenu .bars::before {
  57. transition-property: top, transform;
  58. top: -10px;
  59. }
  60. .button--ultimenu .bars::after {
  61. transition-property: bottom, transform;
  62. bottom: -10px;
  63. }
  64. .is-ultimenu-expanded .button--ultimenu .bars {
  65. background-color: transparent;
  66. }
  67. .is-ultimenu-expanded .button--ultimenu .bars::before,
  68. .is-ultimenu-expanded .button--ultimenu .bars::after {
  69. transition-delay: 0s, .3s;
  70. }
  71. .is-ultimenu-expanded .button--ultimenu .bars::before {
  72. top: 0;
  73. transform: rotate(45deg);
  74. }
  75. .is-ultimenu-expanded .button--ultimenu .bars::after {
  76. bottom: 0;
  77. transform: rotate(-45deg);
  78. }
  79. /**
  80. * 944px+ with 16px base font.
  81. * .is-ultimenu-canvas--hover is only available if off-canvas is not enabled for
  82. * both modile and desktop.
  83. */
  84. @media all and (min-width: 59em) {
  85. /** Hide mobile menu, if off-canvas is DISABLED for desktop. */
  86. .is-ultimenu-canvas--hover .button.button--ultimenu {
  87. display: none;
  88. }
  89. }