- This topic has 46 replies, 3 voices, and was last updated 7 years, 5 months ago by
Tom.
-
AuthorPosts
-
October 19, 2015 at 12:11 am #145564
Tom
Lead DeveloperLead DeveloperGP 1.3.17 uses the device-width solution we found.
Thanks for pointing out the bug! π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentOctober 19, 2015 at 12:30 am #145565Nina
Hi Tom,
No problem! π So the update is coming soon?
October 19, 2015 at 12:36 am #145566Nina
Hi Tom,
No problem! π So update is coming soon?
October 19, 2015 at 6:05 am #145613Nina
Hi Tom,
I updated theme. It seems that you added this block
@media (max-width:400px) { @-ms-viewport { width:device-width } }
But this will only work width smaller than 400px. I think it’s better use just
@-ms-viewport { width:device-width }
so then it will always take the whole width
October 19, 2015 at 9:40 am #145659Tom
Lead DeveloperLead DeveloperDoing that would most likely cause issues on IE desktop browsers.
Does this not work?:
@media (max-width:400px) { @-ms-viewport { width:device-width } }
What about if you remove it completely (from the minified file as well)?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentOctober 19, 2015 at 10:31 pm #145915Nina
Hi Tom,
This solution doesn’t work. I didn’t notice that this
@-ms-viewport { width:device-width }
would have caused any issue with IE desktop browser. Doesn’t this only effect mobile devices?
October 19, 2015 at 11:59 pm #145931Nina
Hi Tom,
Now I can’t override this block to make it work properly from unsemantic-grid.min.css
@media (max-width: 400px) { @-ms-viewport { width: device-width; } }
Before this inclusion it was easy to attach new style by using child theme, because this one was missing from min file.
October 20, 2015 at 12:09 am #145937Tom
Lead DeveloperLead DeveloperWhat happens if you remove it completely from your child theme and the minified/non-minified file?
I ask because of the topic I have going on over here: https://github.com/nathansmith/unsemantic/issues/84
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentOctober 20, 2015 at 12:47 am #145949Nina
Hi Tom,
I removed this
@media (max-width: 400px) { @-ms-viewport { width: device-width; } }
from both minified/non-minified file and also removed my child theme override style. And It’s not working. I’m not entirely sure what is still needed for Window Phone, because with Android and IOS it works perfectly. It’s funny that Windows Phone won’t take the device width if that’s not defined in style
October 20, 2015 at 3:35 am #145968Nina
Hi Tom,
I’m not saying that this is the only and right solution
@-ms-viewport { width: device-width; }
and it’s not, but for now it’s the only one to make website take full width.
October 20, 2015 at 3:47 am #145973Nina
Hi Tom,
Sorry, I’m pain in the ass, but…
Liked this part in this article that I found:
Internet Explorer Implementation
The implementation in Internet Explorer 10 is practically identical to the W3C standard (great job IE team), with the addition of a prefix to signify that itβs an experimental implementation (as all prefixed implementations are). The ie viewport value appears as follows:@-ms-viewport { width: device-width }
IEs implementation currently only supports the width and height properties. Min and max height/width are not implemented and neither are zoom or orientation. As with all early implementation of standards, if the specification changes, I have no doubt that the internet explorer team with update the implementation to match the standard.
October 20, 2015 at 3:49 am #145974Nina
Hi (again) Tom,
I think this is worth to read and check those examples:
https://www.epinova.no/blog/george-gooding/dates/2014/10/surveying-the-viewport/
October 20, 2015 at 9:45 am #146039Tom
Lead DeveloperLead DeveloperOkay, we’re getting closer – looks like I can add it without the media query.
Will make this change π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentOctober 20, 2015 at 11:19 pm #146155Nina
Hi Tom,
I also tried this one
@-ms-viewport { width: auto; }
I think it works better than device-width? I noticed that with device-width and depending your mobile screen size if you lift it to landscape it will break the responsive mobile menu and grid a little bit.
October 21, 2015 at 12:30 am #146172Tom
Lead DeveloperLead DeveloperOkay, I’ve made the adjustment to the next version – I removed the media query and used device-width π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-development -
AuthorPosts
- You must be logged in to reply to this topic.