Skip to content

Commit 832ffa8

Browse files
committed
fix: issues with tailwind upgrade
1 parent 72aedb5 commit 832ffa8

1 file changed

Lines changed: 27 additions & 25 deletions

File tree

frontend/src/app/globals.css

Lines changed: 27 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -6,37 +6,39 @@
66
--color-secondary: #1E1E1E;
77
}
88

9-
.button {
10-
@apply text-white bg-black p-4 uppercase font-bold tracking-wider text-sm hover:-translate-y-1 transition-transform
11-
}
9+
@layer components {
10+
.button {
11+
@apply text-white bg-black p-4 uppercase font-bold tracking-wider text-sm hover:-translate-y-1 transition-transform
12+
}
1213

13-
.button.secondary {
14-
@apply bg-primary
15-
}
14+
.button.secondary {
15+
@apply bg-primary
16+
}
1617

17-
.content-container {
18-
@apply container;
19-
}
18+
.content-container {
19+
@apply container;
20+
}
2021

21-
.large-content-container {
22-
max-width: 1900px;
23-
}
22+
.large-content-container {
23+
max-width: 1900px;
24+
}
2425

25-
.small-content-container {
26-
max-width: 800px;
27-
}
26+
.small-content-container {
27+
max-width: 800px;
28+
}
2829

29-
.content-container,
30-
.large-content-container,
31-
.small-content-container {
32-
@apply mx-auto;
33-
width: calc(100% - var(--spacing-8));
30+
.content-container,
31+
.large-content-container,
32+
.small-content-container {
33+
@apply mx-auto;
34+
width: calc(100% - calc(var(--spacing) * 8));
3435

35-
@media (width >= theme(--breakpoint-md)) {
36-
width: calc(100% - var(--spacing-20));
36+
@media (width >= theme(--breakpoint-md)) {
37+
width: calc(100% - calc(var(--spacing) * 20));
38+
}
3739
}
38-
}
3940

40-
.links a {
41-
@apply text-primary underline
41+
.links a {
42+
@apply text-primary underline
43+
}
4244
}

0 commit comments

Comments
 (0)