|
44 | 44 | --sidebar-accent-foreground: oklch(1 0 0); |
45 | 45 | --sidebar-border: oklch(0.25 0.0295 269.9587); |
46 | 46 | --sidebar-ring: oklch(0.6201 0.1902 264.8967); |
47 | | - --font-sans: var(--font-poppins); |
48 | | - --font-serif: ui-serif, Georgia, serif; |
49 | | - --font-mono: ui-monospace, "SF Mono", monospace; |
50 | 47 | --radius: 0.5rem; |
51 | 48 | --shadow-2xs: 0 1px 3px 0px hsl(0 0% 0% / 0.05); |
52 | 49 | --shadow-xs: 0 1px 3px 0px hsl(0 0% 0% / 0.05); |
|
227 | 224 | .icon.sm { |
228 | 225 | @apply h-[24px] w-[24px]; |
229 | 226 | } |
230 | | - |
231 | | -/* Layout */ |
232 | | -.layout-container { |
233 | | - @apply mx-8 md:mx-32 xl:mx-48; |
234 | | -} |
235 | | - |
236 | | -/* Hoverable */ |
237 | | -.hoverable { |
238 | | - --mouse-x: -9999px; |
239 | | - --mouse-y: -9999px; |
240 | | -} |
241 | | - |
242 | | -.hoverable.hoverable-card { |
243 | | - @apply relative flex grow flex-col overflow-clip opacity-100; |
244 | | -} |
245 | | - |
246 | | -.hoverable.hoverable-card:hover::before { |
247 | | - @apply opacity-100; |
248 | | -} |
249 | | - |
250 | | -.hoverable.hoverable-card::before, |
251 | | -.hoverable.hoverable-card::after { |
252 | | - @apply absolute left-0 top-0 h-full w-full opacity-0 transition-opacity content-['']; |
253 | | -} |
254 | | - |
255 | | -.hoverable.hoverable-card::before { |
256 | | - /* Less intense hover effect */ |
257 | | - |
258 | | - @apply z-[3]; |
259 | | - background: radial-gradient( |
260 | | - 800px circle at var(--mouse-x) var(--mouse-y), |
261 | | - rgba(255, 255, 255, 0.06), |
262 | | - transparent 40% |
263 | | - ); |
264 | | -} |
265 | | - |
266 | | -.hoverable.hoverable-card::after { |
267 | | - /* Outline that shows regardless of hover state */ |
268 | | - |
269 | | - @apply z-[1] rounded-[inherit] border opacity-100; |
270 | | - border-image: radial-gradient( |
271 | | - 600px circle at var(--mouse-x) var(--mouse-y), |
272 | | - rgba(255, 255, 255, 0.4), |
273 | | - transparent 40% |
274 | | - ); |
275 | | - border-image-slice: 1; |
276 | | - |
277 | | - /* TODO: Fix the rounding */ |
278 | | - /* Create a mask that is rounded on all corners, to create a rounded outline */ |
279 | | - /* This is because the border-image property does not support border-radius */ |
280 | | - |
281 | | - /* --border-radius: 0.5rem; */ |
282 | | - /* background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.4), transparent 40%); */ |
283 | | - /* mask-image: */ |
284 | | - /* linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 1) calc(var(--border-radius) - 1px), rgba(0, 0, 0, 0) calc(var(--border-radius)), rgba(0, 0, 0, 0) 100%), |
285 | | - linear-gradient(to right, rgba(0, 0, 0, 1), rgba(0, 0, 0, 1) calc(var(--border-radius) - 1px), rgba(0, 0, 0, 0) calc(var(--border-radius)), rgba(0, 0, 0, 0) 100%), |
286 | | - linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 1) calc(var(--border-radius) - 1px), rgba(0, 0, 0, 0) calc(var(--border-radius)), rgba(0, 0, 0, 0) 100%), |
287 | | - linear-gradient(to left, rgba(0, 0, 0, 1), rgba(0, 0, 0, 1) calc(var(--border-radius) - 1px), rgba(0, 0, 0, 0) calc(var(--border-radius)), rgba(0, 0, 0, 0) 100%), */ |
288 | | - |
289 | | - /* Round the inside corners */ |
290 | | - /* radial-gradient(circle at var(--border-radius) var(--border-radius), rgba(0, 0, 0, 1), rgba(0, 0, 0, 1) calc(var(--border-radius) - 1px), rgba(0, 0, 0, 0) calc(var(--border-radius)), rgba(0, 0, 0, 0) 100%); */ |
291 | | -} |
0 commit comments