Skip to content

Commit

Permalink
Option THEME_HIDE_BORDER_ON_INPUT to restore border on inputfields work
Browse files Browse the repository at this point in the history
also with md theme.
  • Loading branch information
eldy committed Dec 16, 2017
1 parent 2163db4 commit e90a6b8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
2 changes: 2 additions & 0 deletions htdocs/core/class/conf.class.php
Expand Up @@ -581,6 +581,8 @@ function setValues($db)

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'))
{
Expand Down
6 changes: 2 additions & 4 deletions htdocs/theme/eldy/style.css.php
Expand Up @@ -284,15 +284,13 @@
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 {
Expand Down
5 changes: 1 addition & 4 deletions htdocs/theme/md/style.css.php
Expand Up @@ -297,7 +297,7 @@
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;
}
Expand All @@ -317,9 +317,6 @@
margin-top:1px;
}

input, select {
border-bottom: solid 1px rgba(0,0,0,.1);
}

textarea {
border-radius: 0;
Expand Down

0 comments on commit e90a6b8

Please sign in to comment.