- This topic has 33 replies, 3 voices, and was last updated 6 years, 3 months ago by Leo.
-
AuthorPosts
-
December 22, 2017 at 4:56 pm #455588mike
now the question is – how do i change it’s size on sticky? π
December 22, 2017 at 7:07 pm #455607LeoStaffCustomer Supportchange what on sticky?
December 23, 2017 at 3:50 am #455702mikeHi Leo,
Sorry if i wasn’t clear
I meant change the logo size when menu goes sticky.Alex
December 23, 2017 at 8:12 am #455832LeoStaffCustomer SupportTry this:
@media (max-width: 768px) { .mobile-header-navigation.navigation-stick .site-logo.mobile-header-logo img { height: 75px; } }
December 23, 2017 at 11:15 am #455906mikeHi,
This makes the logo smaller but:
1. the header height stays the same
2. the logo is not centered anymoreI use the css tom has provided in order to center it –
#mobile-header .site-logo {
position: absolute;
right: calc( 50% – 50px);
}December 23, 2017 at 6:54 pm #456053LeoStaffCustomer SupportCan you apply it so I can see?
You will need to have an extra CSS to center the smaller logo as it’s using absolute positioning:
@media (max-width: 768px) { .mobile-header-navigation.navigation-stick .site-logo.mobile-header-logo { position: absolute; right: calc( 50% β 50px); } }
December 24, 2017 at 6:49 am #456243mikeThis didn’t change it’s postion even though i’ve changed the 50px
I can apply it for a short time beacause the site is sort-of live already
Thanks
December 24, 2017 at 9:25 am #456301LeoStaffCustomer SupportCan you set up a staging site so you can make changes without effecting the existing one?
We are in a different time zone and it’s Christmas where we are so it might take us longer to reply.
December 25, 2017 at 10:21 am #456738mikeMerry Christmas!
No hurry..
No staging site unfortunately
Thanks
December 25, 2017 at 10:36 pm #456910TomLead DeveloperLead DeveloperMerry Christmas!
Give this a shot:
@media (max-width: 768px) { .main-navigation.navigation-stick .main-nav ul li a, .main-navigation.navigation-stick .menu-toggle, .main-navigation.navigation-stick .mobile-bar-items a { line-height: 50px; } .mobile-header-navigation .site-logo.mobile-header-logo img { height: 50px; } }
December 26, 2017 at 5:05 am #457066mikeHi,
Line height did change, but when i try to center the logo using the following css it does not work
.mobile-header-navigation.navigation-stick .site-logo.mobile-header-logo {
position: absolute;
right: calc( 50% β 25px);Thanks a lot
December 26, 2017 at 5:21 am #457079mikeIt works like this –
@media (max-width: 768px) {
.mobile-header-navigation.navigation-stick .site-logo.mobile-header-logo img {
height:75px;
right: 15%;
}
.main-navigation.navigation-stick .main-nav ul li a,
.main-navigation.navigation-stick .menu-toggle,
.main-navigation.navigation-stick .mobile-bar-items a {
line-height: 75px;
}
}is that css ok?
December 26, 2017 at 10:42 am #457307LeoStaffCustomer SupportThere isn’t any “wrong” CSS as it’s purely visual and yup looks good to me π
December 26, 2017 at 1:22 pm #457393mikeThanks for baring with me on this π
December 26, 2017 at 6:55 pm #457488LeoStaffCustomer SupportNo problem!
-
AuthorPosts
- You must be logged in to reply to this topic.