Skip to content

Commit

Permalink
💄 Add color transition to components
Browse files Browse the repository at this point in the history
  • Loading branch information
yanyongyu authored Sep 25, 2023
1 parent acdaae3 commit ef50a7f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion packages/theme-nonepress/src/theme/CodeBlock/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

@apply relative w-full max-w-full h-auto overflow-hidden;
@apply rounded-box leading-6;
@apply transition-[color,background-color] duration-500;
}

&-title {
Expand Down Expand Up @@ -70,7 +71,8 @@

&-number {
overflow-wrap: normal;
background-color: var(--prism-background-color);

/* background-color: var(--prism-background-color); */

@apply table-cell sticky left-0 text-right px-4 select-none w-[1%];

Expand Down
2 changes: 1 addition & 1 deletion packages/theme-nonepress/src/theme/Sidebar/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

&-curtain {
@apply sticky bottom-0 w-full h-8 z-10;
@apply bg-gradient-to-t from-base-100/80;
@apply bg-base-100 [mask-image:linear-gradient(transparent,#000000)];
@apply transition-[background-color] duration-500;
}
}
2 changes: 1 addition & 1 deletion packages/theme-nonepress/src/theme/TOC/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

&-curtain {
@apply sticky bottom-0 w-full h-8 z-10;
@apply bg-gradient-to-t from-base-100/80;
@apply bg-base-100 [mask-image:linear-gradient(transparent,#000000)];
@apply transition-[background-color] duration-500;
}

Expand Down
2 changes: 2 additions & 0 deletions packages/theme-nonepress/src/theme/Tabs/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
&-item {
--tab-border-color: transparent;

@apply transition-[color,background-color] duration-500;

&-active {
--tab-border-color: hsl(var(--bc) / 10%);
}
Expand Down

0 comments on commit ef50a7f

Please sign in to comment.