mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-03 18:40:00 +08:00
chore: merge blocksuite source code (#9213)
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
import { css, LitElement } from 'lit';
|
||||
|
||||
export class EditorToolbarSeparator extends LitElement {
|
||||
static override styles = css`
|
||||
:host {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
align-self: stretch;
|
||||
flex-shrink: 0;
|
||||
|
||||
width: 4px;
|
||||
}
|
||||
|
||||
:host::after {
|
||||
content: '';
|
||||
display: flex;
|
||||
width: 0.5px;
|
||||
height: 100%;
|
||||
background-color: var(--affine-border-color);
|
||||
}
|
||||
|
||||
:host([data-orientation='horizontal']) {
|
||||
height: 8px;
|
||||
width: unset;
|
||||
}
|
||||
|
||||
:host([data-orientation='horizontal'])::after {
|
||||
height: 0.5px;
|
||||
width: 100%;
|
||||
}
|
||||
`;
|
||||
}
|
||||
|
||||
declare global {
|
||||
interface HTMLElementTagNameMap {
|
||||
'editor-toolbar-separator': EditorToolbarSeparator;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user