bordures inputs textarea + zip thèmes

This commit is contained in:
Deltacms 2023-01-22 18:13:24 +01:00
parent 85609e4ba7
commit 5bd2e8b4ba
9 changed files with 37 additions and 16 deletions

View File

@ -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'] . '}';

View File

@ -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,

View File

@ -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"
}
}

View File

@ -75,13 +75,14 @@ $( ".humanBotClose" ).click(function() {
$(document).ready(function(){
borderColor = "<?php echo $this->getData(['theme', 'block', 'borderColor']); ?>";
bgColor = "<?php echo $this->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");
});
});

View File

@ -94,14 +94,15 @@ $( ".humanBotClose" ).click(function() {
$(document).ready(function(){
borderColor = "<?php echo $this->getData(['theme', 'block', 'borderColor']); ?>";
bgColor = "<?php echo $this->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");
});
});

View File

@ -64,15 +64,16 @@ $( ".humanBotClose" ).click(function() {
$(document).ready(function(){
borderColor = "<?php echo $this->getData(['theme', 'block', 'borderColor']); ?>";
bgColor = "<?php echo $this->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");
});
});