Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Problem with mobiles and Grav OnePage Demo

Started by Muut Archive 11 years ago · 13 replies · 277 views
11 years ago

While the GetGrav Homepage look fine on an iPhone 6, the onepage sample does not display the showcase image. Also the menu for the onpage sample consistens only of the Home link, but nothing else.

I've attached some images for you:
Image1 Image3 Image4

Cheers
Nick

11 years ago

I'm not a good designer (really bad srly), then you need to waiting from dev team fix :)

11 years ago

I will have to investigate the missing showcase image in mobile view.

Regarding the menu, that is intentional. The onepage demo only has on-page menu items, and these make no sense in a mobile view so they are hidden. If you added other pages (such as About Me, or Blog, or whatever), they would show up in that off-page navigation in the mobile view.

11 years ago

Ah well, I think I just forgot about that. Already read this somewhere. Regarding the missing image: I just saw that it's not missing, but enlarged beyond recognition. So maybe this will help.

11 years ago

It's the background-attachment: fixed; attribute that is causing the problems. Apparently this is not supported in mobile Safari or Chrome. I'm digging further to find out how I got this working on getgrav.org.

11 years ago

Well looks like that's all it is. On getgrav.org it's not fixed at all. I think I will remove this from the Antimatter theme by default as it's more mobile friendly. Expect an update soon!

11 years ago

Ok Fixed in Antimatter v1.2.7. You can update it with GPM or just download it from the downloads page.

11 years ago

Thanks a lot :)
Could you tell me which files you've changed?

11 years ago

That worked so far, although the image is now displayed differently, meaning it's not zoomed like it was before. While this probably wasn't intended in the first place it certainly was an interesting effect. Can we reproduce this despite the change you've made?

11 years ago

Yes, it's CSS, something like:

CSS
.modular .showcase.flush-top {
  background-position: top;
}

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1318 9 years ago
Archive · by Muut Archive, 9 years ago
2 915 9 years ago
Archive · by Muut Archive, 9 years ago
2 4044 9 years ago
Archive · by Muut Archive, 9 years ago
1 2920 9 years ago
Archive · by Muut Archive, 9 years ago
3 1104 9 years ago