Style all logos uniformly independent of the edition

pull/7508/head
Henriette Dinger 5 years ago
parent 80986670cf
commit 558c1e71e3
  1. 8
      app/assets/stylesheets/layout/_top_menu.sass
  2. 6
      app/views/custom_styles/_inline_css.erb

@ -60,12 +60,14 @@ $search-input-height: 30px
left: calc(50% - 230px / 2)
.home-link
margin-top: 15px
margin-top: 12px
display: block
height: 30px
background: $header-home-link-bg
background-size: 140px
height: 42px
text-indent: -9999em
background-position: center
background-size: contain
background-repeat: no-repeat
#top-menu
@include varprop(background-color, header-bg-color)

@ -30,13 +30,7 @@ See doc/COPYRIGHT.rdoc for more details.
<style type="text/css">
<% if CustomStyle.current.logo.present? %>
#logo .home-link {
margin-top: 12px;
width: 230px;
height: 30px;
background-image: url("<%= custom_style_logo_path(digest: CustomStyle.current.digest, filename: CustomStyle.current.logo_identifier) %>");
background-repeat: no-repeat;
background-position: center;
background-size: contain;
}
<% end %>

Loading…
Cancel
Save