-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinject.scss
More file actions
80 lines (73 loc) · 2.41 KB
/
inject.scss
File metadata and controls
80 lines (73 loc) · 2.41 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
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
$primary-color: #fa5c7c;
$second-color: #f82b54;
$tooltip-color: #1A1A1D;
.badsite {
position: relative;
&::before {
content: "";
position: absolute;
height: 100%;
left: -10px;
right: -4px;
background-color: rgba($second-color, .2);
box-shadow: 0 2px 6px 0 rgba($second-color, .1);
border-radius: 0 5px 5px 0;
z-index: -1;
pointer-events: none;
}
>.badsite-warn {
height: 100%;
width: 40px;
background-color: $primary-color;
box-shadow: 0 2px 6px 0 rgba($primary-color, .5);
display: table-cell;
position: absolute;
right: calc(100% + 4px);
top: 0;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z' fill='%23fff'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: center;
border-radius: 5px 0 0 5px;
background-size: 60%;
>.badsite-tooltip {
padding: 8px;
background-color: $tooltip-color;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,.25);
color: rgba(255,255,255,.9);
position: absolute;
bottom: calc(100% + 4px);
left: 50%;
transform: translateX(-50%) translateY(20%);
display: flex;
justify-content: center;
align-items: center;
text-align: center;
visibility: hidden;
opacity: 0;
transition: .1s;
border-radius: 6px;
max-width: 300px;
min-width: 180px;
z-index: 1000;
pointer-events: none;
white-space: nowrap;
text-overflow: ellipsis;
&::before {
content: "";
position: absolute;
width: 8px;
height: 4px;
clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
background-color: $tooltip-color;
backdrop-filter: blur(2px);
top: 100%;
z-index: inherit;
}
}
&:hover>.badsite-tooltip {
visibility: visible;
opacity: 1;
transform: translateX(-50%) translateY(-4px);
}
}
}