|
| 1 | +@import url( 'https://fonts.googleapis.com/css2?family=JetBrains+Mono:[email protected]&family=M+PLUS+1p&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap&family=Roboto:ital,wght@0,300;0,400;0,500;0,700;0,900;1,300;1,400;1,500;1,700;1,900&display=swap'); |
| 2 | +/* @import url("https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css"); */ |
| 3 | +@import url("https://cdnjs.cloudflare.com/ajax/libs/prism-themes/1.9.0/prism-coldark-cold.min.css"); |
| 4 | + |
| 5 | + |
| 6 | +html, |
| 7 | +code { |
| 8 | + font-family: 'JetBrains Mono', 'M PLUS 1p'; |
| 9 | + font-variant-ligatures: none; |
| 10 | +} |
| 11 | + |
| 12 | +pre { |
| 13 | + white-space: pre-wrap; |
| 14 | + margin: 0; |
| 15 | +} |
| 16 | + |
| 17 | +div.content { |
| 18 | + padding: 0.3em 0; |
| 19 | + border-top: 1px solid; |
| 20 | + border-bottom: 1px solid; |
| 21 | +} |
| 22 | + |
| 23 | +h1, |
| 24 | +h2, |
| 25 | +h3, |
| 26 | +h4, |
| 27 | +h5, |
| 28 | +h6 { |
| 29 | + margin-block-start: 0.2em; |
| 30 | + margin-block-end: 0.2em; |
| 31 | + padding-block-start: 0.3em; |
| 32 | + padding-block-end: 0.3em; |
| 33 | + break-after: avoid; |
| 34 | +} |
| 35 | + |
| 36 | +a { |
| 37 | + color: currentColor; |
| 38 | +} |
| 39 | + |
| 40 | +h1#title { |
| 41 | + font-weight: 800; |
| 42 | +} |
| 43 | + |
| 44 | +.section { |
| 45 | + background-color: #005a8e99; |
| 46 | + color: #ffffff; |
| 47 | +} |
| 48 | + |
| 49 | +h2.section { |
| 50 | + margin-left: -0.5mm; |
| 51 | + margin-right: -0.5mm; |
| 52 | + padding-left: 1.5mm; |
| 53 | +} |
| 54 | + |
| 55 | +div.filename { |
| 56 | + display: flex; |
| 57 | + justify-content: space-between; |
| 58 | + align-items: baseline; |
| 59 | +} |
| 60 | + |
| 61 | +/* 印刷時の設定 */ |
| 62 | +@media print { |
| 63 | + |
| 64 | + body { |
| 65 | + column-count: 2; |
| 66 | + column-rule: 1px solid; |
| 67 | + column-gap: 6mm; |
| 68 | + } |
| 69 | + |
| 70 | + @page { |
| 71 | + size: A4 portrait; |
| 72 | + margin: 8mm 2.5mm 2.5mm 2.5mm; |
| 73 | + |
| 74 | + /* ヘッダー */ |
| 75 | + @top-left { |
| 76 | + content: "tatyam/ICPC_notebook"; |
| 77 | + } |
| 78 | + |
| 79 | + @top-right { |
| 80 | + content: "Page " counter(page) " of " counter(pages); |
| 81 | + } |
| 82 | + } |
| 83 | +} |
| 84 | + |
| 85 | +/* 目次にページ数を付加する */ |
| 86 | +nav#toc ol { |
| 87 | + list-style: none; |
| 88 | +} |
| 89 | + |
| 90 | +nav#toc>ol { |
| 91 | + padding-left: 0; |
| 92 | +} |
| 93 | + |
| 94 | +nav#toc a { |
| 95 | + display: inline-flex; |
| 96 | + width: 100%; |
| 97 | + text-decoration: none; |
| 98 | + align-items: baseline; |
| 99 | +} |
| 100 | + |
| 101 | +nav#toc a.section { |
| 102 | + padding-left: 0.5em; |
| 103 | +} |
| 104 | + |
| 105 | +nav#toc>ol>ol>li>a::before { |
| 106 | + margin-left: 0.5em; |
| 107 | + margin-right: 0.5em; |
| 108 | + border-bottom: 1px dotted; |
| 109 | + content: ''; |
| 110 | + order: 1; |
| 111 | + flex: auto; |
| 112 | +} |
| 113 | + |
| 114 | +nav#toc>ol>ol>li>a::after { |
| 115 | + text-align: right; |
| 116 | + content: target-counter(attr(href), page); |
| 117 | + align-self: flex-end; |
| 118 | + flex: none; |
| 119 | + order: 2; |
| 120 | +} |
| 121 | + |
| 122 | +/* 表に罫線をつける */ |
| 123 | +table { |
| 124 | + border-spacing: 0; |
| 125 | + border-top: 1px solid lightgray; |
| 126 | + border-left: 1px solid lightgray; |
| 127 | +} |
| 128 | +td, th { |
| 129 | + border-bottom: 1px solid lightgray; |
| 130 | + border-right: 1px solid lightgray; |
| 131 | + padding: 4px; |
| 132 | +} |
| 133 | + |
| 134 | +/* シンタックスハイライトの色を調整 */ |
| 135 | +.token.attr-name, |
| 136 | +.token.boolean, |
| 137 | +.token.boolean.important, |
| 138 | +.token.number, |
| 139 | +.token.constant, |
| 140 | +.token.selector .token.attribute { |
| 141 | + color: #001575; |
| 142 | +} |
| 143 | +.content { |
| 144 | + break-before: avoid; |
| 145 | +} |
| 146 | +.content-md { |
| 147 | + font-family: 'Roboto', 'M PLUS 1p'; |
| 148 | + font-weight: 300; |
| 149 | +} |
0 commit comments