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
e1440dcc
Commit
e1440dcc
authored
Dec 09, 2017
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ux: navbar progress
parent
1e5983b4
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
44 additions
and
10 deletions
+44
-10
public/app/features/dashboard/dashnav/dashnav.html
+2
-3
public/app/features/dashboard/dashnav/dashnav.ts
+12
-0
public/sass/_variables.dark.scss
+1
-1
public/sass/_variables.light.scss
+1
-0
public/sass/components/_navbar.scss
+23
-4
public/sass/components/_tabbed_view.scss
+2
-1
public/sass/pages/_dashboard.scss
+3
-1
No files found.
public/app/features/dashboard/dashnav/dashnav.html
View file @
e1440dcc
...
...
@@ -51,9 +51,8 @@
<gf-time-picker
class=
"gf-timepicker-nav"
dashboard=
"ctrl.dashboard"
ng-if=
"!ctrl.dashboard.timepicker.hidden"
></gf-time-picker>
<div
class=
"navbar-buttons navbar-buttons--close"
>
<button
class=
"btn navbar-button navbar-button--primary"
ng-click=
"ctrl.toggleSettings()"
bs-tooltip=
"'Close settings'"
data-placement=
"bottom"
>
<i
class=
"fa fa-remove"
></i>
Close
<button
class=
"btn navbar-button navbar-button--primary"
ng-click=
"ctrl.close()"
bs-tooltip=
"'Back to dashboard'"
data-placement=
"bottom"
>
<i
class=
"fa fa-reply"
></i>
</button>
</div>
...
...
public/app/features/dashboard/dashnav/dashnav.ts
View file @
e1440dcc
...
...
@@ -42,6 +42,18 @@ export class DashNavCtrl {
this
.
$location
.
search
(
search
);
}
close
()
{
let
search
=
this
.
$location
.
search
();
if
(
search
.
editview
)
{
delete
search
.
editview
;
}
if
(
search
.
fullscreen
)
{
delete
search
.
fullscreen
;
delete
search
.
edit
;
}
this
.
$location
.
search
(
search
);
}
starDashboard
()
{
this
.
dashboardSrv
.
starDashboard
(
this
.
dashboard
.
id
,
this
.
dashboard
.
meta
.
isStarred
)
.
then
(
newState
=>
{
...
...
public/sass/_variables.dark.scss
View file @
e1440dcc
...
...
@@ -22,7 +22,6 @@ $gray-5: #ECECEC;
$gray-6
:
#f4f5f8
;
$gray-7
:
#fbfbfb
;
// $gray-blue: #292a2d;
$gray-blue
:
#212327
;
$input-black
:
#09090B
;
...
...
@@ -100,6 +99,7 @@ $panel-border: solid 1px $panel-border-color;
$panel-drop-zone-bg
:
repeating-linear-gradient
(
-128deg
,
#111
,
#111
10px
,
#191919
10px
,
#222
20px
);
$panel-header-hover-bg
:
$dark-4
;
$panel-header-menu-hover-bg
:
$dark-5
;
$panel-edit-shadow
:
0
-30px
30px
-30px
$black
;
// page header
$page-header-bg
:
linear-gradient
(
90deg
,
#292a2d
,
black
);
...
...
public/sass/_variables.light.scss
View file @
e1440dcc
...
...
@@ -103,6 +103,7 @@ $panel-border: solid 1px $panel-border-color;
$panel-drop-zone-bg
:
repeating-linear-gradient
(
-128deg
,
$body-bg
,
$body-bg
10px
,
$gray-6
10px
,
$gray-6
20px
);
$panel-header-hover-bg
:
$gray-6
;
$panel-header-menu-hover-bg
:
$gray-4
;
$panel-edit-shadow
:
0
0
30px
20px
$black
;
// Page header
$page-header-bg
:
linear-gradient
(
90deg
,
$white
,
$gray-7
);
...
...
public/sass/components/_navbar.scss
View file @
e1440dcc
...
...
@@ -10,14 +10,19 @@
display
:
flex
;
flex-grow
:
1
;
border-bottom
:
1px
solid
transparent
;
transition
:
all
3
0
0ms
ease-in-out
;
transition
:
all
3
5
0ms
ease-in-out
;
}
@mixin
navbar-alt-look
()
{
background
:
$page-header-bg
;
box-shadow
:
$search-shadow
;
border-bottom
:
$navbarBorder
;
}
.dashboard-page--settings-open
{
.navbar
{
background
:
$page-header-bg
;
box-shadow
:
$search-shadow
;
border-bottom
:
$navbarBorder
;
@include
navbar-alt-look
();
}
.navbar-buttons--actions
,
...
...
@@ -31,6 +36,20 @@
}
}
.panel-in-fullscreen
{
.navbar
{
@include
navbar-alt-look
();
}
.navbar-buttons--actions
{
display
:
none
;
}
.navbar-buttons--close
{
display
:
flex
;
}
}
.sidemenu-open
{
.navbar
{
padding-left
:
15px
;
...
...
public/sass/components/_tabbed_view.scss
View file @
e1440dcc
...
...
@@ -6,7 +6,8 @@
padding
:
0
;
.tabbed-view-header
{
padding
:
1
.5em
1rem
0
1rem
;
padding
:
0px
25px
;
background
:
none
;
}
}
}
...
...
public/sass/pages/_dashboard.scss
View file @
e1440dcc
...
...
@@ -217,4 +217,6 @@ div.flot-text {
}
}
.panel-full-edit
{
margin
:
$dashboard-padding
(
-
$dashboard-padding
)
0
(
-
$dashboard-padding
);
}
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