Catch up to highlight 3.51 API change.
[ikiwiki] / doc / bugs / More_mobile_friendly_default_themes.mdwn
1 <http://developers.google.com/speed/pagespeed/insights/>
2
3 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
4
5 http://source.ikiwiki.branchable.com/?p=source.git;a=blob;f=templates/page.tmpl;
6
7 > This seems a lot like
8 > [an "unbreak my application" option](http://ometer.com/free-software-ui.html)
9 > but OK... presumably the motivation for this being opt-in is that "most"
10 > websites have some sort of hard-coded fixed-width layout suitable for
11 > a proportion of desktop browsers, rather than being responsive to window
12 > size like they should have been all along. --[[smcv]]
13
14 >> Fixed in master. It is currently on by default, but people with
15 >> customized CSS that doesn't scale nicely can put
16 >> `responsive_layout => 0` in the config to turn it off. --[[smcv]]
17
18 Further more:
19
20 * fonts need to be tweaked
21
22   > Suggestions?
23   >
24   > (Note that Joey has generally rejected stylistic changes to the default
25   > anti-theme; enhancing the other themes would be OK though.)
26   > --[[smcv]]
27
28   >> With git master, the layout and font sizes seem appropriate on my
29   >> Galaxy Nexus (360 CSS pixels wide), and on simulated devices
30   >> 320 device pixels wide (e.g. the first couple of iPhone models)
31   >> in Chromium's developer tools. [[done]]
32   >>
33   >> Test sites:
34   >>
35   >> * <http://actiontabs.hosted.pseudorandom.co.uk/>
36   >> * <http://blueview.hosted.pseudorandom.co.uk/>
37   >> * <http://goldtype.hosted.pseudorandom.co.uk/>
38   >> * <http://monochrome.hosted.pseudorandom.co.uk/>
39   >> * <http://unthemed.hosted.pseudorandom.co.uk/>
40   >>
41   >> If stylistic changes are needed, please open another issue with a
42   >> suggested patch.
43   >> --[[smcv]]
44
45 * XHTML should be dropped !
46
47   > Already in the to-do list: [[todo/generate HTML5 by default]]. --[[smcv]]
48
49   >> Next version will always generate HTML5, unless someone overrules me.
50   >> --[[smcv]]
51
52 I'm practicing this on http://dabase.com/ with <http://source.dabase.branchable.com/?p=source.git;a=blob;f=templates/page.tmpl;>
53
54 > [[!format diff """
55 -<TMPL_IF FORCEBASEURL><base href="<TMPL_VAR FORCEBASEURL>" /><TMPL_ELSE>
56 -<TMPL_IF BASEURL><base href="<TMPL_VAR BASEURL>" /></TMPL_IF>
57 """]]
58 > You probably don't want to delete those. It breaks the CGI. --[[smcv]]