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
25683c68
Commit
25683c68
authored
Jun 08, 2017
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ux: minor progress on panel title menu makover
parent
4206f98b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
10 deletions
+28
-10
public/app/features/panel/panel_header.ts
+16
-1
public/sass/_variables.dark.scss
+2
-1
public/sass/_variables.light.scss
+2
-1
public/sass/components/_view_states.scss
+1
-0
public/sass/pages/_dashboard.scss
+7
-7
No files found.
public/app/features/panel/panel_header.ts
View file @
25683c68
///<reference path="../../headers/common.d.ts" />
import
$
from
'jquery'
;
import
angular
from
'angular'
;
import
{
coreModule
}
from
'app/core/core'
;
...
...
@@ -37,7 +38,21 @@ function panelHeader() {
return
{
restrict
:
'E'
,
template
:
template
,
link
:
function
()
{
link
:
function
(
scope
,
elem
,
attrs
)
{
elem
.
click
(
function
(
evt
)
{
const
targetClass
=
evt
.
target
.
className
;
if
(
targetClass
===
'panel-title-text drag-handle'
||
targetClass
===
'panel-title drag-handle'
)
{
evt
.
stopPropagation
();
elem
.
find
(
'[data-toggle=dropdown]'
).
dropdown
(
'toggle'
);
}
// var toggleAttribute = evt.getAttribute('data-toggle');
// if (!toggleAttribute) {
// elem.find('[data-toggle=dropdown]').click();
// }
});
}
};
}
...
...
public/sass/_variables.dark.scss
View file @
25683c68
...
...
@@ -92,7 +92,8 @@ $panel-bg: $dark-2;
$panel-border-color
:
$dark-3
;
$panel-border
:
solid
1px
$panel-border-color
;
$panel-drop-zone-bg
:
repeating-linear-gradient
(
-128deg
,
#111
,
#111
10px
,
#191919
10px
,
#222
20px
);
$panel-menu-border
:
solid
1px
black
;
$panel-header-hover-bg
:
$dark-3
;
$panel-header-menu-hover-bg
:
$dark-5
;
$divider-border-color
:
#555
;
...
...
public/sass/_variables.light.scss
View file @
25683c68
...
...
@@ -99,7 +99,8 @@ $panel-bg: $gray-7;
$panel-border-color
:
$gray-5
;
$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-menu-border
:
solid
1px
white
;
$panel-header-hover-bg
:
$gray-6
;
$panel-header-menu-hover-bg
:
$gray-4
;
$divider-border-color
:
$gray-2
;
...
...
public/sass/components/_view_states.scss
View file @
25683c68
...
...
@@ -28,6 +28,7 @@
.panel-drop-zone
.dashnav-refresh-action
,
.dashnav-zoom-out
,
.panel-menu-container
,
.dashnav-action-icons
,
.panel-info-corner--info
,
.panel-info-corner--links
,
...
...
public/sass/pages/_dashboard.scss
View file @
25683c68
...
...
@@ -70,17 +70,13 @@ div.flot-text {
}
.panel-menu-container
{
margin-left
:
8
px
;
margin-left
:
6
px
;
}
.panel-menu-toggle
{
color
:
$text-color-faint
;
cursor
:
pointer
;
padding
:
3px
5px
;
&
:hover
{
background
:
$dark-4
;
}
}
.panel-loading
{
...
...
@@ -94,11 +90,13 @@ div.flot-text {
text-align
:
center
;
&
:hover
{
background
:
$
side-menu
-bg
;
background
:
$
panel-header-hover
-bg
;
.panel-
title-caret
{
.panel-
menu-toggle
{
color
:
$text-color
;
background
:
$panel-header-menu-hover-bg
;
}
}
}
...
...
@@ -107,6 +105,8 @@ div.flot-text {
text-align
:
left
;
background
:
$side-menu-bg
;
box-shadow
:
$search-shadow
;
top
:
25px
;
left
:
-100px
;
li
a
{
display
:
block
;
...
...
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