|
| 1 | +@import url('https://fonts.googleapis.com/css?family=Lato:400,400i'); |
| 2 | + |
| 3 | +body { |
| 4 | + font-family: Lato, "Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif; |
| 5 | +} |
| 6 | + |
| 7 | +nav.toc { |
| 8 | + padding-top: 0; |
| 9 | + background: rgb(240, 240, 240); |
| 10 | + line-height: 2em; |
| 11 | + cursor: default; |
| 12 | + user-select: none; |
| 13 | +} |
| 14 | + |
| 15 | +h1+h2 { |
| 16 | + margin-top: 0; |
| 17 | +} |
| 18 | + |
| 19 | +/* Green banner in ToC */ |
| 20 | +nav.toc > h1 { |
| 21 | + margin-top: 0; |
| 22 | + padding-top: 0.4em; |
| 23 | + padding-bottom: 0.5em; |
| 24 | + border-bottom: 5px solid white; |
| 25 | + box-shadow: 0px -2px 5px rgb(60,60,60); |
| 26 | + margin-bottom: 0.5em; |
| 27 | + background: rgb(60, 150, 60); |
| 28 | + |
| 29 | + font-style: italic; |
| 30 | + font-weight: normal; |
| 31 | + font-size: 50pt; |
| 32 | + text-transform: lowercase; |
| 33 | + text-shadow: 2px 2px 5px rgba(0,0,0,0.2); |
| 34 | + color: white; |
| 35 | +} |
| 36 | + |
| 37 | +/* Reduce ToC font size */ |
| 38 | +.toctext { |
| 39 | + font-size: 10pt; |
| 40 | +} |
| 41 | + |
| 42 | +/* Fade out non-clickable ToC headers */ |
| 43 | +nav.toc ul span.toctext { |
| 44 | + color: rgb(180, 180, 180); |
| 45 | +} |
| 46 | + |
| 47 | +nav.toc ul .toctext { |
| 48 | + color: rgb(100, 100, 100); |
| 49 | +} |
| 50 | + |
| 51 | +nav.toc ul a.toctext:hover { |
| 52 | + color: inherit; |
| 53 | + background: rgb(220, 220, 220); |
| 54 | + cursor: default; |
| 55 | +} |
| 56 | + |
| 57 | +nav.toc li.current > .toctext { |
| 58 | + background: linear-gradient(90deg, rgb(245,245,245) 0%, white 90%); |
| 59 | + font-weight: normal; |
| 60 | +} |
| 61 | + |
| 62 | +nav.toc ul.internal li.toplevel { |
| 63 | + font-weight: normal; |
| 64 | +} |
| 65 | + |
| 66 | +/* Content */ |
| 67 | + |
| 68 | +article { max-width: none; } |
| 69 | + |
| 70 | +article > p, article > ul { |
| 71 | + max-width: 45em; |
| 72 | +} |
| 73 | + |
| 74 | +/* Links */ |
| 75 | +a, a:visited { color: rgb(0, 120, 0); } |
| 76 | +article p a { border-bottom: 1px solid rgb(200, 230, 200); } |
| 77 | +a:hover, a:visited:hover { color: rgb(0, 80, 0); } |
| 78 | + |
| 79 | +/* Article Links */ |
| 80 | +article p a { border-bottom: 1px solid rgb(200, 230, 200); } |
| 81 | +article p a:hover, article a:visited:hover { color: rgb(0, 120, 0); } |
| 82 | +article p a:hover { border-bottom: 1px solid rgb(150, 200, 150); } |
| 83 | + |
| 84 | +/* Doctstrings */ |
| 85 | +article section.docstring { |
| 86 | + padding: 0.5em 0; |
| 87 | + border-left: none; |
| 88 | + border-right: none; |
| 89 | + border-bottom: none; |
| 90 | +} |
| 91 | + |
| 92 | +/* Code */ |
| 93 | + |
| 94 | +article pre, article p > code { |
| 95 | + background: rgb(245, 250, 245); |
| 96 | +} |
| 97 | + |
| 98 | +article pre { |
| 99 | + border: none; |
| 100 | + max-width: none; |
| 101 | + padding: 1em; |
| 102 | + border-radius: 10px 0px 0px 10px; |
| 103 | + margin-left: -1em; |
| 104 | + margin-right: -2em; |
| 105 | +} |
| 106 | + |
| 107 | +.hljs-comment { |
| 108 | + font-style: italic; |
| 109 | +} |
| 110 | + |
| 111 | +.hljs-number { |
| 112 | + color: rgb(0, 150, 150); |
| 113 | +} |
0 commit comments