# HG changeset patch # User veltr # Date 1372934610 -7200 # Node ID 2a2fcec209d0e4fd652258be5ed202c9e28e315b # Parent 15e048e0000256bede8d17bd9258e8070b5eda57 Added in-graph search diff -r 15e048e00002 -r 2a2fcec209d0 client/css/renkan.css --- a/client/css/renkan.css Wed Jul 03 13:42:59 2013 +0200 +++ b/client/css/renkan.css Thu Jul 04 12:43:30 2013 +0200 @@ -228,6 +228,34 @@ .Rk-Open-Button:hover { background-position: -240px -35px; } + +.Rk-GraphSearch-Form { + float: right; width: 170px; position: relative; +} + +.Rk-GraphSearch-Form:before, .Rk-GraphSearch-Form:after { + position: absolute; display: block; content: "."; text-indent: -9999px; +} + +.Rk-GraphSearch-Form:before { + right: 10px; top: 20px; width: 7px; height: 2px; border: none; padding: 0; background: #666666; + transform: rotate(40deg); -webkit-transform: rotate(40deg); +} + +.Rk-GraphSearch-Form:after { + right: 13px; top: 11px; width: 6px; height: 6px; border-radius: 8px; border: 2px solid #666666; +} + +.Rk-GraphSearch-Field { + line-height: 23px; font-size: 14px; height: 23px; padding: 0 5px; border: none; margin: 6px 5px; + width: 150px; background: #f0f0f0; box-shadow: 1px 1px 1px #999999 inset; border-radius: 5px; + -webkit-appearance: none; + -webkit-box-sizing: content-box; + -moz-box-sizing: content-box; + box-sizing: content-box; +} + + /* Canvas */ .Rk-Editing-Space { @@ -247,6 +275,10 @@ /* Node Labels */ +.Rk-Highlighted { + background: rgba(255,255,0,.5); +} + .Rk-Labels { position: absolute; left: 0; top: 0; z-index: 1; font-family: "Segoe UI", "Helvetica Neue", Arial, Helvetica, sans-serif; diff -r 15e048e00002 -r 2a2fcec209d0 client/js/defaults.js --- a/client/js/defaults.js Wed Jul 03 13:42:59 2013 +0200 +++ b/client/js/defaults.js Thu Jul 04 12:43:30 2013 +0200 @@ -36,6 +36,7 @@ autoscale_padding: 50, /* TOP BAR BUTTONS */ + show_search_field: true, show_user_list: true, show_save_button: true, show_open_button: false, diff -r 15e048e00002 -r 2a2fcec209d0 client/js/ldtjson-bin.js --- a/client/js/ldtjson-bin.js Wed Jul 03 13:42:59 2013 +0200 +++ b/client/js/ldtjson-bin.js Thu Jul 04 12:43:30 2013 +0200 @@ -1,5 +1,7 @@ (function(Rkns) { -"use strict" +"use strict"; + +var _ = Rkns._; var Ldt = Rkns.Ldt = {}; @@ -15,12 +17,12 @@ var ProjectBin = Ldt.ProjectBin = Rkns.Utils.inherit(Rkns._BaseBin); -ProjectBin.prototype.tagTemplate = Rkns._.template( +ProjectBin.prototype.tagTemplate = _.template( '

<%=hdescription%>
Start: <%=start%>, End: <%=end%>, Duration: <%=duration%>
<%=hdescription%>
Start: <%=start%>, End: <%=end%>, Duration: <%=duration%>