Skip to content

Instantly share code, notes, and snippets.

@agusmu
Last active December 23, 2015 14:39
Show Gist options
  • Save agusmu/6649920 to your computer and use it in GitHub Desktop.
Save agusmu/6649920 to your computer and use it in GitHub Desktop.
PrimaShop - Adjust Header Height With Responsive Logo
/* minimum height of your header */
/* 120 = 35 (top) + 50 (logo height) + 35 (bottom) */
#header {
min-height: 120px;
}
/* adjust top and bottom padding of the responsive logo */
#header-title a.header-logo {
padding-top: 35px;
padding-bottom: 35px;
}
/* specify max height for responsive logo */
#header-title a.header-logo img {
max-height: 50px;
}
/* fixed header height */
#header {
height: 120px;
}
/* reset fixed header height smaller devices */
@media only screen and (max-width: 1000px) {
#header {
height: auto;
}
}
#header-title .site-title a, #header-title .site-title a:visited {
padding-top: 35px;
padding-bottom: 35px;
}
@zh4k
Copy link

zh4k commented Mar 16, 2014

This is regarding style_01 FYI

@zh4k
Copy link

zh4k commented Mar 18, 2014

Nevermind, I figured it out. Thanks again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment