mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-09-13 22:32:26 +03:00

* refactor TextViewer Content component * open account data inside setting window * close account data edit window on cancel when adding new
41 lines
809 B
TypeScript
41 lines
809 B
TypeScript
import { style } from '@vanilla-extract/css';
|
|
import { DefaultReset, color, config } from 'folds';
|
|
|
|
export const TextViewer = style([
|
|
DefaultReset,
|
|
{
|
|
height: '100%',
|
|
},
|
|
]);
|
|
|
|
export const TextViewerHeader = style([
|
|
DefaultReset,
|
|
{
|
|
paddingLeft: config.space.S200,
|
|
paddingRight: config.space.S200,
|
|
borderBottomWidth: config.borderWidth.B300,
|
|
flexShrink: 0,
|
|
gap: config.space.S200,
|
|
},
|
|
]);
|
|
|
|
export const TextViewerContent = style([
|
|
DefaultReset,
|
|
{
|
|
backgroundColor: color.Background.Container,
|
|
color: color.Background.OnContainer,
|
|
overflow: 'hidden',
|
|
},
|
|
]);
|
|
|
|
export const TextViewerPre = style([
|
|
DefaultReset,
|
|
{
|
|
whiteSpace: 'pre-wrap',
|
|
wordBreak: 'break-word',
|
|
},
|
|
]);
|
|
|
|
export const TextViewerPrePadding = style({
|
|
padding: config.space.S600,
|
|
});
|