mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-21 00:07:01 +08:00
41 lines
930 B
TypeScript
41 lines
930 B
TypeScript
import { unsafeCSSVar, unsafeCSSVarV2 } from '@blocksuite/affine-shared/theme';
|
|
import { css } from 'lit';
|
|
|
|
export const latexBlockStyles = css`
|
|
.latex-block-container {
|
|
display: flex;
|
|
position: relative;
|
|
width: 100%;
|
|
height: 100%;
|
|
padding: 10px 24px;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 4px;
|
|
overflow-x: auto;
|
|
user-select: none;
|
|
}
|
|
|
|
.latex-block-container:hover {
|
|
background: ${unsafeCSSVar('hoverColor')};
|
|
}
|
|
|
|
.latex-block-error-placeholder {
|
|
color: ${unsafeCSSVarV2('text/highlight/fg/red')};
|
|
font-family: Inter;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
line-height: normal;
|
|
user-select: none;
|
|
}
|
|
|
|
.latex-block-empty-placeholder {
|
|
color: ${unsafeCSSVarV2('text/secondary')};
|
|
font-family: Inter;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
line-height: normal;
|
|
user-select: none;
|
|
}
|
|
`;
|