Skip to content

Commit 93bd2cb

Browse files
SamoraDCclaude
andcommitted
fix: remove @layer utilities directive from scroll-navigation.css
Resolves Tailwind CSS compilation issue caused by @layer utilities directive. The @layer utilities wrapper was causing build failures. CSS styles are now defined directly without the layer directive to ensure proper compilation. Changes: - Removed @layer utilities wrapper from scroll-navigation.css - Preserved all CSS styling for smooth scrolling and section transitions - Fixed potential build blocking issue with Tailwind CSS processing 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 2dbed14 commit 93bd2cb

1 file changed

Lines changed: 23 additions & 24 deletions

File tree

src/styles/scroll-navigation.css

Lines changed: 23 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,32 @@
11
/* Scroll Navigation Styles */
2-
@layer utilities {
3-
/* Smooth scrolling for the entire document */
4-
html {
5-
scroll-behavior: smooth;
6-
scroll-padding-top: 100px;
7-
}
2+
/* Smooth scrolling for the entire document */
3+
html {
4+
scroll-behavior: smooth;
5+
scroll-padding-top: 100px;
6+
}
87

9-
/* Enhanced section visibility and transitions */
10-
.section-transition {
11-
transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
12-
}
8+
/* Enhanced section visibility and transitions */
9+
.section-transition {
10+
transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
11+
}
1312

14-
.section-enter {
15-
opacity: 0;
16-
transform: translateY(20px);
17-
}
13+
.section-enter {
14+
opacity: 0;
15+
transform: translateY(20px);
16+
}
1817

19-
.section-enter-active {
20-
opacity: 1;
21-
transform: translateY(0);
22-
}
18+
.section-enter-active {
19+
opacity: 1;
20+
transform: translateY(0);
21+
}
2322

24-
/* Scroll snap for better section navigation */
25-
.scroll-container {
26-
scroll-snap-type: y mandatory;
27-
scroll-padding-top: 100px;
28-
}
23+
/* Scroll snap for better section navigation */
24+
.scroll-container {
25+
scroll-snap-type: y mandatory;
26+
scroll-padding-top: 100px;
27+
}
2928

30-
.scroll-section {
29+
.scroll-section {
3130
scroll-snap-align: start;
3231
scroll-margin-top: 100px;
3332
}

0 commit comments

Comments
 (0)