Browse files

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

  • Loading branch information...
1 parent 6e96f27 commit 0efaa1b189c4ed54c4f91a7ecf80aeb65edad478 @eikes eikes committed Nov 6, 2011
Showing with 9 additions and 1 deletion.
  1. +9 −1 news.arc
@@ -402,6 +402,7 @@
(tag head
(prn "<link rel=\"shortcut icon\" href=\"" favicon-url* "\">")
+ (prn "<meta name=\"viewport\" content=\"width=device-width\">")
(tag script (pr votejs*))
(tag title (pr ,title)))
(tag body
@@ -511,7 +512,14 @@ a:visited { color:#828282; text-decoration:none; }
.pagebreak {page-break-before:always}
pre { overflow: auto; padding: 2px; max-width:600px; }
-pre:hover {overflow:auto} "))
+pre:hover {overflow:auto}
+@media (max-width: 517px) {
+ body { margin:0; }
+ body > center > table { width:100%; }
+ body > center > table > tbody > tr:nth-child(1) > td > table td .pagetop b { display:block }
+ body > center > table > tbody > tr:nth-child(1) > td > table td .pagetop img { display:none }
; only need pre padding because of a bug in Mac Firefox

2 comments on commit 0efaa1b

eikes commented on 0efaa1b Nov 6, 2011

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:

Here is what it looks like on a small screen, when it is applied:

mjdwitt commented on 0efaa1b Nov 7, 2011

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.