Skip to content

Commit

Permalink
Merge pull request #69 from contao-themes-net/change-font-paths
Browse files Browse the repository at this point in the history
1.11.1
  • Loading branch information
MDevster authored Feb 15, 2023
2 parents 1566a08 + b04f17b commit db5ea3f
Show file tree
Hide file tree
Showing 25 changed files with 1,273 additions and 1,250 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ Types of changes
Security in case of vulnerabilities.
)

## [1.11.1](https://github.com/contao-themes-net/nature-theme-bundle/tree/1.11.1) – 2023-02-13

- [Changed] Change font paths
- [Changed] Change sql files for Contao 4.13
- [Fixed] Fix smooth scroll javascript (return nothing if href is empty)
- [Fixed] Fix error messages styles
- [Fixed] Fix link color in hero element

## [1.11.0](https://github.com/contao-themes-net/nature-theme-bundle/tree/1.11.0) – 2022-11-30

- [Added] Add multi domain support
Expand Down
2 changes: 1 addition & 1 deletion src/ContaoManager/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/*
* nature theme bundle for Contao Open Source CMS
*
* Copyright (C) 2022 pdir / digital agentur <[email protected]>
* Copyright (C) 2023 pdir / digital agentur <[email protected]>
*
* @package contao-themes-net/nature-theme-bundle
* @link https://github.com/contao-themes-net/nature-theme-bundle
Expand Down
2 changes: 1 addition & 1 deletion src/ContaoThemesNetNatureThemeBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/*
* nature theme bundle for Contao Open Source CMS
*
* Copyright (C) 2022 pdir / digital agentur <[email protected]>
* Copyright (C) 2023 pdir / digital agentur <[email protected]>
*
* @package contao-themes-net/nature-theme-bundle
* @link https://github.com/contao-themes-net/nature-theme-bundle
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/*
* nature theme bundle for Contao Open Source CMS
*
* Copyright (C) 2022 pdir / digital agentur <[email protected]>
* Copyright (C) 2023 pdir / digital agentur <[email protected]>
*
* @package contao-themes-net/nature-theme-bundle
* @link https://github.com/contao-themes-net/nature-theme-bundle
Expand Down
2 changes: 1 addition & 1 deletion src/Element/SliderElementNature.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/*
* nature theme bundle for Contao Open Source CMS
*
* Copyright (C) 2022 pdir / digital agentur <[email protected]>
* Copyright (C) 2023 pdir / digital agentur <[email protected]>
*
* @package contao-themes-net/nature-theme-bundle
* @link https://github.com/contao-themes-net/nature-theme-bundle
Expand Down
2 changes: 1 addition & 1 deletion src/Element/TabsNavElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/*
* nature theme bundle for Contao Open Source CMS
*
* Copyright (C) 2022 pdir / digital agentur <[email protected]>
* Copyright (C) 2023 pdir / digital agentur <[email protected]>
*
* @package contao-themes-net/nature-theme-bundle
* @link https://github.com/contao-themes-net/nature-theme-bundle
Expand Down
2 changes: 1 addition & 1 deletion src/Element/TabsStartElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/*
* nature theme bundle for Contao Open Source CMS
*
* Copyright (C) 2022 pdir / digital agentur <[email protected]>
* Copyright (C) 2023 pdir / digital agentur <[email protected]>
*
* @package contao-themes-net/nature-theme-bundle
* @link https://github.com/contao-themes-net/nature-theme-bundle
Expand Down
2 changes: 1 addition & 1 deletion src/Element/TabsStopElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/*
* nature theme bundle for Contao Open Source CMS
*
* Copyright (C) 2022 pdir / digital agentur <[email protected]>
* Copyright (C) 2023 pdir / digital agentur <[email protected]>
*
* @package contao-themes-net/nature-theme-bundle
* @link https://github.com/contao-themes-net/nature-theme-bundle
Expand Down
2 changes: 1 addition & 1 deletion src/Element/TextModalElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/*
* nature theme bundle for Contao Open Source CMS
*
* Copyright (C) 2022 pdir / digital agentur <[email protected]>
* Copyright (C) 2023 pdir / digital agentur <[email protected]>
*
* @package contao-themes-net/nature-theme-bundle
* @link https://github.com/contao-themes-net/nature-theme-bundle
Expand Down
4 changes: 2 additions & 2 deletions src/Module/NatureThemeSetup.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/*
* nature theme bundle for Contao Open Source CMS
*
* Copyright (C) 2022 pdir / digital agentur <[email protected]>
* Copyright (C) 2023 pdir / digital agentur <[email protected]>
*
* @package contao-themes-net/nature-theme-bundle
* @link https://github.com/contao-themes-net/nature-theme-bundle
Expand All @@ -26,7 +26,7 @@

class NatureThemeSetup extends BackendModule
{
public const VERSION = '1.11.0';
public const VERSION = '1.11.1';

protected $strTemplate = 'be_naturetheme_setup';

Expand Down
2 changes: 1 addition & 1 deletion src/Resources/contao/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/*
* nature theme bundle for Contao Open Source CMS
*
* Copyright (C) 2022 pdir / digital agentur <[email protected]>
* Copyright (C) 2023 pdir / digital agentur <[email protected]>
*
* @package contao-themes-net/nature-theme-bundle
* @link https://github.com/contao-themes-net/nature-theme-bundle
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/contao/dca/tl_content.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/*
* nature theme bundle for Contao Open Source CMS
*
* Copyright (C) 2022 pdir / digital agentur <[email protected]>
* Copyright (C) 2023 pdir / digital agentur <[email protected]>
*
* @package contao-themes-net/nature-theme-bundle
* @link https://github.com/contao-themes-net/nature-theme-bundle
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/contao/languages/de/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/*
* nature theme bundle for Contao Open Source CMS
*
* Copyright (C) 2022 pdir / digital agentur <[email protected]>
* Copyright (C) 2023 pdir / digital agentur <[email protected]>
*
* @package contao-themes-net/nature-theme-bundle
* @link https://github.com/contao-themes-net/nature-theme-bundle
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/contao/languages/de/tl_content.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/*
* nature theme bundle for Contao Open Source CMS
*
* Copyright (C) 2022 pdir / digital agentur <[email protected]>
* Copyright (C) 2023 pdir / digital agentur <[email protected]>
*
* @package contao-themes-net/nature-theme-bundle
* @link https://github.com/contao-themes-net/nature-theme-bundle
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/contao/languages/en/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/*
* nature theme bundle for Contao Open Source CMS
*
* Copyright (C) 2022 pdir / digital agentur <[email protected]>
* Copyright (C) 2023 pdir / digital agentur <[email protected]>
*
* @package contao-themes-net/nature-theme-bundle
* @link https://github.com/contao-themes-net/nature-theme-bundle
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/contao/languages/en/tl_content.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/*
* nature theme bundle for Contao Open Source CMS
*
* Copyright (C) 2022 pdir / digital agentur <[email protected]>
* Copyright (C) 2023 pdir / digital agentur <[email protected]>
*
* @package contao-themes-net/nature-theme-bundle
* @link https://github.com/contao-themes-net/nature-theme-bundle
Expand Down
4 changes: 4 additions & 0 deletions src/Resources/public/js/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ jQuery(document).ready(function($) {
href = href.substr(0,href.indexOf('#'));
href = href.replace('./','');

if( href === '' ) {
return;
}

var path = window.location.pathname;
path = path.replace('/','');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ $darkMode_input-focus-border-color: $grey-darker;
background: $darkMode_boxes-background;
color: $darkMode_boxes-color;

h1, h2, h3, h4, h5, h6, a, strong {
h1, h2, h3, h4, h5, h6, strong {
color: $darkMode_boxes-color;
}
}
Expand Down
74 changes: 37 additions & 37 deletions src/Resources/public/scss/fonts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,76 +4,76 @@
font-weight: 100;
font-display: swap;
src: local('Roboto Slab Thin'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-thin-webfont.woff2') format('woff2'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-thin-webfont.woff') format('woff'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-thin-webfont.ttf') format('ttf'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-thin-webfont.eot') format('eot');
url('/bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-thin-webfont.woff2') format('woff2'),
url('/bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-thin-webfont.woff') format('woff'),
url('/bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-thin-webfont.ttf') format('ttf'),
url('/bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-thin-webfont.eot') format('eot');
}
@font-face {
font-family: 'Roboto Slab Light';
font-style: normal;
font-weight: 300;
font-display: swap;
src: local('Roboto Slab Light'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-light-webfont.woff2') format('woff2'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-light-webfont.woff') format('woff'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-light-webfont.ttf') format('ttf'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-light-webfont.eot') format('eot');
url('/bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-light-webfont.woff2') format('woff2'),
url('/bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-light-webfont.woff') format('woff'),
url('/bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-light-webfont.ttf') format('ttf'),
url('/bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-light-webfont.eot') format('eot');
}
@font-face {
font-family: 'Roboto Slab';
font-style: normal;
font-weight: 400;
font-display: swap;
src: local('Roboto Slab'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-regular-webfont.woff2') format('woff2'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-regular-webfont.woff') format('woff'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-regular-webfont.ttf') format('ttf'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-regular-webfont.eot') format('eot');
url('/bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-regular-webfont.woff2') format('woff2'),
url('/bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-regular-webfont.woff') format('woff'),
url('/bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-regular-webfont.ttf') format('ttf'),
url('/bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-regular-webfont.eot') format('eot');
}
@font-face {
font-family: 'Roboto Slab';
font-style: normal;
font-weight: 700;
font-display: swap;
src: local('Roboto Slab Bold'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-bold-webfont.woff2') format('woff2'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-bold-webfont.woff') format('woff'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-bold-webfont.ttf') format('ttf'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-bold-webfont.eot') format('eot');
url('/bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-bold-webfont.woff2') format('woff2'),
url('/bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-bold-webfont.woff') format('woff'),
url('/bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-bold-webfont.ttf') format('ttf'),
url('/bundles/contaothemesnetnaturetheme/fonts/robotoslab/robotoslab-bold-webfont.eot') format('eot');
}
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 100;
font-display: swap;
src: local('Roboto Thin'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-thin-webfont.woff2') format('woff2'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-thin-webfont.woff') format('woff'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-thin-webfont.ttf') format('ttf'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-thin-webfont.eot') format('eot');
url('/bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-thin-webfont.woff2') format('woff2'),
url('/bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-thin-webfont.woff') format('woff'),
url('/bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-thin-webfont.ttf') format('ttf'),
url('/bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-thin-webfont.eot') format('eot');
}
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 300;
font-display: swap;
src: local('Roboto Light'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-light-webfont.woff2') format('woff2'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-light-webfont.woff') format('woff'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-light-webfont.ttf') format('ttf'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-light-webfont.eot') format('eot');
url('/bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-light-webfont.woff2') format('woff2'),
url('/bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-light-webfont.woff') format('woff'),
url('/bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-light-webfont.ttf') format('ttf'),
url('/bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-light-webfont.eot') format('eot');
}
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 400;
font-display: swap;
src: local('Roboto'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-regular-webfont.woff2') format('woff2'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-regular-webfont.woff') format('woff'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-regular-webfont.ttf') format('ttf'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-regular-webfont.eot') format('eot');
url('/bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-regular-webfont.woff2') format('woff2'),
url('/bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-regular-webfont.woff') format('woff'),
url('/bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-regular-webfont.ttf') format('ttf'),
url('/bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-regular-webfont.eot') format('eot');
}

@font-face {
Expand All @@ -82,19 +82,19 @@
font-weight: 700;
font-display: swap;
src: local('Roboto Bold'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-bold-webfont.woff2') format('woff2'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-bold-webfont.woff') format('woff'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-bold-webfont.ttf') format('ttf'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-bold-webfont.eot') format('eot');
url('/bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-bold-webfont.woff2') format('woff2'),
url('/bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-bold-webfont.woff') format('woff'),
url('/bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-bold-webfont.ttf') format('ttf'),
url('/bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-bold-webfont.eot') format('eot');
}
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 900;
font-display: swap;
src: local('Roboto Black'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-black-webfont.woff2') format('woff2'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-black-webfont.woff') format('woff'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-black-webfont.ttf') format('ttf'),
url('../../../bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-black-webfont.eot') format('eot');
}
url('/bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-black-webfont.woff2') format('woff2'),
url('/bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-black-webfont.woff') format('woff'),
url('/bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-black-webfont.ttf') format('ttf'),
url('/bundles/contaothemesnetnaturetheme/fonts/roboto/roboto-black-webfont.eot') format('eot');
}
2 changes: 1 addition & 1 deletion src/Resources/public/scss/parts/elements.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1211,7 +1211,7 @@ h1, h2, h3, h4, h5, h6 {
background: $boxes-background;
color: $boxes-color;

h1, h2, h3, h4, h5, h6, a, strong {
h1, h2, h3, h4, h5, h6, strong {
color: $boxes-color;
}
}
Expand Down
5 changes: 5 additions & 0 deletions src/Resources/public/scss/parts/modules.scss
Original file line number Diff line number Diff line change
Expand Up @@ -813,6 +813,11 @@ body:not(.home) #header .inside {
display: none;
}

p.error {
padding: 0 0.75rem;
color: $danger;
}

.submit {
@extend .button;
@extend .is-primary;
Expand Down
2 changes: 1 addition & 1 deletion src/ThemeUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/*
* nature theme bundle for Contao Open Source CMS
*
* Copyright (C) 2022 pdir / digital agentur <[email protected]>
* Copyright (C) 2023 pdir / digital agentur <[email protected]>
*
* @package contao-themes-net/nature-theme-bundle
* @link https://github.com/contao-themes-net/nature-theme-bundle
Expand Down
Loading

0 comments on commit db5ea3f

Please sign in to comment.