# HG changeset patch # User domruf # Date 2018-01-04 21:12:34 # Node ID 3613459fb1444198b8df65d0f5cd03d64c9838a6 # Parent 3afbca98785702ac3ea426606c6ba8137a0c901c less: cleanup nav-pills menu style used in settings - remove obsolete padding for li - remove style for 'li > a' that is aready set by bootstrap via .nav-pills - use usual color: inherit only for non active elements - override nav-pills-active-link-hover-color and nav-pills-active-link-hover-bg instead custom style diff --git a/kallithea/public/less/kallithea-variables.less b/kallithea/public/less/kallithea-variables.less --- a/kallithea/public/less/kallithea-variables.less +++ b/kallithea/public/less/kallithea-variables.less @@ -23,6 +23,8 @@ @navbar-inverse-link-active-bg: @navbar-inverse-link-hover-bg; @navbar-inverse-toggle-hover-bg: @navbar-inverse-link-hover-bg; @navbar-inverse-toggle-border-color:@kallithea-theme-main-color; +@nav-pills-active-link-hover-color: @navbar-inverse-color; +@nav-pills-active-link-hover-bg: @navbar-inverse-bg; @dropdown-link-color: @navbar-inverse-color; @dropdown-bg: @navbar-inverse-bg; diff --git a/kallithea/public/less/style.less b/kallithea/public/less/style.less --- a/kallithea/public/less/style.less +++ b/kallithea/public/less/style.less @@ -605,25 +605,9 @@ div.gravatar img { color: #393939; font-weight: 700; } -.panel-body.settings .nav-pills > li { - padding: 0 !important; -} -.panel-body.settings .nav-pills > li > a { - border-radius: 4px; - padding: 10px; - display: block; - position: relative; +.panel-body.settings .nav-pills > :not(.active) > a { color: inherit; } -.panel-body.settings > ul.nav-stacked li.active > a, -.panel-body.settings > ul.nav-stacked li.active:hover > a { - color: #fff; - background-color: #577632; -} -.panel-body.settings > ul.nav-stacked li:hover > a { - text-decoration: none; - background-color: #eee; -} .panel-body.settings > div, .panel-body.settings > form { float: left;