_panel_gettingstarted.scss 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. // Colours
  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: 20px 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. right: -50%;
  47. content: '';
  48. display: block;
  49. position: absolute;
  50. z-index: 1;
  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-color-grey-light;
  57. border-bottom: $progress-color-shadow;
  58. background: $progress-color-grey-light;
  59. }
  60. &:first-child {
  61. &::after {
  62. left: 50%;
  63. }
  64. }
  65. &:last-child {
  66. &::after {
  67. right: 50%;
  68. }
  69. }
  70. // Active state
  71. &.active {
  72. .progress-step-cta {
  73. display: inline-block;
  74. }
  75. .progress-title {
  76. font-weight: 400;
  77. }
  78. .progress-text {
  79. display: none;
  80. }
  81. .progress-marker {
  82. .icon-gf {
  83. color: $brand-primary;
  84. -webkit-text-fill-color: transparent;
  85. background: $brand-gradient;
  86. -webkit-background-clip: text;
  87. text-decoration:none;
  88. }
  89. }
  90. }
  91. &.completed {
  92. .progress-marker {
  93. color: $online;
  94. // change icon to check
  95. .icon-gf::before {
  96. content: "\e604";
  97. }
  98. }
  99. .progress-text {
  100. text-decoration: line-through;
  101. }
  102. &::after {
  103. background: $progress-color-grey-light;
  104. }
  105. }
  106. }
  107. .progress-step-cta {
  108. @include button-size($btn-padding-y-sm, $btn-padding-x-sm, $font-size-sm, $btn-border-radius);
  109. @include buttonBackground($btn-success-bg, $btn-success-bg-hl);
  110. display: none;
  111. }
  112. // Progress marker
  113. .progress-marker {
  114. display: flex;
  115. justify-content: center;
  116. align-items: center;
  117. position: relative;
  118. width: $marker-size;
  119. height: $marker-size;
  120. padding-bottom: 2px; // To align text within the marker
  121. z-index: 20;
  122. background-color: $panel-bg;
  123. margin-left: auto;
  124. margin-right: auto;
  125. margin-bottom: $spacer;
  126. color: $text-color-weak;
  127. font-size: 35px;
  128. vertical-align: sub;
  129. &:hover {
  130. color: $link-hover-color;
  131. }
  132. }
  133. // Progress text
  134. .progress-text {
  135. display: block;
  136. overflow: hidden;
  137. text-overflow: ellipsis;
  138. color: $text-muted;
  139. &:hover {
  140. color: $link-hover-color;
  141. }
  142. }
  143. .progress-marker {
  144. color: $text-color-weak;
  145. text-decoration:none;
  146. font-size: 35px;
  147. vertical-align: sub;
  148. }