better mobile css support

This commit is contained in:
albert
2011-12-16 16:57:49 -05:00
parent 4e99ca2613
commit de1c263357
6 changed files with 29 additions and 9 deletions

View File

@@ -3,9 +3,7 @@
div.paginator {
display: block;
padding: 2em 0 1em 0;
font-size: 2em;
text-align: center;
font-weight: bold;
clear: both;
li {

View File

@@ -0,0 +1,3 @@
/*
*= require_tree "./mobile"
*/

View File

@@ -0,0 +1,3 @@
div.paginator {
font-size: 3em;
}

View File

@@ -0,0 +1,15 @@
a.search-inc-tag {
display: none;
}
a.search-exl-tag {
display: none;
}
.post-count {
display: none;
}
section#mode-box {
display: none;
}

View File

@@ -17,6 +17,7 @@
<meta name="default-image-size" content="<%= CurrentUser.user.default_image_size %>">
<%= auto_discovery_link_tag :atom, posts_path(:format => "atom", :tags => params[:tags]) %>
<%= stylesheet_link_tag "application", :media => "screen" %>
<%= stylesheet_link_tag "mobile", :media => "only screen and (max-width: 480px), only screen and (max-device-width: 480px)" %>
<%= javascript_include_tag "application" %>
<%= Danbooru.config.custom_html_header_content %>
<%= yield :html_header %>

View File

@@ -1,10 +1,10 @@
#!/usr/bin/env bash
# bundle exec rake db:drop db:create
# bundle exec rake db:migrate
# bundle exec rake db:seed
bundle exec rake db:drop db:create
bundle exec rake db:migrate
bundle exec rake db:seed
dropdb danbooru2
createdb danbooru2
psql danbooru2 < db/danbooru1.struct.sql
psql danbooru2 < script/upgrade_schema.sql
# dropdb danbooru2
# createdb danbooru2
# psql danbooru2 < db/danbooru1.struct.sql
# psql danbooru2 < script/upgrade_schema.sql