2018-12-05 06:09:27 -06:00
|
|
|
// Colors
|
2017-12-19 09:22:41 -06:00
|
|
|
$progress-color-dark: $panel-bg !default;
|
|
|
|
$progress-color: $panel-bg !default;
|
|
|
|
$progress-color-light: $panel-bg !default;
|
2016-11-10 07:21:37 -06:00
|
|
|
$progress-color-grey-light: $body-bg !default;
|
2017-12-19 09:22:41 -06:00
|
|
|
$progress-color-shadow: $panel-border !default;
|
|
|
|
$progress-color-grey: $iconContainerBackground !default;
|
|
|
|
$progress-color-grey-dark: $iconContainerBackground !default;
|
2016-11-10 07:21:37 -06:00
|
|
|
|
|
|
|
// Sizing
|
2017-12-19 09:22:41 -06:00
|
|
|
$marker-size: 60px !default;
|
|
|
|
$marker-size-half: ($marker-size / 2);
|
|
|
|
$path-height: 2px !default;
|
|
|
|
$path-position: $marker-size-half - ($path-height / 2);
|
2016-11-02 16:21:11 -05:00
|
|
|
|
2019-05-08 10:22:25 -05:00
|
|
|
.progress-tracker-container {
|
|
|
|
height: 100%;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.progress-tracker-close-btn {
|
2016-11-10 07:21:37 -06:00
|
|
|
color: $text-color-weak;
|
2019-05-08 10:22:25 -05:00
|
|
|
position: absolute;
|
|
|
|
z-index: $panel-header-z-index;
|
|
|
|
top: 8px;
|
|
|
|
right: 8px;
|
|
|
|
font-size: $font-size-lg;
|
2016-11-02 16:21:11 -05:00
|
|
|
background-color: transparent;
|
|
|
|
border: none;
|
2016-11-10 07:21:37 -06:00
|
|
|
|
2016-11-02 16:21:11 -05:00
|
|
|
&:hover {
|
2019-08-02 05:53:37 -05:00
|
|
|
color: $link-hover-color;
|
2016-11-02 16:21:11 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Container element
|
|
|
|
.progress-tracker {
|
|
|
|
display: flex;
|
2019-05-08 10:22:25 -05:00
|
|
|
width: 100%;
|
2016-11-02 16:21:11 -05:00
|
|
|
padding: 0;
|
2019-05-08 10:22:25 -05:00
|
|
|
align-items: center;
|
2016-11-02 16:21:11 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// Step container that creates lines between steps
|
2016-11-10 07:21:37 -06:00
|
|
|
.progress-step {
|
2016-11-18 09:31:19 -06:00
|
|
|
text-align: center;
|
2016-11-10 07:21:37 -06:00
|
|
|
position: relative;
|
|
|
|
flex: 1 1 0%;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
2016-11-18 09:31:19 -06:00
|
|
|
color: $text-color-weak;
|
2019-05-08 10:22:25 -05:00
|
|
|
height: 84px;
|
2016-11-02 16:21:11 -05:00
|
|
|
|
2016-11-18 09:31:19 -06:00
|
|
|
// For a flexbox bug in firefox that wont allow the text overflow on the text
|
|
|
|
min-width: $marker-size;
|
2016-11-02 16:21:11 -05:00
|
|
|
|
2017-12-19 09:22:41 -06:00
|
|
|
&::after {
|
2018-12-25 13:18:38 -06:00
|
|
|
content: '';
|
2016-11-10 07:21:37 -06:00
|
|
|
display: block;
|
|
|
|
position: absolute;
|
2019-05-08 10:22:25 -05:00
|
|
|
z-index: 0;
|
2016-11-10 07:21:37 -06:00
|
|
|
top: $path-position;
|
|
|
|
bottom: $path-position;
|
2019-02-19 08:41:35 -06:00
|
|
|
right: -$marker-size-half;
|
2016-11-10 07:21:37 -06:00
|
|
|
width: 100%;
|
|
|
|
height: $path-height;
|
2016-12-07 13:51:00 -06:00
|
|
|
border-top: 2px solid $progress-color-grey-light;
|
|
|
|
border-bottom: $progress-color-shadow;
|
2016-11-18 09:31:19 -06:00
|
|
|
background: $progress-color-grey-light;
|
|
|
|
}
|
|
|
|
|
2016-12-07 13:51:00 -06:00
|
|
|
&:first-child {
|
|
|
|
&::after {
|
|
|
|
left: 50%;
|
|
|
|
}
|
|
|
|
}
|
2016-11-18 09:31:19 -06:00
|
|
|
&:last-child {
|
|
|
|
&::after {
|
|
|
|
right: 50%;
|
|
|
|
}
|
2016-11-10 07:21:37 -06:00
|
|
|
}
|
2016-11-02 16:21:11 -05:00
|
|
|
|
2016-11-10 07:21:37 -06:00
|
|
|
// Active state
|
|
|
|
&.active {
|
2016-11-18 09:31:19 -06:00
|
|
|
.progress-step-cta {
|
2019-04-17 08:18:32 -05:00
|
|
|
display: inline-flex;
|
2016-11-18 09:31:19 -06:00
|
|
|
}
|
2016-11-10 07:21:37 -06:00
|
|
|
.progress-title {
|
|
|
|
font-weight: 400;
|
2016-11-02 16:21:11 -05:00
|
|
|
}
|
2016-11-24 06:58:51 -06:00
|
|
|
.progress-text {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.progress-marker {
|
|
|
|
.icon-gf {
|
|
|
|
color: $brand-primary;
|
|
|
|
-webkit-text-fill-color: transparent;
|
|
|
|
background: $brand-gradient;
|
|
|
|
-webkit-background-clip: text;
|
2017-12-19 09:22:41 -06:00
|
|
|
text-decoration: none;
|
2016-11-24 06:58:51 -06:00
|
|
|
}
|
2019-04-17 08:18:32 -05:00
|
|
|
.gicon {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
2016-11-24 06:58:51 -06:00
|
|
|
}
|
2016-11-10 07:21:37 -06:00
|
|
|
}
|
2016-11-02 16:21:11 -05:00
|
|
|
|
2016-11-18 09:31:19 -06:00
|
|
|
&.completed {
|
|
|
|
.progress-marker {
|
|
|
|
color: $online;
|
|
|
|
|
|
|
|
// change icon to check
|
|
|
|
.icon-gf::before {
|
2018-12-25 13:18:38 -06:00
|
|
|
content: '\e604';
|
2016-11-18 09:31:19 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
.progress-text {
|
|
|
|
text-decoration: line-through;
|
|
|
|
}
|
|
|
|
&::after {
|
2016-12-07 13:51:00 -06:00
|
|
|
background: $progress-color-grey-light;
|
2016-11-18 09:31:19 -06:00
|
|
|
}
|
2016-11-02 16:21:11 -05:00
|
|
|
}
|
2016-11-18 09:31:19 -06:00
|
|
|
}
|
2016-11-02 16:21:11 -05:00
|
|
|
|
2016-11-18 09:31:19 -06:00
|
|
|
.progress-step-cta {
|
2019-03-13 03:40:56 -05:00
|
|
|
@include button-size($btn-padding-y-sm, $btn-padding-x-sm, $font-size-sm, $border-radius-sm);
|
2019-02-05 05:05:02 -06:00
|
|
|
@include buttonBackground($btn-primary-bg, $btn-primary-bg-hl);
|
2016-11-18 09:31:19 -06:00
|
|
|
display: none;
|
2016-11-10 07:21:37 -06:00
|
|
|
}
|
|
|
|
|
2016-11-02 16:21:11 -05:00
|
|
|
// Progress marker
|
2016-11-10 07:21:37 -06:00
|
|
|
.progress-marker {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
position: relative;
|
|
|
|
width: $marker-size;
|
|
|
|
height: $marker-size;
|
|
|
|
padding-bottom: 2px; // To align text within the marker
|
2019-05-08 10:22:25 -05:00
|
|
|
z-index: 1;
|
2016-11-10 07:21:37 -06:00
|
|
|
background-color: $panel-bg;
|
2016-11-18 09:31:19 -06:00
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
color: $text-color-weak;
|
|
|
|
font-size: 35px;
|
|
|
|
vertical-align: sub;
|
2016-11-10 07:21:37 -06:00
|
|
|
}
|
2016-11-02 16:21:11 -05:00
|
|
|
|
|
|
|
// Progress text
|
2016-11-10 07:21:37 -06:00
|
|
|
.progress-text {
|
|
|
|
display: block;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2016-12-07 13:51:00 -06:00
|
|
|
color: $text-muted;
|
2016-11-10 07:21:37 -06:00
|
|
|
}
|
2016-11-02 16:21:11 -05:00
|
|
|
|
2016-11-10 07:21:37 -06:00
|
|
|
.progress-marker {
|
2016-11-18 09:31:19 -06:00
|
|
|
color: $text-color-weak;
|
2017-12-19 09:22:41 -06:00
|
|
|
text-decoration: none;
|
2016-11-18 09:31:19 -06:00
|
|
|
font-size: 35px;
|
|
|
|
vertical-align: sub;
|
2019-04-17 08:18:32 -05:00
|
|
|
.gicon {
|
|
|
|
opacity: 0.7;
|
|
|
|
}
|
2016-11-02 16:21:11 -05:00
|
|
|
}
|
2016-12-09 02:42:24 -06:00
|
|
|
|
|
|
|
a.progress-link {
|
|
|
|
&:hover {
|
2017-12-19 09:22:41 -06:00
|
|
|
.progress-marker,
|
|
|
|
.progress-text {
|
2016-12-09 02:42:24 -06:00
|
|
|
color: $link-hover-color;
|
|
|
|
}
|
2017-12-19 09:22:41 -06:00
|
|
|
&:hover .progress-marker.completed {
|
2016-12-09 02:42:24 -06:00
|
|
|
color: $online;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|