-
Notifications
You must be signed in to change notification settings - Fork 105
/
SelfMadeSystem_neat-emu-37.html
150 lines (138 loc) · 3.74 KB
/
SelfMadeSystem_neat-emu-37.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
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<div class="tooltip-container">
<span class="tooltip">
<span>
<svg
class="tooltip-icon"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
>
<defs>
<linearGradient y2="1" x2="0" id="gradient">
<stop stop-color="#96a1e8" offset="0%"></stop>
<stop stop-color="#5061be" offset="100%"></stop>
</linearGradient>
</defs>
<path
d="M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z"
fill="url(#gradient)"
></path>
</svg>
</span>
<span class="tooltip-lines">
<span class="tooltip-line-1"></span>
<span class="tooltip-line-2"></span>
</span>
</span>
<span class="text">
<span class="tooltip-lines">
<span class="tooltip-line-1"></span>
<span class="tooltip-line-2"></span>
</span>
</span>
</div>
<style>
/* From Uiverse.io by SelfMadeSystem - Tags: tooltip, 3d, border */
/* This is very original.
I'm also too lazy to figure out how to add the arrow
without excessive SVG. I know I'm not going to win, so
why not just try to emulate the thing in the image */
.tooltip-container {
--background: #fefbff;
--inner-shadow: #9faef9;
--inner-outline: #34217d;
--inner-outline-bottom: #fafcfe;
--inner-outline-middle: #8880d5;
--inner-outline-outer-top: #fefcff;
--inner-outline-outer-bottom-1: #29107b;
--inner-outline-outer-bottom-2: #5b42c4;
--inner-outline-outer-bottom-3: #200265;
--line-1: #8676c9;
--line-2: #5c69ca;
position: relative;
background: var(--background);
cursor: pointer;
transition: all 0.2s;
font-size: 17px;
padding: 0.7em 1.8em;
border-radius: 5px;
box-shadow: inset 0px 1px 8px 1px var(--inner-shadow),
0px 2px 0px 0px var(--inner-outline-bottom),
0px -2px 0px 0px var(--inner-outline),
-2px -2px 0px 0px var(--inner-outline),
2px -2px 0px 0px var(--inner-outline),
0px 0px 0px 6px var(--inner-outline-middle),
0px -2px 0px 7px var(--inner-outline-outer-top),
0px 4px 0px 7px var(--inner-outline-outer-bottom-1);
}
.tooltip-icon {
display: inline-block;
vertical-align: top;
width: 1.5em;
}
.tooltip-icon path {
stroke-width: 2px;
stroke: var(--inner-outline);
stroke-linejoin: round;
}
.tooltip-lines {
display: flex;
flex-direction: column;
gap: 0.4em;
}
.tooltip-line-1 {
height: 0.2em;
width: 4em;
border-radius: 10em;
display: inline-block;
background: var(--line-1);
}
.tooltip-line-2 {
height: 0.2em;
width: 3em;
border-radius: 10em;
display: inline-block;
background: var(--line-2);
}
.tooltip {
position: absolute;
display: flex;
gap: 0.4em;
align-items: center;
top: 0;
left: 50%;
transform: translateX(-50%);
padding: 0.6em 0.8em;
opacity: 0;
pointer-events: none;
transition: all 0.3s;
background: var(--background);
border-radius: 0.7em;
box-shadow: inset 0px 1px 8px 1px var(--inner-shadow),
0px 2px 0px 0px var(--inner-outline-bottom),
0px -2px 0px 0px var(--inner-outline),
-2px -2px 0px 0px var(--inner-outline),
2px -2px 0px 0px var(--inner-outline),
0px 0px 0px 6px var(--inner-outline-middle),
0px -2px 0px 7px var(--inner-outline-outer-top),
0px 4px 0px 7px var(--inner-outline-outer-bottom-1),
0px 7px 0px 7px var(--inner-outline-outer-bottom-2),
0px 10px 0px 7px var(--inner-outline-outer-bottom-3);
}
/* .tooltip::before {
content: "";
position: absolute;
height: 1em;
width: 1em;
bottom: -0.2em;
left: 50%;
transform: translate(-50%) translateY(2px) rotate(45deg);
background: var(--background);
border-radius: 0.2em;
} */
.tooltip-container:hover .tooltip {
top: -4.5em;
opacity: 1;
visibility: visible;
pointer-events: auto;
}
</style>