Skip to content

Commit

Permalink
enhance(ui): polish colors for the whiteboard toolbar buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
xyhp915 committed Jan 15, 2024
1 parent 10d2dff commit 0fcb9a8
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions tldraw/apps/tldraw-logseq/src/styles.css
Expand Up @@ -260,22 +260,11 @@ html[data-theme='light'] {
}

.tl-button {
@apply relative flex items-center justify-center rounded border-0 gap-1;

height: 32px;
min-width: 32px;
font-family: var(--ls-font-family);
background: none;
cursor: pointer;
color: var(--ls-primary-text-color);

&:hover {
background-color: or(--ls-whiteboard-button-background-hover, --lx-gray-06, --ls-primary-background-color);
}
@apply relative flex items-center justify-center rounded border-0 gap-1 bg-none cursor-pointer;
@apply w-[32px] h-[32px] hover:bg-gray-06;

&[data-selected='true'] {
background-color: or(--ls-whiteboard-button-background-selected, --lx-accent-09, --color-selectedFill);
color: or(--ls-whiteboard-button-text-selected, --lx-gray-12, --color-selectedContrast);
@apply bg-accent text-accent-foreground;
}
}

Expand Down Expand Up @@ -862,7 +851,7 @@ html[data-theme='dark'] {
.tl-toolbar-separator {
background-color: var(--ls-border-color);
width: 1px;
opacity: 0.5;
opacity: 0.9;

&[data-orientation='horizontal'] {
height: 1px;
Expand Down

0 comments on commit 0fcb9a8

Please sign in to comment.