-
Notifications
You must be signed in to change notification settings - Fork 155
/
Copy pathtooltip.css
126 lines (111 loc) · 2.47 KB
/
tooltip.css
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
:root {
--light-gray: #6a737d;
--gray: #586069;
--dark-gray: #24292e;
--blue: #274466;
--light-blue: #eff7ff;
}
@media (min-width: 544px) {
.github-tooltip--large {
min-width: 320px;
}
}
/* Github Tooltip */
.github-tooltip .box {
background-color: white;
box-shadow: 0 1px 15px rgba(27,31,35,.15);
position: relative;
width: 360px;
border-radius: 4px;
}
.github-tooltip--bottom-left, .github-tooltip--top-left {
left: -9px;
margin-left: 0;
}
/* Header */
.github-tooltip .header {
color: var(--light-gray);
font-size: 12px;
white-space: nowrap;
}
.github-tooltip .header a {
text-decoration: none;
color: var(--gray);
display: inline-block;
}
/* Body */
.github-tooltip .body > span {
line-height: 1.25;
}
/* Info */
.github-tooltip .tooltip-info {
line-height: 1.25;
display: flex;
flex-direction: column;
}
.github-tooltip .tooltip-info > a, .github-tooltip .tooltip-info > a:hover {
display: block;
text-decoration: none;
color: var(--dark-gray);
}
.github-tooltip .tooltip-info > a span {
color: var(--light-gray);
}
.github-tooltip .tooltip-info h5 {
font-weight: 600;
font-size: 14px;
display: inline;
}
.github-tooltip .tooltip-info .markdown-text {
max-height: 150px;
line-height: 1.25;
overflow: hidden;
word-break: break-word;
word-wrap: break-word;
overflow-wrap: break-word;
font-size: 12px;
}
.github-tooltip .tooltip-info .markdown-text::-webkit-scrollbar {
display: none;
}
.github-tooltip .see-more {
font-weight: 600;
font-size: 12px;
}
/* Labels */
.github-tooltip .labels {
display: flex;
justify-content: flex-start;
align-items: center;
}
.github-tooltip .label {
height: 20px;
padding: .15em 4px;
font-size: 12px;
font-weight: 600;
line-height: 15px;
border-radius: 2px;
box-shadow: inset 0 -1px 0 rgba(27,31,35,.12);
display: inline-block;
overflow: hidden;
text-overflow: ellipsis;
max-width: 125px;
}
.github-tooltip .base-head {
display: flex;
line-height: 1;
align-items: center;
}
.github-tooltip .commit-ref {
position: relative;
display: inline-block;
padding: 0 5px;
font: .75em/2 SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;
color: var(--blue);
background-color: var(--light-blue);
border-radius: 3px;
max-width: 140px;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}