Merge pull request #3016 from evazion/fix-responsive-menu

Fix responsive menu
This commit is contained in:
Albert Yi
2017-05-03 15:33:06 -07:00
committed by GitHub
3 changed files with 12 additions and 15 deletions

View File

@@ -44,15 +44,19 @@
} }
} }
/* Make the quick search box in the navbar full width. */
header#top menu form input {
width: auto;
}
h1 { h1 {
display: none; display: none;
} }
input[type=text], input[type=submit] { form {
font-size: 18pt; input[type=text], input[type=submit], select {
border-color: default; font-size: 1.5em;
border-style: solid; }
border-width: .1rem;
} }
div#page section#content { div#page section#content {
@@ -129,14 +133,6 @@
} }
} }
nav {
background: none;
float: right;
font-size: 1.125em;
width: 100%;
margin-bottom: 1em;
}
#nav { #nav {
display: none; display: none;
} }

View File

@@ -13,7 +13,7 @@ form.simple_form {
margin-bottom: 1em; margin-bottom: 1em;
input[type=text], input[type=file], input[type=password], input[type=email] { input[type=text], input[type=file], input[type=password], input[type=email] {
width: 20em; max-width: 20em;
} }
span.hint { span.hint {
@@ -61,6 +61,7 @@ form.inline-form {
label, input { label, input {
display: table-cell; display: table-cell;
padding-right: 1em; padding-right: 1em;
white-space: nowrap;
} }
} }
} }

View File

@@ -19,5 +19,5 @@
<% if CurrentUser.is_moderator? %> <% if CurrentUser.is_moderator? %>
<%= nav_link_to("Dashboard", moderator_dashboard_path) %> <%= nav_link_to("Dashboard", moderator_dashboard_path) %>
<% end %> <% end %>
<%= nav_link_to("More &raquo;".html_safe, site_map_path, :id => "site-map-link") %> <%= nav_link_to("More&nbsp;&raquo;".html_safe, site_map_path, :id => "site-map-link") %>
</menu> </menu>