|
|
|
@ -1663,14 +1663,14 @@ class core extends common {
|
|
|
|
|
$css .= 'body{font-family:"' . str_replace('+', ' ', $this->getData(['theme', 'text', 'font'])) . '",sans-serif}';
|
|
|
|
|
if($themeBodyImage = $this->getData(['theme', 'body', 'image'])) {
|
|
|
|
|
// Image dans html pour éviter les déformations.
|
|
|
|
|
$css .= 'html{background-image:url("../file/source/' . $themeBodyImage . '");background-position:' . $this->getData(['theme', 'body', 'imagePosition']) . ';background-attachment:' . $this->getData(['theme', 'body', 'imageAttachment']) . ';background-size:' . $this->getData(['theme', 'body', 'imageSize']) . ';background-repeat:' . $this->getData(['theme', 'body', 'imageRepeat']) . '}';
|
|
|
|
|
$css .= 'html, .mce-menu.mce-in.mce-animate {background-image:url("../file/source/' . $themeBodyImage . '");background-position:' . $this->getData(['theme', 'body', 'imagePosition']) . ';background-attachment:' . $this->getData(['theme', 'body', 'imageAttachment']) . ';background-size:' . $this->getData(['theme', 'body', 'imageSize']) . ';background-repeat:' . $this->getData(['theme', 'body', 'imageRepeat']) . '}';
|
|
|
|
|
// Couleur du body transparente
|
|
|
|
|
$css .= 'body{background-color: rgba(0,0,0,0)}';
|
|
|
|
|
$css .= 'body, .mce-menu.mce-in.mce-animate{background-color: rgba(0,0,0,0)}';
|
|
|
|
|
} else {
|
|
|
|
|
// Pas d'image couleur du body
|
|
|
|
|
$css .= 'html{background-color:' . $colors['normal'] . ';}';
|
|
|
|
|
$css .= 'html, .mce-menu.mce-in.mce-animate{background-color:' . $colors['normal'] . ';}';
|
|
|
|
|
// Même couleur dans le fond de l'éditeur
|
|
|
|
|
$css .= 'div.mce-edit-area{background-color:' . $colors['normal'] . ' !important}';
|
|
|
|
|
$css .= 'div.mce-edit-area {background-color:' . $colors['normal'] . ' !important}';
|
|
|
|
|
}
|
|
|
|
|
// Icône BacktoTop
|
|
|
|
|
$css .= '#backToTop {background-color:' .$this->getData(['theme', 'body', 'toTopbackgroundColor']). ';color:'.$this->getData(['theme', 'body', 'toTopColor']).';}';
|
|
|
|
@ -1678,7 +1678,7 @@ class core extends common {
|
|
|
|
|
$colors = helper::colorVariants($this->getData(['theme', 'text', 'linkColor']));
|
|
|
|
|
$css .= 'a{color:' . $colors['normal'] . '}';
|
|
|
|
|
// Couleurs de site dans TinyMCe
|
|
|
|
|
$css .= 'div.mce-edit-area{font-family:"' . str_replace('+', ' ', $this->getData(['theme', 'text', 'font'])) . '",sans-serif}';
|
|
|
|
|
$css .= 'div.mce-edit-area {font-family:"' . str_replace('+', ' ', $this->getData(['theme', 'text', 'font'])) . '",sans-serif}';
|
|
|
|
|
// Site dans TinyMCE
|
|
|
|
|
$css .= '.editorWysiwyg {background-color:' . $this->getData(['theme', 'site', 'backgroundColor']) . ';}';
|
|
|
|
|
//$css .= 'a:hover:not(.inputFile, button){color:' . $colors['darken'] . '}';
|
|
|
|
@ -1822,7 +1822,7 @@ class core extends common {
|
|
|
|
|
$colors = helper::colorVariants($this->getData(['admin','backgroundColor']));
|
|
|
|
|
$css .= '#site{background-color:' . $colors['normal']. ';}';
|
|
|
|
|
$css .= '.row > div {font:' . $this->getData(['admin','fontSize']) . ' "' . $this->getData(['admin','fontText']) . '", sans-serif;}';
|
|
|
|
|
$css .= 'body h1, h2, h3, h4, h5, h6 {font-family:' . $this->getData(['admin','fontTitle' ]) . ', sans-serif;color:' . $this->getData(['admin','colorTitle' ]) . ';}';
|
|
|
|
|
$css .= 'body h1, h2, h3, h4 a, h5, h6 {font-family:' . $this->getData(['admin','fontTitle' ]) . ', sans-serif;color:' . $this->getData(['admin','colorTitle' ]) . ';}';
|
|
|
|
|
$css .= 'body:not(.editorWysiwyg),span .zwiico-help {color:' . $this->getData(['admin','colorText']) . ';}';
|
|
|
|
|
$colors = helper::colorVariants($this->getData(['admin','backgroundColorButton']));
|
|
|
|
|
$css .= 'input[type="checkbox"]:checked + label::before,.speechBubble{background-color:' . $colors['normal'] . ';color:' . $colors['text'] . ';}';
|
|
|
|
|