/* Base styles and content styles */ @import 'variables.css'; #mdbook { font-family: "Open Sans", sans-serif; color: var(--fg); background-color: var(--bg); text-size-adjust: none; -webkit-text-size-adjust: none; overflow-x: hidden; } #mdbook code { font-family: var(--mono-font) !important; font-size: var(--code-font-size); direction: ltr !important; } /* make long words/inline code not x overflow */ #mdbook main { overflow-wrap: break-word; } /* make wide tables scroll if they overflow */ #mdbook .table-wrapper { overflow-x: auto; } /* Don't change font size in headers. */ #mdbook h1 code, #mdbook h2 code, #mdbook h3 code, #mdbook h4 code, #mdbook h5 code, #mdbook h6 code { font-size: unset; } #mdbook .left { float: left; } #mdbook .right { float: right; } #mdbook .boring { opacity: 0.6; } #mdbook .hide-boring .boring { display: none; } #mdbook .hidden { display: none !important; } #mdbook h1 { margin-block-start: 1.2em; } #mdbook h2, #mdbook h3 { margin-block-start: 1em; } #mdbook h4, #mdbook h5 { margin-block-start: 2em; } #mdbook .header + .header h3, #mdbook .header + .header h4, #mdbook .header + .header h5 { margin-block-start: 1em; } #mdbook h1:target::before, #mdbook h2:target::before, #mdbook h3:target::before, #mdbook h4:target::before, #mdbook h5:target::before, #mdbook h6:target::before { display: inline-block; content: "»"; margin-inline-start: -30px; width: 30px; } /* This is broken on Safari as of version 14, but is fixed in Safari Technology Preview 117 which I think will be Safari 14.2. https://bugs.webkit.org/show_bug.cgi?id=218076 */ :target { scroll-margin-top: calc(var(--menu-bar-height) + 0.5em); } #mdbook .page { outline: 0; padding: 0 var(--page-padding); margin-block-start: calc(0px - var(--menu-bar-height)); /* Compensate for the #menu-bar-hover-placeholder */ } #mdbook .page-wrapper { box-sizing: border-box; background-color: var(--bg); } .no-js #mdbook .page-wrapper, .js:not(.sidebar-resizing) #mdbook .page-wrapper { transition: margin-left 0.3s ease, transform 0.3s ease; /* Animation: slide away */ } [dir=rtl] .js:not(.sidebar-resizing) #mdbook .page-wrapper { transition: margin-right 0.3s ease, transform 0.3s ease; /* Animation: slide away */ } #mdbook .content { overflow-y: auto; padding: 0 5px 50px 5px; } #mdbook .content main { margin-inline-start: auto; margin-inline-end: auto; max-width: var(--content-max-width); } #mdbook .content p { line-height: 1.45em; } #mdbook .content ol { line-height: 1.45em; } #mdbook .content ul { line-height: 1.45em; } #mdbook .content a { text-decoration: none; } #mdbook .content a:hover { text-decoration: underline; } #mdbook .content img, .content video { max-width: 100%; } #mdbook .content .header:link, #mdbook .content .header:visited { color: var(--fg); } #mdbook .content .header:link, #mdbook .content .header:visited:hover { text-decoration: none; } #mdbook table { margin: 0 auto; border-collapse: collapse; } #mdbook table td { padding: 3px 20px; border: 1px var(--table-border-color) solid; } #mdbook table thead { background: var(--table-header-bg); } #mdbook table thead td { font-weight: 700; border: none; } #mdbook table thead th { padding: 3px 20px; } #mdbook table thead tr { border: 1px var(--table-header-bg) solid; } /* Alternate background colors for rows */ #mdbook table tbody tr:nth-child(2n) { background: var(--table-alternate-bg); } #mdbook blockquote { margin: 20px 0; padding: 0 20px; color: var(--fg); background-color: var(--quote-bg); border-block-start: .1em solid var(--quote-border); border-block-end: .1em solid var(--quote-border); } #mdbook .warning { margin: 20px; padding: 0 20px; border-inline-start: 2px solid var(--warning-border); } #mdbook .warning:before { position: absolute; width: 3rem; height: 3rem; margin-inline-start: calc(-1.5rem - 21px); content: "ⓘ"; text-align: center; background-color: var(--bg); color: var(--warning-border); font-weight: bold; font-size: 2rem; } #mdbook blockquote .warning:before { background-color: var(--quote-bg); } #mdbook kbd { background-color: var(--table-border-color); border-radius: 4px; border: solid 1px var(--theme-popup-border); box-shadow: inset 0 -1px 0 var(--theme-hover); display: inline-block; font-size: var(--code-font-size); font-family: var(--mono-font); line-height: 10px; padding: 4px 5px; vertical-align: middle; } #mdbook :not(.footnote-definition) + .footnote-definition, #mdbook .footnote-definition + :not(.footnote-definition) { margin-block-start: 2em; } #mdbook .footnote-definition { font-size: 0.9em; margin: 0.5em 0; } #mdbook .footnote-definition p { display: inline; } #mdbook .tooltiptext { position: absolute; visibility: hidden; color: #fff; background-color: #333; transform: translateX(-50%); /* Center by moving tooltip 50% of its width left */ left: -8px; /* Half of the width of the icon */ top: -35px; font-size: 0.8em; text-align: center; border-radius: 6px; padding: 5px 8px; margin: 5px; z-index: 1000; } #mdbook .tooltipped .tooltiptext { visibility: visible; } #mdbook .chapter li.part-title { color: var(--sidebar-fg); margin: 5px 0px; font-weight: bold; } #mdbook .result-no-output { font-style: italic; }