0
Fork 0
mirror of https://github.com/penpot/penpot-exporter-figma-plugin.git synced 2024-12-22 21:53:27 -05:00
penpot-exporter-figma-plugin/ui-src/components/Stack/Stack.module.css
Alex Sánchez 8d5c5c15eb
Dynamic plugin size calculation, and cap the height to a safe value (#98)
* dynamic size

* fixes

* fixes

* fix dynamic size

* add changelog

---------

Co-authored-by: Jordi Sala Morales <jordism91@gmail.com>
2024-05-13 10:08:26 +02:00

32 lines
393 B
CSS

.stack {
--direction: column;
--spacing: 1.5rem;
display: flex;
flex-direction: var(--direction);
gap: var(--spacing);
.stack-row {
--direction: row;
& > * {
flex: 1;
}
}
.stack-small {
--spacing: 1rem;
}
.stack-xsmall {
--spacing: 0.5rem;
}
.stack-2xsmall {
--spacing: 0.25rem;
}
.stack-center {
align-items: center;
}
}