ikiwiki/doc/bugs/More_mobile_friendly_defaul...

59 lines
2.3 KiB
Plaintext
Raw Permalink Normal View History

2014-10-15 06:18:10 +02:00
<http://developers.google.com/speed/pagespeed/insights/>
indicates the viewport on mobile needs to be configured, e.g. `<meta name=viewport content="width=device-width, initial-scale=1">` in the header of
http://source.ikiwiki.branchable.com/?p=source.git;a=blob;f=templates/page.tmpl;
2014-10-16 13:52:05 +02:00
> This seems a lot like
> [an "unbreak my application" option](http://ometer.com/free-software-ui.html)
> but OK... presumably the motivation for this being opt-in is that "most"
> websites have some sort of hard-coded fixed-width layout suitable for
> a proportion of desktop browsers, rather than being responsive to window
> size like they should have been all along. --[[smcv]]
2014-10-15 06:18:10 +02:00
2014-12-01 22:45:47 +01:00
>> Fixed in master. It is currently on by default, but people with
>> customized CSS that doesn't scale nicely can put
>> `responsive_layout => 0` in the config to turn it off. --[[smcv]]
2014-10-15 06:18:10 +02:00
Further more:
* fonts need to be tweaked
2014-10-16 13:52:05 +02:00
> Suggestions?
>
> (Note that Joey has generally rejected stylistic changes to the default
> anti-theme; enhancing the other themes would be OK though.)
> --[[smcv]]
2014-12-01 22:45:47 +01:00
>> With git master, the layout and font sizes seem appropriate on my
>> Galaxy Nexus (360 CSS pixels wide), and on simulated devices
>> 320 device pixels wide (e.g. the first couple of iPhone models)
>> in Chromium's developer tools. [[done]]
>>
>> Test sites:
>>
>> * <http://actiontabs.hosted.pseudorandom.co.uk/>
>> * <http://blueview.hosted.pseudorandom.co.uk/>
>> * <http://goldtype.hosted.pseudorandom.co.uk/>
>> * <http://monochrome.hosted.pseudorandom.co.uk/>
>> * <http://unthemed.hosted.pseudorandom.co.uk/>
>>
>> If stylistic changes are needed, please open another issue with a
>> suggested patch.
>> --[[smcv]]
2014-10-15 06:18:10 +02:00
* XHTML should be dropped !
2014-10-16 13:52:05 +02:00
> Already in the to-do list: [[todo/generate HTML5 by default]]. --[[smcv]]
2014-10-15 06:18:10 +02:00
2014-12-01 22:45:47 +01:00
>> Next version will always generate HTML5, unless someone overrules me.
>> --[[smcv]]
2014-10-15 06:18:10 +02:00
I'm practicing this on http://dabase.com/ with <http://source.dabase.branchable.com/?p=source.git;a=blob;f=templates/page.tmpl;>
2014-10-16 13:52:05 +02:00
> [[!format diff """
-<TMPL_IF FORCEBASEURL><base href="<TMPL_VAR FORCEBASEURL>" /><TMPL_ELSE>
-<TMPL_IF BASEURL><base href="<TMPL_VAR BASEURL>" /></TMPL_IF>
"""]]
> You probably don't want to delete those. It breaks the CGI. --[[smcv]]