tea.mathoverflow.net - Discussion Feed (Handheld CSS) 2018-11-04T13:42:58-08:00 http://mathoverflow.tqft.net/ Lussumo Vanilla & Feed Publisher Harald Hanche-Olsen comments on "Handheld CSS" (1430) http://mathoverflow.tqft.net/discussion/128/handheld-css/?Focus=1430#Comment_1430 2010-01-04T15:12:44-08:00 2018-11-04T13:42:58-08:00 Harald Hanche-Olsen http://mathoverflow.tqft.net/account/18/ @Ilya: Thanks; that is useful information. @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 2010-01-04T14:04:27-08:00 2018-11-04T13:42:58-08:00 Ilya Nikokoshev http://mathoverflow.tqft.net/account/22/ @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 ... @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 2010-01-04T13:33:38-08:00 2018-11-04T13:42:58-08:00 Harald Hanche-Olsen http://mathoverflow.tqft.net/account/18/ @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 ... @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 2010-01-04T11:52:50-08:00 2018-11-04T13:42:58-08:00 Ilya Nikokoshev http://mathoverflow.tqft.net/account/22/ 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%; } ... 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 2010-01-03T07:14:14-08:00 2018-11-04T13:42:58-08:00 Harald Hanche-Olsen http://mathoverflow.tqft.net/account/18/ @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 ... @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 2010-01-02T20:56:38-08:00 2018-11-04T13:42:58-08:00 Anton Geraschenko http://mathoverflow.tqft.net/account/2/ @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: 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 2010-01-02T20:37:30-08:00 2018-11-04T13:42:58-08:00 rwbarton http://mathoverflow.tqft.net/account/6/ I noticed, on the Recent Activity page, the divs which say things like "1\n10" or "acc\n15" are no longer on a gray or green background respectively. Anton Geraschenko comments on "Handheld CSS" (1381) http://mathoverflow.tqft.net/discussion/128/handheld-css/?Focus=1381#Comment_1381 2010-01-02T19:55:37-08:00 2018-11-04T13:42:58-08:00 Anton Geraschenko http://mathoverflow.tqft.net/account/2/ 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 ... 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 2010-01-02T16:27:32-08:00 2018-11-04T13:42:58-08:00 Ben Webster http://mathoverflow.tqft.net/account/21/ MO actually mostly works fine on my iPhone. a special mobile interface would probably work even better, admittedly. 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 2010-01-02T15:06:37-08:00 2018-11-04T13:42:58-08:00 Ilya Nikokoshev http://mathoverflow.tqft.net/account/22/ 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 ... 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)?

]]>