_tabs.scss 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. .tab-content {
  2. .page-locked & {
  3. cursor: not-allowed;
  4. user-select: none;
  5. > * {
  6. pointer-events: none;
  7. }
  8. }
  9. }
  10. .w-tabs {
  11. &__wrapper {
  12. @apply w-mb-8 w-overflow-x-auto w-scrollbar-thin w-flex w-items-center w-justify-between w-flex-wrap w-gap-4;
  13. }
  14. &__list {
  15. @include nice-padding();
  16. @apply w-flex w-my-[3px] w-space-x-6 w-border-b w-border-grey-100 w-w-fit;
  17. }
  18. &__tab {
  19. @apply w-label-3
  20. w-box-border
  21. w-inline-flex
  22. w-text-grey-400
  23. hover:w-text-primary
  24. w-whitespace-nowrap
  25. w-py-4
  26. w-font-medium
  27. w-relative
  28. after:w-block
  29. after:w-w-0
  30. after:w-h-[2px]
  31. after:w-bg-primary
  32. after:w-absolute
  33. after:w-left-0
  34. after:-w-bottom-px
  35. after:w-transition-all
  36. after:forced-colors:w-h-1
  37. after:forced-colors:w-bg-LinkText
  38. hover:after:w-w-full
  39. hover:after:forced-colors:w-w-full
  40. motion-reduce:after:w-transition-none;
  41. &[aria-selected='true'] {
  42. @apply after:w-w-full w-text-primary after:forced-colors:w-w-full;
  43. }
  44. }
  45. &__errors {
  46. @apply w-hidden
  47. w-absolute
  48. -w-mr-3
  49. w-py-0.5
  50. w-px-[0.325rem]
  51. w-top-1
  52. -w-right-1
  53. w-text-[0.5625rem]
  54. w-font-bold
  55. w-bg-critical-200
  56. w-text-white
  57. w-border
  58. w-border-grey-50
  59. w-rounded-[1rem];
  60. }
  61. // Optional animate attr for tabs to animate in
  62. &[data-tabs-animate] &__panel {
  63. @apply motion-reduce:w-transition-none w-transition w-duration-150 w-translate-y-1 w-opacity-0;
  64. &.animate-in {
  65. @apply w-translate-y-0 w-opacity-100;
  66. }
  67. }
  68. }