forked from knaw-huc/timeline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
popup.css
74 lines (63 loc) · 1.01 KB
/
popup.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
#popup {
background: #222;
color: #EEE;
border-radius: .3em;
box-shadow: 3px 3px 6px rgb(80, 80, 80);
padding: 1em;
padding-right: 3em;
display: grid;
grid-template-columns: auto auto;
grid-gap: 1em;
}
#popup:after, #popup:before {
top: -20px;
border: solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
pointer-events: none;
}
#popup:after {
border-bottom-color: #222;
border-width: 10px;
left: 50%;
margin-left: -10px;
}
#popup:before {
border-bottom-color: #222;
border-width: 11px;
left: 50%;
margin-left: -11px;
}
#popup.bottom:after, #popup.bottom:before {
top: 100%;
}
#popup.bottom:after {
border-top-color: #222;
border-bottom: none;
}
#popup.bottom:before {
border-top-color: #222;
border-bottom: none;
}
#popup-close {
color: #EEE;
cursor: pointer;
font-weight: bold;
position: absolute;
right: 1em;
top: 1em;
}
#popup img {
border-radius: .3em;
}
#popup img[alt="noimage"] {
display: none;
}
#popup h2 {
margin: 0;
}
#popup .description {
color: gray;
}