Files
blitzkit/packages/website/src/components/ShotCard/index.module.css
T
2026-11-09 22:58:55 -06:00

77 lines
1.2 KiB
CSS

.cardWrapper {
pointer-events: none;
/* keeps the card clear of the tracer, on the side it isn't heading toward */
&[data-going-up="true"] {
transform: translateY(50%);
margin-top: 4rem;
padding-top: 1rem;
}
&[data-going-up="false"] {
transform: translateY(-50%);
margin-bottom: 4rem;
padding-bottom: 1rem;
}
}
.point {
opacity: 0.75;
border-radius: 50%;
}
.card {
white-space: nowrap;
}
.section {
display: flex;
flex-direction: column;
gap: var(--space-3);
}
.header {
display: flex;
justify-content: space-between;
align-items: center;
gap: var(--space-4);
}
.layers {
display: table;
/* column-gap doesn't apply to tables; border-spacing also pads the outer
edges, so pull them back in */
border-spacing: var(--space-3) var(--space-2);
margin: 0 calc(-1 * var(--space-3));
}
.row {
display: table-row;
}
.cell {
display: table-cell;
&[data-align="right"] {
text-align: right;
}
}
.divider {
display: flex;
align-items: center;
gap: var(--space-3);
/* bleed to the card edges */
margin: 0 calc(-1 * var(--space-4));
&::before,
&::after {
content: "";
flex: 1;
height: 1px;
background-color: var(--gray-a4);
}
}