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
224ceb0a
Commit
224ceb0a
authored
Aug 11, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(thresholds): updated design for grab handles
parent
89ca15f3
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
49 additions
and
6 deletions
+49
-6
public/app/plugins/panel/graph/thresholds.ts
+3
-2
public/img/grab_dark.svg
+15
-0
public/img/grab_light.svg
+15
-0
public/sass/_variables.dark.scss
+4
-2
public/sass/_variables.light.scss
+3
-2
public/sass/components/_panel_graph.scss
+9
-0
No files found.
public/app/plugins/panel/graph/thresholds.ts
View file @
224ceb0a
...
...
@@ -19,12 +19,13 @@ export class ThresholdControls {
colorClass
=
'warn'
;
}
return
`<div class="alert-handle-wrapper alert-handle-wrapper--T
${
handleIndex
}
">
return
`
<div class="alert-handle-wrapper alert-handle-wrapper--T
${
handleIndex
}
">
<div class="alert-handle-line alert-handle-line--
${
colorClass
}
">
</div>
<div class="alert-handle" data-handle-index="
${
handleIndex
}
">
<i class="icon-gf icon-gf-
${
colorClass
}
alert-icon-
${
colorClass
}
"></i>
<span class="alert-handle-value">
${
valueStr
}
</span>
<span class="alert-handle-value">
${
valueStr
}
<i class="alert-handle-grip"></i>
</span>
</div>
</div>`
;
...
...
public/img/grab_dark.svg
0 → 100644
View file @
224ceb0a
<?xml version="1.0" encoding="utf-8"?>
<!-- Generated by IcoMoon.io -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg
version=
"1.1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
width=
"12"
height=
"32"
viewBox=
"0 0 12 32"
>
<g
id=
"icomoon-ignore"
>
</g>
<path
d=
"M0 2h4v4h-4v-4z"
fill=
"#414141"
></path>
<path
d=
"M0 10h4v4h-4v-4z"
fill=
"#414141"
></path>
<path
d=
"M0 18h4v4h-4v-4z"
fill=
"#414141"
></path>
<path
d=
"M0 26h4v4h-4v-4z"
fill=
"#414141"
></path>
<path
d=
"M8 2h4v4h-4v-4z"
fill=
"#414141"
></path>
<path
d=
"M8 10h4v4h-4v-4z"
fill=
"#414141"
></path>
<path
d=
"M8 18h4v4h-4v-4z"
fill=
"#414141"
></path>
<path
d=
"M8 26h4v4h-4v-4z"
fill=
"#414141"
></path>
</svg>
public/img/grab_light.svg
0 → 100644
View file @
224ceb0a
<?xml version="1.0" encoding="utf-8"?>
<!-- Generated by IcoMoon.io -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg
version=
"1.1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
width=
"12"
height=
"32"
viewBox=
"0 0 12 32"
>
<g
id=
"icomoon-ignore"
>
</g>
<path
d=
"M0 2h4v4h-4v-4z"
fill=
"#CCC"
></path>
<path
d=
"M0 10h4v4h-4v-4z"
fill=
"#CCC"
></path>
<path
d=
"M0 18h4v4h-4v-4z"
fill=
"#CCC"
></path>
<path
d=
"M0 26h4v4h-4v-4z"
fill=
"#CCC"
></path>
<path
d=
"M8 2h4v4h-4v-4z"
fill=
"#CCC"
></path>
<path
d=
"M8 10h4v4h-4v-4z"
fill=
"#CCC"
></path>
<path
d=
"M8 18h4v4h-4v-4z"
fill=
"#CCC"
></path>
<path
d=
"M8 26h4v4h-4v-4z"
fill=
"#CCC"
></path>
</svg>
public/sass/_variables.dark.scss
View file @
224ceb0a
...
...
@@ -152,8 +152,10 @@ $btn-link-color: $gray-3;
$iconContainerBackground
:
$black
;
$btn-divider-left
:
$dark-5
;
$btn-divider-right
:
$dark-1
;
$btn-divider-left
:
$dark-4
;
$btn-divider-right
:
$dark-2
;
$btn-drag-image
:
'../img/grab_dark.svg'
;
// Forms
// -------------------------
...
...
public/sass/_variables.light.scss
View file @
224ceb0a
...
...
@@ -157,8 +157,9 @@ $btn-inverse-text-color: $dark-4;
$btn-link-color
:
$gray-1
;
$btn-divider-left
:
$dark-5
;
$btn-divider-right
:
$dark-1
;
$btn-divider-left
:
$gray-4
;
$btn-divider-right
:
$gray-7
;
$btn-drag-image
:
'../img/grab_light.svg'
;
$iconContainerBackground
:
$white
;
...
...
public/sass/components/_panel_graph.scss
View file @
224ceb0a
...
...
@@ -350,6 +350,15 @@
border-left
:
1px
solid
$btn-divider-right
;
padding
:
0
.5rem
;
line-height
:
2rem
;
.alert-handle-grip
{
background
:
url($btn-drag-image)
no-repeat
50%
50%
;
background-size
:
8px
;
float
:
right
;
width
:
1rem
;
height
:
2rem
;
margin-right
:
2px
;
}
}
&
--T1
{
...
...
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