Page 1 of 1

Logo is very big on smartphones (iPhone X) when selecting "Use as Intro" for the slideshow

Posted: 27 Dec 2019, 09:00
by ulfklose
Is there anything I can do to reduce the size or even better remove the logo for that media query set? Another way would to set an opacity for the logo. Would that be a valid option?

My site is www.ulfklose.wedding.

Re: Logo is very big on smartphones (iPhone X) when selecting "Use as Intro" for the slideshow

Posted: 27 Dec 2019, 09:56
by mjau-mjau
X3 can't anticipate the shape and form of your logo, but there are many ways you could style the logo on mobile devices using media query CSS. In the example below, the logo is hidden on "mobile" devices (all screens < 1024 px, which is the "breakpoint" where the mobile menu displays). Add to Settings > Custom > Custom CSS:
Code
@media screen and (max-width: 1024px) {
  .logo {
    display: none;
  }
}
You could also make the logo smaller on mobile devices, either based on a percentage of the screen width, or a set max pixel width. This would require some testing on your side. For example:
Code
@media screen and (max-width: 1024px) {
  .logo > img {
    max-width: 120px;
  }
}
You could also add "opacity: .5", but I personally think this will look unprofessional.

Re: Logo is very big on smartphones (iPhone X) when selecting "Use as Intro" for the slideshow

Posted: 27 Dec 2019, 10:54
by ulfklose
That looks much better, thank you.

What would be a good query to position the logo on the upper left of the viewport? I guess this would look better because it kind of acts as counterpart for the sandwich icon.

Re: Logo is very big on smartphones (iPhone X) when selecting "Use as Intro" for the slideshow

Posted: 27 Dec 2019, 19:48
by mjau-mjau
ulfklose wrote:What would be a good query to position the logo on the upper left of the viewport?
You could assign left-align to the element that contains the logo. Likely you would need to include some margins. For example:
Code
@media screen and (max-width: 1024px) {
  .logo-wrapper {
    text-align: left;
  }
  .logo > img {
    max-width: 120px;
    margin: 0 0 0 20px;
  }
}

Re: Logo is very big on smartphones (iPhone X) when selecting "Use as Intro" for the slideshow

Posted: 30 Dec 2019, 09:09
by ulfklose
That worked just fine for me, thank you very much.