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
245cebed
Commit
245cebed
authored
Nov 23, 2017
by
Daniel Lee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashlist: style list to be same as dash search
parent
a1d47d36
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
17 deletions
+29
-17
public/app/features/dashboard/partials/dashboardList.html
+13
-11
public/sass/components/_search.scss
+16
-6
No files found.
public/app/features/dashboard/partials/dashboardList.html
View file @
245cebed
...
...
@@ -51,8 +51,8 @@
</div>
</div>
<div
class=
"admin-list-table"
style=
"height: 80%"
>
<div>
<div
style=
"height: 80%"
>
<div
style=
"width: 40%; display: flex; float: right;"
>
<select
class=
"gf-form-input"
ng-model=
"ctrl.selectedStarredFilter"
...
...
@@ -67,16 +67,15 @@
/>
</div>
<div
gemini-scrollbar
>
<div
ng-show=
"ctrl.sections.length > 0"
>
<div
class=
"search-results-container"
ng-show=
"ctrl.sections.length > 0"
>
<div
ng-repeat=
"section in ctrl.sections"
class=
"search-section"
>
<div
class=
"search-section__header
pointer"
ng-show=
"::section.title
"
>
<div
class=
"search-section__header
__with-checkbox"
ng-hide=
"section.hideHeader
"
>
<gf-form-switch
switch-class=
"gf-form-switch--table-cell"
on-change=
"ctrl.selectionChanged()"
checked=
"section.checked"
>
</gf-form-switch>
<a
ng-click=
"ctrl.toggleFolder(section)
"
>
<a
class=
"search-section__header pointer"
ng-click=
"ctrl.toggleFolder(section)"
ng-hide=
"section.hideHeader
"
>
<i
class=
"search-section__header__icon"
ng-class=
"section.icon"
></i>
<span
class=
"search-section__header__text"
>
{{::section.title}}
</span>
<i
class=
"fa fa-minus search-section__header__toggle"
ng-show=
"section.expanded"
></i>
...
...
@@ -85,17 +84,20 @@
</div>
<div
ng-if=
"section.expanded"
>
<div
ng-repeat=
"item in section.items"
class=
"search-item"
ng-class=
"{'selected': item.selected}"
>
<div
ng-repeat=
"item in section.items"
class=
"search-item
__with-checkbox
"
ng-class=
"{'selected': item.selected}"
>
<gf-form-switch
switch-class=
"gf-form-switch--table-cell"
on-change=
"ctrl.selectionChanged()"
checked=
"item.checked"
/>
<a
ng-href=
"{{::item.url}}"
>
<a
ng-href=
"{{::item.url}}"
class=
"search-item"
>
<span
class=
"search-item__icon"
>
<i
class=
"fa fa-th-large"
></i>
</span>
<span
class=
"search-item__title"
>
{{::item.title}}
<span
class=
"search-item__body"
>
<div
class=
"search-item__body-title"
>
{{::item.title}}
</div>
<div
class=
"search-item__body-sub-title"
ng-show=
"item.folderTitle && section.hideHeader"
>
<i
class=
"fa fa-folder-o"
></i>
{{::item.folderTitle}}
</div>
</span>
<span
class=
"search-item__tags"
>
<span
ng-click=
"ctrl.filterByTag(tag, $event)"
ng-repeat=
"tag in item.tags"
tag-color-from-name=
"tag"
class=
"label label-tag"
>
...
...
public/sass/components/_search.scss
View file @
245cebed
...
...
@@ -16,12 +16,6 @@
bottom
:
0
;
z-index
:
(
$zindex-modal-backdrop
+
10
);
position
:
fixed
;
.label-tag
{
margin-left
:
6px
;
font-size
:
11px
;
padding
:
2px
6px
;
}
}
// Search
...
...
@@ -84,6 +78,12 @@
position
:
relative
;
flex-grow
:
10
;
.label-tag
{
margin-left
:
6px
;
font-size
:
11px
;
padding
:
2px
6px
;
}
.selected
{
.search-result-tag
{
opacity
:
0
.70
;
...
...
@@ -97,6 +97,7 @@
padding
:
0
.6rem
0
;
color
:
$text-color-weak
;
display
:
flex
;
flex-grow
:
1
;
&
:hover
{
color
:
$text-color-weak
;
...
...
@@ -107,6 +108,10 @@
}
}
.search-section__header__with-checkbox
{
display
:
flex
;
}
.search-section__header__icon
{
padding
:
3px
10px
;
}
...
...
@@ -119,8 +124,13 @@
flex-grow
:
1
;
}
.search-item__with-checkbox
{
display
:
flex
;
}
.search-item
{
display
:
flex
;
flex-grow
:
1
;
height
:
37px
;
padding
:
0px
;
white-space
:
nowrap
;
...
...
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