diff --git a/core/core.php b/core/core.php index 946ad99..9e51c5f 100644 --- a/core/core.php +++ b/core/core.php @@ -951,7 +951,7 @@ class common { // Update robots.txt file in output directory if ($this->getData(['config','seo', 'robots']) === true) { - unlink('robots.txt'); + if(file_exists('robots.txt')) unlink('robots.txt'); $sitemap->updateRobots(); } else { file_put_contents('robots.txt','User-agent: *' . PHP_EOL . 'Disallow: /'); @@ -2359,6 +2359,8 @@ class core extends common { $css .= 'body,.row > div{font-size:' . $this->getData(['theme', 'text', 'fontSize']) . '}'; $css .= 'body{color:' . $this->getData(['theme', 'text', 'textColor']) . '}'; $css .= 'select,input[type=\'password\'],input[type=\'email\'],input[type=\'text\'],.inputFile,select,textarea{color:' . $this->getData(['theme', 'text', 'textColor']) .';background-color:'.$this->getData(['theme', 'site', 'backgroundColor']).';}'; + $css .= 'select:focus-visible,input[type=\'password\']:focus-visible,input[type=\'email\']:focus-visible,input[type=\'text\']:focus-visible,.inputFile:focus-visible,textarea:focus-visible{border-color:'.$this->getData(['theme', 'block', 'borderColor']).';}'; + $css .= 'select:hover,input[type=\'password\']:hover,input[type=\'email\']:hover,input[type=\'text\']:hover,.inputFile:hover,textarea:hover{border-color:'.$this->getData(['theme', 'block', 'borderColor']).';}'; // spécifiques au module de blog $css .= '.blogDate {color:' . $this->getData(['theme', 'text', 'textColor']) . ';}.blogPicture img{border:1px solid ' . $this->getData(['theme', 'text', 'textColor']) . '; box-shadow: 1px 1px 5px ' . $this->getData(['theme', 'text', 'textColor']) . ';}'; // Couleur fixée dans admin.css @@ -2385,7 +2387,7 @@ class core extends common { $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'] . '}'; - $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,input[type=\'radio\']:checked:hover + label:before,input[type=\'radio\']:not(:checked):active + label:before{background-color:' . $colors['darken'] . '}'; $css .= '.helpButton span:hover{color:' . $colors['darken'] . '}'; diff --git a/core/layout/common.css b/core/layout/common.css index f6605d3..6f15296 100644 --- a/core/layout/common.css +++ b/core/layout/common.css @@ -657,11 +657,10 @@ input[type="password"], select, textarea { padding: 9px; - border: #d8dfe3 solid 1px; + border: solid 1px; width: 100%; - border-radius: 2px; + border-radius: 0px; font-family: inherit; - transition: border 0.3s ease-out; } select { padding: 9px; @@ -673,6 +672,17 @@ input[type="password"]:hover, select:hover, textarea:hover { border: solid 1px; + border-radius: 5px; +} +input[type="email"]:focus-visible, +input[type="text"]:focus-visible, +input[type="password"]:focus-visible, +.inputFile:focus-visible, +select:focus-visible, +textarea:focus-visible { + outline: none; + border: solid 2px; + border-radius: 5px; } input[type="email"].notice, input[type="text"].notice, @@ -680,7 +690,8 @@ input[type="password"].notice, .inputFile.notice, select.notice, textarea.notice { - border: #e74c3c solid 1px; + border: solid 2px; + border-radius: 5px; } input[type="email"].notice:hover, input[type="text"].notice:hover, @@ -688,7 +699,8 @@ input[type="password"].notice:hover, .inputFile.notice:hover, select.notice:hover, textarea.notice:hover { - border: #a82315 solid 1px; + border: solid 1px; + border-radius: 5px; } button:disabled, input:disabled, diff --git a/core/module/install/ressource/themes/theme_banniere_animee_85vw.zip b/core/module/install/ressource/themes/theme_banniere_animee_85vw.zip new file mode 100644 index 0000000..4f6c30b Binary files /dev/null and b/core/module/install/ressource/themes/theme_banniere_animee_85vw.zip differ diff --git a/core/module/install/ressource/themes/theme_default.zip b/core/module/install/ressource/themes/theme_default.zip index c1d0fe4..814f18a 100644 Binary files a/core/module/install/ressource/themes/theme_default.zip and b/core/module/install/ressource/themes/theme_default.zip differ diff --git a/core/module/install/ressource/themes/theme_sansbanniere_fluide.zip b/core/module/install/ressource/themes/theme_sansbanniere_fluide.zip index a6ded2c..4bd35cc 100644 Binary files a/core/module/install/ressource/themes/theme_sansbanniere_fluide.zip and b/core/module/install/ressource/themes/theme_sansbanniere_fluide.zip differ diff --git a/core/module/install/ressource/themes/themes.json b/core/module/install/ressource/themes/themes.json index b53f082..7f6c808 100644 --- a/core/module/install/ressource/themes/themes.json +++ b/core/module/install/ressource/themes/themes.json @@ -10,5 +10,9 @@ "sombre": { "name": "Sombre Islande 100%", "filename": "theme_sombre_islande_fluide.zip" + }, + "banniere_animee": { + "name": "Bannière animèe 85%", + "filename": "theme_banniere_animee_85vw.zip" } } \ No newline at end of file diff --git a/core/module/user/view/login/login.js.php b/core/module/user/view/login/login.js.php index af66180..5f4bcec 100644 --- a/core/module/user/view/login/login.js.php +++ b/core/module/user/view/login/login.js.php @@ -75,13 +75,14 @@ $( ".humanBotClose" ).click(function() { $(document).ready(function(){ borderColor = "getData(['theme', 'block', 'borderColor']); ?>"; bgColor = "getData(['theme', 'site', 'backgroundColor']); ?>"; - $(".userOuter").css("border-color", borderColor); $(".userOuter").css("background-color", bgColor); + $(".userOuter").css("border","solid 1px"); + $(".userOuter").css("border-color", borderColor); /* Modifier la couleur au survol */ $( ".userOuter" ).mouseenter(function() { - $(".userOuter").css("opacity", "0.5"); + $(".userOuter").css("border-radius","5px"); }); $( ".userOuter" ).mouseleave(function() { - $(".userOuter").css("opacity", "1"); + $(".userOuter").css("border-radius","0px"); }); }); diff --git a/module/blog/view/article/article.js.php b/module/blog/view/article/article.js.php index 3ecf5a2..764808e 100644 --- a/module/blog/view/article/article.js.php +++ b/module/blog/view/article/article.js.php @@ -94,14 +94,15 @@ $( ".humanBotClose" ).click(function() { $(document).ready(function(){ borderColor = "getData(['theme', 'block', 'borderColor']); ?>"; bgColor = "getData(['theme', 'site', 'backgroundColor']); ?>"; - $(".blogOuter").css("border-color", borderColor); $(".blogOuter").css("background-color", bgColor); + $(".blogOuter").css("border","solid 1px"); + $(".blogOuter").css("border-color", borderColor); /* Modifier la couleur au survol */ $( ".blogOuter" ).mouseenter(function() { - $(".blogOuter").css("opacity", "0.5"); + $(".blogOuter").css("border-radius","5px"); }); $( ".blogOuter" ).mouseleave(function() { - $(".blogOuter").css("opacity", "1"); + $(".blogOuter").css("border-radius","0px"); }); }); diff --git a/module/form/view/index/index.js.php b/module/form/view/index/index.js.php index 0a7ff86..833928b 100644 --- a/module/form/view/index/index.js.php +++ b/module/form/view/index/index.js.php @@ -64,15 +64,16 @@ $( ".humanBotClose" ).click(function() { $(document).ready(function(){ borderColor = "getData(['theme', 'block', 'borderColor']); ?>"; bgColor = "getData(['theme', 'site', 'backgroundColor']); ?>"; - $(".formOuter").css("border-color", borderColor); $(".formInputFile").css("border-color", borderColor); $(".formOuter").css("background-color", bgColor); + $(".formOuter").css("border","solid 1px"); + $(".formOuter").css("border-color", borderColor); /* Modifier la couleur au survol */ $( ".formOuter" ).mouseenter(function() { - $(".formOuter").css("opacity", "0.5"); + $(".formOuter").css("border-radius","5px"); }); $( ".formOuter" ).mouseleave(function() { - $(".formOuter").css("opacity", "1"); + $(".formOuter").css("border-radius","0px"); }); });