Skip to content

Commit

Permalink
Merge pull request #36 from contao-themes-net/bugfix/header-image
Browse files Browse the repository at this point in the history
bugfix for header image and megamenu
  • Loading branch information
MDevster authored Dec 13, 2021
2 parents 253f633 + 81f4ef0 commit abbcd96
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## [1.7.2](https://github.com/contao-themes-net/nature-theme-bundle/tree/1.7.2) – 2021-12-13

- [fix] bufixes for header image and megamenu

## [1.7.1](https://github.com/contao-themes-net/nature-theme-bundle/tree/1.7.1) – 2021-12-03

- [fix] update social feed template
Expand Down
2 changes: 1 addition & 1 deletion src/Module/NatureThemeSetup.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

class NatureThemeSetup extends \BackendModule
{
const VERSION = '1.7.1';
const VERSION = '1.7.2';

protected $strTemplate = 'be_naturetheme_setup';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<meta property="og:title" content="<?php echo $this->pageTitle; ?> - <?php echo $this->mainTitle; ?>" />
<meta property="og:description" content="<?php echo $this->description; ?>" />
<meta property="og:url" content="{{env::url}}/{{env::request}}" />
<?php if($GLOBALS['og:image']) echo '<meta property="og:image" content="'.$GLOBALS['og:image'].'" />'; ?>
<?php if(array_key_exists('og:image', $GLOBALS)) echo '<meta property="og:image" content="'.$GLOBALS['og:image'].'" />'; ?>

<link rel="shortcut icon" href="files/naturetheme/img/favicon.ico" type="image/x-icon" />

Expand Down
14 changes: 12 additions & 2 deletions src/Resources/public/scss/parts/header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,14 @@
padding-top: 160px;
}

.header-image .image_container {
height: 620px;
.header-image {
.image_container {
height: 620px;
}

&.large-headerimage .image_container {
height: 820px;
}
}

.mod_navigation.navbar {
Expand All @@ -418,5 +424,9 @@
padding: 0;
}
}

.megamenu .navbar-item .navbar-dropdown.level_2 {
margin-top: -25px;
}
}
}

0 comments on commit abbcd96

Please sign in to comment.