This repository has been archived by the owner on Nov 25, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
HoverOverlay.scss
100 lines (86 loc) · 1.83 KB
/
HoverOverlay.scss
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
@import '../node_modules/@sourcegraph/react-loading-spinner/lib/LoadingSpinner.css';
.hover-overlay {
position: absolute;
width: 32rem;
max-height: 15rem;
display: flex;
flex-direction: column;
align-items: stretch;
z-index: 100;
transition: opacity 100ms ease-in-out;
&__close-button {
position: absolute;
top: 0;
right: 0;
padding: 0.2rem;
background: inherit;
z-index: 1;
border: none;
}
&__row {
display: block;
width: 100%;
margin: 0;
&:not(:first-child) {
border-top: 1px solid var(--border-color);
}
hr {
margin: 0.25rem -0.25rem;
background: var(--border-color);
}
p,
pre {
&:not(:last-child) {
margin-bottom: 0.5rem;
}
&:last-child {
margin-bottom: 0;
}
}
}
&__contents {
flex: 1 1 auto;
overflow-y: auto;
}
&__content {
padding: 0.25rem;
overflow-x: auto;
word-wrap: normal;
p:last-child {
margin-bottom: 0;
}
}
&__actions {
flex: 0 0 auto;
display: flex;
}
&__action:not(:first-child) {
border-left: 1px solid var(--border-color);
}
&__action {
width: percentage(1/3);
text-align: center;
border: none;
}
&__action,
&__actions-placeholder {
flex: 1 1 auto;
border-radius: 0;
}
&__loader-row {
text-align: center;
}
&__loader-row,
&__hover-error,
&__content-error,
&__alert-below {
padding: 0.5rem;
}
&__alert-below {
margin: 0;
overflow-y: auto;
}
code {
white-space: pre;
}
}