forked from gorhill/uBlock
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommon.css
More file actions
79 lines (75 loc) · 1.76 KB
/
Copy pathcommon.css
File metadata and controls
79 lines (75 loc) · 1.76 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
@font-face {
font-family: 'FontAwesome';
font-weight: normal;
font-style: normal;
src: url('fonts/fontawesome-webfont.ttf') format('truetype');
}
.fa {
display: inline-block;
font-family: FontAwesome;
font-style: normal;
font-weight: normal;
line-height: 1;
vertical-align: baseline;
}
/* https://developer.mozilla.org/en-US/docs/Web/CSS/::after#Tooltips */
[data-tip] {
cursor: pointer;
position: relative;
}
body:not(.advancedUser) [data-tip]:after {
background-color: #ffffee;
border: 1px solid gray;
border-radius: 3px;
box-shadow: 1px 1px 3px gray;
box-sizing: border-box;
color: black;
content: attr(data-tip);
font: 12px sans-serif;
left: 0.5em;
line-height: 130%;
opacity: 0;
padding: 4px 6px;
pointer-events: none;
position: fixed;
right: 0.5em;
text-align: left;
top: 110%;
visibility: hidden;
white-space: pre-line;
z-index: 20;
}
body [data-tip]:hover:after {
opacity: 1;
position: absolute;
transition: visibility 0s 0.6s, opacity 0.2s 0.7s;
-webkit-transition: visibility 0s 0.6s, opacity 0.2s 0.7s;
visibility: visible;
}
body[dir=rtl] [data-tip]:hover:after {
text-align: right;
}
body [data-tip][data-tip-anchor="top"]:hover:after {
bottom: 140%;
left: initial;
top: auto;
width: 8.5em;
}
body[dir=ltr] [data-tip][data-tip-anchor="top"]:hover:after {
right: 0;
}
body[dir=rtl] [data-tip][data-tip-anchor="top"]:hover:after {
left: 0;
}
body [data-tip][data-tip-anchor="topcenter"]:hover:after {
bottom: 140%;
left: -225%;
right: initial;
top: auto;
width: 8.5em;
}
.hiddenFileInput {
visibility: hidden;
width: 0;
height: 0;
}