From bf5081ec8ce7b2e3e54c11d7fc2e45086fbed796 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Tue, 18 Aug 2015 10:09:02 +0200 Subject: [PATCH] fix(type ahead): fixed highlight, and made the highlight more distinct, also rolled back #2436 due to its issues on linux and windows, fixes #2527 --- public/css/less/grafana.less | 4 ++++ public/css/less/type.less | 2 +- public/vendor/bootstrap/bootstrap.js | 5 ++++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/public/css/less/grafana.less b/public/css/less/grafana.less index 3062ece1391..96a4b3c4b49 100644 --- a/public/css/less/grafana.less +++ b/public/css/less/grafana.less @@ -386,3 +386,7 @@ padding: 80px 0; } } + +.typeahead strong { + color: @yellow; +} diff --git a/public/css/less/type.less b/public/css/less/type.less index 1d833792484..0aeec228d6a 100644 --- a/public/css/less/type.less +++ b/public/css/less/type.less @@ -23,7 +23,7 @@ p { // Ex: 14px base font * 85% = about 12px small { font-size: 85%; } -strong { font-weight: 500; } +strong { font-weight: bold; } em { font-style: italic; color: @headingsColor; } cite { font-style: normal; } diff --git a/public/vendor/bootstrap/bootstrap.js b/public/vendor/bootstrap/bootstrap.js index 62e23675410..2d9b83a4ba7 100644 --- a/public/vendor/bootstrap/bootstrap.js +++ b/public/vendor/bootstrap/bootstrap.js @@ -1993,9 +1993,12 @@ , highlighter: function (item) { var query = this.query.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, '\\$&') + if (!query) { + return item; + } return item.replace(new RegExp('(' + query + ')', 'ig'), function ($1, match) { return '' + match + '' - }) + }); } , render: function (items) {