2022-04-12 17:11:08 +02:00
|
|
|
.w-tabs {
|
|
|
|
&__wrapper {
|
2022-04-29 14:51:42 +02:00
|
|
|
@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;
|
2022-04-12 17:11:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&__list {
|
2023-04-19 07:58:14 +02:00
|
|
|
@apply w-flex w-pr-0 w-my-[3px] w-space-x-6 w-border-b w-border-border-furniture w-w-fit;
|
2022-04-12 17:11:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&__tab {
|
|
|
|
@apply w-label-3
|
|
|
|
w-box-border
|
|
|
|
w-inline-flex
|
2023-04-19 07:58:14 +02:00
|
|
|
w-text-text-meta
|
|
|
|
hover:w-text-text-label
|
2022-04-12 17:11:08 +02:00
|
|
|
w-whitespace-nowrap
|
|
|
|
w-py-4
|
|
|
|
w-font-medium
|
|
|
|
w-relative
|
|
|
|
after:w-block
|
|
|
|
after:w-w-0
|
|
|
|
after:w-h-[2px]
|
2023-04-19 07:58:14 +02:00
|
|
|
after:w-bg-icon-primary
|
2022-04-12 17:11:08 +02:00
|
|
|
after:w-absolute
|
|
|
|
after:w-left-0
|
|
|
|
after:-w-bottom-px
|
|
|
|
after:w-transition-all
|
2022-04-29 14:51:42 +02:00
|
|
|
after:forced-colors:w-h-1
|
|
|
|
after:forced-colors:w-bg-LinkText
|
|
|
|
hover:after:w-w-full
|
|
|
|
hover:after:forced-colors:w-w-full
|
|
|
|
motion-reduce:after:w-transition-none;
|
2022-04-12 17:11:08 +02:00
|
|
|
|
|
|
|
&[aria-selected='true'] {
|
2023-04-19 07:58:14 +02:00
|
|
|
@apply after:w-w-full w-text-text-label after:forced-colors:w-w-full;
|
2014-01-24 18:34:26 +01:00
|
|
|
}
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
2014-01-24 18:34:26 +01:00
|
|
|
|
2022-04-12 17:11:08 +02:00
|
|
|
&__errors {
|
|
|
|
@apply w-hidden
|
2022-04-28 14:49:54 +02:00
|
|
|
w-absolute
|
|
|
|
-w-mr-3
|
|
|
|
w-py-0.5
|
|
|
|
w-px-[0.325rem]
|
|
|
|
w-top-1
|
|
|
|
-w-right-1
|
|
|
|
w-text-[0.5625rem]
|
2022-04-12 17:11:08 +02:00
|
|
|
w-font-bold
|
|
|
|
w-bg-critical-200
|
|
|
|
w-text-white
|
|
|
|
w-border
|
2023-04-19 07:58:14 +02:00
|
|
|
w-border-surface-page
|
2022-04-28 14:49:54 +02:00
|
|
|
w-rounded-[1rem];
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
2016-10-27 21:27:35 +02:00
|
|
|
|
2022-10-17 13:18:02 +02:00
|
|
|
&__list,
|
|
|
|
.tab-content {
|
|
|
|
@apply w-px-5 sm:w-px-10 md:w-px-20;
|
|
|
|
|
|
|
|
// If tab contents are nested inside of a nice-padding block then don't apply the admin padding
|
|
|
|
.nice-padding & {
|
|
|
|
padding-inline-start: 0;
|
|
|
|
padding-inline-end: 0;
|
|
|
|
}
|
2022-07-25 16:20:19 +02:00
|
|
|
}
|
|
|
|
|
2022-04-12 17:11:08 +02:00
|
|
|
// Optional animate attr for tabs to animate in
|
2023-10-29 00:00:31 +02:00
|
|
|
/* stylelint-disable-next-line selector-attribute-name-disallowed-list */
|
2022-04-12 17:11:08 +02:00
|
|
|
&[data-tabs-animate] &__panel {
|
|
|
|
@apply motion-reduce:w-transition-none w-transition w-duration-150 w-translate-y-1 w-opacity-0;
|
2022-02-04 12:57:55 +01:00
|
|
|
|
2022-04-12 17:11:08 +02:00
|
|
|
&.animate-in {
|
|
|
|
@apply w-translate-y-0 w-opacity-100;
|
|
|
|
}
|
2021-10-06 09:28:14 +02:00
|
|
|
}
|
|
|
|
}
|