An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
.block {
&__popover {
background-color: var(--b3-theme-background);
position: absolute;
box-shadow: var(--b3-dialog-shadow);
width: 60vw;
word-break: break-word;
border-radius: var(--b3-border-radius-b);
opacity: 0;
transition: opacity 75ms linear;
top: -100px;
display: flex;
flex-direction: column;
min-height: 197px;
z-index: -1;
border: 1px solid var(--b3-theme-surface-lighter);
max-width: 640px;
&--open {
opacity: 1;
}
& > .block__icons {
border-radius: var(--b3-border-radius-b) var(--b3-border-radius-b) 0 0;
& > .resize__move {
height: var(--b3-ui-panel-height, 42px);
touch-action: none;
}
}
}
&__content {
overflow: auto;
display: flex;
flex-direction: column;
border-radius: 0 0 var(--b3-border-radius-b) var(--b3-border-radius-b);
flex: 1;
}
&__edit {
display: flex;
flex-direction: column;
border-bottom: 1px solid var(--b3-theme-surface-lighter);
&:last-child {
border-bottom: 0;
}
}
&__edit-resize {
cursor: row-resize;
flex-shrink: 0;
height: 6px;
margin: -3px 0;
position: relative;
touch-action: none;
z-index: 6;
&::after {
background-color: var(--b3-theme-surface-lighter);
content: "";
height: .5px;
left: 0;
position: absolute;
top: 3px;
transition: var(--b3-transition);
width: 100%;
}
&:hover::after,
&--active::after {
background-color: var(--b3-scroll-color);
}
}
&__icons {
padding: 0 8px;
display: flex;
align-items: center;
min-height: var(--b3-ui-panel-height, 42px);
flex-shrink: 0;
&--menu {
background-color: var(--b3-theme-surface);
}
&:hover .block__icon:not([disabled]) {
opacity: 1;
}
&:hover [disabled].block__icon {
opacity: .38;
}
.counter {
background-color: var(--b3-theme-background);
}
}
&__icon {
color: var(--b3-theme-on-surface);
cursor: pointer;
opacity: 0;
border: 0;
background: transparent;
flex-shrink: 0;
padding: 4px;
display: flex;
align-items: center;
border-radius: var(--b3-border-radius);
transition: var(--b3-transition), opacity .3s cubic-bezier(0, 0, .2, 1) 0ms;
line-height: 16px;
&--tap:active:not([disabled]),
&:hover:not([disabled]):not(.block__icon--text):not(.block__icon--warning):not(.block__icon--subtle),
&--active {
color: var(--b3-theme-on-background);
background-color: var(--b3-list-icon-hover);
}
&--show {
opacity: 1;
&.block__icon[disabled] {
opacity: .38;
cursor: not-allowed;
}
}
&--warning:hover {
color: var(--b3-theme-error);
background-color: var(--b3-list-icon-hover);
}
&--emoji {
font-variant-emoji: emoji;
}
&--menu-back {
padding: 8px;
margin-left: -4px;
}
&--touch {
@media (pointer: coarse) {
min-width: 44px;
min-height: 44px;
justify-content: center;
}
}
&--tap {
-webkit-tap-highlight-color: transparent;
}
&--subtle {
color: var(--b3-border-color);
&:hover:not([disabled]),
&:focus-visible:not([disabled]) {
color: var(--b3-theme-on-surface);
}
}
svg {
height: 16px;
width: 16px;
}
}
&__logo {
white-space: nowrap;
margin: 0 8px;
display: flex;
align-items: center;
font-weight: 600;
color: var(--b3-theme-on-background);
> .counter {
font-weight: normal;
height: auto;
line-height: normal;
}
&--counter {
align-items: baseline;
}
&--icon {
margin-left: 0;
}
}
&__logoicon {
margin-right: 4px;
height: 16px;
width: 16px;
padding: 4px;
flex-shrink: 0;
font-variant-emoji: emoji;
}
}