Skip to content

Commit 37ebec8

Browse files
abdoutclaude
andcommitted
fix: remove local px overrides from container.css
Remove conflicting .container, .container-wrapper, .section-soft, and .border-grid definitions from container.css to use shadcn/ui @Utility definitions from globals.css instead. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent f9d5538 commit 37ebec8

1 file changed

Lines changed: 4 additions & 49 deletions

File tree

src/styles/container.css

Lines changed: 4 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,8 @@
4747
}
4848
}
4949

50-
/* Standard containers with different max-widths */
51-
.container {
52-
@apply w-full mx-auto px-4 sm:px-6 lg:px-8;
53-
max-width: var(--container-max-xl);
54-
}
50+
/* Note: .container is defined as @utility in globals.css to match shadcn/ui
51+
Use container-xl for the old 1280px max-width behavior */
5552

5653
.container-sm {
5754
@apply w-full mx-auto px-4 sm:px-6;
@@ -83,50 +80,8 @@
8380
@apply w-full px-4 sm:px-6 lg:px-8;
8481
}
8582

86-
/* shadcn/ui blocks pattern container-wrapper */
87-
.container-wrapper {
88-
@apply mx-auto w-full;
89-
padding-inline: var(--container-padding-xs);
90-
}
91-
92-
/* Remove padding when nested inside layout-container to avoid double padding */
93-
.layout-container .container-wrapper {
94-
padding-inline: 0;
95-
}
96-
97-
@media (min-width: 640px) {
98-
.container-wrapper {
99-
padding-inline: var(--container-padding-sm);
100-
}
101-
}
102-
103-
@media (min-width: 768px) {
104-
.container-wrapper {
105-
padding-inline: var(--container-padding-md);
106-
}
107-
}
108-
109-
@media (min-width: 1024px) {
110-
.container-wrapper {
111-
padding-inline: var(--container-padding-lg);
112-
}
113-
}
114-
115-
@media (min-width: 1280px) {
116-
.container-wrapper {
117-
padding-inline: var(--container-padding-xl);
118-
}
119-
}
120-
121-
/* Section soft spacing for blocks */
122-
.section-soft {
123-
@apply py-8 sm:py-12 lg:py-16;
124-
}
125-
126-
/* Border grid pattern */
127-
.border-grid {
128-
@apply border-b border-border;
129-
}
83+
/* Note: container-wrapper, section-soft, and border-grid are defined
84+
as @utility in globals.css to match shadcn/ui exactly */
13085

13186
/* Section container with vertical spacing */
13287
.container-section {

0 commit comments

Comments
 (0)