From 5f609f2683615f6826a57472a87447fbf138e36b Mon Sep 17 00:00:00 2001 From: Victoria Wang Date: Fri, 13 Mar 2015 17:13:44 -0500 Subject: [PATCH] More fixes to browse page on mobile --- sass/_project-sass/_project-Main.scss | 11 +++++++++++ views/browse.erb | 12 ++++++++---- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/sass/_project-sass/_project-Main.scss b/sass/_project-sass/_project-Main.scss index 15c185d4..9d012717 100644 --- a/sass/_project-sass/_project-Main.scss +++ b/sass/_project-sass/_project-Main.scss @@ -1785,4 +1785,15 @@ a.tag:hover { blockquote:before, blockquote:after { content: none; } +} +.hide-on-mobile { + @media (max-device-width:480px), screen and (max-width:800px) { + display: none; + } +} +.show-on-mobile { + display: none; + @media (max-device-width:480px), screen and (max-width:800px) { + display: inline; + } } \ No newline at end of file diff --git a/views/browse.erb b/views/browse.erb index 940afbab..564bb381 100644 --- a/views/browse.erb +++ b/views/browse.erb @@ -21,7 +21,7 @@
- +
@@ -79,11 +79,15 @@