mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-16 22:07:09 +08:00
**Directory Structure Changes** - Renamed multiple block-related directories by removing the "block-" prefix: - `block-attachment` → `attachment` - `block-bookmark` → `bookmark` - `block-callout` → `callout` - `block-code` → `code` - `block-data-view` → `data-view` - `block-database` → `database` - `block-divider` → `divider` - `block-edgeless-text` → `edgeless-text` - `block-embed` → `embed`
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;
|
|
}
|
|
`;
|