mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-08 20:57:08 +08:00
1f45cc5dec
**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`
40 lines
891 B
TypeScript
40 lines
891 B
TypeScript
import { css, html } from 'lit';
|
|
|
|
import { EdgelessToolIconButton } from './tool-icon-button.js';
|
|
|
|
export class EdgelessToolbarButton extends EdgelessToolIconButton {
|
|
static override styles = css`
|
|
.icon-container {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 0;
|
|
color: var(--affine-icon-color);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.icon-container.active-mode-color[active] {
|
|
color: var(--affine-primary-color);
|
|
}
|
|
|
|
.icon-container.active-mode-background[active] {
|
|
background: var(--affine-hover-color);
|
|
}
|
|
|
|
.icon-container[disabled] {
|
|
pointer-events: none;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.icon-container[coming] {
|
|
cursor: not-allowed;
|
|
color: var(--affine-text-disable-color);
|
|
}
|
|
`;
|
|
|
|
override render() {
|
|
return html` ${super.render()} `;
|
|
}
|
|
}
|