@@ -14,20 +14,25 @@ main.container {
14
14
height : auto;
15
15
}
16
16
17
- /* byline */
18
- .byline {
17
+ /* headers */
18
+ main header {
19
+ border-bottom : 1px solid rgba (0 , 0 , 0 , .1 );
20
+ margin-bottom : 16px ;
21
+ padding-bottom : 16px ;
22
+ }
23
+
24
+ main > h1 {
25
+ margin-bottom : 20px ;
26
+ }
27
+
28
+ .byline , .byline a {
19
29
color : grey;
20
30
}
21
31
.byline .author {
22
32
display : block;
23
33
}
24
- h1 : not (.above-byline ) {
25
- margin-bottom : 20px ;
26
- }
27
- h1 + .byline {
28
- margin-bottom : 20px ;
29
- }
30
34
35
+ /* indexes */
31
36
ul .post-list {
32
37
list-style : none;
33
38
padding-left : 0 ;
@@ -67,8 +72,9 @@ h4:hover a.anchor:hover,
67
72
h5 : hover a .anchor : hover {
68
73
color : var (--secondary );
69
74
}
70
- /* --- */
71
75
76
+
77
+ /* footer */
72
78
footer {
73
79
color : grey;
74
80
}
@@ -80,10 +86,94 @@ footer img#author-img {
80
86
border-radius : 50% ;
81
87
}
82
88
83
- .darken {
84
- background-color : rgba (0 , 0 , 0 , 0.2 );
89
+ /* api docs */
90
+ .api span .letter-anchor {
91
+ float : left;
92
+ width : 50px ;
93
+ height : 50px ;
94
+ border-radius : 50px ;
95
+ color : white;
96
+ margin-top : 6px ;
97
+ margin-right : 8px ;
98
+ line-height : 50px ;
99
+ text-align : center;
100
+ text-decoration : none;
101
+ font-size : 42px ;
102
+ font-family : var (--font-family-sans-serif );
103
+ }
104
+
105
+ .letter-anchor .object {
106
+ background : # 2c6c8d ;
107
+ }
108
+ .letter-anchor .class {
109
+ background : # 44ad7d ;
110
+ }
111
+ .letter-anchor .trait {
112
+ background : # 19aacf ;
113
+ }
114
+ .letter-anchor .enum {
115
+ background : # 7803fc ;
116
+ }
117
+ .letter-anchor .package {
118
+ background : # 2c6c8d ;
119
+ }
120
+
121
+ .api header {
122
+ font-family : var (--font-family-sans-serif );
123
+ }
124
+ .api header .name-prefix {
125
+ display : block;
126
+ }
127
+ .api header .name-suffix {
128
+ display : inline-block;
129
+ }
130
+
131
+ .api header h1 {
132
+ margin : -13px 8px 0 0 ;
133
+ display : inline-block;
134
+ }
135
+ .api h2 {
136
+ margin-top : 1rem ;
137
+ }
138
+ .api h3 {
139
+ display : inline;
140
+ margin : 0 ;
141
+ font : inherit;
142
+ font-weight : bold;
143
+ }
144
+
145
+ /* improved display and wrapping of parameters */
146
+ .api .params , .api .type-params {
147
+ display : inline-flex;
148
+ flex-flow : wrap;
149
+ }
150
+
151
+ /* api layout */
152
+ .wide-table {
153
+ display : table;
154
+ width : 100% ;
155
+ }
156
+ .api .member : hover {
157
+ background : var (--secondary-lite );
158
+ cursor : pointer;
159
+ }
160
+ .api .left-column {
161
+ white-space : nowrap;
162
+ padding-left : 1em ;
163
+ border-left : 3px solid transparent;/* table rows cannot have borders*/
164
+ font-family : var (--font-family-monospace );
165
+ width : 0 ;
166
+ }
167
+ .api .member : hover .left-column {
168
+ border-left : 3px solid var (--secondary );
169
+ }
170
+ .api .right-column {
171
+ display : inline;
172
+ text-align : right;
173
+ font-family : var (--font-family-monospace );
85
174
}
86
175
176
+ /* code */
87
177
pre {
88
178
padding : 0 ;
89
179
font-size : 13px ;
@@ -100,6 +190,7 @@ pre > code.hljs {
100
190
background : transparent;
101
191
}
102
192
193
+ /* admonitions */
103
194
blockquote {
104
195
padding : 0 1em ;
105
196
color : # 777 ;
@@ -126,6 +217,7 @@ aside.success {
126
217
background-color : # ebfddd ;
127
218
}
128
219
220
+ /* gitter chat */
129
221
.gitter-open-chat-button {
130
222
background-color : grey;
131
223
}
@@ -140,6 +232,7 @@ aside.success {
140
232
bottom : -10px ;
141
233
}
142
234
235
+ /* media queries for bigger screens (dottydoc is mobile-first) */
143
236
@media (min-width : 576px ) {
144
237
.byline .author {
145
238
display : inline;
@@ -149,3 +242,15 @@ aside.success {
149
242
padding : 15px 30px ;
150
243
}
151
244
}
245
+ @media (min-width : 768px ) {
246
+ .api .member {
247
+ display : table-row;
248
+ }
249
+ .api .left-column {
250
+ display : table-cell;
251
+ }
252
+ .api .right-column {
253
+ display : flex;
254
+ flex-flow : wrap;
255
+ }
256
+ }
0 commit comments