-
Notifications
You must be signed in to change notification settings - Fork 105
/
SteveBloX_orange-fox-41.html
60 lines (53 loc) · 1.18 KB
/
SteveBloX_orange-fox-41.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
<div class="tooltip-container">
<span class="tooltip">
<p class="title">Title</p>
<p class="content">
Lorem ipsum dolor sit amet consectetur adipisicing elit.
</p>
</span>
<span class="text">Material Design Tooltip</span>
</div>
<style>
/* From Uiverse.io by SteveBloX - Tags: material design, tooltip, shadow, md, md3 */
/* Material Design 3 tooltip */
.tooltip-container {
position: relative;
background: #e8def8;
color: #1d192b;
cursor: pointer;
transition: all 0.2s;
font-size: 17px;
padding: 0.7em 1.8em;
font-family: Montserrat, sans-serif;
border-radius: 50px;
}
.tooltip-container .text {
font-weight: bold;
}
.tooltip {
transform-origin: center left;
scale: 0;
position: absolute;
top: 130%;
left: 50%;
transform: translate(-50%, -10px);
transition: all 0.25s;
background: #f3edf7;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 6px 2px rgba(0, 0, 0, 0.15);
padding: 17px;
border-radius: 12px;
color: #49454f;
min-width: 312px;
}
.tooltip-container:hover .tooltip {
scale: 1;
}
.tooltip .title {
font-weight: bold;
font-size: 1em;
}
.tooltip .content {
font-size: 0.85em;
font-weight: semibold;
}
</style>