UNPKG

uri-template-router

Version:

Match a URI to a pattern in a collection of URI Templates

126 lines (110 loc) 1.72 kB
* { box-sizing: border-box; } textarea, input { background: transparent; color: inherit; } html, body { tab-size: 3; -moz-tab-size: 3; } body { max-width: 60em; margin: 0 auto; } h2 { padding-bottom: 0.3em; font-size: 1.5em; border-bottom: 1px solid #eaecef; } header { background-color: rgba(128,128,128,0.1); border-bottom: rgba(128,128,128,0.5) solid 2px; } header:after { content: ""; display: table; clear: both; } header ul { margin: 0; padding: 0; } header ul#ext-links { float: right; } header ul li { list-style-image: none; list-style-type: none; float: left; margin: 0 1em 0 0; padding: 0; } header ul li h1 { font-size: 100%; font-weight: bold; } header ul li > * { display: block; margin: 1em 0.3em; } header ul li a, header ul li :link { color: black; } footer { background: rgba(128,128,128,0.1); border-top: rgba(128,128,128,0.3) solid 2px; padding: 1em; text-align: right; margin-top: 6em; } footer a[rel="prev"] { display: block; float: left; } footer a[rel="prev"]::before { content: "☚ "; } footer a[rel="next"] { display: block; float: right; } footer a[rel="next"]::after { content: " ☛"; } footer::after { display: table; content: ""; clear: both; } /* main styles */ pre { background: rgba(128,128,128,0.1); border: rgba(128,128,128,0.3) solid 1px; padding: 1em 0 1em 1em; tab-size: 3; -moz-tab-size: 3; } /* Demo styles */ textarea, input { width: 100%; } #templates { min-height: 15em; } #result { } @media (prefers-color-scheme: dark) { body { background: black; color: white; } h2 { border-bottom: 1px solid #585858; } a, :link { color: #7b7beb; } header ul li a, header ul li :link { color: white; } }