diff --git a/core/module/config/view/index/index.css b/core/module/config/view/index/index.css index 0d42a8df..8aefd17a 100644 --- a/core/module/config/view/index/index.css +++ b/core/module/config/view/index/index.css @@ -17,8 +17,8 @@ background-color: rgba(255, 255, 255, 1); } -body, -.block h4, +body:not(.editorWysiwyg), +.block h4, input[type="email"], input[type="text"], input[type="password"], diff --git a/core/module/install/view/update/update.css b/core/module/install/view/update/update.css index 94be3bfa..ef597423 100644 --- a/core/module/install/view/update/update.css +++ b/core/module/install/view/update/update.css @@ -17,8 +17,8 @@ background-color: rgba(255, 255, 255, 1); } -body, -.block h4, +body:not(.editorWysiwyg), +.block h4, input[type="email"], input[type="text"], input[type="password"], diff --git a/core/module/page/view/edit/edit.css b/core/module/page/view/edit/edit.css index cb22eb5e..029db4f8 100644 --- a/core/module/page/view/edit/edit.css +++ b/core/module/page/view/edit/edit.css @@ -17,7 +17,7 @@ background-color: rgba(255, 255, 255, 1); } -body, +body:not(.editorWysiwyg), .block h4, input[type="email"], input[type="text"], diff --git a/core/module/theme/view/advanced/advanced.css b/core/module/theme/view/advanced/advanced.css index cb22eb5e..ede2b1d7 100644 --- a/core/module/theme/view/advanced/advanced.css +++ b/core/module/theme/view/advanced/advanced.css @@ -17,8 +17,8 @@ background-color: rgba(255, 255, 255, 1); } -body, -.block h4, +body:not(.editorWysiwyg), +.block h4, input[type="email"], input[type="text"], input[type="password"], diff --git a/core/module/theme/view/body/body.css b/core/module/theme/view/body/body.css index 1ca1fa38..3f764b8d 100644 --- a/core/module/theme/view/body/body.css +++ b/core/module/theme/view/body/body.css @@ -20,8 +20,8 @@ background-color: rgba(255, 255, 255, 1); } -body, -.block h4, +body:not(.editorWysiwyg), +.block h4, input[type="email"], input[type="text"], input[type="password"], diff --git a/core/module/theme/view/footer/footer.css b/core/module/theme/view/footer/footer.css index cb22eb5e..ede2b1d7 100644 --- a/core/module/theme/view/footer/footer.css +++ b/core/module/theme/view/footer/footer.css @@ -17,8 +17,8 @@ background-color: rgba(255, 255, 255, 1); } -body, -.block h4, +body:not(.editorWysiwyg), +.block h4, input[type="email"], input[type="text"], input[type="password"], diff --git a/core/module/theme/view/header/header.css b/core/module/theme/view/header/header.css index cb22eb5e..ede2b1d7 100644 --- a/core/module/theme/view/header/header.css +++ b/core/module/theme/view/header/header.css @@ -17,8 +17,8 @@ background-color: rgba(255, 255, 255, 1); } -body, -.block h4, +body:not(.editorWysiwyg), +.block h4, input[type="email"], input[type="text"], input[type="password"], diff --git a/core/module/theme/view/index/index.css b/core/module/theme/view/index/index.css index 75163439..7a7607d3 100755 --- a/core/module/theme/view/index/index.css +++ b/core/module/theme/view/index/index.css @@ -62,8 +62,8 @@ nav li ul { background-color: rgba(255, 255, 255, 1); } -body, -.block h4, +body:not(.editorWysiwyg), +.block h4, input[type="email"], input[type="text"], input[type="password"], diff --git a/core/module/theme/view/manage/manage.css b/core/module/theme/view/manage/manage.css index cb22eb5e..ede2b1d7 100644 --- a/core/module/theme/view/manage/manage.css +++ b/core/module/theme/view/manage/manage.css @@ -17,8 +17,8 @@ background-color: rgba(255, 255, 255, 1); } -body, -.block h4, +body:not(.editorWysiwyg), +.block h4, input[type="email"], input[type="text"], input[type="password"], diff --git a/core/module/theme/view/menu/menu.css b/core/module/theme/view/menu/menu.css index cb22eb5e..ede2b1d7 100644 --- a/core/module/theme/view/menu/menu.css +++ b/core/module/theme/view/menu/menu.css @@ -17,8 +17,8 @@ background-color: rgba(255, 255, 255, 1); } -body, -.block h4, +body:not(.editorWysiwyg), +.block h4, input[type="email"], input[type="text"], input[type="password"], diff --git a/core/module/theme/view/site/site.css b/core/module/theme/view/site/site.css index 69ed098d..29fe0414 100644 --- a/core/module/theme/view/site/site.css +++ b/core/module/theme/view/site/site.css @@ -17,8 +17,8 @@ background-color: rgba(255, 255, 255, 1); } -body, -.block h4, +body:not(.editorWysiwyg), +.block h4, input[type="email"], input[type="text"], input[type="password"], diff --git a/core/module/theme/view/site/site.js.php b/core/module/theme/view/site/site.js.php index 726d6a93..febdd146 100755 --- a/core/module/theme/view/site/site.js.php +++ b/core/module/theme/view/site/site.js.php @@ -13,96 +13,74 @@ /* * 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()); - - // Texte - css += "p.preview {color:" + $("#themeTextTextColor").val() + ";font-family:'" + textFont.replace(/\+/g, " ") + "',sans-serif}"; - // Titres - css += "h1.preview,h3.preview{color:" + $("#themeTitleTextColor").val() + ";font-family:'" + titleFont.replace(/\+/g, " ") + "',sans-serif;font-weight:" + $("#themeTitleFontWeight").val() + ";text-transform:" + $("#themeTitleTextTransform").val() + "}"; - // Fond - css += "div.preview{background-color:" + $("#themeSiteBackgroundColor").val() + ";}"; - - // Couleurs des liens - colors = core.colorVariants($("#themeLinkTextColor").val()); - css += "a.preview,.buttonPreview{color:" + colors.normal + "}"; - css += "a.preview:hover,.buttonPreview{color:" + colors.darken + "}"; - css += "a.preview,.buttonPreview {font-family:'" + textFont.replace(/\+/g, " ") + "',sans-serif}"; - - // Paramètrage du DOM - $("#themePreview").remove(); - $("