@wordpress/components
Version:
UI components for WordPress.
45 lines (38 loc) • 685 B
text/typescript
/**
* External dependencies
*/
import { css } from '@emotion/react';
export const Flex = css`
display: flex;
`;
export const Item = css`
display: block;
max-height: 100%;
max-width: 100%;
min-height: 0;
min-width: 0;
`;
export const block = css`
flex: 1;
`;
/**
* Workaround to optimize DOM rendering.
* We'll enhance alignment with naive parent flex assumptions.
*
* Trade-off:
* Far less DOM less. However, UI rendering is not as reliable.
*/
/**
* Improves stability of width/height rendering.
* https://github.com/ItsJonQ/g2/pull/149
*/
export const ItemsColumn = css`
> * {
min-height: 0;
}
`;
export const ItemsRow = css`
> * {
min-width: 0;
}
`;