Skip to content

Commit e7f5144

Browse files
committed
Make logo-margin work even if search is enabled, see #692 for details
1 parent 1c09962 commit e7f5144

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

‎source/layouts/layout.erb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ under the License.
4242
</span>
4343
</a>
4444
<div class="tocify-wrapper">
45-
<%= image_tag "logo.png" %>
45+
<%= image_tag "logo.png", class: 'logo' %>
4646
<% if language_tabs.any? %>
4747
<div class="lang-selector">
4848
<% language_tabs.each do |lang| %>

‎source/stylesheets/_variables.scss‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ $lang-select-pressed-text: #fff !default; // color of language tab text when mou
5454
////////////////////
5555
$nav-width: 230px !default; // width of the navbar
5656
$examples-width: 50% !default; // portion of the screen taken up by code examples
57-
$logo-margin: 20px !default; // margin between nav items and logo, ignored if search is active
57+
$logo-margin: 0px !default; // margin below logo
5858
$main-padding: 28px !default; // padding to left and right of content & examples
5959
$nav-padding: 15px !default; // padding to left and right of navbar
6060
$nav-v-padding: 10px !default; // padding used vertically around search boxes and results

‎source/stylesheets/screen.css.scss‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ html, body {
110110
}
111111
}
112112

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

117117
.search-results {

0 commit comments

Comments
 (0)