Skip to content

Commit

Permalink
Make logo-margin work even if search is enabled, see #692 for details
Browse files Browse the repository at this point in the history
  • Loading branch information
lord committed Feb 24, 2017
1 parent 1c09962 commit e7f5144
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion source/layouts/layout.erb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ under the License.
</span>
</a>
<div class="tocify-wrapper">
<%= image_tag "logo.png" %>
<%= image_tag "logo.png", class: 'logo' %>
<% if language_tabs.any? %>
<div class="lang-selector">
<% language_tabs.each do |lang| %>
Expand Down
2 changes: 1 addition & 1 deletion source/stylesheets/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ $lang-select-pressed-text: #fff !default; // color of language tab text when mou
////////////////////
$nav-width: 230px !default; // width of the navbar
$examples-width: 50% !default; // portion of the screen taken up by code examples
$logo-margin: 20px !default; // margin between nav items and logo, ignored if search is active
$logo-margin: 0px !default; // margin below logo
$main-padding: 28px !default; // padding to left and right of content & examples
$nav-padding: 15px !default; // padding to left and right of navbar
$nav-v-padding: 10px !default; // padding used vertically around search boxes and results
Expand Down
4 changes: 2 additions & 2 deletions source/stylesheets/screen.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ html, body {
}
}

img+.tocify, .lang-selector+.tocify {
margin-top: $logo-margin;
.logo {
margin-bottom: $logo-margin;
}

.search-results {
Expand Down

0 comments on commit e7f5144

Please sign in to comment.