| 1 | /* Copyright 2024 The Go Authors. All rights reserved. |
| 2 | * Use of this source code is governed by a BSD-style |
| 3 | * license that can be found in the LICENSE file. |
| 4 | */ |
| 5 | |
| 6 | /* inspired by pkg.go.dev's typography.css */ |
| 7 | |
| 8 | body { |
| 9 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'; |
| 10 | font-size: 1rem; |
| 11 | line-height: normal; |
| 12 | } |
| 13 | |
| 14 | h1 { |
| 15 | font-size: 1.5rem; |
| 16 | } |
| 17 | |
| 18 | h2 { |
| 19 | font-size: 1.375rem; |
| 20 | } |
| 21 | |
| 22 | h3 { |
| 23 | font-size: 1.25rem; |
| 24 | } |
| 25 | |
| 26 | h4 { |
| 27 | font-size: 1.125rem; |
| 28 | } |
| 29 | |
| 30 | h5 { |
| 31 | font-size: 1rem; |
| 32 | } |
| 33 | |
| 34 | h6 { |
| 35 | font-size: 0.875rem; |
| 36 | } |
| 37 | |
| 38 | h1, |
| 39 | h2, |
| 40 | h3, |
| 41 | h4 { |
| 42 | font-weight: 600; |
| 43 | line-height: 1.25em; |
| 44 | word-break: break-word; |
| 45 | } |
| 46 | |
| 47 | h5, |
| 48 | h6 { |
| 49 | font-weight: 500; |
| 50 | line-height: 1.3em; |
| 51 | word-break: break-word; |
| 52 | } |
| 53 | |
| 54 | p { |
| 55 | font-size: 1rem; |
| 56 | line-height: 1.5rem; |
| 57 | max-width: 60rem; |
| 58 | } |
| 59 | |
| 60 | strong { |
| 61 | font-weight: 600; |
| 62 | } |
| 63 | |
| 64 | code, |
| 65 | pre, |
| 66 | textarea.code { |
| 67 | font-family: Consolas, 'Liberation Mono', Menlo, monospace; |
| 68 | font-size: 0.875rem; |
| 69 | line-height: 1.5em; |
| 70 | } |
| 71 | |
| 72 | pre, |
| 73 | textarea.code { |
| 74 | background-color: #eee; |
| 75 | border: 3px; |
| 76 | border-radius: 3px; |
| 77 | color: black; |
| 78 | overflow-x: auto; |
| 79 | padding: 0.625rem; |
| 80 | tab-size: 4; |
| 81 | white-space: pre; |
| 82 | } |
| 83 | |
| 84 | button, |
| 85 | input, |
| 86 | select, |
| 87 | textarea { |
| 88 | font: inherit; |
| 89 | } |
| 90 | |
| 91 | a, |
| 92 | a:link, |
| 93 | a:visited { |
| 94 | color: rgb(0, 125, 156); |
| 95 | text-decoration: none; |
| 96 | } |
| 97 | |
| 98 | a:hover, |
| 99 | a:focus { |
| 100 | color: rgb(0, 125, 156); |
| 101 | text-decoration: underline; |
| 102 | } |
| 103 | |
| 104 | a:hover > * { |
| 105 | text-decoration: underline; |
| 106 | } |
| 107 | |
| 108 | #disconnected { |
| 109 | position: fixed; |
| 110 | top: 1em; |
| 111 | left: 1em; |
| 112 | display: none; /* initially */ |
| 113 | background-color: white; |
| 114 | border: thick solid red; |
| 115 | padding: 2em; |
| 116 | } |