Skip to content

Commit

Permalink
Merge pull request #4284 from gocemitevski/site-logo-height
Browse files Browse the repository at this point in the history
Limit maximum height of site logo to scale down very large images
  • Loading branch information
Konstantin Sivakov committed Jun 11, 2018
2 parents 61a8b19 + 1864aa2 commit 0c69a13
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
11 changes: 8 additions & 3 deletions ckan/public-bs2/base/less/masthead.less
Expand Up @@ -24,13 +24,13 @@
span.text {
margin: 0 2px 0 4px;
}

span.text {
position: absolute;
top: -9999px;
left: -9999px;
}

&:hover {
color: mix(@mastheadBackgroundColor, @mastheadLinkColor, 15%);
background-color: darken(@mastheadBackgroundColor, 15%);
Expand Down Expand Up @@ -118,7 +118,12 @@
white-space: nowrap;
}
}

.logo{
display: inline-block;
img{
max-height: @logoMaxHeight;
}
}
.nav-collapse {
padding-top:10px;
}
Expand Down
1 change: 1 addition & 0 deletions ckan/public-bs2/base/less/variables.less
Expand Up @@ -12,6 +12,7 @@
@layoutBackgroundColor: #eee;
@layoutTrimBackgroundColor: #fff;
@layoutTrimBorderColor: #ccc;
@logoMaxHeight: 55px;

@navLinkColor: #333;
@navActiveBackgroundColor: #f6f6f6;
Expand Down
6 changes: 6 additions & 0 deletions ckan/public/base/less/masthead.less
Expand Up @@ -113,6 +113,12 @@
white-space: nowrap;
}
}
.logo{
display: inline-block;
img{
max-height: @logoMaxHeight;
}
}
.navbar-collapse {
padding: @grid-gutter-width/3 0;
}
Expand Down
1 change: 1 addition & 0 deletions ckan/public/base/less/variables.less
Expand Up @@ -12,6 +12,7 @@
@layoutBackgroundColor: #eee;
@layoutTrimBackgroundColor: #fff;
@layoutTrimBorderColor: #ccc;
@logoMaxHeight: 60px;

@navLinkColor: #333;
@navActiveBackgroundColor: #f6f6f6;
Expand Down

0 comments on commit 0c69a13

Please sign in to comment.