From 768a9675ebf2608c83c2bed0ddc866b52eb7e25d Mon Sep 17 00:00:00 2001 From: Matthias Bussonnier Date: Fri, 14 Aug 2015 19:30:53 -0700 Subject: [PATCH] pull styling in separate file --- .../static/notebook/js/searchandreplace.js | 18 +++---- notebook/static/notebook/less/notebook.less | 24 --------- .../notebook/less/searchandreplace.less | 51 +++++++++++++++++++ notebook/static/style/style.less | 1 + 4 files changed, 58 insertions(+), 36 deletions(-) create mode 100644 notebook/static/notebook/less/searchandreplace.less diff --git a/notebook/static/notebook/js/searchandreplace.js b/notebook/static/notebook/js/searchandreplace.js index 12adb88fd..7e6b367fb 100644 --- a/notebook/static/notebook/js/searchandreplace.js +++ b/notebook/static/notebook/js/searchandreplace.js @@ -41,11 +41,11 @@ define(function(require){ } for(var rindex=0; rindex').addClass('replace-preview') + var pre = $('
')
         .append(html[rindex][0])
         .append($('').addClass('match').text(html[rindex][1]));
       if(replace){
-        pre.append($('').addClass('replace').text(html[rindex][2]));
+        pre.append($('').addClass('insert').text(html[rindex][2]));
         pre.addClass('replace');
       }
       pre.append(html[rindex][3]);
@@ -100,7 +100,6 @@ define(function(require){
   var snr = function(env){
     var search  = $("")
       .addClass('form-control')
-      .css('width','86%')
       .attr('placeholder','Search');
     var isRegExpButton = $('