forked from pantsbuild/pantsbuild.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
s.css
294 lines (250 loc) · 5.04 KB
/
s.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
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
/*
* Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
* Licensed under the Apache License, Version 2.0 (see LICENSE).
*/
body {
background-color: #eee;
color: #111;
font-family: "Lato","proxima-nova","Helvetica Neue",Arial,sans-serif;
}
h1, h2, h3, h4, h5, h6 {
color: #006;
margin: 1em 0 0 -0.01em;
}
/* 64px above for build status
300px on left to leave room for bignav,
40em below so jumping to anchor link works OK close to content bottom
*/
.mainflow {
margin: 64px 1rem 40em 300px;
line-height: 24px;
}
a:link, a:visited {
text-decoration: none;
color: #007;
}
a:hover {
background-color: #fff;
}
pre {
border: 1px solid #ddd;
padding: 2px;
color: #006;
white-space: pre-wrap;
}
ul, ol, dl {
margin: 0;
padding: 0;
}
ul li, ol li {
margin-left: 24px;
}
/* "Pilcrows": each heading has a link to it, next to it. Handy for
* copy-pasting section links in chat.
*/
table.h-plus-pilcrow {
border-spacing: 0;
}
table.h-plus-pilcrow td {
padding: 0;
vertical-align: top;
}
div.pilcrow-div {
margin: 0;
}
/* Pilcrow links are transparent until hovered over */
a.pilcrow-link, a.pilcrow-link:link,a.pilcrow-link:visited {
font-size: 150%;
color: transparent;
text-decoration: none;
}
/* Most links get a background color when hovered over; but not
Pilcrow links. */
table.h-plus-pilcrow:hover, table.h-plus-pilcrow:hover a:hover {
background-color: transparent;
color: #002;
}
table.h-plus-pilcrow:hover a.pilcrow-link {
color: #04a;
}
nav {
z-index: 1;
}
/* on small screens, hide navigation by default */
@media screen and (max-width: 768px){
#navtoggler { display: block; }
nav { display: none; }
div.mainflow { margin-left: 2px; }
}
/* navtoggler button appears top-left of skinny screens */
@media screen and (min-width: 769px){
#navtoggler { display: none; }
}
#navtoggler {
position: absolute;
left: 4px;
top: 4px;
font-size: 200%;
background-color: #fff;
color: #55acee;
border: 1px solid #888;
border-radius: 2px;
z-index: 10;
}
#navtoggler:hover {
cursor: pointer;
}
/* "breadcrumbs" arrow-nav at top of content*/
nav.breadcrumbs ul {
margin: 0;
padding: 0;
}
nav.breadcrumbs ul li {
display: inline;
list-style-type: none;
margin-left: 0;
}
nav.breadcrumbs ul li:before {
content: "←";
}
nav.breadcrumbs ul li:first-child:before {
content: none; /* no arrow */
}
/* bignav search box and site-wide TOC on page left-hand side */
nav.bignav {
font-size: larger;
position: absolute;
top: 0;
left: 0;
margin: 0;
max-width: 272px;
background-color: #55acee;
}
.bignav-logo {
text-align: center;
margin-top: 4px;
}
.bignav-logo img {
border: 3px solid #55acee;
border-radius: 3px;
}
nav.bignav form.search {
padding: 1em 0;
}
/* text entry for search terms */
nav.bignav form.search input.query {
width: 246px;
margin-left: 4px;
background-color: #fff;
padding: 0.5em 8px;
border: 1px solid #147;
border-radius: 20px;
}
/* Site-wide table of contents */
nav.bignav .site-toc {
color: white;
background-color: #444;
}
.site-toc ul {
padding: 0.3rem 0;
list-style-type: none;
}
/* toc-here: within the site TOC, the entry for this page */
.site-toc li.toc-here {
background-color: #777;
}
.site-toc ul li {
margin: 0.6rem .8em;
padding-right: 0.5rem;
}
.site-toc ul li a {
color: white;
}
/* mainflow links get a white background on hover; bignav links get
a black one to contrast w/white text */
.site-toc li:hover, .site-toc li:hover a:hover {
background-color: black;
color: white;
}
/* ...and the this-page TOC entry has its own hover look */
.site-toc li.toc-here:hover, .site-toc li.toc-here:hover a:hover {
background-color: #e5e7f3;
color: black;
}
.site-toc ul li.toc-h0 {
padding-left: 0;
}
.site-toc ul li.toc-h1 {
padding-left: 0.5em;
}
.site-toc ul li.toc-h2 {
padding-left: 1.5em;
font-size: medium;
}
.site-toc ul li.toc-h3 {
padding-left: 2.5em;
font-size: smaller;
color: #eee;
}
.site-toc ul li.toc-h4 {
padding-left: 3.5em;
font-size: smaller;
color: #eee;
}
/* page's table of contents */
nav.pagetoc {
float: right;
margin: 0 1em 0 1em;
background-color: #55acee;
width: 300px;
}
nav.pagetoc ul {
padding: 1.0em 0;
list-style-type: none;
background-color: #dde;
}
nav.pagetoc ul li {
margin: 0.5em 1em;
padding-right: 2px;
}
nav.pagetoc ul li:hover, nav.pagetoc ul li:hover a:hover {
background-color: black;
color: white;
}
nav.pagetoc ul li:hover a {
color: white;
}
nav.pagetoc ul li.toc-h1 {
padding-left: 0.25em;
}
nav.pagetoc ul li.toc-h2 {
padding-left: 1.0em;
}
nav.pagetoc ul li.toc-h3 {
padding-left: 2.0em;
}
nav.pagetoc ul li.toc-h4 {
padding-left: 3.0em;
}
/* show the build/test/coverage status on each page */
div.ci-status {
position: absolute;
top: 0;
right: 0;
}
div.ci-status img {
vertical-align: middle;
}
/* colophon at page bottom */
.generated {
margin-top: 5em;
font-size: 70%;
text-align: center;
color: #777;
}
.generated a {
text-decoration: none;
}
.generated a:hover {
background-color: #fff;
}