Files
brk/website_next/learn/charts/style.css
T
2026-06-08 16:08:52 +02:00

69 lines
1.2 KiB
CSS

main.learn {
figure[data-chart="series"] {
line-height: 1;
svg {
display: block;
width: 100%;
height: 20rem;
outline: 0;
cursor: crosshair;
overflow: visible;
touch-action: pan-y;
transition: opacity 150ms ease;
}
svg[aria-busy="true"] {
opacity: 0.25;
}
> div[data-chart="plot"] {
position: relative;
}
p[role="status"] {
position: absolute;
inset: 0;
display: grid;
place-items: center;
margin: 0;
color: var(--white);
text-transform: uppercase;
pointer-events: none;
}
p[role="status"]:empty {
display: none;
}
> footer {
display: flex;
flex-wrap: wrap;
align-items: start;
justify-content: space-between;
gap: 0.5rem 1rem;
margin: 0.5rem 0 0;
}
&:fullscreen {
display: flex;
flex-direction: column;
gap: 0.5rem;
padding: 1rem;
background: var(--black);
> div[data-chart="plot"] {
flex: 1;
min-height: 0;
display: flex;
}
svg {
flex: 1;
height: auto;
min-height: 0;
}
}
}
}