-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
176 lines (140 loc) · 3.88 KB
/
style.css
File metadata and controls
176 lines (140 loc) · 3.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');
/* Base Styles */
:root {
--font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
--primary: #3b82f6;
--primary-dark: #2563eb;
--success: #10b981;
--warning: #f59e0b;
--danger: #ef4444;
--card-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
--card-shadow-hover: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}
/* Base Elements */
body {
font-family: var(--font-family);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* Card Styles */
.stats-card {
@apply relative overflow-hidden rounded-2xl border border-slate-200/50 dark:border-slate-700/50 bg-white/50 dark:bg-slate-800/50 backdrop-blur-xl p-6 transition-all duration-200;
}
.stats-card:hover {
@apply border-slate-300 dark:border-slate-600 bg-white dark:bg-slate-800 shadow-lg;
}
/* Typography */
.card-title {
@apply text-lg font-semibold text-slate-900 dark:text-white;
}
.stats-badge {
@apply inline-flex items-center px-3 py-1 rounded-full text-xs font-medium bg-blue-100 dark:bg-blue-900/30 text-blue-600 dark:text-blue-400;
}
/* Stats Item */
.stat-item {
@apply flex items-center justify-between p-4 rounded-xl bg-slate-50 dark:bg-slate-700/50;
}
.stat-icon {
@apply flex items-center justify-center w-12 h-12 rounded-xl bg-gradient-to-br;
}
.stat-icon.blue {
@apply from-blue-500 to-indigo-500 text-white;
}
.stat-icon.purple {
@apply from-purple-500 to-pink-500 text-white;
}
.stat-icon.green {
@apply from-emerald-500 to-teal-500 text-white;
}
.stat-content {
@apply flex-1 ml-4;
}
.stat-value {
@apply text-2xl font-bold text-slate-900 dark:text-white;
}
.stat-label {
@apply text-sm font-medium text-slate-500 dark:text-slate-400;
}
/* Achievement Cards */
.achievement-card {
@apply relative overflow-hidden rounded-xl p-4 bg-gradient-to-br transition-all duration-200 hover:scale-105;
}
.achievement-card.gold {
@apply from-amber-400 to-amber-600;
}
.achievement-card.platinum {
@apply from-slate-400 to-slate-600;
}
.achievement-card.diamond {
@apply from-blue-400 to-indigo-600;
}
.achievement-icon {
@apply text-3xl mb-2;
}
.achievement-title {
@apply font-semibold text-white;
}
.achievement-subtitle {
@apply text-sm text-white/80;
}
/* Buttons */
.icon-button {
@apply inline-flex items-center justify-center w-8 h-8 rounded-lg text-slate-500 dark:text-slate-400 hover:bg-slate-100 dark:hover:bg-slate-700 transition-colors;
}
/* Chart Customization */
#language-chart, #activity-chart {
@apply !w-full !h-full;
}
/* Animations */
@keyframes spin {
to {
transform: rotate(360deg);
}
}
.animate-spin {
animation: spin 1s linear infinite;
}
/* Custom Scrollbar */
::-webkit-scrollbar {
width: 14px;
}
::-webkit-scrollbar-track {
@apply bg-slate-100 dark:bg-slate-800;
}
::-webkit-scrollbar-thumb {
@apply bg-slate-300 dark:bg-slate-600 rounded-full border-4 border-solid border-slate-100 dark:border-slate-800;
}
::-webkit-scrollbar-thumb:hover {
@apply bg-slate-400 dark:bg-slate-500;
}
/* Responsive Design */
@media (max-width: 640px) {
.stats-card {
@apply p-4;
}
.stat-item {
@apply p-3;
}
.stat-icon {
@apply w-10 h-10;
}
.stat-value {
@apply text-xl;
}
}
/* Dark Mode Transitions */
.dark .transition-colors {
@apply transition-all duration-200;
}
/* Loading Animation */
.loading-pulse {
animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse {
0%, 100% {
opacity: 1;
}
50% {
opacity: .5;
}
}