[9.2.18] marge du site footer fixe

This commit is contained in:
Fred Tempez 2020-02-04 10:17:56 +01:00
parent c22ef52521
commit 7cc1f3bfef
2 changed files with 5 additions and 4 deletions

View File

@ -1216,7 +1216,8 @@ class core extends common {
$css .= '#footerCopyright{text-align:' . $this->getData(['theme', 'footer', 'copyrightAlign']) . '}'; $css .= '#footerCopyright{text-align:' . $this->getData(['theme', 'footer', 'copyrightAlign']) . '}';
// Marge supplémentaire lorsque le pied de page est fixe // Marge supplémentaire lorsque le pied de page est fixe
if ( $this->getData(['theme', 'footer', 'fixed']) === true) { if ( $this->getData(['theme', 'footer', 'fixed']) === true) {
$css .= "#site {margin-bottom: 150px;}"; $css .= "@media (min-width: 769px) { #site {margin-bottom: 100px;} }";
$css .= "@media (max-width: 768px) { #site {margin-bottom: 150px;} }";
} }
// Enregistre la personnalisation // Enregistre la personnalisation
file_put_contents(self::DATA_DIR.'theme.css', $css); file_put_contents(self::DATA_DIR.'theme.css', $css);

View File

@ -28,7 +28,7 @@ body {
} }
@media (min-width: 769px) { @media (min-width: 768px) {
body { body {
margin:0px 10px; margin:0px 10px;
} }
@ -336,7 +336,7 @@ td > .col12 {
border: 0; border: 0;
} }
@media (min-width: 769px) { @media (min-width: 768px) {
#bar #barLeft { #bar #barLeft {
float: left; float: left;
} }
@ -486,7 +486,7 @@ nav a {
nav a:hover { nav a:hover {
text-decoration: none; text-decoration: none;
} }
@media (min-width: 769px) { @media (min-width: 768px) {
nav #menu { nav #menu {
display: block; display: block;
} }