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
a685e46f
Commit
a685e46f
authored
Feb 20, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ux(): minor tweaks
parent
d0d21ba9
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
35 additions
and
37 deletions
+35
-37
public/app/features/dashboard/timepicker/dropdown.html
+1
-3
public/app/features/datasources/partials/edit.html
+1
-1
public/app/features/styleguide/styleguide.html
+6
-12
public/app/features/styleguide/styleguide.ts
+3
-0
public/app/partials/dashboard.html
+1
-1
public/sass/_variables.dark.scss
+8
-8
public/sass/_variables.light.scss
+5
-5
public/sass/components/_buttons.scss
+6
-6
public/sass/layout/_page.scss
+3
-1
public/sass/pages/_styleguide.scss
+1
-0
No files found.
public/app/features/dashboard/timepicker/dropdown.html
View file @
a685e46f
...
...
@@ -35,15 +35,13 @@
<datepicker
ng-model=
"ctrl.absolute.toJs"
class=
"gf-timepicker-component"
show-weeks=
"false"
ng-change=
"ctrl.absoluteToChanged()"
></datepicker>
</div>
<label
class=
"small"
>
Refreshing every:
</label>
<div
class=
"gf-form-inline"
>
<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-
prim
ary"
ng-click=
"ctrl.applyCustom();"
ng-disabled=
"!timeForm.$valid"
>
Apply
</button>
<button
type=
"submit"
class=
"btn gf-form-btn btn-
second
ary"
ng-click=
"ctrl.applyCustom();"
ng-disabled=
"!timeForm.$valid"
>
Apply
</button>
</div>
</div>
...
...
public/app/features/datasources/partials/edit.html
View file @
a685e46f
...
...
@@ -41,7 +41,7 @@
<div
class=
"gf-form-button-row"
>
<button
type=
"submit"
class=
"btn btn-success"
ng-show=
"isNew"
ng-click=
"saveChanges()"
>
Add
</button>
<button
type=
"submit"
class=
"btn btn-success"
ng-show=
"!isNew"
ng-click=
"saveChanges()"
>
Save
</button>
<button
type=
"submit"
class=
"btn btn-
prim
ary"
ng-show=
"!isNew"
ng-click=
"saveChanges(true)"
>
<button
type=
"submit"
class=
"btn btn-
second
ary"
ng-show=
"!isNew"
ng-click=
"saveChanges(true)"
>
Test Connection
</button>
<a
class=
"btn btn-link"
href=
"datasources"
>
Cancel
</a>
...
...
public/app/features/styleguide/styleguide.html
View file @
a685e46f
...
...
@@ -26,20 +26,14 @@
</tab>
<tab
heading=
"Buttons"
>
<div
class=
"style-guide-button-list p-a-2"
>
<button
class=
"btn btn-primary"
>
btn-primary
</button>
<button
class=
"btn btn-info"
>
btn-info
</button>
<button
class=
"btn btn-inverse"
>
btn-inverse
</button>
<button
class=
"btn btn-success"
>
btn-success
</button>
<button
class=
"btn btn-warning"
>
btn-warning
</button>
<button
class=
"btn btn-danger"
>
btn-danger
</button>
<div
ng-repeat=
"variant in ctrl.buttonVariants"
class=
"row"
>
<div
ng-repeat=
"btnSize in ctrl.buttonSizes"
class=
"style-guide-button-list p-a-2 col-md-4"
>
<button
ng-repeat=
"buttonName in ctrl.buttonNames"
class=
"btn btn{{variant}}{{buttonName}} {{btnSize}}"
>
btn{{variant}}{{buttonName}} {{btnSize}}
</button>
</div>
</div>
<div
class=
"style-guide-button-list p-a-2"
>
<button
class=
"btn btn-primary btn-small"
>
btn-small
</button>
<button
class=
"btn btn-success btn-large"
>
btn-large
</button>
</div>
</tab>
<tab
heading=
"Forms"
>
</tab>
...
...
public/app/features/styleguide/styleguide.ts
View file @
a685e46f
...
...
@@ -6,6 +6,9 @@ import _ from 'lodash';
class
StyleGuideCtrl
{
colors
:
any
=
[];
theme
:
string
;
buttonNames
=
[
'primary'
,
'secondary'
,
'inverse'
,
'success'
,
'warning'
,
'danger'
];
buttonSizes
=
[
'btn-small'
,
''
,
'btn-large'
];
buttonVariants
=
[
'-'
,
'-outline-'
];
/** @ngInject **/
constructor
(
$http
)
{
...
...
public/app/partials/dashboard.html
View file @
a685e46f
...
...
@@ -100,7 +100,7 @@
<div
ng-show=
'dashboardMeta.canEdit'
class=
"row-fluid add-row-panel-hint"
ng-hide=
"dashboard.meta.fullscreen"
>
<div
class=
"span12"
style=
"text-align:right;"
>
<span
style=
"margin-right: 10px;"
ng-click=
"addRowDefault()"
class=
"pointer btn btn-
info
btn-small"
>
<span
style=
"margin-right: 10px;"
ng-click=
"addRowDefault()"
class=
"pointer btn btn-
secondary
btn-small"
>
<span><i
class=
"fa fa-plus"
></i>
ADD ROW
</span>
</span>
</div>
...
...
public/sass/_variables.dark.scss
View file @
a685e46f
...
...
@@ -92,8 +92,8 @@ $modal-background: $black;
$code-tag-bg
:
#444
;
// Lists
$grafanaListBackground
:
$dark-3
;
$grafanaListAccent
:
lighten
(
$dark-2
,
2%
);
$grafanaListBackground
:
$dark-3
;
$grafanaListAccent
:
lighten
(
$dark-2
,
2%
);
$grafanaListBorderTop
:
$dark-3
;
$grafanaListBorderBottom
:
$black
;
$grafanaListHighlight
:
#333
;
...
...
@@ -117,20 +117,20 @@ $table-border: $dark-3; // table and cell border
$btn-primary-bg
:
$brand-primary
;
$btn-primary-bg-hl
:
lighten
(
$brand-primary
,
8%
);
$btn-
info-bg
:
lighten
(
$purple
,
3%
)
;
$btn-
info-bg-hl
:
darken
(
$purple
,
3%
);
$btn-
secondary-bg
:
$blue-dark
;
$btn-
secondary-bg-hl
:
lighten
(
$blue-dark
,
3%
);
$btn-success-bg-hl
:
darken
(
$green
,
3%
);
$btn-success-bg-hl
:
darken
(
$green
,
3%
);
$btn-success-bg
:
lighten
(
$green
,
3%
);
$btn-warning-bg
:
$brand-warning
;
$btn-warning-bg-hl
:
lighten
(
$brand-warning
,
8%
);
$btn-warning-bg-hl
:
lighten
(
$brand-warning
,
8%
);
$btn-danger-bg
:
lighten
(
$red
,
3%
);
$btn-danger-bg-hl
:
darken
(
$red
,
3%
);
$btn-inverse-bg
:
$dark-3
;
$btn-inverse-bg-hl
:
lighten
(
$dark-3
,
1%
);
$btn-inverse-bg-hl
:
lighten
(
$dark-3
,
1%
);
$btn-inverse-text-color
:
$link-color
;
$btn-link-color
:
$gray-3
;
...
...
@@ -226,7 +226,7 @@ $successText: #468847;
$successBackground
:
$btn-success-bg
;
$infoText
:
$blue-dark
;
$infoBackground
:
$b
tn-info-bg
;
$infoBackground
:
$b
lue-dark
;
// Tooltips and popovers
// -------------------------
...
...
public/sass/_variables.light.scss
View file @
a685e46f
...
...
@@ -31,7 +31,7 @@ $white: #fff;
// Accent colors
// -------------------------
$blue
:
#2AB2E4
;
$blue-dark
:
#
75CAEB
;
$blue-dark
:
#
3CAAD6
;
$green
:
#28B62C
;
$red
:
#FF4136
;
$yellow
:
#FF851B
;
...
...
@@ -125,8 +125,8 @@ $scrollbarBorder: $gray-4;
$btn-primary-bg
:
$brand-primary
;
$btn-primary-bg-hl
:
lighten
(
$brand-primary
,
8%
);
$btn-
info-bg
:
lighten
(
$purple
,
3%
)
;
$btn-
info-bg-hl
:
darken
(
$purple
,
3
%
);
$btn-
secondary-bg
:
$blue-dark
;
$btn-
secondary-bg-hl
:
lighten
(
$blue-dark
,
4
%
);
$btn-success-bg
:
lighten
(
$green
,
3%
);
$btn-success-bg-hl
:
darken
(
$green
,
3%
);
...
...
@@ -250,8 +250,8 @@ $successText: lighten($green, 10%);
$successBackground
:
$green
;
$successBorder
:
transparent
;
$infoText
:
lighten
(
$purple
,
10%
)
;
$infoBackground
:
$
purple
;
$infoText
:
$blue
;
$infoBackground
:
$
blue-dark
;
$infoBorder
:
transparent
;
...
...
public/sass/components/_buttons.scss
View file @
a685e46f
...
...
@@ -65,7 +65,7 @@
}
.btn-link
{
color
:
$btn-link-color
;
color
:
$btn-link-color
;
}
// Set the backgrounds
...
...
@@ -86,8 +86,8 @@
@include
buttonBackground
(
$btn-success-bg
,
$btn-success-bg-hl
);
}
// Info appears as a neutral blue
.btn-
info
{
@include
buttonBackground
(
$btn-
info-bg
,
$btn-info
-bg-hl
);
.btn-
secondary
{
@include
buttonBackground
(
$btn-
secondary-bg
,
$btn-secondary
-bg-hl
);
}
// Inverse appears as dark gray
.btn-inverse
{
...
...
@@ -100,10 +100,10 @@
@include
button-outline-variant
(
$btn-primary-bg
);
}
.btn-outline-secondary
{
@include
button-outline-variant
(
$btn-
inverse
-bg
);
@include
button-outline-variant
(
$btn-
secondary
-bg
);
}
.btn-outline-in
fo
{
@include
button-outline-variant
(
$btn-in
fo
-bg
);
.btn-outline-in
verse
{
@include
button-outline-variant
(
$btn-in
verse
-bg
);
}
.btn-outline-success
{
@include
button-outline-variant
(
$btn-success-bg
);
...
...
public/sass/layout/_page.scss
View file @
a685e46f
...
...
@@ -18,6 +18,7 @@
}
}
$color-page-hero-bg
:
#2e2e2e
;
.page-container
{
background-color
:
$page-bg
;
position
:
relative
;
...
...
@@ -26,6 +27,7 @@
margin-left
:
0
;
min-height
:
calc
(
100%
-
54px
);
padding-bottom
:
$spacer
*
5
;
background-image
:
linear-gradient
(
60deg
,
rgba
(
0
,
0
,
0
,
0
)
0%
,
lighten
(
$page-bg
,
5%
)
98%
);
}
.page-header
{
...
...
@@ -40,7 +42,7 @@
border-top
:
0
;
border-right
:
0
;
border-left
:
0
;
border-bottom
:
4
px
solid
transparent
;
border-bottom
:
2
px
solid
transparent
;
h1
{
font-style
:
italic
;
...
...
public/sass/pages/_styleguide.scss
View file @
a685e46f
...
...
@@ -16,6 +16,7 @@
.style-guide-button-list
{
padding
:
$spacer
;
button
{
display
:
block
;
margin
:
0
$spacer
$spacer
0
;
}
}
...
...
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