diff --git a/app/javascript/src/styles/base/020_base.scss b/app/javascript/src/styles/base/020_base.scss index 5e66418d0..50aff74b2 100644 --- a/app/javascript/src/styles/base/020_base.scss +++ b/app/javascript/src/styles/base/020_base.scss @@ -137,3 +137,12 @@ ul.list-inline { display: inline; } } + +.mobile-only { + display: none; + @media (max-width: 660px) { display: initial; } +} + +.desktop-only { + @media (max-width: 660px) { display: none; } +} diff --git a/app/javascript/src/styles/specific/z_responsive.scss b/app/javascript/src/styles/specific/z_responsive.scss index 88d47040c..470344b27 100644 --- a/app/javascript/src/styles/specific/z_responsive.scss +++ b/app/javascript/src/styles/specific/z_responsive.scss @@ -1,26 +1,6 @@ @import "../base/000_vars.scss"; -#desktop-version-link { - display: none; -} - -#searchbox-redirect-link { - display: none; -} - @media screen and (max-width: 660px) { - #keyboard-shortcuts-link { - display: none; - } - - #desktop-version-link { - display: inline; - } - - #searchbox-redirect-link { - display: inline; - } - #saved-searches-nav { display: none; } diff --git a/app/views/layouts/default.html.erb b/app/views/layouts/default.html.erb index a68d9b1a5..215c114bc 100644 --- a/app/views/layouts/default.html.erb +++ b/app/views/layouts/default.html.erb @@ -103,7 +103,7 @@

<%= link_to Danbooru.config.app_name, "/" %>

-
+
diff --git a/app/views/posts/index.html.erb b/app/views/posts/index.html.erb index 8c6f940d5..a843d73c0 100644 --- a/app/views/posts/index.html.erb +++ b/app/views/posts/index.html.erb @@ -36,7 +36,7 @@
  • <%= link_to "Wiki", new_wiki_page_path(wiki_page: { title: @post_set.tag_string }), id: "show-excerpt-link" %>
  • <% end %> - + <%= render "posts/partials/index/edit" %> diff --git a/app/views/static/_footer.html.erb b/app/views/static/_footer.html.erb index 661eb7448..80d7b5e14 100644 --- a/app/views/static/_footer.html.erb +++ b/app/views/static/_footer.html.erb @@ -6,12 +6,12 @@ – <%= link_to "Rules", terms_of_service_path %> – <%= link_to "Contact", contact_path %> <% if CurrentUser.user.enable_post_navigation %> - + – <%= link_to "Keyboard shortcuts", keyboard_shortcuts_path %> <% end %> <% if CurrentUser.is_member? %> - + – <%= link_to "Disable responsive mode", edit_user_path(CurrentUser.id), :rel => "nofollow" %>