mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
More fixes to browse page on mobile
This commit is contained in:
parent
17ef25b572
commit
5f609f2683
2 changed files with 19 additions and 4 deletions
|
@ -1786,3 +1786,14 @@ a.tag:hover {
|
|||
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;
|
||||
}
|
||||
}
|
|
@ -21,7 +21,7 @@
|
|||
<form id="search_criteria" action="/browse" method="GET">
|
||||
<div class="col col-50 filter">
|
||||
<fieldset class="grouping">
|
||||
<label class="text-Label" for="sort_by">Sort By:</label>
|
||||
<label class="text-Label" for="sort_by">Sort by:</label>
|
||||
<div class="select-Container">
|
||||
<select name="sort_by" id="sort_by" class="input-Select">
|
||||
<option value="last_updated" <%= params[:sort_by] == 'last_updated' ? 'selected' : '' %>>Last Updated</option>
|
||||
|
@ -43,7 +43,7 @@
|
|||
<div class="col col-50 filter">
|
||||
<form method="GET" action="browse">
|
||||
<fieldset class="grouping">
|
||||
<label class="text-Label" for="tag">Search by tag:</label>
|
||||
<label class="text-Label" for="tag"><span class="hide-on-mobile">Search by </span>Tag:</label>
|
||||
<input class="input-Area typeahead" id="tag" name="tag" type="text" placeholder="pokemon" value="<%= params[:tag] %>" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" dir="auto">
|
||||
<input style="vertical-align: -4px;margin-left: 4px;" type="submit" class="btn-Action" value="Search">
|
||||
</fieldset>
|
||||
|
@ -79,11 +79,15 @@
|
|||
</div>
|
||||
<div class="site-stats">
|
||||
<a href="/site/<%= site.username %>">
|
||||
<span class="show-on-mobile">
|
||||
<i class="fa fa-eye"></i>
|
||||
</span>
|
||||
<% if params[:sort_by] == 'hits' %>
|
||||
<%= site.hits.format_large_number %> hit<%= site.hits == 1 ? '' : 's' %>
|
||||
<%= site.hits.format_large_number %><span class="hide-on-mobile"> hit<%= site.hits == 1 ? '' : 's' %></span>
|
||||
<% else %>
|
||||
<%= site.views.format_large_number %> view<%= site.views == 1 ? '' : 's' %>
|
||||
<%= site.views.format_large_number %><span class="hide-on-mobile"> view<%= site.views == 1 ? '' : 's' %></span>
|
||||
<% end %>
|
||||
|
||||
</a>
|
||||
</div>
|
||||
<div class="site-tags">
|
||||
|
|
Loading…
Add table
Reference in a new issue