Skip to content
This repository has been archived by the owner on Dec 8, 2020. It is now read-only.

Commit

Permalink
Merge pull request #24 from IUCN-ELC/update_logo
Browse files Browse the repository at this point in the history
Update logo
  • Loading branch information
melish authored Nov 27, 2018
2 parents fa933bf + 7903e33 commit cc71954
Show file tree
Hide file tree
Showing 12 changed files with 188 additions and 47 deletions.
42 changes: 36 additions & 6 deletions web/themes/iucn_frontend/assets/css/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion web/themes/iucn_frontend/assets/css/style.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion web/themes/iucn_frontend/assets/css/style.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion web/themes/iucn_frontend/assets/css/style.min.css.map

Large diffs are not rendered by default.

33 changes: 33 additions & 0 deletions web/themes/iucn_frontend/assets/img/logos/iucn.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 9 additions & 1 deletion web/themes/iucn_frontend/less/footer.less
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ body {
a {
display: block;
}
img {
max-width: 100%;
}
}
}

Expand Down Expand Up @@ -70,7 +73,8 @@ body {
text-align: center;

.logos {
display: inline-block;
align-items: center;
display: inline-flex;
float: none;
}
}
Expand All @@ -80,3 +84,7 @@ body {
float: none;
}
}

.iucn-logo {
margin-right: 1em;
}
11 changes: 6 additions & 5 deletions web/themes/iucn_frontend/less/jumbotron.less
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

.path-frontpage & {
// background-position: center bottom;
height: calc(100vh - 182px);
height: calc(100vh - 182px - @navbar-increase);
margin-bottom: 0;
min-height: 231px;

Expand Down Expand Up @@ -139,19 +139,20 @@
@media (max-width: 767px) {
.jumbotron {
.path-frontpage & {
height: calc(100vh - 239px);
height: calc(100vh - 239px - @navbar-increase);
min-height: 340px;
}

.path-frontpage #sliding-popup ~ & {
height: calc(100vh - 286px);
height: calc(100vh - 286px - @navbar-increase);
}

.path-frontpage.toolbar-fixed & {
height: calc(100vh - 278px);
height: calc(100vh - 278px - @navbar-increase);
}

.path-frontpage.toolbar-fixed.toolbar-tray-open & {
height: calc(100vh - 318px);
height: calc(100vh - 318px - @navbar-increase);
}
}
}
20 changes: 20 additions & 0 deletions web/themes/iucn_frontend/less/navbar.less
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@
margin-right: 20px;
margin-top: 12px;
padding-right: 0;
height: @navbar-logo-height--mobile;
@media (min-width: 1200px) {
height: @navbar-logo-height;
}
img {
height: 100%;
width: auto;
}
}
}

Expand All @@ -26,3 +34,15 @@
}
}
}

@media (min-width: 1200px) {
.navbar-nav>li>a {
padding-top: (33px + (@navbar-increase / 2));
padding-bottom: (33px + (@navbar-increase / 2));
}
}

.navbar-toggle {
margin-top: (27px + (@navbar-increase--mobile / 2));
margin-bottom: (27px + (@navbar-increase--mobile / 2));
}
6 changes: 6 additions & 0 deletions web/themes/iucn_frontend/less/variables.less
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
@node-modules: "../node_modules";

@navbar-logo-height: 90px;
@navbar-logo-height--mobile: 80px;
// Variable used to increase the site logo height across page components (e.g. jumbotron height, main menu item paddings)
@navbar-increase: (@navbar-logo-height - 64px);
@navbar-increase--mobile: (@navbar-logo-height--mobile - 64px);
Loading

0 comments on commit cc71954

Please sign in to comment.