[9.2.25] Couleur administration neutre

This commit is contained in:
Fred Tempez 2020-03-15 20:53:13 +01:00
parent 5816b3da36
commit d25d319802
19 changed files with 470 additions and 8 deletions

View File

@ -1184,6 +1184,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']) . ' !important;}';
$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'] . '}';

View File

@ -8,6 +8,8 @@
*
* @author Rémi Jean <remi.jean@outlook.com>
* @copyright Copyright (C) 2008-2018, Rémi Jean
* @author Frédéric Tempez <frederic.tempez@outlook.com>
* @copyright Copyright (C) 2018-2020, Frédéric Tempez
* @license GNU General Public License, version 3
* @link http://zwiicms.com/
*/

View File

@ -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 <remi.jean@outlook.com>
* @copyright Copyright (C) 2008-2018, Rémi Jean
* @author Frédéric Tempez <frederic.tempez@outlook.com>
* @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);
}

View File

@ -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 <remi.jean@outlook.com>
* @copyright Copyright (C) 2008-2018, Rémi Jean
* @author Frédéric Tempez <frederic.tempez@outlook.com>
* @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);
}

View File

@ -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 <remi.jean@outlook.com>
* @copyright Copyright (C) 2008-2018, Rémi Jean
* @author Frédéric Tempez <frederic.tempez@outlook.com>
* @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);
}

View File

@ -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 <remi.jean@outlook.com>
* @copyright Copyright (C) 2008-2018, Rémi Jean
* @author Frédéric Tempez <frederic.tempez@outlook.com>
* @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);
}

View File

@ -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);
}

View File

@ -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 <remi.jean@outlook.com>
* @copyright Copyright (C) 2008-2018, Rémi Jean
* @author Frédéric Tempez <frederic.tempez@outlook.com>
* @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);
}

View File

@ -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 <remi.jean@outlook.com>
* @copyright Copyright (C) 2008-2018, Rémi Jean
* @author Frédéric Tempez <frederic.tempez@outlook.com>
* @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);
}

View File

@ -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);
}

View File

@ -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 <remi.jean@outlook.com>
* @copyright Copyright (C) 2008-2018, Rémi Jean
* @author Frédéric Tempez <frederic.tempez@outlook.com>
* @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);
}

View File

@ -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 <remi.jean@outlook.com>
* @copyright Copyright (C) 2008-2018, Rémi Jean
* @author Frédéric Tempez <frederic.tempez@outlook.com>
* @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);
}

View File

@ -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 <remi.jean@outlook.com>
* @copyright Copyright (C) 2008-2018, Rémi Jean
* @author Frédéric Tempez <frederic.tempez@outlook.com>
* @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);
}

View File

@ -22,7 +22,7 @@ $("input, select").on("change", function() {
var colors = core.colorVariants($("#themeButtonBackgroundColor").val());
css += ".speechBubble,.button,.button:hover,button[type='submit'],.pagination a,.pagination a:hover,input[type='checkbox']:checked + label:before,.helpContent{background-color:" + colors.normal + ";color:" + colors.text + "}";
css += ".helpButton span{color:" + colors.normal + "}";
css += "input[type='text']:hover,input[type='password']:hover,.inputFile:hover,select:hover,textarea:hover{border-color:" + colors.normal + "}";
//css += "input[type='text']:hover,input[type='password']:hover,.inputFile:hover,select:hover,textarea:hover{border-color:" + colors.normal + "}";
css += ".speechBubble:before{border-color:" + colors.normal + " transparent transparent transparent}";
css += ".button:hover,button[type='submit']:hover,.pagination a:hover,input[type='checkbox']:not(:active):checked:hover + label:before,input[type='checkbox']:active + label:before{background-color:" + colors.darken + "}";
css += ".helpButton span:hover{color:" + colors.darken + "}";
@ -34,16 +34,16 @@ $("input, select").on("change", function() {
}
// Couleurs des liens
colors = core.colorVariants($("#themeLinkTextColor").val());
css += "a{color:" + colors.normal + "}";
css += "a:hover{color:" + colors.darken + "}";
//css += "a{color:" + colors.normal + "}";
//css += "a:hover{color:" + colors.darken + "}";
// Couleur, polices, épaisseur et capitalisation de caractères des titres
css += "h1,h2,h3,h4,h5,h6{color:" + $("#themeTitleTextColor").val() + ";font-family:'" + titleFont.replace(/\+/g, " ") + "',sans-serif;font-weight:" + $("#themeTitleFontWeight").val() + ";text-transform:" + $("#themeTitleTextTransform").val() + "}";
//css += "h1,h2,h3,h4,h5,h6{color:" + $("#themeTitleTextColor").val() + ";font-family:'" + titleFont.replace(/\+/g, " ") + "',sans-serif;font-weight:" + $("#themeTitleFontWeight").val() + ";text-transform:" + $("#themeTitleTextTransform").val() + "}";
// Police de caractères
css += "body{font-family:'" + textFont.replace(/\+/g, " ") + "',sans-serif}";
// Taille du texte
css += "body,.row > div{font-size:" + $("#themeTextFontSize").val() + "}";
// Couleur du texte
css += "body,.block h4,input[type='email'],input[type='text'],input[type='password'],.inputFile,select,textarea,.inputFile,.button.buttonGrey,.button.buttonGrey:hover{color:" + $("#themeTextTextColor").val() + "}";
//css += "body,.block h4,input[type='email'],input[type='text'],input[type='password'],.inputFile,select,textarea,.inputFile,.button.buttonGrey,.button.buttonGrey:hover{color:" + $("#themeTextTextColor").val() + "}";
// Largeur du site
css += ".container{max-width:" + $("#themeSiteWidth").val() + "}";
if ($("#themeSiteWidth").val() === "100%") {
@ -53,7 +53,8 @@ $("input, select").on("change", function() {
}
// Couleur du site, arrondi sur les coins du site et ombre sur les bords du site
css += "#site{background-color:" + $("#themeSiteBackgroundColor").val() + ";border-radius:" + $("#themeSiteRadius").val() + ";box-shadow:" + $("#themeSiteShadow").val() + " #212223}";
//css += "#site{background-color:" + $("#themeSiteBackgroundColor").val() + ";border-radius:" + $("#themeSiteRadius").val() + ";box-shadow:" + $("#themeSiteShadow").val() + " #212223}";
css += "#site{border-radius:" + $("#themeSiteRadius").val() + ";box-shadow:" + $("#themeSiteShadow").val() + " #212223}";
// Ajout du css au DOM
$("#themePreview").remove();
$("<style>")

View File

@ -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 <remi.jean@outlook.com>
* @copyright Copyright (C) 2008-2018, Rémi Jean
* @author Frédéric Tempez <frederic.tempez@outlook.com>
* @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);
}

View File

@ -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 <remi.jean@outlook.com>
* @copyright Copyright (C) 2008-2018, Rémi Jean
* @author Frédéric Tempez <frederic.tempez@outlook.com>
* @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);
}

View File

@ -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 <remi.jean@outlook.com>
* @copyright Copyright (C) 2008-2018, Rémi Jean
* @author Frédéric Tempez <frederic.tempez@outlook.com>
* @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);
}

View File

@ -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 <remi.jean@outlook.com>
* @copyright Copyright (C) 2008-2018, Rémi Jean
* @author Frédéric Tempez <frederic.tempez@outlook.com>
* @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);
}

View File

@ -3,10 +3,12 @@
*/
/* Fix les problèmes de couleurs et de taille de police */
.editorWysiwyg {
.editorWysiwyg {
font-size: 14px !important;
background: #FFF !important;
/*background: #FFF !important;*/
}
/* Désactive le responsive des cols sinon les cols passent les uns en dessous des autres car la largeur de l'iframe est < au media query utilisé pour le responsive */
.col1 {
width: 8.33333333%;