Files
AFFiNE-Mirror/blocksuite/affine/blocks/latex/src/styles.ts
Saul-Mirone 1f45cc5dec refactor(editor): unify directories naming (#11516)
**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`
2025-04-07 12:34:40 +00:00

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;
}
`;