Skip to content

Commit d85c9df

Browse files
author
root
committed
fix(wrapped): fix blur-3xl specificity and add explicit blur filters for smooth gradient circles
1 parent 43a7bf2 commit d85c9df

1 file changed

Lines changed: 68 additions & 10 deletions

File tree

assets/wrapped/tailwind.css

Lines changed: 68 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,6 @@
55
color-scheme: dark;
66
font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
77
"Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !important;
8-
}
9-
10-
/* Scoped Tailwind Preflight resets so wrapped renders identically to standalone */
11-
.wrapped-scope *,
12-
.wrapped-scope *::before,
13-
.wrapped-scope *::after {
14-
box-sizing: border-box;
15-
border-width: 0;
16-
border-style: solid;
17-
border-color: #e5e7eb;
188
--tw-border-spacing-x: 0;
199
--tw-border-spacing-y: 0;
2010
--tw-translate-x: 0;
@@ -68,6 +58,74 @@
6858
--tw-contain-style: ;
6959
}
7060

61+
/* Scoped Tailwind Preflight resets so wrapped renders identically to standalone */
62+
.wrapped-scope *,
63+
.wrapped-scope *::before,
64+
.wrapped-scope *::after {
65+
box-sizing: border-box;
66+
border-width: 0;
67+
border-style: solid;
68+
border-color: #e5e7eb;
69+
}
70+
71+
/* Explicit filter blur classes to guarantee smooth blur on gradient circles */
72+
.wrapped-scope .blur-none {
73+
filter: blur(0) !important;
74+
}
75+
.wrapped-scope .blur-sm {
76+
filter: blur(4px) !important;
77+
}
78+
.wrapped-scope .blur {
79+
filter: blur(8px) !important;
80+
}
81+
.wrapped-scope .blur-md {
82+
filter: blur(12px) !important;
83+
}
84+
.wrapped-scope .blur-lg {
85+
filter: blur(16px) !important;
86+
}
87+
.wrapped-scope .blur-xl {
88+
filter: blur(24px) !important;
89+
}
90+
.wrapped-scope .blur-2xl {
91+
filter: blur(40px) !important;
92+
}
93+
.wrapped-scope .blur-3xl {
94+
filter: blur(64px) !important;
95+
}
96+
.wrapped-scope .backdrop-blur-none {
97+
backdrop-filter: blur(0) !important;
98+
-webkit-backdrop-filter: blur(0) !important;
99+
}
100+
.wrapped-scope .backdrop-blur-sm {
101+
backdrop-filter: blur(4px) !important;
102+
-webkit-backdrop-filter: blur(4px) !important;
103+
}
104+
.wrapped-scope .backdrop-blur {
105+
backdrop-filter: blur(8px) !important;
106+
-webkit-backdrop-filter: blur(8px) !important;
107+
}
108+
.wrapped-scope .backdrop-blur-md {
109+
backdrop-filter: blur(12px) !important;
110+
-webkit-backdrop-filter: blur(12px) !important;
111+
}
112+
.wrapped-scope .backdrop-blur-lg {
113+
backdrop-filter: blur(16px) !important;
114+
-webkit-backdrop-filter: blur(16px) !important;
115+
}
116+
.wrapped-scope .backdrop-blur-xl {
117+
backdrop-filter: blur(24px) !important;
118+
-webkit-backdrop-filter: blur(24px) !important;
119+
}
120+
.wrapped-scope .backdrop-blur-2xl {
121+
backdrop-filter: blur(40px) !important;
122+
-webkit-backdrop-filter: blur(40px) !important;
123+
}
124+
.wrapped-scope .backdrop-blur-3xl {
125+
backdrop-filter: blur(64px) !important;
126+
-webkit-backdrop-filter: blur(64px) !important;
127+
}
128+
71129
.wrapped-scope a {
72130
color: inherit;
73131
text-decoration: inherit;

0 commit comments

Comments
 (0)