Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 0efaa1b189c4ed54c4f91a7ecf80aeb65edad478 1 parent 6e96f27
Eike Send eikes authored
Showing with 9 additions and 1 deletion.
  1. +9 −1 news.arc
10 news.arc
View
@@ -402,6 +402,7 @@
(tag head
(gen-css-url)
(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

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.