tea.mathoverflow.net - Discussion Feed (Handheld CSS) Sun, 04 Nov 2018 13:42:58 -0800 http://mathoverflow.tqft.net/ Lussumo Vanilla 1.1.9 & Feed Publisher Harald Hanche-Olsen comments on "Handheld CSS" (1430) http://mathoverflow.tqft.net/discussion/128/handheld-css/?Focus=1430#Comment_1430 http://mathoverflow.tqft.net/discussion/128/handheld-css/?Focus=1430#Comment_1430 Mon, 04 Jan 2010 15:12:44 -0800 Harald Hanche-Olsen @Ilya: Thanks; that is useful information.

]]>
Ilya Nikokoshev comments on "Handheld CSS" (1421) http://mathoverflow.tqft.net/discussion/128/handheld-css/?Focus=1421#Comment_1421 http://mathoverflow.tqft.net/discussion/128/handheld-css/?Focus=1421#Comment_1421 Mon, 04 Jan 2010 14:04:27 -0800 Ilya Nikokoshev @hanche, here is the official CSS3 Media Query specification.

What's important, of course, is not just the standard exists but also that the browser supports it. Apple really did break the ground here by making Mobile Safari on iPhone quite capable, and, yes, this is the official method of recognizing iPhone suggested by Apple.

I don't keep track of developments with other mobile phones, I think Apple has really raised the bar here, so I'd expect all new small devices that pretend to have a good mobile browser to support this.

]]>
Harald Hanche-Olsen comments on "Handheld CSS" (1420) http://mathoverflow.tqft.net/discussion/128/handheld-css/?Focus=1420#Comment_1420 http://mathoverflow.tqft.net/discussion/128/handheld-css/?Focus=1420#Comment_1420 Mon, 04 Jan 2010 13:33:38 -0800 Harald Hanche-Olsen @Ilya: The media selector you use does not appear to be valid CSS 2, not even CSS 2.1. But if handheld devices can be expected to understand it, I suppose it's okay. Is it CSS 3? The collection of CSS pages on W3C seems overwhelming.

]]>
Ilya Nikokoshev comments on "Handheld CSS" (1412) http://mathoverflow.tqft.net/discussion/128/handheld-css/?Focus=1412#Comment_1412 http://mathoverflow.tqft.net/discussion/128/handheld-css/?Focus=1412#Comment_1412 Mon, 04 Jan 2010 11:52:50 -0800 Ilya Nikokoshev The CSS I have in mind is something like

@media only screen and (max-width: 480px) {
  #sidebar, .views , #hlinks a + a {
    display: none;
  }

  #hlinks a img {
    zoom: 300%;
  }

  .question-summary {
    width: 480px !important;
  }

  .summary, .narrow .summary {
    width: 350px !important;
  }

  body {
    overflow-x: hidden;
  }

  #topbar {
    float: left !important;
  }

  #hlogo {
    zoom: 75% !important;
  }

  #hmenus .nav ul li + li {
    display: none !important; 
  }
}

This strips most of the elements, leaving the 480px wide list of questions on the main page. Similarly, one could do the questions and answers.

@hanche, true, iPhone doesn't consider itself to be a handheld indeed, but this works for iPhone since the check is for width. The check should work on modern browsers; one can also test this CSS by narrowing a browser window until it's 480px wide.

Anyway, maybe we should indeed wait for whatever the SE team solution is.

]]>
Harald Hanche-Olsen comments on "Handheld CSS" (1393) http://mathoverflow.tqft.net/discussion/128/handheld-css/?Focus=1393#Comment_1393 http://mathoverflow.tqft.net/discussion/128/handheld-css/?Focus=1393#Comment_1393 Sun, 03 Jan 2010 07:14:14 -0800 Harald Hanche-Olsen @Ilya: Unfortunately, it is my impression that web browsers on handheld devices universally ignore the “handheld” CSS markup. This is why some websites create specially crafted HTML code for such devices. It's a shame, really.

]]>
Anton Geraschenko comments on "Handheld CSS" (1383) http://mathoverflow.tqft.net/discussion/128/handheld-css/?Focus=1383#Comment_1383 http://mathoverflow.tqft.net/discussion/128/handheld-css/?Focus=1383#Comment_1383 Sat, 02 Jan 2010 20:56:38 -0800 Anton Geraschenko @rwbarton: good catch. That should be fixed now. But I did leave the times (eg "12h" or "1d") darker than they used to be. I think they were a little too hard to see before.

]]>
rwbarton comments on "Handheld CSS" (1382) http://mathoverflow.tqft.net/discussion/128/handheld-css/?Focus=1382#Comment_1382 http://mathoverflow.tqft.net/discussion/128/handheld-css/?Focus=1382#Comment_1382 Sat, 02 Jan 2010 20:37:30 -0800 rwbarton Anton Geraschenko comments on "Handheld CSS" (1381) http://mathoverflow.tqft.net/discussion/128/handheld-css/?Focus=1381#Comment_1381 http://mathoverflow.tqft.net/discussion/128/handheld-css/?Focus=1381#Comment_1381 Sat, 02 Jan 2010 19:55:37 -0800 Anton Geraschenko btw, the cleaned-up CSS is now live. Let me know if you notice any anomalies. I did change a couple of things, but they should be pretty difficult to detect (the most obvious: there used to be 7 pixels of white padding above the top bar which holds your name and the logout, faq, and meta links).

]]>
Ben Webster comments on "Handheld CSS" (1377) http://mathoverflow.tqft.net/discussion/128/handheld-css/?Focus=1377#Comment_1377 http://mathoverflow.tqft.net/discussion/128/handheld-css/?Focus=1377#Comment_1377 Sat, 02 Jan 2010 16:27:32 -0800 Ben Webster MO actually mostly works fine on my iPhone. a special mobile interface would probably work even better, admittedly.

]]>
Ilya Nikokoshev comments on "Handheld CSS" (1374) http://mathoverflow.tqft.net/discussion/128/handheld-css/?Focus=1374#Comment_1374 http://mathoverflow.tqft.net/discussion/128/handheld-css/?Focus=1374#Comment_1374 Sat, 02 Jan 2010 15:06:37 -0800 Ilya Nikokoshev There's been some talk about cleaning up the site's CSS, so may be this is a good time to think about a handheld version?

I created a feature request on meta.SE about it, but it's something we can do on our own. Are there are other volunteers to try it (my wifi is currently broken, so no iPod goodness for me for a while)?

]]>