Skip to content

Commit

Permalink
enhance(ui): polish toggle button for the non-accent colors
Browse files Browse the repository at this point in the history
  • Loading branch information
xyhp915 committed Jan 23, 2024
1 parent 388e9f3 commit c32a569
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 7 deletions.
2 changes: 2 additions & 0 deletions packages/ui/src/colors.css
Expand Up @@ -143,6 +143,7 @@ html {
body, .dark-theme, .light-theme {
--accent: 358 75.0% 59.0%;
--primary: 358 75.0% 59.0%;
--primary-foreground: 190 43% 97%;
--ring: 359 69.5% 74.3%;
--accent-foreground: 190 43% 97%;
--primary-accent-foreground: 190 43% 97%;
Expand Down Expand Up @@ -313,6 +314,7 @@ html {
body, .dark-theme, .light-theme {
--accent: 336 80.0% 57.8%;
--primary: 336 80.0% 57.8%;
--primary-foreground: 190 43% 97%;
--ring: 336 62.3% 72.9%;
--accent-foreground: 190 43% 97%;
--primary-accent-foreground: 190 43% 97%;
Expand Down
16 changes: 16 additions & 0 deletions resources/css/shui.css
Expand Up @@ -78,6 +78,22 @@ html {
.cp__cmdk {
--lx-gray-07: var(--rx-gray-07);
}

.ui__toggle {
&-background-off {
@apply bg-gray-08;

.switcher {
@apply bg-gray-10;
}
}

&-background-on {
.switcher {
@apply bg-gray-03;
}
}
}
}
}

Expand Down
8 changes: 2 additions & 6 deletions src/main/frontend/components/block.css
Expand Up @@ -343,14 +343,10 @@
}
}

.block-properties {
.block-properties, .page-properties {
margin: 4px 0;
padding: 4px 8px;
background-color: var(--ls-block-properties-background-color, #f0f8ff);
}

.page-properties {
background-color: var(--ls-page-properties-background-color);
background-color: var(--lx-gray-03, var(--ls-block-properties-background-color, var(--rx-gray-03)));
}

.block-marker {
Expand Down
2 changes: 1 addition & 1 deletion src/main/frontend/ui.css
Expand Up @@ -373,5 +373,5 @@ html.is-mobile {
}

.ui__toggle-background-off {
background: or(--ls-toggle-off-background, --lx-gray-08, rgb(212, 212, 212));
background: var(--lx-gray-08, rgb(212, 212, 212));
}

0 comments on commit c32a569

Please sign in to comment.