forked from Scinawa/quantumalgorithms.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
499 lines (409 loc) · 10.3 KB
/
style.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
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
/*p.caption {
color: #777;
margin-top: 10px;
}
p code {
white-space: inherit;
}
pre {
word-break: normal;
word-wrap: normal;
}
pre code {
white-space: inherit;
}
*/
@import url("https://fonts.googleapis.com/css?family=Roboto|Roboto+Mono|Roboto+Condensed|Lato|Lora|Fira+Sans");
/* title page */
.book .book-body .page-wrapper .page-inner section.normal h1.title {
font-size: 250%;
/*font-family: 'Fira Sans', Karla, 'Roboto Condensed', Lora, Lato, Roboto, sans;*/
font-style: normal;
font-weight: 100;
}
.book .book-body .page-wrapper .page-inner section.normal .author .noem {
display: block;
margin: 0 0 10px 0;
font-size: 125%;
font-style: normal;
font-variant: small-caps;
font-weight: 200;
/*font-family: 'Roboto Condensed', 'Fira Sans', Roboto, 'Open Sans', sans;*/
}
.noem {
color: #990024;
}
.book .book-body .page-wrapper .page-inner section.normal a.uri {
display: block;
margin: 0 0 10px 0;
font-size: 75%;
font-style: normal; /* ignored thanks to bootstrap random enforcement of em*/
font-variant: small-caps;
/* font-family: Roboto, 'Open Sans', sans;*/
}
.book .book-body .page-wrapper .page-inner section.normal h4.date {
font-style: normal;
font-size: 100%;
/*font-family: 'Open Sans', sans; */
}
.date, .author {
color: #990024;
font-style: normal;
}
/* main */
.book {
background-color: #fffff8;
}
.section {
background-color: #fffff8;
}
.book .book-body .page-wrapper .page-inner section.normal {
display: block;
background-color: #fffff8;
color: #585858;
padding: 5px 15px;
/* font-family: Roboto, 'Helvetica Neue', sans-serif;*/
word-wrap: break-word;
overflow: hidden;
line-height: 1.7;
text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
-moz-text-size-adjust: 100%;
}
.book .book-body {
background: #fffff8;
-webkit-transition: left 250ms ease;
-moz-transition: left 250ms ease;
-o-transition: left 250ms ease;
transition: left 250ms ease;
}
/* link effects */
/*
https://stackoverflow.com/questions/28623446/hover-effect-expand-bottom-border
uri class is for urls
*/
/* This gets rid of default underline*/
.book .book-body .page-wrapper .page-inner section.normal a:active,
.book .book-body .page-wrapper .page-inner section.normal a:focus,
.book .book-body .page-wrapper .page-inner section.normal a:hover {
outline: 0;
text-decoration: none;
}
.book .book-body .page-wrapper .page-inner section.normal a,
.book .book-body .page-wrapper .page-inner section.normal a.uri {
display: inline-block;
color: #D34600;
text-decoration: none;
}
.book .book-body .page-wrapper .page-inner section.normal a::after,
.book .book-body .page-wrapper .page-inner section.normal a.uri::after {
content: '';
display: block;
width: 0;
height: 1.5px;
background: #990024;
transition: width .3s;
}
.book .book-body .page-wrapper .page-inner section.normal a:hover::after,
.book .book-body .page-wrapper .page-inner section.normal a.uri:hover::after{
width: 100%;
/* //transition: width .3s;*/
}
.body-inner {
background-color: #fffff8;
}
.book .book-body .page-wrapper {
position: relative;
outline: 0;
background-color: #fffff8;
}
.book .book-body .page-wrapper .page-inner {
max-width: 900px;
margin: 0 auto;
padding: 20px 0 40px;
}
.book .book-header {
overflow: visible;
height: 48px; /* adjust to match title space*/
padding: 0 8px;
z-index: 2;
font-family: Roboto sans-serif;
font-size: .85em;
color: #7e888b;
background-color: #fffff8;
/* background: 0 0; */
}
/* only way to set bgcolor of top bar?*/
.book-body.fixed {
background-color: #fffff8;
}
/* Rather than resize the header, just get rid of line */
.book.with-summary .book-header.fixed {
background-color: #fffff8;
font-variant: small-caps;
/*font-family: Stalemate Roboto Sans; ignored as all it is doing is taking from index title*/
border-bottom: 0 solid rgba(0,0,0,.07); /*just remove it; this makes height in .book-header above moot*/
border-bottom-width: 0;
border-bottom-style: solid;
border-bottom-color: rgba(0, 0, 0, 0.07);
}
i {
background-color: #fffff8;
}
/* toc area general */
.book .book-summary {
position: absolute;
font-family: "Open Sans", 'Helvetica Neue', Roboto, sans-serif;
top: 0;
left: -300px;
bottom: 0;
z-index: 1;
width: 300px;
color: #364149; /**/
background: #f5f5f540; /* #eaf5fb; #d9edf7#bdcadb #3572D9 #fafafa*/
border-right: 1px solid rgba(0,0,0,.07);
-webkit-transition: left 250ms ease;
-moz-transition: left 250ms ease;
-o-transition: left 250ms ease;
transition: left 250ms ease;
}
/* nav/menu area */
.book .book-summary ul.summary li a, .book .book-summary ul.summary li span {
display: block;
padding: 10px 25px;
border-bottom: none;
color: #364149; /**/
background: 0 0;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
position: relative;
/* font-family: Lato,'Roboto Condensed', sans; */
/* font-variant: small-caps; */
}
.book .book-summary ul.summary li a:hover, .book .book-summary ul.summary li.active>a {
color: #fffff8; /*#6197D5*/
background-color: #990024;
}
/* so that before and after aren't treated the same as the toc, because why would they? */
.book .book-summary ul.summary li.before a {
color: #990024;
text-decoration: none;
font-size: 125%;
font-variant: small-caps;
/*font-family: 'Roboto Condensed', 'Helvetica Neue', 'Open Sans', Roboto, sans-serif;*/
font-weight: 500;
}
.book .book-summary ul.summary li.before a:hover,
.book .book-summary ul.summary li.before li.active>a {
color: #fffff8; /*#6197D5*/
background-color: #990024;
text-decoration: none;
}
.book .book-summary ul.summary li.after a, .book .book-summary ul.summary li.after a:hover {
background-color: transparent;
}
/* divider line for the title before and other stuff after toc */
.book .book-summary ul.summary li.divider{
height:1px;
margin:7px 0;
overflow:hidden;
background:rgba(0,0,0,.07)
}
.book .book-body .page-wrapper .page-inner section.normal pre {
overflow: auto;
word-wrap: normal;
margin: 0 0 1.275em;
padding: .85em 1em;
background: #fafafa;
}
.book .book-body .page-wrapper .page-inner section.normal code,
.book .book-body .page-wrapper .page-inner section.normal pre {
font-family: 'Roboto Mono', Monaco, Consolas, "Liberation Mono", Menlo, 'Courier New', monospace;
direction: ltr;
border: none;
color: inherit;
background: #fbfbfb;
}
.book .book-body .page-wrapper .page-inner section.normal .note {
background-color: #fafafa;
/*background-image: url('../img/R.ico');*/
font-size: 80% ;
margin: auto;
font-weight: 500;
max-width: 75%;
border-width: 10px;
border-color: #bfbfbf;
box-shadow: 10px 10px 5px #EBEBEB; /*#888888*/
padding: 1em;
}
/* headers */
h1, h2, h3, h4, h5 {
color:#990024;
font-family: 'Roboto Condensed';
}
/* notes */
.img-note {
vertical-align: central;
width: 2em;
}
.footnotes {
color: #00000080;
}
.book .book-body .page-wrapper .page-inner section.normal blockquote {
margin: 0 0 .85em;
padding: 0 15px;
opacity: 0.85; /* Default .75 too light*/
font-size: 90%;
border-left: 4px solid #dcdcdc;
}
/* code */
/* logical NA */
.ot {
color: #337ab7;
}
/* comment */
code span.co {
color: #6078B0; /*Old #60a0b0 did not have sufficient contrast*/
font-weight: 500;
}
code span.kw {
color: #007020;
font-weight: 500;
}
/* control flow */
code span.cf {
color: #007020;
font-weight: 500;
}
/* char/string */
.ch, .st {
color: #aa5500;
}
/* args */
.dt {
}
/* package */
code span.st {
color: #aa5500;
}
/* float, other */
.fl, .dv {
color: #23527c;
}
/* override pygments setting code to a tag */
.book .book-body .page-wrapper .page-inner section.normal pre code a {
color: #585858;
}
/* img */
img {
display: block;
margin: 0 auto;
padding-top: 20px;
padding-bottom: 20px;
}
.arc {
display: block;
width:30%;
padding:5px 0;
margin: 0 0 10px 0;
}
.cscar {
display: block;
width:21%;
padding:5px 0;
margin: 0 0 10px 0;
}
/* zoom for img*/
.zoom {
transition: all .3s;
}
.zoom:hover {
transform: scale(1.5); /* (150% zoom - Note: if the zoom is too large, it will go outside of the viewport) */
}
/* creative commons, github icons */
.fab .fa-creative-commons, .fa-creative-commons-sa, .fa-creative-commons-by, .fa-github, .fa-lg {
color: #990024;
background-color: transparent;
}
.fab, .fas, .far {
vertical-align: middle;
color: #990024CC;
}
/* text highlights */
.book .book-body .page-wrapper .page-inner section.normal em, .emph {
color: #990024BF; /*#E32D00 #ff5500 #D14300*/
font-weight: 500;
font-style: normal;
}
/* pack func and objclass colors initially come from hcl(seq(90,360, length.out=4), c=80, l=80); redone for contrast*/
.pack {
color: #1f65b7; /* #990071 #AC9CFF #e41a1c*/
font-weight: 500;
}
.func {
color: #007020; /*#007199 #00CBB6; #984ea3; can just use `` instead*/
font-weight: 500;
}
.objclass {
color: #947100; /*#AAB400 #4daf4a; #FFC5D0*/
font-weight: 500;
}
/* miscellaneous */
.col2 {
columns: 2 200px; /* number of columns and width in pixels*/
-webkit-columns: 2 200px; /* chrome, safari */
-moz-columns: 2 200px; /* firefox */
}
.col3 {
columns: 3 100px;
-webkit-columns: 3 100px;
-moz-columns: 3 100px;
}
.plotly {
margin-left: 5%;
margin-right: 5%;
}
/*.plotly html-widget {
width: 100%;
}*/
.d3heatmap {
margin-left: 5%;
margin-right: 5%;
width: 75%;
}
/* tables */
.book .book-body .page-wrapper .page-inner section.normal table {
margin-left: auto;
margin-right: auto;
margin-top: 25px;
margin-bottom: 25px;
}
.book .book-body .page-wrapper .page-inner section.normal table tr:nth-child(2n) {
background-color: white;
}
div.datatables {
margin-left: auto; /* to center them when full is not necessary. */
margin-right: auto;
}
/* center font-awesome icons */
[class^="fas"], [class*="fas"] {
padding-top: 20px;
padding-bottom: 20px;
}
[class^="fab"], [class*="fab"] {
padding-top: 20px;
padding-bottom: 20px;
}
[class^="far"], [class*="far"] {
padding-top: 20px;
padding-bottom: 20px;
}
/* formulas */
.MJXc-display {
padding-top: 20px !important;
padding-bottom: 20px !important;
}
.MJXc-inline {
}