|
| 1 | +<!doctype html> |
| 2 | +<html lang="en"> |
| 3 | + <head> |
| 4 | + <meta charset="utf-8"> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 6 | + <title>Win Vector Examples</title> |
| 7 | + <meta name="description" content="Win Vector technical articles and example code"> |
| 8 | + <link rel="alternate" href="feed/feed.xml" type="application/atom+xml" title="Win Vector Examples"> |
| 9 | + |
| 10 | + <style>/* This is an arbitrary CSS string added to the bundle */ |
| 11 | +/* Defaults */ |
| 12 | +:root { |
| 13 | + --font-family: -apple-system, system-ui, sans-serif; |
| 14 | + --font-family-monospace: Consolas, Menlo, Monaco, Andale Mono WT, Andale Mono, Lucida Console, Lucida Sans Typewriter, DejaVu Sans Mono, Bitstream Vera Sans Mono, Liberation Mono, Nimbus Mono L, Courier New, Courier, monospace; |
| 15 | +} |
| 16 | + |
| 17 | +/* Theme colors */ |
| 18 | +:root { |
| 19 | + --color-gray-20: #e0e0e0; |
| 20 | + --color-gray-50: #C0C0C0; |
| 21 | + --color-gray-90: #333; |
| 22 | + |
| 23 | + --background-color: #fff; |
| 24 | + |
| 25 | + --text-color: var(--color-gray-90); |
| 26 | + --text-color-link: #082840; |
| 27 | + --text-color-link-active: #5f2b48; |
| 28 | + --text-color-link-visited: #17050F; |
| 29 | + |
| 30 | + --syntax-tab-size: 2; |
| 31 | +} |
| 32 | + |
| 33 | +@media (prefers-color-scheme: dark) { |
| 34 | + :root { |
| 35 | + --color-gray-20: #e0e0e0; |
| 36 | + --color-gray-50: #C0C0C0; |
| 37 | + --color-gray-90: #dad8d8; |
| 38 | + |
| 39 | + /* --text-color is assigned to --color-gray-_ above */ |
| 40 | + --text-color-link: #1493fb; |
| 41 | + --text-color-link-active: #6969f7; |
| 42 | + --text-color-link-visited: #a6a6f8; |
| 43 | + |
| 44 | + --background-color: #15202b; |
| 45 | + } |
| 46 | +} |
| 47 | + |
| 48 | + |
| 49 | +/* Global stylesheet */ |
| 50 | +* { |
| 51 | + box-sizing: border-box; |
| 52 | +} |
| 53 | + |
| 54 | +@view-transition { |
| 55 | + navigation: auto; |
| 56 | +} |
| 57 | + |
| 58 | +html, |
| 59 | +body { |
| 60 | + padding: 0; |
| 61 | + margin: 0 auto; |
| 62 | + font-family: var(--font-family); |
| 63 | + color: var(--text-color); |
| 64 | + background-color: var(--background-color); |
| 65 | +} |
| 66 | +html { |
| 67 | + overflow-y: scroll; |
| 68 | +} |
| 69 | +body { |
| 70 | + max-width: 50em; |
| 71 | +} |
| 72 | + |
| 73 | +/* https://www.a11yproject.com/posts/how-to-hide-content/ */ |
| 74 | +.visually-hidden { |
| 75 | + clip: rect(0 0 0 0); |
| 76 | + clip-path: inset(50%); |
| 77 | + height: 1px; |
| 78 | + overflow: hidden; |
| 79 | + position: absolute; |
| 80 | + white-space: nowrap; |
| 81 | + width: 1px; |
| 82 | +} |
| 83 | + |
| 84 | +/* Fluid images via https://www.zachleat.com/web/fluid-images/ */ |
| 85 | +img, |
| 86 | +video, |
| 87 | +iframe { |
| 88 | + max-width: 100%; |
| 89 | +} |
| 90 | +img[width][height] { |
| 91 | + height: auto; |
| 92 | +} |
| 93 | +img[src$=".svg"] { |
| 94 | + width: 100%; |
| 95 | + height: auto; |
| 96 | + max-width: none; |
| 97 | +} |
| 98 | + |
| 99 | +p:last-child { |
| 100 | + margin-bottom: 0; |
| 101 | +} |
| 102 | +p { |
| 103 | + line-height: 1.5; |
| 104 | +} |
| 105 | + |
| 106 | +li { |
| 107 | + line-height: 1.5; |
| 108 | +} |
| 109 | + |
| 110 | +a[href] { |
| 111 | + color: var(--text-color-link); |
| 112 | +} |
| 113 | +a[href]:visited { |
| 114 | + color: var(--text-color-link-visited); |
| 115 | +} |
| 116 | +a[href]:hover, |
| 117 | +a[href]:active { |
| 118 | + color: var(--text-color-link-active); |
| 119 | +} |
| 120 | + |
| 121 | +main, |
| 122 | +footer { |
| 123 | + padding: 1rem; |
| 124 | +} |
| 125 | +main :first-child { |
| 126 | + margin-top: 0; |
| 127 | +} |
| 128 | + |
| 129 | +/* Footer */ |
| 130 | +hr { |
| 131 | + border: none; |
| 132 | + background-color: #DADADB; |
| 133 | + height: 1px; |
| 134 | + width: 100%; |
| 135 | + margin: 0 auto; |
| 136 | +} |
| 137 | + |
| 138 | +header { |
| 139 | + border-bottom: 1px dashed var(--color-gray-20); |
| 140 | +} |
| 141 | +header:after { |
| 142 | + content: ""; |
| 143 | + display: table; |
| 144 | + clear: both; |
| 145 | +} |
| 146 | + |
| 147 | +.links-nextprev { |
| 148 | + display: flex; |
| 149 | + justify-content: space-between; |
| 150 | + gap: .5em 1em; |
| 151 | + list-style: ""; |
| 152 | + border-top: 1px dashed var(--color-gray-20); |
| 153 | + padding: 1em 0; |
| 154 | +} |
| 155 | +.links-nextprev > * { |
| 156 | + flex-grow: 1; |
| 157 | +} |
| 158 | +.links-nextprev-next { |
| 159 | + text-align: right; |
| 160 | +} |
| 161 | + |
| 162 | +table { |
| 163 | + margin: 1em 0; |
| 164 | +} |
| 165 | +table td, |
| 166 | +table th { |
| 167 | + padding-right: 1em; |
| 168 | +} |
| 169 | + |
| 170 | +pre, |
| 171 | +code { |
| 172 | + font-family: var(--font-family-monospace); |
| 173 | +} |
| 174 | +pre:not([class*="language-"]) { |
| 175 | + margin: .5em 0; |
| 176 | + line-height: 1.375; /* 22px /16 */ |
| 177 | + -moz-tab-size: var(--syntax-tab-size); |
| 178 | + -o-tab-size: var(--syntax-tab-size); |
| 179 | + tab-size: var(--syntax-tab-size); |
| 180 | + -webkit-hyphens: none; |
| 181 | + -ms-hyphens: none; |
| 182 | + hyphens: none; |
| 183 | + direction: ltr; |
| 184 | + text-align: left; |
| 185 | + white-space: pre; |
| 186 | + word-spacing: normal; |
| 187 | + word-break: normal; |
| 188 | + overflow-x: auto; |
| 189 | +} |
| 190 | +code { |
| 191 | + word-break: break-all; |
| 192 | +} |
| 193 | + |
| 194 | +/* Header */ |
| 195 | +header { |
| 196 | + display: flex; |
| 197 | + gap: 1em .5em; |
| 198 | + flex-wrap: wrap; |
| 199 | + align-items: center; |
| 200 | + padding: 1em; |
| 201 | +} |
| 202 | +.home-link { |
| 203 | + font-size: 1em; /* 16px /16 */ |
| 204 | + font-weight: 700; |
| 205 | + margin-right: 2em; |
| 206 | +} |
| 207 | +.home-link:link:not(:hover) { |
| 208 | + text-decoration: none; |
| 209 | +} |
| 210 | + |
| 211 | +/* Nav */ |
| 212 | +.nav { |
| 213 | + display: flex; |
| 214 | + padding: 0; |
| 215 | + margin: 0; |
| 216 | + list-style: none; |
| 217 | +} |
| 218 | +.nav-item { |
| 219 | + display: inline-block; |
| 220 | + margin-right: 1em; |
| 221 | +} |
| 222 | +.nav-item a[href]:not(:hover) { |
| 223 | + text-decoration: none; |
| 224 | +} |
| 225 | +.nav a[href][aria-current="page"] { |
| 226 | + text-decoration: underline; |
| 227 | +} |
| 228 | + |
| 229 | +/* Posts list */ |
| 230 | +.postlist { |
| 231 | + list-style: none; |
| 232 | + padding: 0; |
| 233 | + padding-left: 1.5rem; |
| 234 | +} |
| 235 | +.postlist-item { |
| 236 | + display: flex; |
| 237 | + flex-wrap: wrap; |
| 238 | + align-items: baseline; |
| 239 | + counter-increment: start-from -1; |
| 240 | + margin-bottom: 1em; |
| 241 | +} |
| 242 | +.postlist-item:before { |
| 243 | + display: inline-block; |
| 244 | + pointer-events: none; |
| 245 | + content: "" counter(start-from, decimal-leading-zero) ". "; |
| 246 | + line-height: 100%; |
| 247 | + text-align: right; |
| 248 | + margin-left: -1.5rem; |
| 249 | +} |
| 250 | +.postlist-date, |
| 251 | +.postlist-item:before { |
| 252 | + font-size: 0.8125em; /* 13px /16 */ |
| 253 | + color: var(--color-gray-90); |
| 254 | +} |
| 255 | +.postlist-date { |
| 256 | + word-spacing: -0.5px; |
| 257 | +} |
| 258 | +.postlist-link { |
| 259 | + font-size: 1.1875em; /* 19px /16 */ |
| 260 | + font-weight: 700; |
| 261 | + flex-basis: calc(100% - 1.5rem); |
| 262 | + padding-left: .25em; |
| 263 | + padding-right: .5em; |
| 264 | + text-underline-position: from-font; |
| 265 | + text-underline-offset: 0; |
| 266 | + text-decoration-thickness: 1px; |
| 267 | +} |
| 268 | +.postlist-item-active .postlist-link { |
| 269 | + font-weight: bold; |
| 270 | +} |
| 271 | + |
| 272 | +/* Tags */ |
| 273 | +.post-tag { |
| 274 | + display: inline-flex; |
| 275 | + align-items: center; |
| 276 | + justify-content: center; |
| 277 | + text-transform: capitalize; |
| 278 | + font-style: italic; |
| 279 | +} |
| 280 | +.postlist-item > .post-tag { |
| 281 | + align-self: center; |
| 282 | +} |
| 283 | + |
| 284 | +/* Tags list */ |
| 285 | +.post-metadata { |
| 286 | + flex-wrap: wrap; |
| 287 | + gap: .5em; |
| 288 | + list-style: none; |
| 289 | + padding: 0; |
| 290 | + margin: 0; |
| 291 | +} |
| 292 | +.post-metadata time { |
| 293 | + margin-right: 1em; |
| 294 | +} |
| 295 | +.taglist { |
| 296 | + display: inline-flex; |
| 297 | + flex-wrap: wrap; |
| 298 | + gap: .5em; |
| 299 | + list-style: none; |
| 300 | + padding: 0; |
| 301 | + margin: 0; |
| 302 | +}</style> |
| 303 | + </head> |
| 304 | + <body> |
| 305 | + <a href="#skip" class="visually-hidden">Skip to main content</a> |
| 306 | + |
| 307 | + <header> |
| 308 | + <a href="/WVExamples/" class="home-link">Win Vector Examples</a> |
| 309 | + <nav> |
| 310 | + <h2 class="visually-hidden" id="top-level-navigation-menu">Top level navigation menu</h2> |
| 311 | + <ul class="nav"> |
| 312 | + <li class="nav-item"><a href="/WVExamples/">Home</a></li> |
| 313 | + <li class="nav-item"><a href="/WVExamples/blog/">Archive</a></li> |
| 314 | + <li class="nav-item"><a href="/WVExamples/about/">About</a></li> |
| 315 | + <li class="nav-item"><a href="/WVExamples/feed/feed.xml">Feed</a></li> |
| 316 | + </ul> |
| 317 | + </nav> |
| 318 | + </header> |
| 319 | + |
| 320 | + <main id="skip"> |
| 321 | + <heading-anchors> |
| 322 | + |
| 323 | +<h1 id="content-not-found">Content not found.</h1> |
| 324 | +<p>Go <a href="/WVExamples/">home</a>.</p> |
| 325 | +<!-- |
| 326 | +
|
| 327 | +Read more: https://www.11ty.dev/docs/quicktips/not-found/ |
| 328 | +
|
| 329 | +This will work for both GitHub pages and Netlify: |
| 330 | +
|
| 331 | +* https://help.github.com/articles/creating-a-custom-404-page-for-your-github-pages-site/ |
| 332 | +* https://www.netlify.com/docs/redirects/#custom-404 |
| 333 | +
|
| 334 | +--> |
| 335 | + |
| 336 | + |
| 337 | + </heading-anchors> |
| 338 | + </main> |
| 339 | + <hr> |
| 340 | + <footer> |
| 341 | + <p>© 2025 <a href="https://win-vector.com/">Win Vector LLC</a></p> |
| 342 | + </footer> |
| 343 | + |
| 344 | + <!-- This page `/404.html` was built on 2025-01-10T04:07:30.231Z --> |
| 345 | + <script type="module" src="/WVExamples/dist/rJ3_G-2ArF.js"></script> |
| 346 | + </body> |
| 347 | +</html> |
0 commit comments