forked from apollographql/specs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathanatomy.css
56 lines (45 loc) · 756 Bytes
/
anatomy.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
@media (min-width: 720px) {
code.anatomy {
font-size: 110%;
}
}
code.anatomy {
white-space: inherit;
}
code.anatomy span {
position: relative;
color: var(--color);
}
.red {
--color: var(--red-base);
}
.blue {
--color: var(--blue-base);
}
.pink {
--color: var(--pink-base);
}
.yellow {
--color: var(--yellow-base);
}
.green {
--color: var(--green-base);
}
.grey {
--color: var(--grey-base);
}
code.anatomy span > aside {
position: absolute;
top: 100%;
left: 0;
font-size: 50%;
width: calc(100% - 8px);
display: block;
border-bottom: 1px solid var(--color);
border-left: 1px solid var(--color);
padding: 4px;
height: calc(20% + 10px);
}
code.anatomy span > span > aside {
height: calc(20% + 5px);
}