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
dae5110d
Commit
dae5110d
authored
Dec 02, 2017
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ux: updated dashboard nav
parent
e871e565
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
40 deletions
+41
-40
public/app/features/dashboard/dashnav/dashnav.html
+7
-5
public/sass/_old_responsive.scss
+28
-30
public/sass/components/_navbar.scss
+6
-5
No files found.
public/app/features/dashboard/dashnav/dashnav.html
View file @
dae5110d
<div
class=
"navbar"
>
<a
class=
"navbar-page-btn"
ng-click=
"ctrl.showSearch()"
>
<i
class=
"gicon gicon-dashboard"
></i>
{{ctrl.dashboard.title}}
<i
class=
"fa fa-caret-down"
></i>
</a>
<div>
<a
class=
"navbar-page-btn"
ng-click=
"ctrl.showSearch()"
>
<i
class=
"gicon gicon-dashboard"
></i>
{{ctrl.dashboard.title}}
<i
class=
"fa fa-caret-down"
></i>
</a>
</div>
<ul
class=
"nav dash-playlist-actions"
ng-if=
"ctrl.playlistSrv.isPlaying"
>
<li>
...
...
public/sass/_old_responsive.scss
View file @
dae5110d
.dashnav-back-to-dashboard
{
.navbar-buttons--zoom
{
display
:
none
;
}
.navbar-page-btn
{
max-width
:
200px
;
}
.gf-timepicker-nav-btn
{
max-width
:
120px
;
}
.navbar-buttons--actions
{
display
:
none
;
}
// Media queries
// ---------------------
@include
media-breakpoint-
down
(
lg
)
{
@include
media-breakpoint-
up
(
sm
)
{
.navbar-page-btn
{
max-width
:
2
9
0px
;
max-width
:
2
5
0px
;
}
.gf-timepicker-nav-btn
{
max-width
:
240px
;
}
}
@include
media-breakpoint-down
(
md
)
{
.navbar-buttons--zoom
{
display
:
none
;
max-width
:
200px
;
}
}
@include
media-breakpoint-
down
(
sm
)
{
body
{
padding
:
0
;
@include
media-breakpoint-
up
(
md
)
{
.navbar-buttons--actions
{
display
:
flex
;
}
.
page-dashboard
.
navbar-page-btn
{
max-width
:
200
px
;
.navbar-page-btn
{
max-width
:
325
px
;
}
.gf-timepicker-nav-btn
{
max-width
:
120px
;
}
.navbar-buttons--actions
{
display
:
none
;
max-width
:
240px
;
}
}
@include
media-breakpoint-
down
(
xs
)
{
.
page-dashboard
.navbar-page-btn
{
max-width
:
250p
x
;
@include
media-breakpoint-
up
(
lg
)
{
.
navbar-buttons--zoom
{
display
:
fle
x
;
}
}
// form styles
@include
media-breakpoint-up
(
md
)
{
.page-dashboard
.navbar-page-btn
{
max-width
:
280px
;
.navbar-page-btn
{
max-width
:
none
;
}
.gf-timepicker-nav-btn
{
max-width
:
120px
;
max-width
:
none
;
}
}
public/sass/components/_navbar.scss
View file @
dae5110d
...
...
@@ -2,12 +2,13 @@
.navbar
{
position
:
relative
;
padding-left
:
$side-menu-width
;
box-shadow
:
$navbarShadow
;
//
box-shadow: $navbarShadow;
z-index
:
$zindex-navbar-fixed
;
background
:
$navbarBackground
;
//
background: $navbarBackground;
height
:
$navbarHeight
;
padding-right
:
$spacer
;
display
:
flex
;
flex-grow
:
1
;
}
.sidemenu-open
{
...
...
@@ -77,7 +78,7 @@
display
:
inline-block
;
font-weight
:
$btn-font-weight
;
padding
:
5px
10
px
;
padding
:
8px
11
px
;
line-height
:
16px
;
color
:
$text-muted
;
border
:
1px
solid
#151515
;
...
...
@@ -93,7 +94,7 @@
}
&
--add-panel
{
padding
:
2px
8
px
;
padding
:
5px
10
px
;
.gicon
{
font-size
:
22px
;
...
...
@@ -101,7 +102,7 @@
}
&
--tight
{
padding
:
6
px
4px
;
padding
:
9
px
4px
;
.fa
{
font-size
:
14px
;
...
...
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