UNPKG

@shopware-ag/meteor-component-library

Version:

The meteor component library is a Vue component library developed by Shopware. It is based on the [Meteor Design System](https://shopware.design/).

108 lines (105 loc) 2.75 kB
.mt-tabs[data-v-8f1019f3] { display: flex; position: relative; box-shadow: inset 0 -1px 0 var(--color-border-secondary-default); } .mt-tabs--small[data-v-8f1019f3] { max-width: 800px; margin: 0 auto 15px auto; } .mt-tabs--future-remove-default-margin[data-v-8f1019f3] { margin-block-end: 0; } .mt-tabs--vertical { &[data-v-8f1019f3] { flex-direction: column; box-shadow: none; } & li[data-v-8f1019f3] { border-bottom: none; border-left: 1px solid var(--color-border-secondary-default); } & .mt-tabs__slider[data-v-8f1019f3] { top: 0; bottom: auto; left: 3px; } } .mt-tabs__item { &[data-v-8f1019f3] { display: inline-block; border-bottom: 1px solid var(--color-border-secondary-default); padding: var(--scale-size-10) var(--scale-size-16); white-space: nowrap; font-family: var(--font-family-body); font-size: var(--font-size-xs); line-height: var(--font-line-height-xs); cursor: pointer; color: var(--color-text-primary-default); /* Trick to stop items from jumping when the active item changes * see: https://css-tricks.com/bold-on-hover-without-the-layout-shift/ */ } &[data-v-8f1019f3]:disabled { cursor: not-allowed; color: var(--color-text-primary-disabled); } &[data-v-8f1019f3]:focus-visible { outline: 2px solid var(--color-border-brand-default); outline-offset: 2px; border-radius: var(--border-radius-xs); } &[data-v-8f1019f3]::after { content: attr(data-text); content: attr(data-text) / ""; height: 0; display: block; visibility: hidden; overflow: hidden; user-select: none; pointer-events: none; font-weight: var(--font-weight-medium); @media speech { display: none; } } } .mt-tabs__item--error[data-v-8f1019f3] { color: var(--color-text-critical-default); } .mt-tabs__item--active[data-v-8f1019f3] { font-weight: var(--font-weight-medium); } .mt-tabs__slider[data-v-8f1019f3] { transform-origin: top left; position: absolute; bottom: 0; left: 0; height: var(--scale-size-2); background-color: var(--color-border-brand-default); z-index: 1; } .mt-tabs__slider--error[data-v-8f1019f3] { background-color: var(--color-border-critical-default); } .mt-tabs__slider--animated[data-v-8f1019f3] { transition: 0.2s all ease-in-out; } .mt-context-button { &[data-v-8f1019f3] { display: flex; align-items: center; border-bottom: 1px solid var(--color-border-secondary-default); } & button[data-v-8f1019f3] { display: flex; align-items: center; gap: var(--scale-size-4); font-size: var(--font-size-s); line-height: var(--font-line-height-s); font-family: var(--font-family-body); } } .mt-tabs__error-badge[data-v-8f1019f3] { margin-left: var(--scale-size-2); }