Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
80 lines (69 loc) · 1.76 KB
/
Copy pathstyle.css
File metadata and controls
80 lines (69 loc) · 1.76 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
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
display: flex; align-items: center; justify-content: center;
min-height: 100vh;
background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
padding: 1rem;
}
.clock-container {
text-align: center;
animation: fadeIn 0.8s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
.title {
color: rgba(255,255,255,0.5);
font-size: 1.25rem;
font-weight: 600;
letter-spacing: 4px;
text-transform: uppercase;
margin-bottom: 1.5rem;
}
.clock {
font-size: 5rem;
font-weight: 700;
color: #fff;
font-variant-numeric: tabular-nums;
text-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
display: flex;
align-items: baseline;
justify-content: center;
gap: 0.25rem;
}
.clock .colon {
animation: blink 1s infinite;
color: #6366f1;
}
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0.3; } }
.ampm {
font-size: 1.5rem;
color: #818cf8;
margin-left: 0.5rem;
font-weight: 600;
}
.date {
color: rgba(255,255,255,0.6);
font-size: 1.1rem;
margin-top: 1rem;
font-weight: 500;
}
.format-toggle { margin-top: 2rem; }
.format-btn {
padding: 0.65rem 1.5rem;
background: rgba(255,255,255,0.1);
border: 1px solid rgba(255,255,255,0.2);
border-radius: 50px;
color: #fff;
font-size: 0.9rem;
font-weight: 600;
cursor: pointer;
font-family: inherit;
transition: all 0.25s ease;
backdrop-filter: blur(8px);
}
.format-btn:hover { background: rgba(99,102,241,0.3); border-color: #6366f1; transform: translateY(-2px); }
@media (max-width: 500px) {
.clock { font-size: 3rem; }
.ampm { font-size: 1rem; }
.title { font-size: 1rem; letter-spacing: 2px; }
}