mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-13 12:54:59 +08:00
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`
This commit is contained in:
@@ -0,0 +1,64 @@
|
||||
import { css } from 'lit';
|
||||
|
||||
export const listPrefix = css`
|
||||
.affine-list-block__prefix {
|
||||
display: flex;
|
||||
color: var(--affine-blue-700);
|
||||
font-size: var(--affine-font-sm);
|
||||
user-select: none;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.affine-list-block__numbered {
|
||||
min-width: 22px;
|
||||
height: 24px;
|
||||
margin-left: 2px;
|
||||
}
|
||||
|
||||
.affine-list-block__todo-prefix {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
color: var(--affine-icon-color);
|
||||
}
|
||||
|
||||
.affine-list-block__todo-prefix.readonly {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.affine-list-block__todo-prefix > svg {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
}
|
||||
`;
|
||||
|
||||
export const listBlockStyles = css`
|
||||
affine-list {
|
||||
display: block;
|
||||
font-size: var(--affine-font-base);
|
||||
}
|
||||
|
||||
.affine-list-block-container {
|
||||
box-sizing: border-box;
|
||||
border-radius: 4px;
|
||||
position: relative;
|
||||
}
|
||||
.affine-list-block-container .affine-list-block-container {
|
||||
margin-top: 0;
|
||||
}
|
||||
.affine-list-rich-text-wrapper {
|
||||
position: relative;
|
||||
display: flex;
|
||||
}
|
||||
.affine-list-rich-text-wrapper rich-text {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.affine-list--checked {
|
||||
color: var(--affine-text-secondary-color);
|
||||
}
|
||||
|
||||
${listPrefix}
|
||||
`;
|
||||
Reference in New Issue
Block a user