forked from QuentinRCR/Price-rounder
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontent_script.css
More file actions
47 lines (47 loc) · 1.28 KB
/
content_script.css
File metadata and controls
47 lines (47 loc) · 1.28 KB
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
.price-rounder-wrapped {
position: relative;
cursor: default;
}
.price-rounder-wrapped::after {
content: attr(data-original-price);
position: absolute;
bottom: calc(100% + 6px);
left: 50%;
transform: translateX(-50%) scale(0.95);
background: rgba(24, 24, 27, 0.92);
color: #f4f4f5;
font-size: 12px;
font-weight: 500;
line-height: 1;
padding: 5px 9px;
border-radius: 6px;
white-space: nowrap;
pointer-events: none;
opacity: 0;
transition: opacity 0.15s ease, transform 0.15s ease;
z-index: 2147483647;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
letter-spacing: 0.01em;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.price-rounder-wrapped:hover::after {
opacity: 1;
transform: translateX(-50%) scale(1);
}
.price-rounder-wrapped::before {
content: "";
position: absolute;
bottom: calc(100% + 2px);
left: 50%;
transform: translateX(-50%) scale(0.95);
border: 4px solid transparent;
border-top-color: rgba(24, 24, 27, 0.92);
opacity: 0;
transition: opacity 0.15s ease, transform 0.15s ease;
pointer-events: none;
z-index: 2147483647;
}
.price-rounder-wrapped:hover::before {
opacity: 1;
transform: translateX(-50%) scale(1);
}