59 lines
2.3 KiB
Markdown
59 lines
2.3 KiB
Markdown
<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;
|
|
|
|
> 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]]
|
|
|
|
>> 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]]
|
|
|
|
Further more:
|
|
|
|
* fonts need to be tweaked
|
|
|
|
> Suggestions?
|
|
>
|
|
> (Note that Joey has generally rejected stylistic changes to the default
|
|
> anti-theme; enhancing the other themes would be OK though.)
|
|
> --[[smcv]]
|
|
|
|
>> 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]]
|
|
|
|
* XHTML should be dropped !
|
|
|
|
> Already in the to-do list: [[todo/generate HTML5 by default]]. --[[smcv]]
|
|
|
|
>> Next version will always generate HTML5, unless someone overrules me.
|
|
>> --[[smcv]]
|
|
|
|
I'm practicing this on http://dabase.com/ with <http://source.dabase.branchable.com/?p=source.git;a=blob;f=templates/page.tmpl;>
|
|
|
|
> [[!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]]
|