_panel_gettingstarted.scss 3.3 KB

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