header { display: flex; justify-content: space-between; margin-top: 1rem; } footer * { display: inline; } main { h1 { margin: 1.5rem auto; width: fit-content; } h2 { margin: 1.5rem 0 1.5rem -0.7rem; } } dt { width: 10em; float: left; clear: left; text-align: right; font-weight: 700; } dd { margin: 0 0 .5em 11em; } abbr { cursor: help; } blockquote { color: gray; font-size: 1.2rem; font-style: italic; text-align: center; } :not(pre) > code { margin-inline: 0.2rem; padding-inline: 6px; } @media (max-width: 600px) { ul { padding-left: 1em; } } /* Neat CSS: https://neat.joeldare.com */ * { box-sizing: border-box; } :root { color-scheme: light dark; --light: #fff; /* --light: #f7f7f7; */ --lesslight: #efefef; --dark: #404040; --moredark: #000; /*--link: royalblue; */ --link: #850000; --link-highlight-color: #ffdcda; /* border-top: 5px solid var(--dark); */ line-height: 1.5em; font-family: system-ui, sans-serif; font-size: 16px; color: var(--dark); } h1 { line-height: 1em; } button, input { font-size: 1em; /* Override browser default font shrinking*/ } input { border: 1px solid var(--dark); background-color: var(--lesslight); border-radius: .25em; padding: .5em; } pre { background-color: var(--lesslight); margin: 0.5em 0 0.5em 0; padding: 0.5em; overflow: auto; } code { background-color: var(--lesslight); } body { background-color: var(--light); margin: 0; max-width: 800px; padding: 0 20px 20px 20px; margin-left: auto; margin-right: auto; } a { outline: none; text-decoration: underline 2px var(--link-highlight-color); color: var(--link); } a:hover { background: var(--link-highlight-color); } img { max-width: 100%; height: auto; } button, .button, input[type=submit] { display: inline-block; background-color: var(--dark); color: var(--light); text-align: center; padding: .5em; border-radius: .25em; text-decoration: none; border: none; cursor: pointer; } button:hover, .button:hover, input[type=submit]:hover { color: var(--lesslight); background-color: var(--moredark); } /* Add a margin between side-by-side buttons */ button + button, .button + .button, input[type=submit] + input[type=submit] { margin-left: 1em; } .center { display: block; margin-left: auto; margin-right: auto; text-align: center; } .bordered { border: 3px solid; } .home { display: inline-block; background-color: var(--dark); color: var(--light); margin-top: 20px; padding: 5px 10px 5px 10px; text-decoration: none; font-weight: bold; } /* Desktop sizes */ @media (min-width: 600px) { ol.twocol { column-count: 2; } .row { display: flex; flex-direction: row; padding: 0; width: 100%; } /* Make everything in a row a column */ .row > * { display: block; flex: 1 1 auto; max-width: 100%; width: 100%; } .row > *:not(:last-child) { margin-right: 10px; } } /* Dark mode overrides (confusingly inverse) */ @media (prefers-color-scheme: dark) { :root { --light: #222; --lesslight: #333; --dark: #eee; --moredark: #fefefe; } /* This fixes an odd blue then white shadow on FF in dark mode */ *:focus { outline: var(--light); box-shadow: 0 0 0 .25em var(--link); } } /* Printing */ @media print { .home { display: none; } } [data-tooltip]{ display: inline-block; position: relative; &::after { display: block; position: absolute; content: attr(data-tooltip); background: var(--dark); color: var(--lesslight); padding: .25em; cursor: default; user-select: text; transition: visibility .3s ease-out, opacity .3s ease-out; visibility: hidden; opacity: 0; } &:hover::after { opacity: 1; visibility: visible; } }