Permalink
Browse files

changes for a slightly more acceptable mobile version

  • Loading branch information...
1 parent 810b590 commit 8307d5a8ee9dfecebe9a3635c2d8a5919e49b380 @edsu committed Jun 26, 2012
Showing with 53 additions and 1 deletion.
  1. +1 −0 .gitignore
  2. +50 −0 public/stylesheets/style.css
  3. +2 −1 views/layout.jade
View
@@ -1,2 +1,3 @@
node_modules
config.json
+*.log
@@ -196,3 +196,53 @@ select#wikis {
-o-background-size: cover;
background-size: cover;
}
+
+/* style changes for mobile devices */
+
+@media only screen and (max-device-width: 480px) {
+
+ /*
+ header {
+ display: none;
+ }
+ */
+
+ #controls {
+ display: none;
+ }
+
+ #github {
+ display: none;
+ }
+
+ .update img {
+ display: none;
+ }
+
+ .update .lang {
+ display: none;
+ }
+
+ .update .delta {
+ display: none;
+ }
+
+ .update {
+ border-bottom: thin gray solid;
+ padding-top: 10px;
+ padding-bottom: 10px;
+ }
+
+ #updatePanel {
+ width: 100%;
+ margin: 2px 0px 2px 0px;
+ }
+
+ #about {
+ width: 95%;
+ font-size: 12pt;
+ margin-left: auto;
+ margin-right: auto;
+ }
+
+}
View
@@ -2,6 +2,7 @@
html
head
title= title
+ meta( name='viewport', content='width=device-width, minimum-scale=1.0, maximum-scale=1.0')
link(rel='stylesheet', href='/stylesheets/style.css')
link(rel='stylesheet', href='/stylesheets/smoothness/jquery-ui-1.8.13.custom.css')
link(rel='stylesheet', href='http://fonts.googleapis.com/css?family=Slackey', rel='stylesheet')
@@ -41,7 +42,7 @@ html
| |
a(href="/about/") About
- a(href="http://github.com/edsu/wikistream")
+ a(id="github", href="http://github.com/edsu/wikistream")
img(style="position: absolute; top: 0; right: 0; border: 0; z-index: 3;", src="http://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png", alt="Fork me on GitHub")
br
div(id="content")!= body

0 comments on commit 8307d5a

Please sign in to comment.