_panel_gettingstarted.scss 3.5 KB

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