# HG changeset patch # User domruf # Date 1509311394 -3600 # Node ID 057ef81c18e9dcaae8ae68cfcee9425606e8e889 # Parent 0ad309300bd8ea48de999ae25e74e6c7ac3d7453 less: clean up search style - there is no .search_path or .search - highlight search .match - highlight search .break diff -r 0ad309300bd8 -r 057ef81c18e9 kallithea/public/less/kallithea-variables.less --- a/kallithea/public/less/kallithea-variables.less Sun Oct 29 12:24:01 2017 +0100 +++ b/kallithea/public/less/kallithea-variables.less Sun Oct 29 22:09:54 2017 +0100 @@ -23,3 +23,7 @@ @navbar-inverse-toggle-border-color:@kallithea-theme-main-color; @dropdown-link-color: @navbar-inverse-color; @dropdown-bg: @navbar-inverse-bg; + +/* custom variables */ +@highlight-color: #FAFFA6; +@highlight-line-color: #DDE7EF; diff -r 0ad309300bd8 -r 057ef81c18e9 kallithea/public/less/style.less --- a/kallithea/public/less/style.less Sun Oct 29 12:24:01 2017 +0100 +++ b/kallithea/public/less/style.less Sun Oct 29 22:09:54 2017 +0100 @@ -95,6 +95,16 @@ min-height: 0.01%; } +/* search highlighting */ +div.search-code-body pre .match { + background-color: @highlight-color; +} +div.search-code-body pre .break { + background-color: @highlight-line-color; + width: 100%; + display: block; +} + /* use @alert-danger-text for form error messages and .alert-danger for the input element */ .form-group .error-message { color: @alert-danger-text; @@ -542,22 +552,6 @@ .pull-right .changes .deleted { background: #FAA; } -.panel .search div.search_path { - background: none repeat scroll 0 0 #EEE; - border: 1px solid #CCC; - color: blue; - margin-bottom: 10px; - padding: 10px 0; -} -.panel .search div.search_path div.link { - font-weight: 700; - margin-left: 25px; -} -.panel .search div.search_path div.link a { - color: #577632; - cursor: pointer; - text-decoration: none; -} #repo_size { display: block; @@ -606,12 +600,6 @@ div.gravatar img { border-radius: 2px; } -#content div.panel div.panel-heading div.search { - border-left: 1px solid #576622; -} -#content div.panel div.panel-heading div.search > div input { - border: 1px solid #576622; -} .panel-body.settings > ul.nav-stacked { float: left; width: 150px;