Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
83 lines (72 loc) · 1.72 KB
/
Copy pathstyle.css
File metadata and controls
83 lines (72 loc) · 1.72 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
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;750&display=swap');
:root {
--color-bg: #1e1e2e;
--color-card: #252538;
--color-text-dim: #6c7086;
--color-text-light: #cdd6f4;
--color-accent: #cba6f7;
--color-correct: #a6e3a1;
--color-incorrect: #f38ba8;
}
body {
font-family: 'Inter', sans-serif;
background-color: var(--color-bg);
color: var(--color-text-light);
margin: 0;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
/* Typing area styles */
#typingspace {
font-family: 'JetBrains Mono', monospace;
font-size: 1.5rem;
line-height: 2.25rem;
letter-spacing: 0.05em;
word-break: break-word;
}
.char-untyped {
color: var(--color-text-dim);
border-bottom: 2px solid transparent;
transition: all 0.1s ease;
}
.char-correct {
color: var(--color-correct);
border-bottom: 2px solid transparent;
}
.char-incorrect {
color: var(--color-incorrect);
border-bottom: 2px solid var(--color-incorrect);
background-color: rgba(243, 139, 168, 0.1);
}
.char-active {
color: var(--color-text-light);
position: relative;
}
.char-active::before {
content: '';
position: absolute;
left: 0;
top: 15%;
height: 70%;
width: 2px;
background-color: var(--color-accent);
animation: caret-blink 1s steps(2, start) infinite;
}
@keyframes caret-blink {
to {
visibility: hidden;
}
}
/* Glassmorphism panel and animations */
.glow-card {
box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
border: 1px solid rgba(255, 255, 255, 0.05);
}
/* Transitions */
.transition-all-200 {
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}