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
fc983f97
Commit
fc983f97
authored
Mar 21, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ux(): checkbox v2 tweaks
parent
ae255a7a
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
13 deletions
+22
-13
public/app/features/panel/partials/panelTime.html
+7
-3
public/app/plugins/panel/graph/styleEditor.html
+9
-6
public/sass/components/_switch.scss
+4
-2
public/sass/utils/_widths.scss
+2
-2
No files found.
public/app/features/panel/partials/panelTime.html
View file @
fc983f97
...
...
@@ -9,7 +9,7 @@
<input
type=
"text"
class=
"gf-form-input max-width-8"
placeholder=
"1h"
empty-to-null
ng-model=
"ctrl.panel.timeFrom"
valid-time-span
ng-change=
"ctrl.refresh()"
ng-model-onblur
>
ng-change=
"ctrl.refresh()"
ng-model-onblur
>
</input>
</div>
<div
class=
"gf-form"
>
...
...
@@ -20,14 +20,18 @@
<span
class=
"gf-form-label width-6"
>
Amount
</span>
<input
type=
"text"
class=
"gf-form-input max-width-8"
placeholder=
"1h"
empty-to-null
ng-model=
"ctrl.panel.timeShift"
valid-time-span
ng-change=
"ctrl.refresh()"
ng-model-onblur
>
ng-change=
"ctrl.refresh()"
ng-model-onblur
>
</input>
</div>
<div
class=
"gf-form"
>
<span
class=
"gf-form-label"
>
<i
class=
"fa fa-clock-o"
></i>
</span>
<editor-checkbox
text=
"Hide time override info"
model=
"ctrl.panel.hideTimeOverride"
change=
"ctrl.refresh()"
></editor-checkbox>
<label
class=
"gf-form-label width-12"
>
Hide time override info
</label>
<div
class=
"gf-form-switch max-width-6"
>
<input
id=
"cmn-toggle-122"
type=
"checkbox"
ng-model=
"ctrl.panel.hideTimeOverride"
change=
"ctrl.refresh()"
>
<label
for=
"cmn-toggle-122"
data-on=
"Yes"
data-off=
"No"
></label>
</div>
</div>
</div>
...
...
public/app/plugins/panel/graph/styleEditor.html
View file @
fc983f97
...
...
@@ -2,14 +2,14 @@
<div
class=
"section"
>
<h5
class=
"section-heading"
>
Draw Modes
</h5>
<div
class=
"gf-form"
>
<label
class=
"gf-form-label width-5"
>
Bars
</label>
<label
for=
"cmn-toggle-3"
class=
"gf-form-label width-5"
>
Bars
</label>
<div
class=
"gf-form-switch"
>
<input
id=
"cmn-toggle-3"
type=
"checkbox"
ng-model=
"ctrl.panel.bars"
>
<label
for=
"cmn-toggle-3"
data-on=
"Yes"
data-off=
"No"
></label>
</div>
</div>
<div
class=
"gf-form"
>
<label
class=
"gf-form-label width-5"
>
Lines
</label>
<label
for=
"cmn-toggle-2"
class=
"gf-form-label width-5"
>
Lines
</label>
<div
class=
"gf-form-switch"
>
<input
id=
"cmn-toggle-2"
type=
"checkbox"
ng-model=
"ctrl.panel.lines"
>
<label
for=
"cmn-toggle-2"
data-on=
"Yes"
data-off=
"No"
></label>
...
...
@@ -27,25 +27,28 @@
<h5
class=
"section-heading"
>
Mode Options
</h5>
<div
class=
"gf-form"
ng-show=
"ctrl.panel.lines"
>
<label
class=
"gf-form-label width-8"
>
Fill
</label>
<div
class=
"gf-form-select-wrapper"
>
<div
class=
"gf-form-select-wrapper
max-width-5
"
>
<select
class=
"gf-form-input"
ng-model=
"ctrl.panel.fill"
ng-options=
"f for f in [0,1,2,3,4,5,6,7,8,9,10]"
ng-change=
"ctrl.render()"
></select>
</div>
</div>
<div
class=
"gf-form"
ng-show=
"ctrl.panel.lines"
>
<label
class=
"gf-form-label width-8"
>
Line Width
</label>
<div
class=
"gf-form-select-wrapper"
>
<div
class=
"gf-form-select-wrapper
max-width-5
"
>
<select
class=
"gf-form-input"
ng-model=
"ctrl.panel.linewidth"
ng-options=
"f for f in [0,1,2,3,4,5,6,7,8,9,10]"
ng-change=
"ctrl.render()"
></select>
</div>
</div>
<div
class=
"gf-form"
ng-show=
"ctrl.panel.points"
>
<label
class=
"gf-form-label width-8"
>
Point Radius
</label>
<div
class=
"gf-form-select-wrapper"
>
<div
class=
"gf-form-select-wrapper
max-width-5
"
>
<select
class=
"gf-form-input"
ng-model=
"ctrl.panel.pointradius"
ng-options=
"f for f in [1,2,3,4,5,6,7,8,9,10]"
ng-change=
"ctrl.render()"
></select>
</div>
</div>
<div
class=
"gf-form"
ng-show=
"ctrl.panel.lines"
>
<label
class=
"gf-form-label width-8"
>
Staircase
</label>
<editor-checkbox
text=
""
model=
"ctrl.panel.steppedLine"
change=
"ctrl.render()"
></editor-checkbox>
<div
class=
"gf-form-switch max-width-5"
>
<input
id=
"cmn-toggle-122"
type=
"checkbox"
ng-model=
"ctrl.panel.steppedLine"
>
<label
for=
"cmn-toggle-122"
data-on=
"Yes"
data-off=
"No"
></label>
</div>
</div>
</div>
<div
class=
"section"
>
...
...
public/sass/components/_switch.scss
View file @
fc983f97
...
...
@@ -8,6 +8,9 @@ $switch-height: 1.5rem;
.gf-form-switch
{
position
:
relative
;
max-width
:
4
.5rem
;
flex-grow
:
1
;
min-width
:
4
.0rem
;
input
{
position
:
absolute
;
...
...
@@ -22,7 +25,7 @@ $switch-height: 1.5rem;
cursor
:
pointer
;
outline
:
none
;
user-select
:
none
;
width
:
5rem
;
width
:
100%
;
height
:
2
.65rem
;
background-color
:
$page-bg
;
}
...
...
@@ -35,7 +38,6 @@ $switch-height: 1.5rem;
bottom
:
0
;
right
:
0
;
color
:
#fff
;
font-family
:
"Open Sans"
;
font-size
:
$font-size-sm
;
text-align
:
center
;
line-height
:
2
.6rem
;
...
...
public/sass/utils/_widths.scss
View file @
fc983f97
...
...
@@ -6,13 +6,13 @@
// widths
@for
$i
from
1
through
30
{
.width-
#{
$i
}
{
width
:
(
$spacer
*
$i
)
-
$gf-form-margin
;
width
:
(
$spacer
*
$i
)
-
$gf-form-margin
!
important
;
}
}
@for
$i
from
1
through
30
{
.max-width-
#{
$i
}
{
max-width
:
(
$spacer
*
$i
)
-
$gf-form-margin
;
max-width
:
(
$spacer
*
$i
)
-
$gf-form-margin
!
important
;
flex-grow
:
1
;
}
}
...
...
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