-
Notifications
You must be signed in to change notification settings - Fork 105
/
johnliter_clever-lizard-46.html
70 lines (62 loc) · 1.77 KB
/
johnliter_clever-lizard-46.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
60
61
62
63
64
65
66
67
68
69
70
<div class="tooltip-container">
<span class="tooltip">Uiverse.io</span>
<span class="text">Tooltip</span>
</div>
<style>
/* From Uiverse.io by johnliter - Tags: simple, flashy, tooltip, button, theme-switch, code, gradients, light&dark */
/* Style for the tooltip container */
.tooltip-container {
--background-light: #ff5555; /* Red */
--background-dark: #000000; /* Black */
--text-color-light: #ffffff;
--text-color-dark: #ffffff;
--bubble-size: 12px;
--glow-color: rgba(255, 255, 255, 0.5); /* Brighter glow color */
position: relative;
background: var(--background-light);
cursor: pointer;
transition: all 0.2s;
font-size: 17px;
padding: 0.7em 1.8em;
color: var(--text-color-light);
border-radius: 8px; /* Rounded edges */
}
/* Style for the bubble tooltip */
.tooltip {
position: absolute;
top: -100%; /* Initially hidden above the container */
left: 50%;
transform: translateX(-50%);
padding: 0.6em 1em;
opacity: 0;
visibility: hidden;
pointer-events: none;
transition: all 0.3s;
border-radius: var(--bubble-size);
background: var(--background-light);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
/* Triangle arrow for the bubble tooltip */
.tooltip::before {
content: "";
position: absolute;
top: 100%;
left: 50%;
transform: translate(-50%);
border-style: solid;
border-width: 8px 8px 0;
border-color: var(--background-light) transparent transparent;
}
/* Tooltip appearance on hover */
.tooltip-container:hover {
background: var(--background-dark);
color: var(--text-color-dark);
box-shadow: 0 0 20px var(--glow-color); /* Brighter glow effect */
}
.tooltip-container:hover .tooltip {
top: -120%; /* Adjusted position for the bubble tooltip */
opacity: 1;
visibility: visible;
pointer-events: auto;
}
</style>