-
Notifications
You must be signed in to change notification settings - Fork 105
/
elijahgummer_brown-moose-94.html
59 lines (53 loc) · 1.34 KB
/
elijahgummer_brown-moose-94.html
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
<div class="tooltip-container">
<span class="tooltip">8 contributions on March 8th.</span>
<span class="text"></span>
</div>
<style>
/* From Uiverse.io by elijahgummer - Tags: simple, tooltip, green, minimalist, github, clean, transition, hover effect */
.tooltip-container {
--background-tooltip-container: #2ea44f; /* GitHub green color */
position: relative;
background: var(--background-tooltip-container);
cursor: pointer;
transition: all 0.2s;
width: 16px;
height: 16px;
border-radius: 6px;
font-size: 17px;
}
.tooltip {
--background-tooltip: #6e7681; /* Default background color for tooltip */
position: absolute;
top: -39px; /* Adjusted top position */
left: 50%;
transform: translateX(-50%);
padding: 0.5em;
opacity: 0;
pointer-events: none;
transition: all 0.3s;
background: var(--background-tooltip);
color: white; /* Text color */
border-radius: 5px;
width: 210px;
height: 30px;
font-size: 13px;
text-align: center;
}
.tooltip::before {
position: absolute;
content: "";
height: 0.6em;
width: 0.6em;
bottom: -0.2em;
left: 50%;
transform: translate(-50%) rotate(45deg);
background: var(
--background-tooltip
); /* Use the same background color as the tooltip */
}
.tooltip-container:hover .tooltip {
opacity: 1;
visibility: visible;
pointer-events: auto;
}
</style>