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
a9e01d8b
Unverified
Commit
a9e01d8b
authored
May 08, 2019
by
Torkel Ödegaard
Committed by
GitHub
May 08, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GettingStarted: Fixes layout issues, fixes #16926 (#16941)
parent
f58ab794
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
20 deletions
+22
-20
public/app/plugins/panel/gettingstarted/module.html
+5
-7
public/sass/components/_panel_gettingstarted.scss
+17
-13
No files found.
public/app/plugins/panel/gettingstarted/module.html
View file @
a9e01d8b
<div
class=
"dashlist"
ng-if=
"ctrl.checksDone"
>
<div
class=
"progress-tracker-container"
ng-if=
"ctrl.checksDone"
>
<div
class=
"dashlist-section"
>
<button
class=
"progress-tracker-close-btn"
ng-click=
"ctrl.dismiss()"
>
<button
class=
"dashlist-cta-close-btn"
ng-click=
"ctrl.dismiss()"
>
<i
class=
"fa fa-remove"
></i>
<i
class=
"fa fa-remove"
></i>
</button>
</button>
<ul
class=
"progress-tracker"
>
<div
class=
"progress-tracker"
>
<li
class=
"progress-step"
ng-repeat=
"step in ctrl.steps"
ng-class=
"step.cssClass"
>
<div
class=
"progress-step"
ng-repeat=
"step in ctrl.steps"
ng-class=
"step.cssClass"
>
<a
class=
"progress-link"
ng-href=
"{{step.href}}"
target=
"{{step.target}}"
title=
"{{step.note}}"
>
<a
class=
"progress-link"
ng-href=
"{{step.href}}"
target=
"{{step.target}}"
title=
"{{step.note}}"
>
<span
class=
"progress-marker"
ng-class=
"step.cssClass"
><i
class=
"{{step.icon}}"
></i></span>
<span
class=
"progress-marker"
ng-class=
"step.cssClass"
><i
class=
"{{step.icon}}"
></i></span>
<span
class=
"progress-text"
ng-href=
"{{step.href}}"
target=
"{{step.target}}"
>
{{step.title}}
</span>
<span
class=
"progress-text"
ng-href=
"{{step.href}}"
target=
"{{step.target}}"
>
{{step.title}}
</span>
</a>
</a>
<a
class=
"btn-small progress-step-cta"
ng-href=
"{{step.href}}"
target=
"{{step.target}}"
>
{{step.cta}}
</a>
<a
class=
"btn-small progress-step-cta"
ng-href=
"{{step.href}}"
target=
"{{step.target}}"
>
{{step.cta}}
</a>
</li>
</div>
</ul>
</div>
</div>
</div>
</div>
public/sass/components/_panel_gettingstarted.scss
View file @
a9e01d8b
...
@@ -13,18 +13,22 @@ $marker-size-half: ($marker-size / 2);
...
@@ -13,18 +13,22 @@ $marker-size-half: ($marker-size / 2);
$path-height
:
2px
!
default
;
$path-height
:
2px
!
default
;
$path-position
:
$marker-size-half
-
(
$path-height
/
2
);
$path-position
:
$marker-size-half
-
(
$path-height
/
2
);
.dashlist-cta-close-btn
{
.progress-tracker-container
{
height
:
100%
;
display
:
flex
;
align-items
:
center
;
}
.progress-tracker-close-btn
{
color
:
$text-color-weak
;
color
:
$text-color-weak
;
float
:
right
;
position
:
absolute
;
padding
:
0
;
z-index
:
$panel-header-z-index
;
margin
:
0
2px
0
0
;
top
:
8px
;
right
:
8px
;
font-size
:
$font-size-lg
;
background-color
:
transparent
;
background-color
:
transparent
;
border
:
none
;
border
:
none
;
i
{
font-size
:
80%
;
}
&
:hover
{
&
:hover
{
color
:
$white
;
color
:
$white
;
}
}
...
@@ -33,9 +37,9 @@ $path-position: $marker-size-half - ($path-height / 2);
...
@@ -33,9 +37,9 @@ $path-position: $marker-size-half - ($path-height / 2);
// Container element
// Container element
.progress-tracker
{
.progress-tracker
{
display
:
flex
;
display
:
flex
;
margin
:
0
auto
;
width
:
100%
;
padding
:
0
;
padding
:
0
;
list-style
:
none
;
align-items
:
center
;
}
}
// Step container that creates lines between steps
// Step container that creates lines between steps
...
@@ -46,6 +50,7 @@ $path-position: $marker-size-half - ($path-height / 2);
...
@@ -46,6 +50,7 @@ $path-position: $marker-size-half - ($path-height / 2);
margin
:
0
;
margin
:
0
;
padding
:
0
;
padding
:
0
;
color
:
$text-color-weak
;
color
:
$text-color-weak
;
height
:
84px
;
// For a flexbox bug in firefox that wont allow the text overflow on the text
// For a flexbox bug in firefox that wont allow the text overflow on the text
min-width
:
$marker-size
;
min-width
:
$marker-size
;
...
@@ -54,7 +59,7 @@ $path-position: $marker-size-half - ($path-height / 2);
...
@@ -54,7 +59,7 @@ $path-position: $marker-size-half - ($path-height / 2);
content
:
''
;
content
:
''
;
display
:
block
;
display
:
block
;
position
:
absolute
;
position
:
absolute
;
z-index
:
1
;
z-index
:
0
;
top
:
$path-position
;
top
:
$path-position
;
bottom
:
$path-position
;
bottom
:
$path-position
;
right
:
-
$marker-size-half
;
right
:
-
$marker-size-half
;
...
@@ -134,11 +139,10 @@ $path-position: $marker-size-half - ($path-height / 2);
...
@@ -134,11 +139,10 @@ $path-position: $marker-size-half - ($path-height / 2);
width
:
$marker-size
;
width
:
$marker-size
;
height
:
$marker-size
;
height
:
$marker-size
;
padding-bottom
:
2px
;
// To align text within the marker
padding-bottom
:
2px
;
// To align text within the marker
z-index
:
20
;
z-index
:
1
;
background-color
:
$panel-bg
;
background-color
:
$panel-bg
;
margin-left
:
auto
;
margin-left
:
auto
;
margin-right
:
auto
;
margin-right
:
auto
;
margin-bottom
:
$spacer
;
color
:
$text-color-weak
;
color
:
$text-color-weak
;
font-size
:
35px
;
font-size
:
35px
;
vertical-align
:
sub
;
vertical-align
:
sub
;
...
...
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