_panel_gettingstarted.scss 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. // Colors
  2. $progress-color-dark: $panel-bg !default;
  3. $progress-color: $panel-bg !default;
  4. $progress-line-uncompleted: lightOrDark($gray-3, $gray-1);
  5. // Sizing
  6. $marker-size: 60px !default;
  7. $marker-size-half: calc($marker-size / 2);
  8. $path-height: 2px !default;
  9. $path-position: $marker-size-half - calc($path-height / 2);
  10. .progress-tracker-container {
  11. height: 100%;
  12. display: flex;
  13. align-items: center;
  14. }
  15. .progress-tracker-close-btn {
  16. color: $text-color-weak;
  17. position: absolute;
  18. z-index: $panel-header-z-index;
  19. top: 8px;
  20. right: 8px;
  21. font-size: $font-size-lg;
  22. background-color: transparent;
  23. border: none;
  24. &:hover {
  25. color: $link-hover-color;
  26. }
  27. }
  28. // Container element
  29. .progress-tracker {
  30. display: flex;
  31. width: 100%;
  32. padding: 0;
  33. align-items: center;
  34. }
  35. // Step container that creates lines between steps
  36. .progress-step {
  37. text-align: center;
  38. position: relative;
  39. flex: 1 1 0%;
  40. margin: 0;
  41. padding: 0;
  42. color: $text-color-weak;
  43. height: 84px;
  44. // For a flexbox bug in firefox that wont allow the text overflow on the text
  45. min-width: $marker-size;
  46. &::after {
  47. content: '';
  48. display: block;
  49. position: absolute;
  50. z-index: 0;
  51. top: $path-position;
  52. bottom: $path-position;
  53. right: -$marker-size-half;
  54. width: 100%;
  55. height: $path-height;
  56. border-top: 2px solid $progress-line-uncompleted;
  57. }
  58. &:first-child {
  59. &::after {
  60. left: 50%;
  61. }
  62. }
  63. &:last-child {
  64. &::after {
  65. right: 50%;
  66. }
  67. }
  68. // Active state
  69. &.active {
  70. .progress-step-cta {
  71. display: inline-flex;
  72. }
  73. .progress-title {
  74. font-weight: 400;
  75. }
  76. .progress-text {
  77. display: none;
  78. }
  79. .progress-marker {
  80. .icon-gf {
  81. color: $brand-primary;
  82. -webkit-text-fill-color: transparent;
  83. background: $brand-gradient-horizontal;
  84. -webkit-background-clip: text;
  85. text-decoration: none;
  86. }
  87. .gicon {
  88. opacity: 1;
  89. }
  90. }
  91. }
  92. &.completed {
  93. .progress-marker {
  94. color: $online;
  95. // change icon to check
  96. .icon-gf::before {
  97. content: '\e604';
  98. }
  99. }
  100. .progress-text {
  101. text-decoration: line-through;
  102. }
  103. // &::after {
  104. // border-top: 2px solid $progress-line-completed;
  105. // }
  106. }
  107. }
  108. .progress-step-cta {
  109. @include button-size($btn-padding-y-sm, $btn-padding-x-sm, $font-size-sm, $border-radius-sm);
  110. @include buttonBackground($btn-primary-bg, $btn-primary-bg-hl);
  111. display: none;
  112. }
  113. // Progress marker
  114. .progress-marker {
  115. display: flex;
  116. justify-content: center;
  117. align-items: center;
  118. position: relative;
  119. width: $marker-size;
  120. height: $marker-size;
  121. padding-bottom: 2px; // To align text within the marker
  122. z-index: 1;
  123. background-color: $panel-bg;
  124. margin-left: auto;
  125. margin-right: auto;
  126. color: $text-color-weak;
  127. font-size: 35px;
  128. vertical-align: sub;
  129. }
  130. // Progress text
  131. .progress-text {
  132. display: block;
  133. overflow: hidden;
  134. text-overflow: ellipsis;
  135. color: $text-muted;
  136. }
  137. .progress-marker {
  138. color: $text-color-weak;
  139. text-decoration: none;
  140. font-size: 35px;
  141. vertical-align: sub;
  142. .gicon {
  143. opacity: 0.7;
  144. }
  145. }
  146. a.progress-link {
  147. &:hover {
  148. .progress-marker,
  149. .progress-text {
  150. color: $link-hover-color;
  151. }
  152. &:hover .progress-marker.completed {
  153. color: $online;
  154. }
  155. }
  156. }