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
fcba5a6e
Commit
fcba5a6e
authored
Jan 30, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More progress on new design
parent
2f7770b1
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
133 additions
and
113 deletions
+133
-113
src/app/directives/all.js
+0
-1
src/app/partials/dashboard_topnav.html
+1
-1
src/app/partials/sidemenu.html
+14
-13
src/css/less/grafana.less
+2
-1
src/css/less/p_pro.less
+0
-95
src/css/less/sidemenu.less
+114
-0
src/views/index.html
+2
-2
No files found.
src/app/directives/all.js
View file @
fcba5a6e
...
...
@@ -16,5 +16,4 @@ define([
'./graphiteSegment'
,
'./grafanaVersionCheck'
,
'./dropdown.typeahead'
,
'./navHeader'
,
],
function
()
{});
src/app/partials/dashboard_topnav.html
View file @
fcba5a6e
...
...
@@ -5,7 +5,7 @@
<div
class=
"top-nav"
>
<span
class=
"top-nav-menu-btn"
ng-if=
"!grafana.sidemenu"
>
<a
class=
"pointer"
ng-click=
"toggleSideMenu()"
>
<img
class=
"logo-icon"
src=
"img/fav32.png"
bs-tooltip=
"'Grafana'"
data-placement=
"bottom"
></img>
<img
class=
"logo-icon"
src=
"img/fav32.png"
></img>
<span>
menu
</span>
</a>
</span>
...
...
src/app/partials/sidemenu.html
View file @
fcba5a6e
<div
ng-controller=
"SideMenuCtrl"
ng-init=
"init()"
>
<ul
class=
"sidemenu"
>
<li
class=
"sidemenu-logo-container"
>
<img
ng-src=
"{{appSubUrl}}/img/logo_transparent_200x.png"
style=
"width: 80px"
>
<a
ng-click=
"toggleSideMenu()"
class=
"p
ull-right pointer
"
>
<i
class=
"fa fa-
chevron
-right"
></i>
<img
ng-src=
"{{appSubUrl}}/img/logo_transparent_200x.png"
>
<a
ng-click=
"toggleSideMenu()"
class=
"p
ointer sidemenu-toggle
"
>
<i
class=
"fa fa-
angle
-right"
></i>
</a>
</li>
<li
class=
"dropdown"
ng-if=
"grafana.user.isSignedIn"
>
<a
class=
"sidemenu-user pointer"
data-toggle=
"dropdown"
title=
"{{grafana.user.email}}"
>
<span
class=
"gravatar-missing"
>
f
</span>
<img
ng-src=
"{{grafana.user.gravatarUrl}}"
width=
"35"
>
<span
class=
"gravatar-email small"
>
{{grafana.user.login}}
</span>
</a>
<ul
class=
"dropdown-menu"
>
<li><a
href=
"{{appSubUrl}}/login?logout"
>
Logout
</a></li>
</ul>
</li>
<li
ng-if=
"!grafana.user.isSignedIn"
>
<a
href=
"login"
class=
"sidemenu-item"
><i
class=
"fa fa-sign-in"
></i>
Sign in
</a>
</li>
...
...
@@ -29,5 +19,16 @@
</li>
</ul>
</li>
<li
class=
"dropdown"
ng-if=
"grafana.user.isSignedIn"
>
<a
class=
"sidemenu-user pointer"
data-toggle=
"dropdown"
title=
"{{grafana.user.email}}"
>
<span
class=
"gravatar-missing"
>
f
</span>
<img
ng-src=
"{{grafana.user.gravatarUrl}}"
width=
"35"
>
<span
class=
"gravatar-email small"
>
{{grafana.user.login}}
</span>
</a>
<ul
class=
"dropdown-menu"
>
<li><a
href=
"{{appSubUrl}}/login?logout"
>
Logout
</a></li>
</ul>
</li>
</ul>
</div>
src/css/less/grafana.less
View file @
fcba5a6e
...
...
@@ -9,6 +9,7 @@
@import "forms.less";
@import "singlestat.less";
@import "tightform.less";
@import "sidemenu.less";
.row-control-inner {
padding:0px;
...
...
@@ -62,7 +63,7 @@
float: left;
padding: 15px 13px 13px 14px;;
position: relative;
b
ackground: @
black;
b
order-right: 2px solid
black;
font-weight: bold;
font-size: 90%;
span {
...
...
src/css/less/p_pro.less
View file @
fcba5a6e
.pro-sidemenu {
display: none;
a:focus {
text-decoration: none;
}
}
.pro-sidemenu-open {
.pro-sidemenu {
display: block;
position: absolute;
top: 0;
left: 0;
width: 200px;
background: @bodyBackground;
border-right: 2px solid black;
min-height: 100%;
z-index: 101;
}
.dashboard-notice {
margin-left: 200px;
width: auto;
}
.pro-main-view {
padding-left: 200px;
}
.panel-fullscreen {
left: 200px;
}
}
.sidemenu {
list-style: none;
background: @grafanaPanelBackground;
margin: 0;
padding: 0;
}
.sidemenu-links {
margin: 0;
padding: 5px 0;
list-style: none;
background: @grafanaTargetFuncBackground;
li {
display: block;
}
}
.sidemenu-link {
display: block;
padding: 6px 0 6px 30px;
font-size: 15px;
color: @gray;
i {
padding-right: 15px;
}
&.active {
color: white;
font-weight: bold;
}
}
.sidemenu-user {
padding: 8px 10px 7px 15px;
display: block;
width: 170px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
.gravatar-missing {
display: none;
}
.gravatar-email {
padding-left: 4px;
}
img {
width: 35px;
padding-right: 10px;
}
border-bottom: 1px solid black;
}
.sidemenu-item {
font-size: 17px;
padding: 14px 10px 14px 20px;
display: block;
i {
padding-right: 15px;
}
border-bottom: 1px solid black;
}
.login-form {
width: 50%;
...
...
src/css/less/sidemenu.less
0 → 100644
View file @
fcba5a6e
.sidemenu-container {
display: none;
a:focus {
text-decoration: none;
}
}
.sidemenu-open {
.sidemenu-container {
display: block;
position: absolute;
top: 0;
left: 0;
width: 200px;
background: @bodyBackground;
border-right: 2px solid black;
min-height: 100%;
z-index: 101;
}
.dashboard-notice {
margin-left: 200px;
width: auto;
}
.pro-main-view {
padding-left: 200px;
}
.panel-fullscreen {
left: 200px;
}
}
.sidemenu {
list-style: none;
background: @grafanaPanelBackground;
margin: 0;
padding: 0;
}
.sidemenu-links {
margin: 0;
padding: 5px 0;
list-style: none;
background: @grafanaTargetFuncBackground;
li {
display: block;
}
}
.sidemenu-link {
display: block;
padding: 6px 0 6px 30px;
font-size: 15px;
color: @gray;
i {
padding-right: 15px;
}
&.active {
color: white;
font-weight: bold;
}
}
.sidemenu-user {
padding: 8px 10px 7px 15px;
display: block;
width: 170px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
.gravatar-missing {
display: none;
}
.gravatar-email {
padding-left: 4px;
}
img {
width: 35px;
padding-right: 10px;
}
border-bottom: 1px solid black;
}
.sidemenu-item {
font-size: 17px;
padding: 14px 10px 14px 20px;
display: block;
i {
padding-right: 15px;
}
border-bottom: 1px solid black;
}
.sidemenu-logo-container {
background: @grafanaPanelBackground;
text-align: center;
border-bottom: 2px solid black;
img {
display: inline-block;
width: 102px;
padding: 6px 0px 7px 11px;
}
}
.sidemenu-toggle {
float: right;
display: block;
font-size: 200%;
padding: 11px 8px 11px 8px;
background: @grafanaTargetFuncBackground;
}
src/views/index.html
View file @
fcba5a6e
...
...
@@ -27,9 +27,9 @@
<body
ng-cloak
ng-controller=
"GrafanaCtrl"
>
<link
rel=
"stylesheet"
href=
"[[.AppSubUrl]]/css/grafana.light.min.css"
ng-if=
"grafana.style === 'light'"
>
<div
class=
"pro-container"
ng-class=
"{'
pro-
sidemenu-open': grafana.sidemenu}"
>
<div
class=
"pro-container"
ng-class=
"{'sidemenu-open': grafana.sidemenu}"
>
<aside
class=
"
pro-sidemenu
"
ng-if=
"grafana.sidemenu"
>
<aside
class=
"
sidemenu-container
"
ng-if=
"grafana.sidemenu"
>
<div
ng-include=
"'app/partials/sidemenu.html'"
></div>
</aside>
...
...
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