-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new searchbar completed, fix little things
- Loading branch information
Showing
11 changed files
with
158 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
.searchbar { | ||
padding-top: 10px; | ||
|
||
.query button { | ||
padding-left: 6px; | ||
padding-right: 6px; | ||
width: 26px; | ||
} | ||
.query { | ||
transition: opacity 0.2s; | ||
text-align: center; | ||
&.empty:not(.always-visible) { | ||
opacity: 0.3; | ||
|
||
&:hover { | ||
opacity: 0.7; | ||
}; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 12 additions & 5 deletions
17
gui/HoneyProxy/views/templates/Searchbar-filterbutton.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
<div class="btn-group"> | ||
<button disabled class="btn btn-mini"> | ||
<i data-bind="className: model.isfilter ? 'icon-filter' : 'icon-sign-blank'; css: ['color',model.color]"></i> <span data-bind="textContent: model.query"></span></button> | ||
<button class="btn btn-mini" data-bind="click: view.onClick"><span class="close">×</span></button> | ||
</div> | ||
<form class="query input-prepend input-append span3" data-bind="toggleClass: ['empty',view.empty,'always-visible',view.alwaysVisible]; | ||
submit: view.onSubmit.bind(view)"> | ||
<span class="add-on" data-bind="css: ['color',view.color];"> | ||
<i data-bind="className: view.filter?'icon-filter':'icon-tag'"></i></span> | ||
<input type="text" class="span2" data-bind="bind: [view,'inputNode']; | ||
input: view.onInput.bind(view); | ||
blur: view.onBlur.bind(view); | ||
placeholder: view.filter?'Filter':'Highlight'"> | ||
<button class="btn" tabindex="-1" data-bind="toggleClass: ['btn-info',view.highlightSubmit]; | ||
title: view.highlightSubmit ? 'This query has not been submitted yet.' : 'Submit'"> | ||
<i class="icon-caret-right"></i></button> | ||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,4 @@ | ||
<div class="searchbar" style="overflow: visible; z-index: 10"> | ||
<form class="form-inline" style="padding:1em; margin-bottom: 0px"> | ||
<div class="input-append" > | ||
<input type="text" class="span4" placeholder="Search"> | ||
<div class="btn-group"> | ||
<button class="btn" tabindex="-1"><i data-bind="className: view.type.isfilter ? 'icon-filter' : 'icon-sign-blank'"d></i> Filter</a></button> | ||
<ul data-bind="on: ['a:click',view.dropdownClick.bind(view)]" class="dropdown-menu"> | ||
<li><a href="#" data-props='{"isfilter":true}'><i class="icon-filter"></i> Filter</a></li> | ||
<li class="divider"></li> | ||
<li><a href="#" data-props='{"isfilter":false, "color":"red"}'><i class="icon-sign-blank"></i> Highlight</a></li> | ||
<li><a href="#" data-props='{"isfilter":false, "color":"green"}'><i class="icon-sign-blank"></i> Highlight (2)</a></li> | ||
<li><a href="#" data-props='{"isfilter":false, "color":"blue"}'><i class="icon-sign-blank"></i> Highlight (3)</a></li> | ||
<li><a href="#" data-props='{"isfilter":false, "color":"orange"}'><i class="icon-sign-blank"></i> Highlight (4)</a></li> | ||
</ul> | ||
<button class="btn" data-toggle="dropdown" tabindex="-1"><span class="caret"></span></button> | ||
</div> | ||
<div class="searchbar" data-bind="toggleClass: ['dense', this.filters.length > 4]"> | ||
<div class="row" data-bind="bind: [view, 'filtersNode']"> | ||
</div> | ||
| ||
<span data-bind="widgets: view.queries"> | ||
<div class="btn-group"> | ||
<button class="btn btn-mini"><i class="icon-filter"></i> Left</button> | ||
<button class="btn btn-mini"><span class="close">×</span></button> | ||
</div> | ||
<div class="btn-group"> | ||
<button class="btn btn-mini"><i class="icon-sign-blank"></i> Right</button> | ||
<button class="btn btn-mini"><span class="close">×</span></button> | ||
</div> | ||
|
||
</span> | ||
</form> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters