forked from elixir-lang/ex_doc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctions.css
More file actions
116 lines (103 loc) · 2.49 KB
/
functions.css
File metadata and controls
116 lines (103 loc) · 2.49 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
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
@keyframes blink-background {
0%, 100% {
background-color: var(--textDetailBackground);
}
50% {
background-color: var(--blink);
}
}
.content-inner .detail:target .detail-header {
animation-duration: 0.55s;
animation-name: blink-background;
animation-iteration-count: 1;
animation-timing-function: ease-in-out;
}
.content-inner .detail-header {
margin: 1em 0;
padding: 0.5em 0.85em 0.5em 1em;
background-color: var(--textDetailBackground);
border-left: 3px solid var(--textDetailAccent);
font-size: 1em;
font-family: var(--monoFontFamily);
position: relative;
}
/* !important used in order to beat main heading styles (which use #id selectors),
in both HTML and ePub. */
.content-inner .detail-header .signature {
font-family: var(--monoFontFamily);
font-weight: 700;
font-size: 13px !important;
line-height: 2em !important;
margin: 0 !important;
}
.content-inner .detail-header:hover a.detail-link,
.content-inner .detail-header a.detail-link:focus {
opacity: 1;
text-decoration: none;
}
.content-inner .detail-header a.detail-link {
transition: var(--transition-opacity);
position: absolute;
top: 0;
left: 0;
display: block;
opacity: 0;
padding: 0.6em;
line-height: 1.5em;
margin-left: -2.5em;
text-decoration: none;
border: none;
}
@media screen and (max-width: 768px) {
.content-inner .detail-header a.detail-link {
margin-left: -30px;
}
}
.content-inner .specs pre {
font-family: var(--monoFontFamily);
font-size: var(--text-xs);
font-style: normal;
line-height: 24px;
white-space: pre-wrap;
margin: 0;
padding: 0;
}
.content-inner .specs .attribute {
color: var(--fnSpecAttr);
}
.content-inner .docstring {
margin: 1.2em 0 3em 1.2em;
}
@media screen and (max-width: 768px) {
.content-inner .docstring {
margin-left: 0;
}
}
.content-inner .docstring {
/* Docstring headings - should not apply to admonition block headings */
& :not([class~='admonition-title']) {
&:is(h1, h2, h3, h4, h5, h6) {
font-weight: 700;
font-size: 1em;
margin-top: 2em;
}
/* h1 not expected */
&:is(h1, h2) {
font-size: 1.1em;
}
/* h4 the last level expected: smallcaps */
&:is(h4) {
font-size: .8em;
text-transform: uppercase;
letter-spacing: .1em;
color: var(--textBody);
}
}
}
.content-inner div.deprecated {
display: block;
padding: 1em;
background-color: var(--fnDeprecated);
border-radius: var(--borderRadius-sm);
margin: var(--baseLineHeight) 0;
}