Skip to content

Instantly share code, notes, and snippets.

@jsn789
Last active April 14, 2018 13:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsn789/47cb61d8e54bad76396ade3deba95f15 to your computer and use it in GitHub Desktop.
Save jsn789/47cb61d8e54bad76396ade3deba95f15 to your computer and use it in GitHub Desktop.
Shrink navigation for X Theme
/*SHRINKING HEADER*/
@media (min-width: 980px) {
.x-navbar .x-navbar-inner,
.x-navbar .x-brand img,
.x-navbar .desktop .x-nav > li > a {
transition: 0.25s all linear;
}
.x-navbar.navScroll .x-navbar-inner {
min-height: 50px;
transition: 0.25s all linear;
}
.x-navbar.navScroll .x-brand img {
max-width: 150px;
}
.x-navbar.navScroll .desktop .x-nav > li > a {
height: 40px;
padding-top: 25px;
}
}
@media(max-width: 979px){
.x-logobar{
text-align: left;
}
.x-brand img {
max-width: 160px;
}
.x-btn-navbar {
position: absolute;
top: -5px;
right: 0px;
}
.x-navbar-inner {
min-height: 0;
}
}
.x-navbar.navScroll .sub-menu {
top: 60px !important;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment