[9.0.08] 0 margin when width screen max 768px
This commit is contained in:
parent
517e926c5f
commit
3caa3f0220
1
.gitignore
vendored
1
.gitignore
vendored
@ -24,3 +24,4 @@ site/file/thumb/*
|
|||||||
# Trucs
|
# Trucs
|
||||||
.htaccess
|
.htaccess
|
||||||
.gitignore
|
.gitignore
|
||||||
|
core/vendor/tinymce/link_list.json
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
# ChangeLog
|
# ChangeLog
|
||||||
|
|
||||||
|
## Version 9.0.08
|
||||||
|
- Modification :
|
||||||
|
- Prise en compte taille des petits écrans, suppression des marges
|
||||||
|
|
||||||
## Version 9.0.07
|
## Version 9.0.07
|
||||||
- Correction :
|
- Correction :
|
||||||
- Disparition du menu quand la bannière est masquée
|
- Disparition du menu quand la bannière est masquée
|
||||||
|
@ -1280,11 +1280,6 @@ class core extends common {
|
|||||||
}
|
}
|
||||||
$css .= 'header{background-size:' . $this->getData(['theme','header','imageContainer']).'}';
|
$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 .= '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'])) {
|
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']) . '}';
|
$css .= 'header{background-image:url("../file/source/' . $themeHeaderImage . '");background-position:' . $this->getData(['theme', 'header', 'imagePosition']) . ';background-repeat:' . $this->getData(['theme', 'header', 'imageRepeat']) . '}';
|
||||||
}
|
}
|
||||||
|
@ -25,10 +25,24 @@ body {
|
|||||||
min-height: 100%;
|
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
|
* Éléments spécifiques
|
||||||
*/
|
*/
|
||||||
@ -428,7 +442,10 @@ nav a:hover {
|
|||||||
position: sticky;
|
position: sticky;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Taille du menu hamburger */
|
||||||
|
nav .zwiico-menu {
|
||||||
|
font-size:2em !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Corps */
|
/* Corps */
|
||||||
|
Loading…
Reference in New Issue
Block a user