Skip to content

Instantly share code, notes, and snippets.

@nextab
Created August 12, 2022 12:58
Show Gist options
  • Select an option

  • Save nextab/1ff0a035dde79bc5e0da681e88873e59 to your computer and use it in GitHub Desktop.

Select an option

Save nextab/1ff0a035dde79bc5e0da681e88873e59 to your computer and use it in GitHub Desktop.
/* #region max-width 980px */
@media only screen and (max-width: 980px) {
.et_fixed_nav header#main-header {
left: 0;
position: fixed;
top: 0;
width: 100%;
}
/* #region Pimp my mobile Menu Icon */
.mobile_menu_bar::before {
display: block;
transition: all 0.4s ease;
}
.mobile_nav.opened .mobile_menu_bar::before {
content: "M";
transform: rotate(90deg);
}
/* #endregion */
/* fullwidth mobile nav menu aka gooder menu */
header#main-header > .container {
position: static;
}
header#main-header > .container #mobile_menu {
background-color: #fff;
border-top: none;
box-shadow: 0px 3px 3px #0000001a !important;
padding: 30px 12% 15px;
width: 100%;
}
header#main-header > .container #mobile_menu li {
padding: 0 0 18px;
}
header#main-header > .container #mobile_menu li a {
background: none;
border: none;
color: #000;
font-size: 18px;
font-weight: 400;
padding: 0;
}
header#main-header > .container #mobile_menu li a:hover {
background: transparent;
}
}
/* #endregion */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment