123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173 |
- // Colors
- $progress-color-dark: $panel-bg !default;
- $progress-color: $panel-bg !default;
- $progress-line-uncompleted: lightOrDark($gray-3, $gray-1);
- // Sizing
- $marker-size: 60px !default;
- $marker-size-half: calc($marker-size / 2);
- $path-height: 2px !default;
- $path-position: $marker-size-half - calc($path-height / 2);
- .progress-tracker-container {
- height: 100%;
- display: flex;
- align-items: center;
- }
- .progress-tracker-close-btn {
- color: $text-color-weak;
- position: absolute;
- z-index: $panel-header-z-index;
- top: 8px;
- right: 8px;
- font-size: $font-size-lg;
- background-color: transparent;
- border: none;
- &:hover {
- color: $link-hover-color;
- }
- }
- // Container element
- .progress-tracker {
- display: flex;
- width: 100%;
- padding: 0;
- align-items: center;
- }
- // Step container that creates lines between steps
- .progress-step {
- text-align: center;
- position: relative;
- flex: 1 1 0%;
- margin: 0;
- padding: 0;
- color: $text-color-weak;
- height: 84px;
- // For a flexbox bug in firefox that wont allow the text overflow on the text
- min-width: $marker-size;
- &::after {
- content: '';
- display: block;
- position: absolute;
- z-index: 0;
- top: $path-position;
- bottom: $path-position;
- right: -$marker-size-half;
- width: 100%;
- height: $path-height;
- border-top: 2px solid $progress-line-uncompleted;
- }
- &:first-child {
- &::after {
- left: 50%;
- }
- }
- &:last-child {
- &::after {
- right: 50%;
- }
- }
- // Active state
- &.active {
- .progress-step-cta {
- display: inline-flex;
- }
- .progress-title {
- font-weight: 400;
- }
- .progress-text {
- display: none;
- }
- .progress-marker {
- .icon-gf {
- color: $brand-primary;
- -webkit-text-fill-color: transparent;
- background: $brand-gradient-horizontal;
- -webkit-background-clip: text;
- text-decoration: none;
- }
- .gicon {
- opacity: 1;
- }
- }
- }
- &.completed {
- .progress-marker {
- color: $online;
- // change icon to check
- .icon-gf::before {
- content: '\e604';
- }
- }
- .progress-text {
- text-decoration: line-through;
- }
- // &::after {
- // border-top: 2px solid $progress-line-completed;
- // }
- }
- }
- .progress-step-cta {
- @include button-size($btn-padding-y-sm, $btn-padding-x-sm, $font-size-sm, $border-radius-sm);
- @include buttonBackground($btn-primary-bg, $btn-primary-bg-hl);
- display: none;
- }
- // Progress marker
- .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
- z-index: 1;
- background-color: $panel-bg;
- margin-left: auto;
- margin-right: auto;
- color: $text-color-weak;
- font-size: 35px;
- vertical-align: sub;
- }
- // Progress text
- .progress-text {
- display: block;
- overflow: hidden;
- text-overflow: ellipsis;
- color: $text-muted;
- }
- .progress-marker {
- color: $text-color-weak;
- text-decoration: none;
- font-size: 35px;
- vertical-align: sub;
- .gicon {
- opacity: 0.7;
- }
- }
- a.progress-link {
- &:hover {
- .progress-marker,
- .progress-text {
- color: $link-hover-color;
- }
- &:hover .progress-marker.completed {
- color: $online;
- }
- }
- }
|