[9.0.08] 0 margin when width screen max 768px

This commit is contained in:
fredtempez 2019-03-18 14:12:42 +01:00
parent 517e926c5f
commit 3caa3f0220
4 changed files with 27 additions and 10 deletions

1
.gitignore vendored
View File

@ -24,3 +24,4 @@ site/file/thumb/*
# Trucs
.htaccess
.gitignore
core/vendor/tinymce/link_list.json

View File

@ -1,5 +1,9 @@
# ChangeLog
## Version 9.0.08
- Modification :
- Prise en compte taille des petits écrans, suppression des marges
## Version 9.0.07
- Correction :
- Disparition du menu quand la bannière est masquée

View File

@ -1280,11 +1280,6 @@ class core extends common {
}
$css .= 'header{background-size:' . $this->getData(['theme','header','imageContainer']).'}';
$css .= 'header{background-color:' . $colors['normal'] . ';height:' . $this->getData(['theme', 'header', 'height']) . ';line-height:' . $this->getData(['theme', 'header', 'height']) . ';text-align:' . $this->getData(['theme', 'header', 'textAlign']) . '}';
$css .= '@media (max-width: 767px) {header{height:' .
str_replace("px","",$this->getData(['theme', 'header', 'height']))/2 .
'px;line-height:' .
str_replace("px","",$this->getData(['theme', 'header', 'height']))/2 .
'px;}}';
if($themeHeaderImage = $this->getData(['theme', 'header', 'image'])) {
$css .= 'header{background-image:url("../file/source/' . $themeHeaderImage . '");background-position:' . $this->getData(['theme', 'header', 'imagePosition']) . ';background-repeat:' . $this->getData(['theme', 'header', 'imageRepeat']) . '}';
}

View File

@ -25,10 +25,24 @@ body {
min-height: 100%;
}
body {
margin: 0px 10px;
/**
* Petits écrans inférieurs à 768px de largeur, on supprime les marges
*/
@media (max-width: 768px) {
body {
margin:0px 0px !important;
}
#site {
margin:0px auto !important;
}
}
body {
margin:0px 10px;
}
/**
* Éléments spécifiques
*/
@ -428,7 +442,10 @@ nav a:hover {
position: sticky;
}
/* Taille du menu hamburger */
nav .zwiico-menu {
font-size:2em !important;
}
/* Corps */