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
12625784
Commit
12625784
authored
Dec 01, 2017
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ux: dashboard nav update
parent
289ba74e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
44 deletions
+10
-44
public/app/features/dashboard/dashnav/dashnav.html
+2
-0
public/sass/components/_navbar.scss
+8
-44
No files found.
public/app/features/dashboard/dashnav/dashnav.html
View file @
12625784
...
...
@@ -18,6 +18,8 @@
</li>
</ul>
<div
class=
"navbar__spacer"
></div>
<div
class=
"navbar-buttons"
>
<button
class=
"btn navbar-button navbar-button--add-panel"
ng-show=
"::ctrl.dashboard.meta.canSave"
bs-tooltip=
"'Add panel'"
data-placement=
"bottom"
ng-click=
"ctrl.addPanel()"
>
<i
class=
"gicon gicon-add-panel"
></i>
...
...
public/sass/components/_navbar.scss
View file @
12625784
...
...
@@ -16,49 +16,7 @@
}
}
// .navbar .nav {
// position: relative;
// left: 0;
// float: left;
//
// &--grow {
// flex-grow: 1;
// }
// }
//
//
// .navbar .nav > li {
// float: left;
// }
//
// // Links
// .navbar .nav > li > a {
// float: none;
// padding: 17px 13px 13px;
// color: $navbarLinkColor;
// text-decoration: none;
//
// .fa { font-size: 115%; }
// }
//
// // Hover/focus
// .navbar .nav > li > a:focus,
// .navbar .nav > li > a:hover {
// color: $navbarLinkColorHover;
// text-decoration: none;
// }
//
// // Active nav items
// .navbar .nav > .active > a,
// .navbar .nav > .active > a:hover,
// .navbar .nav > .active > a:focus {
// color: $navbarLinkColorActive;
// text-decoration: none;
// background-color: $navbarLinkBackgroundActive;
// }
.navbar-page-btn
{
flex-grow
:
1
;
text-overflow
:
ellipsis
;
overflow
:
hidden
;
white-space
:
nowrap
;
...
...
@@ -110,6 +68,10 @@
margin-right
:
$spacer
;
}
.navbar__spacer
{
flex-grow
:
1
;
}
.navbar-button
{
@include
buttonBackground
(
$btn-inverse-bg
,
$btn-inverse-bg-hl
,
$btn-inverse-text-color
);
...
...
@@ -130,18 +92,20 @@
}
&
--add-panel
{
padding
:
2px
8px
;
.gicon
{
font-size
:
22px
;
}
padding
:
2px
8px
;
}
&
--tight
{
padding
:
6px
4px
;
.fa
{
font-size
:
14px
;
position
:
relative
;
top
:
2px
;
}
padding
:
6px
4px
;
}
}
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