-
-
Notifications
You must be signed in to change notification settings - Fork 431
/
visi.css
77 lines (66 loc) · 1.97 KB
/
visi.css
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
.visitor-counter {
position: fixed;
top: 580px;
left: 21px;
background-color: rgba(255, 255, 255, 0.8);
height: 70px;
width: 120px;
color: #333; /* Darker text for better contrast */
font-weight: 700;
font-size: 18px;
text-align: center;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
border-radius: 12px; /* Softer corners */
backdrop-filter: blur(10px); /* Increased blur for a modern touch */
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15), /* Slightly more pronounced shadow */
0 2px 4px rgba(0, 0, 0, 0.1);
z-index: 1000;
transition: all 0.3s ease; /* Smooth transition for hover effect */
}
.visitor-counter:hover {
transform: scale(1.05); /* Slightly enlarge on hover */
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Enhance shadow on hover */
}
.visitor-counter div:first-child {
margin-bottom: 5px;
font-size: 14px; /* Adjusted for clarity */
letter-spacing: 1px; /* Increased spacing for readability */
}
.website-counter {
font-size: 24px;
font-family: 'Arial', sans-serif; /* Consistent font family */
}
@media screen and (max-width: 768px) {
.visitor-counter {
height: 100px;
width: 100px;
font-size: 16px;
}
.website-counter {
font-size: 20px;
}
}
@media screen and (max-width: 480px) {
.visitor-counter {
height: 80px;
width: 80px;
font-size: 14px;
}
.website-counter {
font-size: 18px;
}
}
.dark-mode .visitor-counter div {
color: #f0f0f0; /* Lighter text for dark mode */
}
.dark-mode .visitor-counter .website-counter {
color: #f0f0f0; /* Lighter color for consistency */
}
.dark-mode .visitor-counter {
background-color: rgba(0, 0, 0, 0.7); /* Darker background for dark mode */
box-shadow: 0 6px 12px rgba(255, 255, 255, 0.1),
0 2px 4px rgba(255, 255, 255, 0.05);
}