# presentation/styles/surface.style.css

> 82 lines of code and 0 definitions.

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

Listed in [presentation/styles](https://banes-lab.com/api/source/tree/presentation/styles.md), after [presentation/styles/site.style.css](https://banes-lab.com/source/tree/presentation/styles/site.style.css.md) and before [presentation/styles/tab.style.css](https://banes-lab.com/source/tree/presentation/styles/tab.style.css.md).

## Source

```css
.surface-stage {
    --surface-caret: 1s;
    --surface-row: 1lh;

    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
}

.surface-pane {
    background: var(--code-block);
    font-family: var(--font-family-mono);
    font-size: var(--font-xs);
    padding: var(--space-sm) var(--space-md);
}

.surface-pane pre {
    font-family: var(--font-family-mono);
    font-size: var(--font-xs);
    margin: 0;
    overflow: hidden;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.surface-shell {
    border-bottom: var(--border-s) solid var(--white-alpha-border);
    box-sizing: content-box;
    display: flex;
    flex: none;
    flex-direction: column;
    height: calc(var(--surface-shell-rows) * 1lh);
    justify-content: flex-end;
    overflow: hidden;
}

.surface-shell pre {
    color: var(--text-light-gray);
    flex-shrink: 0;
}

.surface-name {
    color: var(--white-alpha-muted);
    margin: 0 0 var(--space-xs);
}

.surface-venue {
    --surface-offset: 0;

    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
}

.surface-viewport {
    flex: 1 0 auto;
    height: calc(var(--surface-venue-rows) * 1lh);
}

.surface-document {
    display: block;
    position: relative;
    transform: translateY(var(--surface-offset));
    transition: transform var(--surface-camera) ease-out;
}

.surface-line {
    border-left: var(--border-s) solid transparent;
    display: block;
    min-height: var(--surface-row);
}

.surface-changed {
    background: var(--accent-subtle);
    border-left-color: var(--tab-accent);
}

.surface-resumed {
    color: var(--white-alpha-muted);
}

.surface-typing::after {
    animation: surface-caret var(--surface-caret) step-end infinite;
    border-left: var(--border-s) solid currentcolor;
    content: "";
}

@media (prefers-reduced-motion: reduce) {
    .surface-document {
        transition: none;
    }

    .surface-typing::after {
        animation: none;
    }
}
```
