onglets de la config

This commit is contained in:
Fred Tempez 2022-03-03 16:53:46 +01:00
parent 283b98c6e7
commit bf0cc8c4b6
3 changed files with 25 additions and 24 deletions

View File

@ -2564,7 +2564,7 @@ class core extends common {
$colors = helper::colorVariants($this->getData(['admin','backgroundColorButtonGreen'])); $colors = helper::colorVariants($this->getData(['admin','backgroundColorButtonGreen']));
$css .= '.button.buttonGreen, button[type=submit] {background-color: ' . $colors['normal'] . ';color: ' . $colors['text'] . ';}.button.buttonGreen:hover, button[type=submit]:hover {background-color: ' . $colors['darken'] . ';color: ' . $colors['text'] .';}.button.buttonGreen:active, button[type=submit]:active {background-color: ' . $colors['darken'] . ';color: ' .$colors['text'] .';}'; $css .= '.button.buttonGreen, button[type=submit] {background-color: ' . $colors['normal'] . ';color: ' . $colors['text'] . ';}.button.buttonGreen:hover, button[type=submit]:hover {background-color: ' . $colors['darken'] . ';color: ' . $colors['text'] .';}.button.buttonGreen:active, button[type=submit]:active {background-color: ' . $colors['darken'] . ';color: ' .$colors['text'] .';}';
$colors = helper::colorVariants($this->getData(['admin','backgroundBlockColor'])); $colors = helper::colorVariants($this->getData(['admin','backgroundBlockColor']));
$css .= '.block {border: 1px solid ' . $this->getData(['admin','borderBlockColor']) . ';}.block h4 {background-color: ' . $colors['normal'] . ';color:' . $colors['text'] . ';}'; $css .= '.buttonTab, .block {border: 1px solid ' . $this->getData(['admin','borderBlockColor']) . ';}.buttonTab, .block h4 {background-color: ' . $colors['normal'] . ';color:' . $colors['text'] . ';}';
$css .= 'table tr,input[type=email],input[type=text],input[type=password],select:not(#barSelectPage),textarea:not(.editorWysiwyg),.inputFile{background-color: ' . $colors['normal'] . ';color:' . $colors['text'] . ';border: 1px solid ' . $this->getData(['admin','borderBlockColor']) . ';}'; $css .= 'table tr,input[type=email],input[type=text],input[type=password],select:not(#barSelectPage),textarea:not(.editorWysiwyg),.inputFile{background-color: ' . $colors['normal'] . ';color:' . $colors['text'] . ';border: 1px solid ' . $this->getData(['admin','borderBlockColor']) . ';}';
// Bordure du contour TinyMCE // Bordure du contour TinyMCE
$css .= '.mce-tinymce{border: 1px solid '. $this->getData(['admin','borderBlockColor']) . '!important;}'; $css .= '.mce-tinymce{border: 1px solid '. $this->getData(['admin','borderBlockColor']) . '!important;}';

View File

@ -21,13 +21,6 @@
display: block; display: block;
} }
.activeButton {
filter : brightness(180%);
}
.buttonTab:hover {
filter : brightness(140%);
}
.buttonNotice { .buttonNotice {
border: 2px solid red !important; border: 2px solid red !important;
@ -36,16 +29,28 @@
/* Style the tab */ /* Style the tab */
.tab { .tab {
margin-top: 1.8em;
overflow: hidden; overflow: hidden;
display: inline-block; text-align: center;
} }
.tab ~ .tabContent {
margin-top: -10px;
}
.buttonTab { .buttonTab {
float: left; display: inline-block;
transition: 0.3s; transition: 0.3s;
border-radius: 10px 10px 0px 0px; border-radius: 10px 10px 0px 0px;
width: 160px; width: 160px;
/*background-color: #ccc;*/ margin: 0 1px;
margin: 0 1px; }
.buttonTab:hover {
filter : brightness(140%);
}
.activeButton {
filter : brightness(70%);
} }

View File

@ -26,26 +26,22 @@
'value' => 'Configuration', 'value' => 'Configuration',
'class' => 'buttonTab' 'class' => 'buttonTab'
]); ?> ]); ?>
</div>
<div class="tab">
<?php echo template::button('configLocaleButton', [ <?php echo template::button('configLocaleButton', [
'value' => 'Localisation', 'value' => 'Localisation',
'class' => 'buttonTab' 'class' => 'buttonTab'
]); ?> ]); ?>
</div>
<div class="tab">
<?php echo template::button('configSocialButton', [ <?php echo template::button('configSocialButton', [
'value' => 'Référencement', 'value' => 'Référencement',
'class' => 'buttonTab' 'class' => 'buttonTab'
]); ?> ]); ?>
</div>
<div class="tab">
<?php echo template::button('configConnectButton', [ <?php echo template::button('configConnectButton', [
'value' => 'Connexion', 'value' => 'Connexion',
'class' => 'buttonTab' 'class' => 'buttonTab'
]); ?> ]); ?>
</div>
<div class="tab">
<?php echo template::button('configNetworkButton', [ <?php echo template::button('configNetworkButton', [
'value' => 'Réseau', 'value' => 'Réseau',
'class' => 'buttonTab' 'class' => 'buttonTab'