This repository has been archived by the owner on Dec 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjustable logo height using variables
- Loading branch information
1 parent
0188bdc
commit 7903e33
Showing
8 changed files
with
83 additions
and
15 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
30 changes: 30 additions & 0 deletions
30
web/themes/iucn_frontend/templates/block/block--system-branding-block.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{% extends "block--bare.html.twig" %} | ||
{# | ||
/** | ||
* @file | ||
* Default theme implementation for a branding block. | ||
* | ||
* Each branding element variable (logo, name, slogan) is only available if | ||
* enabled in the block configuration. | ||
* | ||
* Available variables: | ||
* - site_logo: Logo for site as defined in Appearance or theme settings. | ||
* - site_name: Name for site as defined in Site information settings. | ||
* - site_slogan: Slogan for site as defined in Site information settings. | ||
* | ||
* @ingroup templates | ||
*/ | ||
#} | ||
{% block content %} | ||
{% if site_logo %} | ||
<a class="logo navbar-btn pull-left" href="{{ path('<front>') }}" title="{{ 'Home'|t }}" rel="home"> | ||
<img src="{{ site_logo }}" alt="{{ 'Home'|t }}" /> | ||
</a> | ||
{% endif %} | ||
{% if site_name %} | ||
<a class="name navbar-brand sr-only" href="{{ path('<front>') }}" title="{{ 'Home'|t }}" rel="home">{{ site_name }}</a> | ||
{% endif %} | ||
{% if site_slogan %} | ||
<p class="navbar-text">{{ site_slogan }}</p> | ||
{% endif %} | ||
{% endblock %} |