Skip to content

Commit ade11c8

Browse files
committed
css fixes
1 parent 9dcdfab commit ade11c8

File tree

2 files changed

+45
-22
lines changed

2 files changed

+45
-22
lines changed

src/styles/utilities.css

Lines changed: 39 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,28 @@
11
@layer utilities {
2+
/* Animated background */
23
.animated-bg {
3-
@apply overflow-hidden;
4+
position: relative;
5+
overflow: hidden;
46
}
57

68
.animated-bg::before {
79
content: '';
8-
@apply absolute inset-0 opacity-50;
9-
@apply bg-gradient-primary;
10+
position: absolute;
11+
inset: 0;
12+
opacity: 0.5;
13+
background: var(--gradient-primary);
14+
background-size: 200% 200%;
1015
animation: gradientShift 15s ease infinite;
1116
}
1217

18+
/* Fox ear styling */
1319
.fox-ear {
1420
position: absolute;
1521
width: 30px;
1622
height: 30px;
17-
background: var(--fox-pink);
23+
background-color: var(--fox-pink);
1824
opacity: 0.1;
19-
transition: opacity 0.3s ease;
25+
transition: opacity 0.2s ease;
2026
}
2127

2228
.fox-ear-left {
@@ -32,6 +38,34 @@
3238
transform: rotate(-45deg);
3339
border-radius: 0 0 15px 0;
3440
}
41+
42+
/* Hover effects */
43+
.hover-glow {
44+
transition: all 0.2s ease;
45+
}
46+
47+
.hover-glow:hover {
48+
filter: drop-shadow(0 0 4px var(--fox-pink-glow));
49+
}
50+
51+
/* Spacing utilities */
52+
.section-spacing {
53+
margin-top: 2rem;
54+
margin-bottom: 2rem;
55+
}
56+
57+
.section-spacing > * + * {
58+
margin-top: 1.5rem;
59+
}
60+
61+
.content-spacing {
62+
margin-top: 1rem;
63+
margin-bottom: 1rem;
64+
}
65+
66+
.content-spacing > * + * {
67+
margin-top: 1rem;
68+
}
3569
}
3670

3771
@keyframes gradientShift {

tailwind.config.js

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -20,30 +20,19 @@ export default {
2020
'fox-white': '#fff5f9',
2121
},
2222
backgroundImage: {
23+
'gradient-primary': 'linear-gradient(135deg, var(--background-primary) 0%, var(--background-secondary) 100%)',
2324
'gradient-card': 'linear-gradient(135deg, rgba(47, 28, 84, 0.3) 0%, rgba(157, 78, 221, 0.1) 100%)',
2425
},
25-
transitionProperty: {
26-
'all': 'all',
27-
},
28-
boxShadow: {
29-
'accent': '0 0 10px var(--accent-primary)',
26+
spacing: {
27+
'ear': '30px',
3028
},
3129
opacity: {
30+
'5': '0.05',
3231
'10': '0.1',
32+
'15': '0.15',
3333
'20': '0.2',
34-
'40': '0.4',
35-
}
34+
},
3635
},
3736
},
3837
plugins: [],
39-
safelist: [
40-
'bg-accent-primary/10',
41-
'bg-accent-primary/20',
42-
'border-accent-primary/20',
43-
'border-accent-neon/40',
44-
'shadow-accent-primary/10',
45-
'hover:bg-accent-primary/10',
46-
'hover:border-accent-neon/40',
47-
'hover:shadow-accent-primary/10'
48-
]
4938
}

0 commit comments

Comments
 (0)