Skip to content
This repository
Browse code

Make news.arc look pretty on small screens such as mobile devices.

  • Loading branch information...
commit 0efaa1b189c4ed54c4f91a7ecf80aeb65edad478 1 parent 6e96f27
Eike Send authored November 06, 2011

Showing 1 changed file with 9 additions and 1 deletion. Show diff stats Hide diff stats

  1. 10  news.arc
10  news.arc
@@ -402,6 +402,7 @@
402 402
      (tag head 
403 403
        (gen-css-url)
404 404
        (prn "<link rel=\"shortcut icon\" href=\"" favicon-url* "\">")
  405
+       (prn "<meta name=\"viewport\" content=\"width=device-width\">")
405 406
        (tag script (pr votejs*))
406 407
        (tag title (pr ,title)))
407 408
      (tag body 
@@ -511,7 +512,14 @@ a:visited { color:#828282; text-decoration:none; }
511 512
 .pagebreak {page-break-before:always}
512 513
 
513 514
 pre { overflow: auto; padding: 2px; max-width:600px; }
514  
-pre:hover {overflow:auto} "))
  515
+pre:hover {overflow:auto} 
  516
+
  517
+@media (max-width: 517px) {
  518
+  body { margin:0; }
  519
+  body > center > table { width:100%; }
  520
+  body > center > table > tbody  > tr:nth-child(1) > td > table td .pagetop b { display:block }
  521
+  body > center > table > tbody  > tr:nth-child(1) > td > table td .pagetop img { display:none }
  522
+}"))
515 523
 
516 524
 ; only need pre padding because of a bug in Mac Firefox
517 525
 

2 notes on commit 0efaa1b

Eike Send

I accidentally committed code to the master branch on nex3's repository. I didn't intend to. I only used the edit button, I thought this would create a fork of this repository, from which I would be able to create a pull request. Is this a repository which anyone can commit to?

This comment on HN explains what this commit does: http://news.ycombinator.com/item?id=3203513

Here is what it looks like on a small screen, when it is applied: http://minus.com/lGBmQmM4CrdHE

Michael DeWitt
Collaborator

Yeah, anyone can commit to this repo (hence the name anarki). If you're trying to make a change to the version of arc used by pg for HN and the other ycombinator apps, you should fork the official branch here, since that's a direct copy of arc3.1. The master branch here has diverged quite a bit since 3.1 came out.

Please sign in to comment.
Something went wrong with that request. Please try again.