# presentation/styles/tab.style.css

> 167 lines of code and 0 definitions.

Tree: Site tree
Language: css
Layer: product
Canonical: https://banes-lab.com/anatomy/tree#file-presentation-styles-tab-style-css
Source text: https://banes-lab.com/assets/sources/source.db15da3cdcfce447a78889ef7ea3d7de15e89b7f48bf55c1af1900a0c0f64db6.generated.txt

## Source

```css
.tab-page {
    display: flex;
    flex-direction: column;
}

.tab-page-content {
    display: flex;
    flex-direction: column;
}

.tab-page-header {
    align-items: center;
    display: flex;
    flex-direction: column;
    padding: var(--space-xxl) 0;
    text-align: center;
}

.tab-page-emblem {
    height: auto;
    margin-bottom: var(--space-lg);
    max-width: var(--size-emblem);
    width: var(--percent-full);
}

.tab-page-title {
    color: var(--tab-accent);
    font-family: var(--font-family-heading);
    font-size: var(--font-xxl);
    font-weight: var(--font-weight-bold);
    letter-spacing: var(--letter-spacing-wide);
    margin: 0;
    text-transform: uppercase;
}

.tab-page-subtitle {
    color: var(--white-alpha-secondary);
    font-size: var(--font-lg);
    font-weight: var(--font-weight-normal);
    margin: var(--space-md) 0 0;
}

.tab-anchor {
    margin: 0 0 var(--space-xxl);
    position: sticky;
    top: var(--space-md);
    width: var(--percent-full);
    z-index: var(--z-dropdown);
}

.tab-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    justify-content: center;
}

.tab-bar .filter-box {
    flex: 0 1 var(--width-card-lg);
}

.tab-button {
    align-items: center;
    backdrop-filter: var(--blur-heavy);
    background: var(--card-bg);
    border: var(--border-s) solid var(--white-alpha-border);
    border-radius: var(--radius-md);
    color: var(--white-alpha-secondary);
    cursor: pointer;
    display: flex;
    font-family: var(--font-family-base);
    font-size: var(--font-xs);
    font-weight: var(--font-weight-medium);
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    transition: all var(--transition-fast);
}

.tab-button:hover,
.tab-button.active {
    background: var(--tab-accent);
    border-color: var(--tab-accent);
    color: var(--black);
}

.tab-button i {
    font-size: var(--font-lg);
    transition: font-size var(--transition-fast);
}

.tab-button[class*="page-"] i {
    color: var(--accent-tone);
}

.tab-button.active[class*="page-"] i {
    color: var(--black);
}

.tab-button span {
    display: none;
    max-width: var(--width-label);
    opacity: 1;
    overflow: hidden;
    transition:
        max-width var(--transition-base),
        opacity var(--transition-fast);
    white-space: nowrap;
}

.search-anchor .tab-button span {
    max-width: var(--width-card-lg);
    white-space: nowrap;
}

.tab-bar.pinned .tab-button span {
    max-width: 0;
    opacity: 0;
}

.tab-content {
    width: var(--percent-full);
}

.tab-footer {
    bottom: var(--space-md);
    margin: 0 auto;
    top: auto;
    width: auto;
}

.tab-footer .tab-button {
    padding: var(--space-sm);
    position: relative;
}

.tab-symbol {
    display: inline-block;
    font-family: var(--font-family-base);
    font-size: var(--font-sm);
    font-weight: var(--font-weight-bold);
    min-width: var(--size-icon-inline);
    text-align: center;
}

.tab-footer .tab-label {
    background: var(--banes-lab-main);
    border: var(--border-s) solid var(--tab-accent);
    border-radius: var(--radius-sm);
    bottom: var(--percent-full);
    color: var(--white);
    font-size: var(--font-xs);
    left: var(--percent-half);
    margin-bottom: var(--space-xs);
    max-width: none;
    opacity: 0;
    overflow: visible;
    padding: var(--space-xs) var(--space-sm);
    pointer-events: none;
    position: absolute;
    transform: translateX(calc(var(--percent-half) * -1));
    transition: opacity var(--transition-fast) ease;
    white-space: nowrap;
    width: max-content;
}

.tab-footer .tab-button:hover .tab-label {
    opacity: 1;
}

.tab-footer .tab-symbol {
    display: inline-block;
}

@media (width >= 40rem) {
    .tab-page-title {
        font-size: var(--font-display);
    }

    .tab-bar {
        gap: var(--space-sm);
    }

    .tab-button {
        font-size: var(--font-sm);
        padding: var(--space-sm) var(--space-lg);
    }

    .tab-button i {
        font-size: var(--font-md);
    }

    .tab-button span {
        display: inline;
    }
}
```
