Skip to content

Commit 9017bea

Browse files
authored
fix: Consistent color transitions and Tailwind updates (#7179)
fix: color transitions and tailwind updates
1 parent cb43b64 commit 9017bea

File tree

11 files changed

+19
-11
lines changed

11 files changed

+19
-11
lines changed

apps/site/components/Common/Breadcrumbs/BreadcrumbItem/index.module.css

+5-4
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,15 @@
1212
}
1313

1414
a {
15-
@apply flex-shrink
16-
flex-grow;
15+
@apply shrink
16+
grow;
1717
}
1818

1919
&,
2020
> a,
2121
> a:hover {
2222
@apply text-neutral-800
23+
motion-safe:transition-colors
2324
dark:text-neutral-200;
2425
}
2526

@@ -30,8 +31,8 @@
3031
.separator {
3132
@apply size-4
3233
max-w-fit
33-
flex-shrink-0
34-
flex-grow
34+
shrink-0
35+
grow
3536
text-neutral-600
3637
dark:text-neutral-400;
3738
}

apps/site/components/Common/Breadcrumbs/BreadcrumbLink/index.module.css

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.link {
2-
@apply max-w-fit
2+
@apply max-w-fit
33
truncate;
44

55
&.active {
@@ -9,6 +9,7 @@
99
py-1
1010
font-semibold
1111
text-white
12+
motion-safe:transition-colors
1213
dark:text-white;
1314

1415
&:hover {

apps/site/components/Common/Button/index.module.css

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
gap-2
77
py-2.5
88
text-center
9-
font-semibold;
9+
font-semibold
10+
motion-safe:transition-colors;
1011

1112
svg {
1213
@apply size-5;

apps/site/components/Common/CodeTabs/index.module.css

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
gap-2
3333
text-center
3434
text-neutral-200
35+
motion-safe:transition-colors
3536
lg:flex;
3637

3738
& > .icon {

apps/site/components/Common/LanguageDropDown/index.module.css

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
rounded-md
55
p-2
66
text-neutral-700
7+
motion-safe:transition-colors
78
dark:text-neutral-300;
89

910
&:hover {

apps/site/components/Common/Pagination/PaginationListItem/index.module.css

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
px-3
1212
py-2.5
1313
text-neutral-800
14+
motion-safe:transition-colors
1415
dark:text-neutral-200;
1516

1617
&:hover {

apps/site/components/Common/ProgressionSidebar/ProgressionSidebarItem/index.module.css

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@ a.item {
1313

1414
&:hover {
1515
@apply text-neutral-900
16+
motion-safe:transition-colors
1617
dark:text-white;
1718
}
1819

1920
svg {
20-
@apply flex-shrink-0
21+
@apply shrink-0
2122
fill-neutral-200
2223
stroke-white
2324
stroke-[4]

apps/site/components/Common/ThemeToggle/index.module.css

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
rounded-md
44
p-2
55
text-neutral-700
6+
motion-safe:transition-colors
67
dark:text-neutral-300;
78

89
&:hover {

apps/site/components/Containers/NavBar/NavItem/index.module.css

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
gap-2
55
rounded
66
px-3
7-
py-2;
7+
py-2
8+
motion-safe:transition-colors;
89

910
.label {
1011
@apply text-base

apps/site/styles/base.css

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
* {
2-
@apply subpixel-antialiased
3-
motion-safe:transition-colors;
2+
@apply subpixel-antialiased;
43
}
54

65
html,

apps/site/tailwind.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ export default {
153153
},
154154
},
155155
},
156-
darkMode: ['class', '[data-theme="dark"]'],
156+
darkMode: ['selector', '[data-theme="dark"]'],
157157
plugins: [
158158
require('@savvywombat/tailwindcss-grid-areas'),
159159
require('@tailwindcss/container-queries'),

0 commit comments

Comments
 (0)