|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en"> |
| 3 | +<head> |
| 4 | + <meta charset="UTF-8"> |
| 5 | + <title>textlint-rule-preset-japanese</title> |
| 6 | + <style> |
| 7 | + * { |
| 8 | + box-sizing: border-box |
| 9 | + } |
| 10 | + |
| 11 | + :root { |
| 12 | + --sans: 1em/1.6 system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Droid Sans, Helvetica Neue, Fira Sans, sans-serif; |
| 13 | + --mono: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, Courier, 'Courier New', monospace; |
| 14 | + --c1: #0074d9; |
| 15 | + --c2: #eee; |
| 16 | + --c3: #fff; |
| 17 | + --c4: #000; |
| 18 | + --c5: #fff; |
| 19 | + --m1: 8px; |
| 20 | + --rc: 8px; |
| 21 | + } |
| 22 | + |
| 23 | + @media (prefers-color-scheme: dark) { |
| 24 | + :root { |
| 25 | + --c2: #333; |
| 26 | + --c3: #1e1f20; |
| 27 | + --c4: #fff; |
| 28 | + } |
| 29 | + } |
| 30 | + |
| 31 | + html { |
| 32 | + -ms-text-size-adjust: 100%; |
| 33 | + -webkit-text-size-adjust: 100%; |
| 34 | + |
| 35 | + } |
| 36 | + |
| 37 | + /* General settings */ |
| 38 | + |
| 39 | + body { |
| 40 | + margin: 0; |
| 41 | + font: var(--sans); |
| 42 | + font-weight: 400; |
| 43 | + font-style: normal; |
| 44 | + text-rendering: optimizeLegibility; |
| 45 | + -webkit-font-smoothing: antialiased; |
| 46 | + background-color: var(--c3); |
| 47 | + color: var(--c4); |
| 48 | + } |
| 49 | + |
| 50 | + img, iframe { |
| 51 | + border: none; |
| 52 | + max-width: 100% |
| 53 | + } |
| 54 | + |
| 55 | + a { |
| 56 | + color: var(--c1); |
| 57 | + text-decoration: none |
| 58 | + } |
| 59 | + |
| 60 | + a:hover { |
| 61 | + color: var(--c1); |
| 62 | + text-decoration: underline |
| 63 | + } |
| 64 | + |
| 65 | + pre { |
| 66 | + font: 1em/1.6 var(--mono); |
| 67 | + background: var(--c2); |
| 68 | + padding: 1em; |
| 69 | + overflow: auto |
| 70 | + } |
| 71 | + |
| 72 | + code { |
| 73 | + font: 1em/1.6 var(--mono); |
| 74 | + } |
| 75 | + |
| 76 | + blockquote { |
| 77 | + border-left: 5px solid var(--c2); |
| 78 | + padding: 1em 1.5em; |
| 79 | + margin: 0 |
| 80 | + } |
| 81 | + |
| 82 | + hr { |
| 83 | + border: 0; |
| 84 | + border-bottom: 1px solid var(--c4) |
| 85 | + } |
| 86 | + |
| 87 | + /* Headlines */ |
| 88 | + |
| 89 | + h1, h2, h3, h4, h5, h6 { |
| 90 | + margin: 0.6em 0; |
| 91 | + font-weight: normal |
| 92 | + } |
| 93 | + |
| 94 | + h1 { |
| 95 | + font-size: 2.625em; |
| 96 | + line-height: 1.2 |
| 97 | + } |
| 98 | + |
| 99 | + h2 { |
| 100 | + font-size: 1.625em; |
| 101 | + line-height: 1.2 |
| 102 | + } |
| 103 | + |
| 104 | + h3 { |
| 105 | + font-size: 1.3125em; |
| 106 | + line-height: 1.24 |
| 107 | + } |
| 108 | + |
| 109 | + h4 { |
| 110 | + font-size: 1.1875em; |
| 111 | + line-height: 1.23 |
| 112 | + } |
| 113 | + |
| 114 | + h5, h6 { |
| 115 | + font-size: 1em; |
| 116 | + font-weight: bold |
| 117 | + } |
| 118 | + |
| 119 | + /* Table */ |
| 120 | + |
| 121 | + table { |
| 122 | + border-collapse: collapse; |
| 123 | + border-spacing: 0; |
| 124 | + margin: 1em 0 |
| 125 | + } |
| 126 | + |
| 127 | + th, td { |
| 128 | + text-align: left; |
| 129 | + vertical-align: top; |
| 130 | + border: 1px solid; |
| 131 | + padding: 0.4em |
| 132 | + } |
| 133 | + |
| 134 | + thead, tfoot { |
| 135 | + background: var(--c2) |
| 136 | + } |
| 137 | + |
| 138 | + /* Rounded Corners*/ |
| 139 | + |
| 140 | + pre, code, input, select, textarea, button, img { |
| 141 | + border-radius: var(--rc) |
| 142 | + } |
| 143 | + |
| 144 | + |
| 145 | + /* Forms */ |
| 146 | + |
| 147 | + input, select, textarea { |
| 148 | + font-size: 1em; |
| 149 | + color: var(--c4); |
| 150 | + background: var(--c2); |
| 151 | + border: 0; |
| 152 | + padding: 0.6em |
| 153 | + } |
| 154 | + |
| 155 | + button, input[type=submit], input[type=reset], input[type="button"] { |
| 156 | + -webkit-appearance: none; |
| 157 | + font-size: 1em; |
| 158 | + display: inline-block; |
| 159 | + color: var(--c5); |
| 160 | + background: var(--c1); |
| 161 | + border: 0; |
| 162 | + margin: 4px; |
| 163 | + padding: 0.6em; |
| 164 | + cursor: pointer; |
| 165 | + text-align: center |
| 166 | + } |
| 167 | + |
| 168 | + button:hover, button:focus, input:hover, textarea:hover, select:hover { |
| 169 | + opacity: 0.8 |
| 170 | + } |
| 171 | + |
| 172 | + /* Infinite Grid */ |
| 173 | + |
| 174 | + section { |
| 175 | + display: flex; |
| 176 | + flex-flow: row wrap |
| 177 | + } |
| 178 | + |
| 179 | + [style*="--c:"], section > section, aside, article { |
| 180 | + flex: var(--c, 1); |
| 181 | + margin: var(--m1) |
| 182 | + } |
| 183 | + |
| 184 | + /* Cards */ |
| 185 | + |
| 186 | + article { |
| 187 | + background: var(--c2); |
| 188 | + border-radius: var(--rc); |
| 189 | + padding: 1em; |
| 190 | + box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.3) |
| 191 | + } |
| 192 | + |
| 193 | + [style*="--c:"]:first-child, section > section:first-child, article:first-child { |
| 194 | + margin-left: 0 |
| 195 | + } |
| 196 | + |
| 197 | + [style*="--c:"]:last-child, section > section:last-child, article:last-child { |
| 198 | + margin-right: 0 |
| 199 | + } |
| 200 | + </style> |
| 201 | + <style> |
| 202 | + .main { |
| 203 | + padding: 1em 0; |
| 204 | + } |
| 205 | + |
| 206 | + .content { |
| 207 | + width: 800px; |
| 208 | + margin: auto; |
| 209 | + position: relative; |
| 210 | + } |
| 211 | + |
| 212 | + .textarea { |
| 213 | + width: 100%; |
| 214 | + height: 10em; |
| 215 | + font-size: 24px; |
| 216 | + } |
| 217 | + |
| 218 | + .side { |
| 219 | + position: fixed; |
| 220 | + font-size: 18px; |
| 221 | + padding: 0.5em; |
| 222 | + bottom: 0; |
| 223 | + display: flex; |
| 224 | + align-items: center; |
| 225 | + } |
| 226 | + |
| 227 | + .status { |
| 228 | + color: var(--c3); |
| 229 | + background: var(--c1); |
| 230 | + padding: 0.5em 1em; |
| 231 | + } |
| 232 | + </style> |
| 233 | +</head> |
| 234 | +<body data-textlint-editor-embedded> |
| 235 | +<div class="content"> |
| 236 | + <main class="main"> |
| 237 | + <label for="input">Input text for linting:</label> |
| 238 | + <textarea id="input" class="textarea" spellcheck="false"></textarea> |
| 239 | + </main> |
| 240 | + <button id="install">Install</button> |
| 241 | + <label for="install">* require <a href="https://github.com/textlint/editor/tree/master/packages/webextension">textlint-editor |
| 242 | + browser extension</a></label> |
| 243 | + <div id="metadata" class="metadata"></div> |
| 244 | +</div> |
| 245 | +<aside class="side"> |
| 246 | + <div id="js-status" class="status">Loading...</div> |
| 247 | +</aside> |
| 248 | +<script type="module"> |
| 249 | + import { run } from "https://cdn.skypack.dev/textchecker-element/public-dist/textchecker-element.es.js"; |
| 250 | + |
| 251 | + run("./textlint-worker.js"); |
| 252 | +</script> |
| 253 | +</body> |
| 254 | +</html> |
0 commit comments