-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2860 from timroes/sidebar-hintboxes
Add hintboxes in sidebar for additional information
- Loading branch information
Showing
4 changed files
with
47 additions
and
14 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
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,12 +1,15 @@ | ||
<div class="form-group regex"> | ||
<label>JSON Input</label> | ||
<span class="hintbox-label" ng-click="showJsonHint = !showJsonHint"> | ||
<label>JSON Input</label> | ||
<i class="fa fa-info-circle"></i> | ||
</span> | ||
<div class="hintbox" ng-show="showJsonHint">Any JSON formatted properties you add here will be merged with the elasticsearch aggregation definition for this section. For example <i>shard_size</i> on a <i>terms</i> aggregation</div> | ||
<p> | ||
<textarea | ||
type="text" | ||
class="form-control" | ||
ng-model="agg.params.json" | ||
validate-json | ||
></textarea> | ||
<small>Any JSON formatted properties you add here will be merged with the elasticsearch aggregation definition for this section. For example <i>shard_size</i> on a <i>terms</i> aggregation</small> | ||
</p> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
.hintbox-label, | ||
.hintbox-label[ng-click] { | ||
cursor: help; | ||
} | ||
|
||
.hintbox { | ||
border-radius: 5px; | ||
background-color: @gray-lighter; | ||
padding: 5px; | ||
margin-bottom: 5px; | ||
|
||
a { | ||
color: @link-color !important; | ||
|
||
&:hover { | ||
color: @text-color !important; | ||
} | ||
} | ||
} | ||
|
||
.hintbox p { | ||
margin-bottom: 0; | ||
} | ||
.hintbox p + p { | ||
margin-top: 5px; | ||
} |
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