better mobile css support
This commit is contained in:
@@ -3,9 +3,7 @@
|
|||||||
div.paginator {
|
div.paginator {
|
||||||
display: block;
|
display: block;
|
||||||
padding: 2em 0 1em 0;
|
padding: 2em 0 1em 0;
|
||||||
font-size: 2em;
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-weight: bold;
|
|
||||||
clear: both;
|
clear: both;
|
||||||
|
|
||||||
li {
|
li {
|
||||||
|
|||||||
3
app/assets/stylesheets/mobile.css.scss
Normal file
3
app/assets/stylesheets/mobile.css.scss
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
/*
|
||||||
|
*= require_tree "./mobile"
|
||||||
|
*/
|
||||||
3
app/assets/stylesheets/mobile/paginator.css.scss
Normal file
3
app/assets/stylesheets/mobile/paginator.css.scss
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
div.paginator {
|
||||||
|
font-size: 3em;
|
||||||
|
}
|
||||||
15
app/assets/stylesheets/mobile/posts.css.scss
Normal file
15
app/assets/stylesheets/mobile/posts.css.scss
Normal 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;
|
||||||
|
}
|
||||||
@@ -17,6 +17,7 @@
|
|||||||
<meta name="default-image-size" content="<%= CurrentUser.user.default_image_size %>">
|
<meta name="default-image-size" content="<%= CurrentUser.user.default_image_size %>">
|
||||||
<%= auto_discovery_link_tag :atom, posts_path(:format => "atom", :tags => params[:tags]) %>
|
<%= auto_discovery_link_tag :atom, posts_path(:format => "atom", :tags => params[:tags]) %>
|
||||||
<%= stylesheet_link_tag "application", :media => "screen" %>
|
<%= 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" %>
|
<%= javascript_include_tag "application" %>
|
||||||
<%= Danbooru.config.custom_html_header_content %>
|
<%= Danbooru.config.custom_html_header_content %>
|
||||||
<%= yield :html_header %>
|
<%= yield :html_header %>
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# bundle exec rake db:drop db:create
|
bundle exec rake db:drop db:create
|
||||||
# bundle exec rake db:migrate
|
bundle exec rake db:migrate
|
||||||
# bundle exec rake db:seed
|
bundle exec rake db:seed
|
||||||
|
|
||||||
dropdb danbooru2
|
# dropdb danbooru2
|
||||||
createdb danbooru2
|
# createdb danbooru2
|
||||||
psql danbooru2 < db/danbooru1.struct.sql
|
# psql danbooru2 < db/danbooru1.struct.sql
|
||||||
psql danbooru2 < script/upgrade_schema.sql
|
# psql danbooru2 < script/upgrade_schema.sql
|
||||||
|
|||||||
Reference in New Issue
Block a user