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
a73ef353
Commit
a73ef353
authored
Feb 19, 2016
by
bergquist
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'timepicker'
parents
ed58474c
d769f6c0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
66 additions
and
19 deletions
+66
-19
public/app/features/dashboard/timepicker/dropdown.html
+30
-15
public/sass/_grafana.scss
+1
-0
public/sass/base/_font_awesome.scss
+0
-0
public/sass/components/_timepicker.scss
+35
-4
No files found.
public/app/features/dashboard/timepicker/dropdown.html
View file @
a73ef353
<div
class=
"row pull-right"
>
<div
class=
"row pull-right"
>
<form
name=
"timeForm"
class=
"gf-timepicker-absolute-section"
>
<form
name=
"timeForm"
class=
"gf-timepicker-absolute-section"
>
<h3>
Time range
</h3>
<h3>
Time range
</h3>
<label
class=
"small"
>
From:
</label>
<label
class=
"small"
>
From:
</label>
<div
class=
"input-prepend"
>
<div
class=
"gf-form-inline"
>
<input
type=
"text"
class=
"input-large"
ng-model=
"ctrl.timeRaw.from"
input-datetime
>
<div
class=
"gf-form gf-size-max-xxxl"
>
<button
class=
"btn btn-primary"
type=
"button"
ng-click=
"openFromPicker=!openFromPicker"
>
<input
type=
"text"
class=
"gf-form-input input-large"
ng-model=
"ctrl.timeRaw.from"
input-datetime
>
<i
class=
"fa fa-calendar"
></i>
</div>
</button>
<div
class=
"gf-form"
>
<button
class=
"btn gf-form-btn btn-primary"
type=
"button"
ng-click=
"openFromPicker=!openFromPicker"
>
<i
class=
"fa fa-calendar"
></i>
</button>
</div>
</div>
</div>
<div
ng-if=
"openFromPicker"
>
<div
ng-if=
"openFromPicker"
>
<datepicker
ng-model=
"ctrl.absolute.fromJs"
class=
"gf-timepicker-component"
show-weeks=
"false"
ng-change=
"ctrl.absoluteFromChanged()"
></datepicker>
<datepicker
ng-model=
"ctrl.absolute.fromJs"
class=
"gf-timepicker-component"
show-weeks=
"false"
ng-change=
"ctrl.absoluteFromChanged()"
></datepicker>
</div>
</div>
<label
class=
"small"
>
To:
</label>
<label
class=
"small"
>
To:
</label>
<div
class=
"input-prepend"
>
<div
class=
"gf-form-inline"
>
<input
type=
"text"
class=
"input-large"
ng-model=
"ctrl.timeRaw.to"
input-datetime
>
<div
class=
"gf-form gf-size-max-xxxl"
>
<button
class=
"btn btn-primary"
type=
"button"
ng-click=
"openToPicker=!openToPicker"
>
<input
type=
"text"
class=
"gf-form-input input-large"
ng-model=
"ctrl.timeRaw.to"
input-datetime
>
<i
class=
"fa fa-calendar"
></i>
</div>
</button>
<div
class=
"gf-form"
>
<button
class=
"btn gf-form-btn btn-primary"
type=
"button"
ng-click=
"openToPicker=!openToPicker"
>
<i
class=
"fa fa-calendar"
></i>
</button>
</div>
</div>
</div>
<div
ng-if=
"openToPicker"
>
<div
ng-if=
"openToPicker"
>
<datepicker
ng-model=
"ctrl.absolute.toJs"
class=
"gf-timepicker-component"
show-weeks=
"false"
ng-change=
"ctrl.absoluteToChanged()"
></datepicker>
<datepicker
ng-model=
"ctrl.absolute.toJs"
class=
"gf-timepicker-component"
show-weeks=
"false"
ng-change=
"ctrl.absoluteToChanged()"
></datepicker>
</div>
</div>
<label
class=
"small"
>
Refreshing every:
</label>
<label
class=
"small"
>
Refreshing every:
</label>
<select
ng-model=
"ctrl.refresh.value"
class=
'input-medium'
ng-options=
"f.value as f.text for f in ctrl.refresh.options"
>
<div
class=
"gf-form-inline"
>
</select>
<div
class=
"gf-form gf-size-max-xxxl"
>
<select
ng-model=
"ctrl.refresh.value"
class=
"gf-form-input input-medium"
ng-options=
"f.value as f.text for f in ctrl.refresh.options"
></select>
</div>
<div
class=
"gf-form"
>
<button
type=
"submit"
class=
"btn gf-form-btn btn-primary"
ng-click=
"ctrl.applyCustom();"
ng-disabled=
"!timeForm.$valid"
>
Apply
</button>
</div>
</div>
<button
type=
"submit"
class=
"btn btn-primary"
ng-click=
"ctrl.applyCustom();"
ng-disabled=
"!timeForm.$valid"
>
Apply
</button>
</form>
</form>
<div
class=
"gf-timepicker-relative-section"
>
<div
class=
"gf-timepicker-relative-section"
>
...
...
public/sass/_grafana.scss
View file @
a73ef353
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
@import
"base/forms"
;
@import
"base/forms"
;
@import
"base/fonts"
;
@import
"base/fonts"
;
@import
"base/grid"
;
@import
"base/grid"
;
@import
"base/font_awesome"
;
// UTILS
// UTILS
@import
"utils/utils"
;
@import
"utils/utils"
;
...
...
public/
vendor/css/font-awesome.min.
css
→
public/
sass/base/_font_awesome.s
css
View file @
a73ef353
File moved
public/sass/components/_timepicker.scss
View file @
a73ef353
...
@@ -21,10 +21,10 @@
...
@@ -21,10 +21,10 @@
}
}
.gf-timepicker-absolute-section
{
.gf-timepicker-absolute-section
{
width
:
30
0px
;
width
:
29
0px
;
float
:
left
;
float
:
left
;
border-right
:
1px
solid
$divider-border-color
;
border-right
:
1px
solid
$divider-border-color
;
padding
:
0
0
0
2
0px
;
padding
:
0
1
0px
;
select
{
select
{
width
:
183px
;
width
:
183px
;
margin-bottom
:
0
;
margin-bottom
:
0
;
...
@@ -47,7 +47,7 @@
...
@@ -47,7 +47,7 @@
.gf-timepicker-relative-section
{
.gf-timepicker-relative-section
{
padding
:
0
20px
0
30px
;
padding
:
0
20px
0
30px
;
min-height
:
2
58
px
;
min-height
:
2
37
px
;
float
:
left
;
float
:
left
;
ul
{
ul
{
list-style
:
none
;
list-style
:
none
;
...
@@ -66,11 +66,14 @@
...
@@ -66,11 +66,14 @@
.gf-timepicker-component
{
.gf-timepicker-component
{
margin-bottom
:
10px
;
margin-bottom
:
10px
;
td
{
padding
:
1px
;
}
button
.btn-sm
{
button
.btn-sm
{
@include
buttonBackground
(
$btnInverseBackground
,
$btnInverseBackgroundHighlight
);
@include
buttonBackground
(
$btnInverseBackground
,
$btnInverseBackgroundHighlight
);
background-image
:
none
;
background-image
:
none
;
border
:
none
;
border
:
none
;
padding
:
6px
9
px
;
padding
:
6px
10
px
;
color
:
$text-color
;
color
:
$text-color
;
&
.active
span
{
&
.active
span
{
color
:
$blue
;
color
:
$blue
;
...
@@ -86,3 +89,31 @@
...
@@ -86,3 +89,31 @@
.input-datetime-format
{
.input-datetime-format
{
color
:
$link-color-disabled
color
:
$link-color-disabled
}
}
.fa
{
display
:
inline-block
;
font
:
normal
normal
normal
14px
/
1
FontAwesome
;
font-size
:
inherit
;
text-rendering
:
auto
;
-webkit-font-smoothing
:
antialiased
;
-moz-osx-font-smoothing
:
grayscale
;
}
.fa-chevron-left
:before
{
content
:
"\f053"
;
}
.fa-chevron-right
:before
{
content
:
"\f054"
;
}
.glyphicon-chevron-right
{
@extend
.fa
;
@extend
.fa-chevron-right
;
}
.glyphicon-chevron-left
{
@extend
.fa
;
@extend
.fa-chevron-left
;
}
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