diff --git a/app/assets/stylesheets/common/paginator.css.scss b/app/assets/stylesheets/common/paginator.css.scss index e0a6e3fb5..261406a4b 100644 --- a/app/assets/stylesheets/common/paginator.css.scss +++ b/app/assets/stylesheets/common/paginator.css.scss @@ -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 { diff --git a/app/assets/stylesheets/mobile.css.scss b/app/assets/stylesheets/mobile.css.scss new file mode 100644 index 000000000..4a785ec8f --- /dev/null +++ b/app/assets/stylesheets/mobile.css.scss @@ -0,0 +1,3 @@ +/* + *= require_tree "./mobile" +*/ diff --git a/app/assets/stylesheets/mobile/paginator.css.scss b/app/assets/stylesheets/mobile/paginator.css.scss new file mode 100644 index 000000000..bdbc8d05a --- /dev/null +++ b/app/assets/stylesheets/mobile/paginator.css.scss @@ -0,0 +1,3 @@ +div.paginator { + font-size: 3em; +} diff --git a/app/assets/stylesheets/mobile/posts.css.scss b/app/assets/stylesheets/mobile/posts.css.scss new file mode 100644 index 000000000..4e0f47d30 --- /dev/null +++ b/app/assets/stylesheets/mobile/posts.css.scss @@ -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; +} \ No newline at end of file diff --git a/app/views/layouts/default.html.erb b/app/views/layouts/default.html.erb index bc69f0274..764e95c71 100644 --- a/app/views/layouts/default.html.erb +++ b/app/views/layouts/default.html.erb @@ -17,6 +17,7 @@ <%= 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 %> diff --git a/script/testing/reset_db.sh b/script/testing/reset_db.sh index bfd47c493..f9d659cf7 100755 --- a/script/testing/reset_db.sh +++ b/script/testing/reset_db.sh @@ -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