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
923e18b2
Commit
923e18b2
authored
Feb 20, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small design change for the submenu (templating, annotations), #1503
parent
596dfc30
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
11 deletions
+28
-11
src/app/directives/templateParamSelector.js
+1
-1
src/app/partials/submenu.html
+5
-1
src/css/less/submenu.less
+4
-0
src/css/less/tightform.less
+18
-9
No files found.
src/app/directives/templateParamSelector.js
View file @
923e18b2
...
...
@@ -14,7 +14,7 @@ function (angular, app, _, $) {
' class="tight-form-clear-input input-medium"'
+
' spellcheck="false" style="display:none"></input>'
;
var
buttonTemplate
=
'<a class="tight-form-item tabindex="1">{{variable.current.text}}</a>'
;
var
buttonTemplate
=
'<a class="tight-form-item tabindex="1">{{variable.current.text}}
<i class="fa fa-caret-down"></i>
</a>'
;
return
{
link
:
function
(
$scope
,
elem
)
{
...
...
src/app/partials/submenu.html
View file @
923e18b2
<div
class=
"submenu-controls"
ng-controller=
"SubmenuCtrl"
>
<div
class=
"tight-form
"
style=
"border-top: none
"
>
<div
class=
"tight-form
borderless
"
>
<ul
class=
"tight-form-list"
ng-if=
"dashboard.templating.enable"
>
<li
class=
"tight-form-item"
>
<strong>
Variables:
</strong>
</li>
<li
ng-repeat-start=
"variable in variables"
class=
"tight-form-item template-param-name"
>
<span
class=
"template-variable "
>
${{variable.name}}:
...
...
@@ -13,6 +16,7 @@
</ul>
<ul
class=
"tight-form-list"
ng-if=
"dashboard.annotations.enable"
>
<strong>
ANNOTATIONS
</strong>
<li
ng-repeat=
"annotation in dashboard.annotations.list"
class=
"tight-form-item annotation-segment"
ng-class=
"{'annotation-disabled': !annotation.enable}"
>
<a
ng-click=
"disableAnnotation(annotation)"
>
<i
class=
"annotation-color-icon fa fa-bolt"
></i>
...
...
src/css/less/submenu.less
View file @
923e18b2
...
...
@@ -4,6 +4,10 @@
}
}
.submenu-controls {
margin: 5px 5px 0 10px;
}
.annotation-disabled, .annotation-disabled a {
color: @linkColorDisabled;
}
...
...
src/css/less/tightform.less
View file @
923e18b2
...
...
@@ -12,6 +12,18 @@
&:last-child, &.last {
border-bottom: 1px solid @grafanaTargetBorder;
}
&.borderless {
background: transparent;
border: none;
}
}
.borderless {
.tight-form-item,
.tight-form-input {
border: none;
}
}
.tight-form-container {
...
...
@@ -27,7 +39,6 @@
padding: 8px 12px;
}
// old graphite-segment-list
.tight-form-list {
list-style: none;
margin: 0;
...
...
@@ -40,7 +51,6 @@
margin-top: 35px;
}
// old grafana-target-segment {
.tight-form-item {
padding: 8px 7px;
display: inline-block;
...
...
@@ -53,7 +63,6 @@
padding-top: 25px;
}
// old .grafana-target-hidden & {
.tight-form-disabled & {
color: @grafanaTargetColorHide;
}
...
...
@@ -77,9 +86,14 @@
&.last {
border-right: none;
}
.fa-caret-down {
font-size: 75%;
position: relative;
top: 1px;
}
}
//.grafana-target-segment-icon {
.tight-form-item-icon {
i {
width: 15px;
...
...
@@ -88,7 +102,6 @@
}
}
//.grafana-target-function {
.tight-form-func {
background: @grafanaTargetFuncBackground;
> a {
...
...
@@ -105,7 +118,6 @@
}
}
//input[type=text].grafana-function-param-input {
input[type=text].tight-form-func-param {
background: transparent;
border: none;
...
...
@@ -113,7 +125,6 @@ input[type=text].tight-form-func-param {
padding: 0;
}
//input[type=text].grafana-target-text-input {
input[type=text].tight-form-clear-input {
padding: 8px 7px;
border: none;
...
...
@@ -142,7 +153,6 @@ input[type=text].tight-form-clear-input {
}
}
//input[type=checkbox].grafana-target-option-checkbox {
input[type=checkbox].tight-form-checkbox {
margin: 0;
}
...
...
@@ -159,7 +169,6 @@ select.tight-form-input {
}
}
//.graphite-func-controls {
.tight-form-func-controls {
display: none;
text-align: center;
...
...
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