diff --git a/core/core.php b/core/core.php index caa487f6..b91bd56e 100644 --- a/core/core.php +++ b/core/core.php @@ -1228,6 +1228,11 @@ class core extends common { $css .= '#footerSocials{text-align:' . $this->getData(['theme', 'footer', 'socialsAlign']) . '}'; $css .= '#footerText > p {text-align:' . $this->getData(['theme', 'footer', 'textAlign']) . '}'; $css .= '#footerCopyright{text-align:' . $this->getData(['theme', 'footer', 'copyrightAlign']) . '}'; + // Marge supplémentaire lorsque le pied de page est fixe + if ( $this->getData(['theme', 'footer', 'fixed']) === true) { + $css .= "@media (min-width: 769px) { #site {margin-bottom: 100px;} }"; + $css .= "@media (max-width: 768px) { #site {margin-bottom: 150px;} }"; + } // Enregistre la personnalisation file_put_contents(self::DATA_DIR.'theme.css', $css); } diff --git a/core/layout/common.css b/core/layout/common.css index 848f9b1e..edd29555 100755 --- a/core/layout/common.css +++ b/core/layout/common.css @@ -28,7 +28,7 @@ body { } -@media (min-width: 769px) { +@media (min-width: 768px) { body { margin:0px 10px; } @@ -336,7 +336,7 @@ td > .col12 { border: 0; } -@media (min-width: 769px) { +@media (min-width: 768px) { #bar #barLeft { float: left; } @@ -485,7 +485,7 @@ nav a { nav a:hover { text-decoration: none; } -@media (min-width: 769px) { +@media (min-width: 768px) { nav #menu { display: block; }