Skip to content

Commit b1cac7a

Browse files
committed
Instance wizard: style progress state
1 parent 0555a52 commit b1cac7a

2 files changed

Lines changed: 37 additions & 9 deletions

File tree

‎ui/scripts/ui-custom/instanceWizard.js‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -850,9 +850,13 @@
850850

851851
// Update progress bar
852852
var $targetProgress = $progress.removeClass('active').filter(function() {
853-
return $(this).index() <= targetIndex;
853+
return $(this).index() === targetIndex;
854854
}).toggleClass('active');
855855

856+
$progress.removeClass('done').filter(function() {
857+
return $(this).index() < $targetProgress.index();
858+
}).toggleClass('done');
859+
856860
// Update diagram; show/hide as necessary
857861
$diagramParts.filter(function() {
858862
return $(this).index() <= targetIndex;

‎ui/stylesheets/csui/_wizard.scss‎

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,24 +24,48 @@
2424
.progress {
2525
@include span-columns(3);
2626

27-
border: 1px solid #ccc;
28-
border-radius: 6px;
29-
box-shadow: inset 0px 0px 20px #ccc;
27+
border-right: 1px solid #ccc;
28+
box-shadow: 2px -1px 5px #ccc;
3029

3130
ul {
3231
padding: 5px 0 0 20px;
3332
li {
3433
list-style: none;
3534
margin-top: 10px;
35+
color: gray;
36+
37+
.number {
38+
padding: 0 6px;
39+
border-radius: 100%;
40+
font-size: 14px;
41+
margin-right: 10px;
42+
text-shadow: 0px 0px 1px black;
43+
color: white;
44+
background: #ccc;
45+
}
3646

3747
&.active {
38-
font-weight: bold;
48+
color: black;
49+
50+
.number {
51+
@include radial-gradient(circle at 90% 10%, darken(#ccc, 15%), darken(#ccc, 45%));
52+
}
3953
}
4054

41-
.number {
42-
font-size: 18px;
43-
margin-right: 10px;
44-
color: lighten(black, 25%);
55+
&.done {
56+
color: black;
57+
58+
&:before {
59+
@include icon($ok);
60+
61+
margin: 0 10px 0px 5px;
62+
font-size: 14px;
63+
color: green;
64+
}
65+
66+
.number {
67+
display: none;
68+
}
4569
}
4670
}
4771
}

0 commit comments

Comments
 (0)