Repository navigation
Expand file tree
/
Copy pathclicker.css
More file actions
107 lines (94 loc) · 2.28 KB
/
Copy pathclicker.css
File metadata and controls
107 lines (94 loc) · 2.28 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.wrapper {
display: flex;
flex-direction: column;
align-items: center;
gap: 24px;
padding: 48px 56px;
background: rgba(255, 255, 255, 0.08);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 24px;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}
.title {
color: #ffffff;
font-size: 2.2rem;
letter-spacing: 2px;
text-transform: uppercase;
text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.counter-box {
display: flex;
flex-direction: column;
align-items: center;
gap: 4px;
}
.counter {
font-size: 5rem;
font-weight: 800;
color: #ffffff;
line-height: 1;
text-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
transition: transform 0.15s ease;
}
.counter-label {
font-size: 1rem;
color: rgba(255, 255, 255, 0.75);
text-transform: uppercase;
letter-spacing: 1px;
}
.click-btn {
padding: 22px 64px;
font-size: 1.4rem;
font-weight: 700;
color: #764ba2;
background: #ffffff;
border: none;
border-radius: 50px;
cursor: pointer;
box-shadow: 0 8px 0 #c9c9e8, 0 12px 20px rgba(0, 0, 0, 0.3);
transition: transform 0.1s ease, box-shadow 0.1s ease;
user-select: none;
}
.click-btn:hover {
background: #f5f4ff;
}
.click-btn:active {
transform: translateY(6px);
box-shadow: 0 2px 0 #c9c9e8, 0 4px 10px rgba(0, 0, 0, 0.3);
}
.reset-btn {
padding: 10px 28px;
font-size: 0.95rem;
font-weight: 600;
color: #ffffff;
background: transparent;
border: 2px solid rgba(255, 255, 255, 0.5);
border-radius: 30px;
cursor: pointer;
transition: background 0.2s ease, border-color 0.2s ease;
}
.reset-btn:hover {
background: rgba(255, 255, 255, 0.15);
border-color: #ffffff;
}
.reset-btn:active {
transform: scale(0.96);
}
/* Класс, который удобно вешать/снимать из JS для анимации счётчика при клике */
.counter.pop {
transform: scale(1.25);
}