diff --git a/core/core.php b/core/core.php index 554d32fe..ea74179f 100644 --- a/core/core.php +++ b/core/core.php @@ -1202,6 +1202,7 @@ class core extends common { $css .= $this->getData(['theme', 'site', 'width']) === '100%' ? '#site{margin:0 auto !important;} body{margin:0 auto !important;} #bar{margin:0 auto !important;} body > header{margin:0 auto !important;} body > nav {margin: 0 auto !important;} body > footer {margin:0 auto !important;}': ''; $css .= $this->getData(['theme', 'site', 'width']) === '750px' ? '.button, button{font-size:0.8em;}' : ''; $css .= '#site{background-color:' . $this->getData(['theme', 'site', 'backgroundColor']) . ';border-radius:' . $this->getData(['theme', 'site', 'radius']) . ';box-shadow:' . $this->getData(['theme', 'site', 'shadow']) . ' #212223;}'; + $css .= '.editorWysiwyg {background-color:' . $this->getData(['theme', 'site', 'backgroundColor']) . ';}'; $colors = helper::colorVariants($this->getData(['theme', 'button', 'backgroundColor'])); $css .= '.speechBubble,.button,.button:hover,button[type=\'submit\'],.pagination a,.pagination a:hover,input[type=\'checkbox\']:checked + label:before,input[type=\'radio\']:checked + label:before,.helpContent{background-color:' . $colors['normal'] . ';color:' . $colors['text'] . '}'; $css .= '.helpButton span{color:' . $colors['normal'] . '}'; diff --git a/core/module/config/config.php b/core/module/config/config.php index ed67d08e..182c4db1 100755 --- a/core/module/config/config.php +++ b/core/module/config/config.php @@ -8,6 +8,8 @@ * * @author Rémi Jean * @copyright Copyright (C) 2008-2018, Rémi Jean + * @author Frédéric Tempez + * @copyright Copyright (C) 2018-2020, Frédéric Tempez * @license GNU General Public License, version 3 * @link http://zwiicms.com/ */ diff --git a/core/module/config/view/index/index.css b/core/module/config/view/index/index.css new file mode 100644 index 00000000..94be3bfa --- /dev/null +++ b/core/module/config/view/index/index.css @@ -0,0 +1,32 @@ +/** + * This file is part of Zwii. + * + * For full copyright and license information, please see the LICENSE + * file that was distributed with this source code. + * + * @author Rémi Jean + * @copyright Copyright (C) 2008-2018, Rémi Jean + * @author Frédéric Tempez + * @copyright Copyright (C) 2018-2020, Frédéric Tempez + * @license GNU General Public License, version 3 + * @link http://zwiicms.com/ + */ + + +#site { + background-color: rgba(255, 255, 255, 1); +} + +body, +.block h4, +input[type="email"], +input[type="text"], +input[type="password"], +.inputFile, +select, +textarea, +.inputFile, +.button.buttonGrey, +.button.buttonGrey:hover { + color: rgba(33, 34, 35, 1); +} \ No newline at end of file diff --git a/core/module/install/view/update/update.css b/core/module/install/view/update/update.css new file mode 100644 index 00000000..94be3bfa --- /dev/null +++ b/core/module/install/view/update/update.css @@ -0,0 +1,32 @@ +/** + * This file is part of Zwii. + * + * For full copyright and license information, please see the LICENSE + * file that was distributed with this source code. + * + * @author Rémi Jean + * @copyright Copyright (C) 2008-2018, Rémi Jean + * @author Frédéric Tempez + * @copyright Copyright (C) 2018-2020, Frédéric Tempez + * @license GNU General Public License, version 3 + * @link http://zwiicms.com/ + */ + + +#site { + background-color: rgba(255, 255, 255, 1); +} + +body, +.block h4, +input[type="email"], +input[type="text"], +input[type="password"], +.inputFile, +select, +textarea, +.inputFile, +.button.buttonGrey, +.button.buttonGrey:hover { + color: rgba(33, 34, 35, 1); +} \ No newline at end of file diff --git a/core/module/page/view/edit/edit.css b/core/module/page/view/edit/edit.css new file mode 100644 index 00000000..94be3bfa --- /dev/null +++ b/core/module/page/view/edit/edit.css @@ -0,0 +1,32 @@ +/** + * This file is part of Zwii. + * + * For full copyright and license information, please see the LICENSE + * file that was distributed with this source code. + * + * @author Rémi Jean + * @copyright Copyright (C) 2008-2018, Rémi Jean + * @author Frédéric Tempez + * @copyright Copyright (C) 2018-2020, Frédéric Tempez + * @license GNU General Public License, version 3 + * @link http://zwiicms.com/ + */ + + +#site { + background-color: rgba(255, 255, 255, 1); +} + +body, +.block h4, +input[type="email"], +input[type="text"], +input[type="password"], +.inputFile, +select, +textarea, +.inputFile, +.button.buttonGrey, +.button.buttonGrey:hover { + color: rgba(33, 34, 35, 1); +} \ No newline at end of file diff --git a/core/module/theme/view/advanced/advanced.css b/core/module/theme/view/advanced/advanced.css new file mode 100644 index 00000000..94be3bfa --- /dev/null +++ b/core/module/theme/view/advanced/advanced.css @@ -0,0 +1,32 @@ +/** + * This file is part of Zwii. + * + * For full copyright and license information, please see the LICENSE + * file that was distributed with this source code. + * + * @author Rémi Jean + * @copyright Copyright (C) 2008-2018, Rémi Jean + * @author Frédéric Tempez + * @copyright Copyright (C) 2018-2020, Frédéric Tempez + * @license GNU General Public License, version 3 + * @link http://zwiicms.com/ + */ + + +#site { + background-color: rgba(255, 255, 255, 1); +} + +body, +.block h4, +input[type="email"], +input[type="text"], +input[type="password"], +.inputFile, +select, +textarea, +.inputFile, +.button.buttonGrey, +.button.buttonGrey:hover { + color: rgba(33, 34, 35, 1); +} \ No newline at end of file diff --git a/core/module/theme/view/body/body.css b/core/module/theme/view/body/body.css index f4e66975..2423d11e 100644 --- a/core/module/theme/view/body/body.css +++ b/core/module/theme/view/body/body.css @@ -13,4 +13,23 @@ #backToTop { display: block; +} + + +#site { + background-color: rgba(255, 255, 255, 1); +} + +body, +.block h4, +input[type="email"], +input[type="text"], +input[type="password"], +.inputFile, +select, +textarea, +.inputFile, +.button.buttonGrey, +.button.buttonGrey:hover { + color: rgba(33, 34, 35, 1); } \ No newline at end of file diff --git a/core/module/theme/view/footer/footer.css b/core/module/theme/view/footer/footer.css new file mode 100644 index 00000000..94be3bfa --- /dev/null +++ b/core/module/theme/view/footer/footer.css @@ -0,0 +1,32 @@ +/** + * This file is part of Zwii. + * + * For full copyright and license information, please see the LICENSE + * file that was distributed with this source code. + * + * @author Rémi Jean + * @copyright Copyright (C) 2008-2018, Rémi Jean + * @author Frédéric Tempez + * @copyright Copyright (C) 2018-2020, Frédéric Tempez + * @license GNU General Public License, version 3 + * @link http://zwiicms.com/ + */ + + +#site { + background-color: rgba(255, 255, 255, 1); +} + +body, +.block h4, +input[type="email"], +input[type="text"], +input[type="password"], +.inputFile, +select, +textarea, +.inputFile, +.button.buttonGrey, +.button.buttonGrey:hover { + color: rgba(33, 34, 35, 1); +} \ No newline at end of file diff --git a/core/module/theme/view/footer/footer.js.php b/core/module/theme/view/footer/footer.js.php index 22d07823..16a68700 100755 --- a/core/module/theme/view/footer/footer.js.php +++ b/core/module/theme/view/footer/footer.js.php @@ -22,8 +22,10 @@ $("input, select").on("change", function() { // Couleurs du pied de page var colors = core.colorVariants($("#themeFooterBackgroundColor").val()); var textColor = $("#themeFooterTextColor").val(); - var css = "footer{background-color:" + colors.normal + ";color:" + textColor + "}"; + var css = "footer {background-color:" + colors.normal + ";color:" + textColor + "}"; css += "footer a{color:" + textColor + "}"; + // Couleur de l'éditeur + css += ".editorWysiwyg{background-color:" + colors.normal + " !important; color:" + textColor + " !important;}"; // Hauteur du pied de page //css += "#footersiteLeft, #footersiteCenter, #footersiteRight, #footerbodyLeft, #footerbodyCenter, #footerbodyRight {margin:" + $("#themeFooterHeight").val() + " 0}"; css += "footer #footersite > div{margin:" + $("#themeFooterHeight").val() + " 0}"; diff --git a/core/module/theme/view/header/header.css b/core/module/theme/view/header/header.css new file mode 100644 index 00000000..94be3bfa --- /dev/null +++ b/core/module/theme/view/header/header.css @@ -0,0 +1,32 @@ +/** + * This file is part of Zwii. + * + * For full copyright and license information, please see the LICENSE + * file that was distributed with this source code. + * + * @author Rémi Jean + * @copyright Copyright (C) 2008-2018, Rémi Jean + * @author Frédéric Tempez + * @copyright Copyright (C) 2018-2020, Frédéric Tempez + * @license GNU General Public License, version 3 + * @link http://zwiicms.com/ + */ + + +#site { + background-color: rgba(255, 255, 255, 1); +} + +body, +.block h4, +input[type="email"], +input[type="text"], +input[type="password"], +.inputFile, +select, +textarea, +.inputFile, +.button.buttonGrey, +.button.buttonGrey:hover { + color: rgba(33, 34, 35, 1); +} \ No newline at end of file diff --git a/core/module/theme/view/index/index.css b/core/module/theme/view/index/index.css index e0ceb6a5..3786ec1e 100755 --- a/core/module/theme/view/index/index.css +++ b/core/module/theme/view/index/index.css @@ -53,4 +53,25 @@ nav li ul { } #themeOverlayBody { position: fixed; /* Sinon l'overlay s'arrête à la hauteur de la fenêtre et non de la page*/ +} + +/* Contrastes */ + + +#site { + background-color: rgba(255, 255, 255, 1); +} + +body, +.block h4, +input[type="email"], +input[type="text"], +input[type="password"], +.inputFile, +select, +textarea, +.inputFile, +.button.buttonGrey, +.button.buttonGrey:hover { + color: rgba(33, 34, 35, 1); } \ No newline at end of file diff --git a/core/module/theme/view/manage/manage.css b/core/module/theme/view/manage/manage.css new file mode 100644 index 00000000..94be3bfa --- /dev/null +++ b/core/module/theme/view/manage/manage.css @@ -0,0 +1,32 @@ +/** + * This file is part of Zwii. + * + * For full copyright and license information, please see the LICENSE + * file that was distributed with this source code. + * + * @author Rémi Jean + * @copyright Copyright (C) 2008-2018, Rémi Jean + * @author Frédéric Tempez + * @copyright Copyright (C) 2018-2020, Frédéric Tempez + * @license GNU General Public License, version 3 + * @link http://zwiicms.com/ + */ + + +#site { + background-color: rgba(255, 255, 255, 1); +} + +body, +.block h4, +input[type="email"], +input[type="text"], +input[type="password"], +.inputFile, +select, +textarea, +.inputFile, +.button.buttonGrey, +.button.buttonGrey:hover { + color: rgba(33, 34, 35, 1); +} \ No newline at end of file diff --git a/core/module/theme/view/menu/menu.css b/core/module/theme/view/menu/menu.css new file mode 100644 index 00000000..94be3bfa --- /dev/null +++ b/core/module/theme/view/menu/menu.css @@ -0,0 +1,32 @@ +/** + * This file is part of Zwii. + * + * For full copyright and license information, please see the LICENSE + * file that was distributed with this source code. + * + * @author Rémi Jean + * @copyright Copyright (C) 2008-2018, Rémi Jean + * @author Frédéric Tempez + * @copyright Copyright (C) 2018-2020, Frédéric Tempez + * @license GNU General Public License, version 3 + * @link http://zwiicms.com/ + */ + + +#site { + background-color: rgba(255, 255, 255, 1); +} + +body, +.block h4, +input[type="email"], +input[type="text"], +input[type="password"], +.inputFile, +select, +textarea, +.inputFile, +.button.buttonGrey, +.button.buttonGrey:hover { + color: rgba(33, 34, 35, 1); +} \ No newline at end of file diff --git a/core/module/theme/view/site/site.css b/core/module/theme/view/site/site.css new file mode 100644 index 00000000..3a9ba1db --- /dev/null +++ b/core/module/theme/view/site/site.css @@ -0,0 +1,39 @@ +/** + * This file is part of Zwii. + * + * For full copyright and license information, please see the LICENSE + * file that was distributed with this source code. + * + * @author Rémi Jean + * @copyright Copyright (C) 2008-2018, Rémi Jean + * @author Frédéric Tempez + * @copyright Copyright (C) 2018-2020, Frédéric Tempez + * @license GNU General Public License, version 3 + * @link http://zwiicms.com/ + */ + + +#site { + background-color: rgba(255, 255, 255, 1); +} + +body, +.block h4, +input[type="email"], +input[type="text"], +input[type="password"], +.inputFile, +select, +textarea, +.inputFile, +.button.buttonGrey, +.button.buttonGrey:hover { + color: rgba(33, 34, 35, 1); +} + +div.preview { + border-radius: 2%; + -webkit-box-shadow: 5px 5px 5px 2px rgba(0,0,0,0.75); + -moz-box-shadow: 5px 5px 5px 2px rgba(0,0,0,0.75); + box-shadow: 5px 5px 5px 2px rgba(0,0,0,0.75); +} \ No newline at end of file diff --git a/core/module/theme/view/site/site.js.php b/core/module/theme/view/site/site.js.php index 133ae9bb..a1f3ec6b 100755 --- a/core/module/theme/view/site/site.js.php +++ b/core/module/theme/view/site/site.js.php @@ -10,6 +10,37 @@ * @link http://zwiicms.com/ */ + /* + * Chargement de l'aperçu + */ +$( document ).ready(function() { + + + // Import des polices de caractères + var titleFont = $("#themeTitleFont").val(); + var textFont = $("#themeTextFont").val(); + var css = "@import url('https://fonts.googleapis.com/css?family=" + titleFont + "|" + textFont + "');"; + var colors = core.colorVariants($("#themeButtonBackgroundColor").val()); + + + css += "h1.preview,h3.preview{color:" + $("#themeTitleTextColor").val() + ";font-family:'" + titleFont.replace(/\+/g, " ") + "',sans-serif;font-weight:" + $("#themeTitleFontWeight").val() + ";text-transform:" + $("#themeTitleTextTransform").val() + "}"; + css += "p.preview{color:" + $("#themeTextTextColor").val() + "}"; + css += "div.preview{background-color:" + $("#themeSiteBackgroundColor").val() + ";}"; + + // Couleurs des liens + colors = core.colorVariants($("#themeLinkTextColor").val()); + css += "a.preview{color:" + colors.normal + "}"; + css += "a.preview:hover{color:" + colors.darken + "}"; + + // Paramètrage du DOM + $("#themePreview").remove(); + $("