_workflow-timeline.scss 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. @use '../tools' as *;
  2. .workflow-timeline {
  3. @apply w-label-3;
  4. padding: 0;
  5. margin-top: theme('spacing.8');
  6. margin-bottom: theme('spacing.3');
  7. @include media-breakpoint-up(sm) {
  8. margin-top: theme('spacing.10');
  9. margin-bottom: theme('spacing.10');
  10. }
  11. &__item {
  12. display: flex;
  13. flex-wrap: wrap;
  14. align-items: center;
  15. position: relative;
  16. padding-bottom: theme('spacing.5');
  17. &--rejected {
  18. color: theme('colors.text-error');
  19. }
  20. &--approved {
  21. color: theme('colors.positive.100');
  22. }
  23. &--in_progress {
  24. @apply w-label-1;
  25. }
  26. &--pending {
  27. color: theme('colors.text-meta');
  28. .icon {
  29. opacity: theme('opacity.80');
  30. }
  31. }
  32. }
  33. &__icon {
  34. position: relative;
  35. flex-shrink: 0;
  36. background: theme('colors.surface-page');
  37. margin-inline-end: theme('spacing.[2.5]');
  38. width: theme('spacing.5');
  39. height: theme('spacing.5');
  40. z-index: theme('zIndex.10');
  41. @media (forced-colors: active) {
  42. background: Canvas;
  43. }
  44. }
  45. &__line {
  46. position: absolute;
  47. margin-inline-start: -1px;
  48. height: 100%;
  49. top: theme('spacing.4');
  50. inset-inline-start: theme('spacing.[2.5]');
  51. border-inline-start: theme('borderWidth.DEFAULT') dashed
  52. theme('colors.text-meta');
  53. }
  54. &__footer {
  55. display: flex;
  56. flex-wrap: wrap;
  57. gap: theme('spacing.4');
  58. }
  59. &__footer-link {
  60. @include transition(color 0.15s ease);
  61. font-size: theme('fontSize.14');
  62. color: theme('colors.text-link-default');
  63. text-decoration: none;
  64. &:hover {
  65. color: theme('colors.text-link-hover');
  66. }
  67. }
  68. }