Option THEME_HIDE_BORDER_ON_INPUT to restore border on inputfields work

also with md theme.
This commit is contained in:
Laurent Destailleur 2017-12-16 20:52:49 +01:00
parent 2163db446b
commit e90a6b8c0f
3 changed files with 5 additions and 8 deletions

View File

@ -581,6 +581,8 @@ class Conf
if (empty($this->global->MAIN_SIZE_SHORTLIST_LIMIT)) $this->global->MAIN_SIZE_SHORTLIST_LIMIT=3;
if (! isset($this->global->THEME_HIDE_BORDER_ON_INPUT)) $this->global->THEME_HIDE_BORDER_ON_INPUT=0;
// Save inconsistent option
if (empty($conf->global->AGENDA_USE_EVENT_TYPE) && (! isset($conf->global->AGENDA_DEFAULT_FILTER_TYPE) || $conf->global->AGENDA_DEFAULT_FILTER_TYPE == 'AC_NON_AUTO'))
{

View File

@ -284,15 +284,13 @@ input[type=submit] {
margin-left: 5px;
}
input, input.flat, form.flat select, select, select.flat, .dataTables_length label select {
<?php if (empty($conf->global->THEME_ELDY_SHOW_BORDER_INPUT))
print "border: none;"
?>
border: none;
}
input, input.flat, textarea, textarea.flat, form.flat select, select, select.flat, .dataTables_length label select {
font-family: <?php print $fontlist ?>;
outline: none;
margin: 0px 0px 0px 0px;
border-bottom: solid 1px rgba(0,0,0,.2);
border<?php echo empty($conf->global->THEME_HIDE_BORDER_ON_INPUT)?'-bottom':''; ?>: solid 1px rgba(0,0,0,.2);
}
input {

View File

@ -297,7 +297,7 @@ input, input.flat, textarea, textarea.flat, form.flat select, select, select.fla
font-size: <?php print $fontsize ?>px;
font-family: <?php print $fontlist ?>;
border: none;
border-bottom: solid 1px rgba(0,0,0,.1);
border<?php echo empty($conf->global->THEME_HIDE_BORDER_ON_INPUT)?'-bottom':''; ?>: solid 1px rgba(0,0,0,.2);
outline: none;
margin: 0px 0px 0px 0px;
}
@ -317,9 +317,6 @@ input, select {
margin-top:1px;
}
input, select {
border-bottom: solid 1px rgba(0,0,0,.1);
}
textarea {
border-radius: 0;