Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
6f783f5a
Commit
6f783f5a
authored
May 29, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Single variable select state highlight fixed, Closes #2073
parent
6ed17fe6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
20 deletions
+26
-20
public/app/features/dashboard/partials/variableValueSelect.html
+2
-2
public/css/less/submenu.less
+24
-18
No files found.
public/app/features/dashboard/partials/variableValueSelect.html
View file @
6f783f5a
...
...
@@ -14,13 +14,13 @@
<input
type=
"text"
class=
"tight-form-clear-input input-small"
style=
"display: none"
ng-keydown=
"keyDown($event)"
ng-model=
"search.query"
ng-change=
"queryChanged()"
></input>
<div
class=
"variable-value-dropdown"
ng-if=
"dropdownVisible"
>
<div
class=
"variable-value-dropdown"
ng-if=
"dropdownVisible"
ng-class=
"{'multi': variable.multi, 'single': !variable.multi}"
>
<div
class=
"variable-options-wrapper"
>
<div
class=
"variable-options-column"
>
<div
class=
"variable-options-column-header"
ng-if=
"variable.multi"
>
Selected ({{selectedValuesCount}})
</div>
<a
class=
"variable-option pointer"
bindonce
ng-repeat=
"option in search.options"
ng-class=
"{'selected': option.selected, 'highlighted': $index === highlightIndex
, 'multi': variable.multi
}"
ng-click=
"optionSelected(option, $event)"
>
<a
class=
"variable-option pointer"
bindonce
ng-repeat=
"option in search.options"
ng-class=
"{'selected': option.selected, 'highlighted': $index === highlightIndex}"
ng-click=
"optionSelected(option, $event)"
>
<span
class=
"variable-option-icon"
></span>
<span>
{{option.text}}
</span>
</a>
...
...
public/css/less/submenu.less
View file @
6f783f5a
...
...
@@ -55,7 +55,7 @@
min-width: 150px;
max-height: 400px;
min-height: 150px;
background: @dropdownBackground;
background
-color
: @dropdownBackground;
overflow-y: auto;
overflow-x: hidden;
box-shadow: 0px 0px 55px 0px black;
...
...
@@ -63,6 +63,29 @@
z-index: 1000;
font-size: @baseFontSize;
border-radius: 3px 3px 0 0;
&.multi {
.variable-option-icon {
display: inline-block;
width: 24px;
height: 18px;
position: relative;
top: 4px;
background: url(@checkboxImageUrl) left top no-repeat;
}
.selected {
.variable-option-icon{
background: url(@checkboxImageUrl) 0px -18px no-repeat;
}
}
}
&.single {
.selected {
background-color: @grafanaTargetFuncHightlight;
}
}
}
.variable-options-wrapper {
...
...
@@ -87,23 +110,6 @@
position: relative;
white-space: nowrap;
min-width: 115px;
&.multi {
.variable-option-icon {
display: inline-block;
width: 24px;
height: 18px;
position: relative;
top: 4px;
background: url(@checkboxImageUrl) left top no-repeat;
}
&.selected {
.variable-option-icon{
background: url(@checkboxImageUrl) 0px -18px no-repeat;
}
}
}
}
.variable-options-column-header {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment