2021-10-06 12:02:46 +00:00
|
|
|
@charset "UTF-8";
|
|
|
|
/* Copyright (c) 2016 The odoc contributors. All rights reserved.
|
|
|
|
Distributed under the ISC license, see terms at the end of the file.
|
2021-11-18 14:08:46 +00:00
|
|
|
odoc 2.0.0 */
|
2021-10-06 12:02:46 +00:00
|
|
|
|
|
|
|
/* Fonts */
|
|
|
|
@import url('https://fonts.googleapis.com/css?family=Fira+Mono:400,500');
|
|
|
|
@import url('https://fonts.googleapis.com/css?family=Noticia+Text:400,400i,700');
|
|
|
|
@import url('https://fonts.googleapis.com/css?family=Fira+Sans:400,400i,500,500i,600,600i,700,700i');
|
|
|
|
|
2021-11-18 14:08:46 +00:00
|
|
|
:root,
|
|
|
|
.light:root {
|
|
|
|
--main-background: #FFFFFF;
|
|
|
|
|
|
|
|
--color: #333333;
|
|
|
|
--link-color: #2C94BD;
|
|
|
|
--anchor-hover: #555;
|
|
|
|
--anchor-color: #d5d5d5;
|
|
|
|
--xref-shadow: #cc6666;
|
|
|
|
--header-shadow: #ddd;
|
|
|
|
--by-name-version-color: #aaa;
|
|
|
|
--by-name-nav-link-color: #222;
|
|
|
|
--target-background: rgba(187, 239, 253, 0.3);
|
|
|
|
--target-shadow: rgba(187, 239, 253, 0.8);
|
|
|
|
--pre-border-color: #eee;
|
|
|
|
--code-background: #f6f8fa;
|
|
|
|
|
|
|
|
--li-code-background: #f6f8fa;
|
|
|
|
--li-code-color: #0d2b3e;
|
|
|
|
--toc-color: #1F2D3D;
|
|
|
|
--toc-before-color: #777;
|
|
|
|
--toc-background: #f6f8fa;
|
|
|
|
--toc-list-border: #ccc;
|
|
|
|
|
|
|
|
--spec-summary-border-color: #5c9cf5;
|
|
|
|
--spec-summary-background: var(--code-background);
|
|
|
|
--spec-summary-hover-background: #ebeff2;
|
|
|
|
--spec-details-after-background: rgba(0, 4, 15, 0.05);
|
|
|
|
--spec-details-after-shadow: rgba(204, 204, 204, 0.53);
|
|
|
|
}
|
|
|
|
|
|
|
|
.dark:root {
|
|
|
|
--main-background: #202020;
|
|
|
|
--code-background: #222;
|
|
|
|
--line-numbers-background: rgba(0, 0, 0, 0.125);
|
|
|
|
--navbar-background: #202020;
|
|
|
|
|
|
|
|
--color: #bebebe;
|
|
|
|
--dirname-color: #666;
|
|
|
|
--underline-color: #444;
|
|
|
|
--visited-color: #002800;
|
|
|
|
--visited-number-color: #252;
|
|
|
|
--unvisited-color: #380000;
|
|
|
|
--unvisited-number-color: #622;
|
|
|
|
--somevisited-color: #303000;
|
|
|
|
--highlight-color: #303e3f;
|
|
|
|
--line-number-color: rgba(230, 230, 230, 0.3);
|
|
|
|
--unvisited-margin-color: #622;
|
|
|
|
--border: #333;
|
|
|
|
--navbar-border: #333;
|
|
|
|
--code-color: #ccc;
|
|
|
|
|
|
|
|
--li-code-background: #373737;
|
|
|
|
--li-code-color: #999;
|
|
|
|
--toc-color: #777;
|
|
|
|
--toc-background: #252525;
|
|
|
|
|
|
|
|
--hljs-link: #999;
|
|
|
|
--hljs-keyword: #cda869;
|
|
|
|
--hljs-regexp: #f9ee98;
|
|
|
|
--hljs-title: #dcdcaa;
|
|
|
|
--hljs-type: #ac885b;
|
|
|
|
--hljs-meta: #82aaff;
|
|
|
|
--hljs-variable: #cf6a4c;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
|
:root {
|
|
|
|
--main-background: #202020;
|
|
|
|
--code-background: #333;
|
|
|
|
--line-numbers-background: rgba(0, 0, 0, 0.125);
|
|
|
|
--navbar-background: #202020;
|
|
|
|
|
|
|
|
--meter-unvisited-color: #622;
|
|
|
|
--meter-visited-color: #252;
|
|
|
|
--meter-separator-color: black;
|
|
|
|
|
|
|
|
--color: #bebebe;
|
|
|
|
--dirname-color: #666;
|
|
|
|
--underline-color: #444;
|
|
|
|
--visited-color: #002800;
|
|
|
|
--visited-number-color: #252;
|
|
|
|
--unvisited-color: #380000;
|
|
|
|
--unvisited-number-color: #622;
|
|
|
|
--somevisited-color: #303000;
|
|
|
|
--highlight-color: #303e3f;
|
|
|
|
--line-number-color: rgba(230, 230, 230, 0.3);
|
|
|
|
--unvisited-margin-color: #622;
|
|
|
|
--border: #333;
|
|
|
|
--navbar-border: #333;
|
|
|
|
--code-color: #ccc;
|
|
|
|
--by-name-nav-link-color: var(--color);
|
|
|
|
|
|
|
|
--li-code-background: #373737;
|
|
|
|
--li-code-color: #999;
|
|
|
|
--toc-color: #777;
|
|
|
|
--toc-before-color: #777;
|
|
|
|
--toc-background: #252525;
|
|
|
|
--toc-list-border: #ccc;
|
|
|
|
--spec-summary-hover-background: #ebeff2;
|
|
|
|
--spec-details-after-background: rgba(0, 4, 15, 0.05);
|
|
|
|
--spec-details-after-shadow: rgba(204, 204, 204, 0.53);
|
|
|
|
|
|
|
|
--hljs-link: #999;
|
|
|
|
--hljs-keyword: #cda869;
|
|
|
|
--hljs-regexp: #f9ee98;
|
|
|
|
--hljs-title: #dcdcaa;
|
|
|
|
--hljs-type: #ac885b;
|
|
|
|
--hljs-meta: #82aaff;
|
|
|
|
--hljs-variable: #cf6a4c;
|
|
|
|
}
|
|
|
|
}
|
2021-10-06 12:02:46 +00:00
|
|
|
|
|
|
|
/* Reset a few things. */
|
|
|
|
|
|
|
|
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
border: 0;
|
|
|
|
font: inherit;
|
|
|
|
vertical-align: baseline;
|
2021-11-18 14:08:46 +00:00
|
|
|
|
2021-10-06 12:02:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
table {
|
|
|
|
border-collapse: collapse;
|
|
|
|
border-spacing: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
*, *:before, *:after {
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
|
|
|
html {
|
|
|
|
font-size: 15px;
|
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
|
|
|
text-align: left;
|
|
|
|
background: #FFFFFF;
|
2021-11-18 14:08:46 +00:00
|
|
|
color: var(--color);
|
|
|
|
background-color: var(--main-background);
|
2021-10-06 12:02:46 +00:00
|
|
|
}
|
|
|
|
|
2021-11-18 14:08:46 +00:00
|
|
|
body {
|
2021-10-06 12:02:46 +00:00
|
|
|
max-width: 90ex;
|
|
|
|
margin-left: calc(10vw + 20ex);
|
|
|
|
margin-right: 4ex;
|
|
|
|
margin-top: 20px;
|
|
|
|
margin-bottom: 50px;
|
|
|
|
font-family: "Noticia Text", Georgia, serif;
|
|
|
|
line-height: 1.5;
|
|
|
|
}
|
|
|
|
|
2021-11-18 14:08:46 +00:00
|
|
|
header {
|
2021-10-06 12:02:46 +00:00
|
|
|
margin-bottom: 30px;
|
|
|
|
}
|
|
|
|
|
2021-11-18 14:08:46 +00:00
|
|
|
nav {
|
2021-10-06 12:02:46 +00:00
|
|
|
font-family: "Fira Sans", Helvetica, Arial, sans-serif;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Basic markup elements */
|
|
|
|
|
|
|
|
b, strong {
|
2021-11-18 14:08:46 +00:00
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
i {
|
|
|
|
font-style: italic;
|
2021-10-06 12:02:46 +00:00
|
|
|
}
|
|
|
|
|
2021-11-18 14:08:46 +00:00
|
|
|
em, i em.odd{
|
2021-10-06 12:02:46 +00:00
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
|
2021-11-18 14:08:46 +00:00
|
|
|
em.odd, i em {
|
|
|
|
font-style: normal;
|
|
|
|
}
|
|
|
|
|
2021-10-06 12:02:46 +00:00
|
|
|
sup {
|
|
|
|
vertical-align: super;
|
|
|
|
}
|
|
|
|
|
|
|
|
sub {
|
|
|
|
vertical-align: sub;
|
|
|
|
}
|
|
|
|
|
|
|
|
sup, sub {
|
|
|
|
font-size: 12px;
|
|
|
|
line-height: 0;
|
|
|
|
margin-left: 0.2ex;
|
|
|
|
}
|
|
|
|
|
|
|
|
pre {
|
|
|
|
margin-top: 0.8em;
|
|
|
|
margin-bottom: 1.2em;
|
|
|
|
}
|
|
|
|
|
|
|
|
p, ul, ol {
|
|
|
|
margin-top: 0.5em;
|
|
|
|
margin-bottom: 1em;
|
|
|
|
}
|
|
|
|
ul, ol {
|
|
|
|
list-style-position: outside
|
|
|
|
}
|
|
|
|
|
|
|
|
ul>li {
|
|
|
|
margin-left: 22px;
|
|
|
|
}
|
|
|
|
|
|
|
|
ol>li {
|
|
|
|
margin-left: 27.2px;
|
|
|
|
}
|
|
|
|
|
|
|
|
li>*:first-child {
|
|
|
|
margin-top: 0
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Text alignements, this should be forbidden. */
|
|
|
|
|
|
|
|
.left {
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
.right {
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
|
|
|
|
.center {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Links and anchors */
|
|
|
|
|
|
|
|
a {
|
|
|
|
text-decoration: none;
|
2021-11-18 14:08:46 +00:00
|
|
|
color: var(--link-color);
|
2021-10-06 12:02:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
a:hover {
|
2021-11-18 14:08:46 +00:00
|
|
|
box-shadow: 0 1px 0 0 var(--link-color);
|
2021-10-06 12:02:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Linked highlight */
|
|
|
|
*:target {
|
2021-11-18 14:08:46 +00:00
|
|
|
background-color: var(--target-background) !important;
|
|
|
|
box-shadow: 0 0px 0 1px var(--target-shadow) !important;
|
2021-10-06 12:02:46 +00:00
|
|
|
border-radius: 1px;
|
|
|
|
}
|
|
|
|
|
2021-11-18 14:08:46 +00:00
|
|
|
*:hover > a.anchor {
|
2021-10-06 12:02:46 +00:00
|
|
|
visibility: visible;
|
|
|
|
}
|
|
|
|
|
|
|
|
a.anchor:before {
|
2021-11-18 14:08:46 +00:00
|
|
|
content: "#";
|
2021-10-06 12:02:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
a.anchor:hover {
|
|
|
|
box-shadow: none;
|
|
|
|
text-decoration: none;
|
2021-11-18 14:08:46 +00:00
|
|
|
color: var(--anchor-hover);
|
2021-10-06 12:02:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
a.anchor {
|
|
|
|
visibility: hidden;
|
|
|
|
position: absolute;
|
|
|
|
/* top: 0px; */
|
|
|
|
/* margin-left: -3ex; */
|
|
|
|
margin-left: -1.3em;
|
|
|
|
font-weight: normal;
|
|
|
|
font-style: normal;
|
|
|
|
padding-right: 0.4em;
|
|
|
|
padding-left: 0.4em;
|
|
|
|
/* To remain selectable */
|
2021-11-18 14:08:46 +00:00
|
|
|
color: var(--anchor-color);
|
2021-10-06 12:02:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.spec > a.anchor {
|
|
|
|
margin-left: -2.3em;
|
|
|
|
padding-right: 0.9em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.xref-unresolved {
|
2021-11-18 14:08:46 +00:00
|
|
|
color: #2C94BD;
|
2021-10-06 12:02:46 +00:00
|
|
|
}
|
|
|
|
.xref-unresolved:hover {
|
2021-11-18 14:08:46 +00:00
|
|
|
box-shadow: 0 1px 0 0 var(--xref-shadow);
|
2021-10-06 12:02:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Section and document divisions.
|
|
|
|
Until at least 4.03 many of the modules of the stdlib start at .h7,
|
|
|
|
we restart the sequence there like h2 */
|
|
|
|
|
|
|
|
h1, h2, h3, h4, h5, h6, .h7, .h8, .h9, .h10 {
|
|
|
|
font-family: "Fira Sans", Helvetica, Arial, sans-serif;
|
|
|
|
font-weight: 400;
|
|
|
|
margin: 0.5em 0 0.5em 0;
|
|
|
|
padding-top: 0.1em;
|
|
|
|
line-height: 1.2;
|
|
|
|
overflow-wrap: break-word;
|
|
|
|
}
|
|
|
|
|
|
|
|
h1 {
|
|
|
|
font-weight: 500;
|
|
|
|
font-size: 2.441em;
|
|
|
|
margin-top: 1.214em;
|
|
|
|
}
|
|
|
|
|
|
|
|
h1 {
|
|
|
|
font-weight: 500;
|
|
|
|
font-size: 1.953em;
|
2021-11-18 14:08:46 +00:00
|
|
|
box-shadow: 0 1px 0 0 var(--header-shadow);
|
2021-10-06 12:02:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
h2 {
|
|
|
|
font-size: 1.563em;
|
|
|
|
}
|
|
|
|
|
|
|
|
h3 {
|
|
|
|
font-size: 1.25em;
|
|
|
|
}
|
|
|
|
|
|
|
|
small, .font_small {
|
|
|
|
font-size: 0.8em;
|
|
|
|
}
|
|
|
|
|
|
|
|
h1 code, h1 tt {
|
|
|
|
font-size: inherit;
|
|
|
|
font-weight: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
h2 code, h2 tt {
|
|
|
|
font-size: inherit;
|
|
|
|
font-weight: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
h3 code, h3 tt {
|
|
|
|
font-size: inherit;
|
|
|
|
font-weight: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
h3 code, h3 tt {
|
|
|
|
font-size: inherit;
|
|
|
|
font-weight: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
h4 {
|
|
|
|
font-size: 1.12em;
|
|
|
|
}
|
|
|
|
|
2021-11-18 14:08:46 +00:00
|
|
|
/* Comment delimiters, hidden but accessible to screen readers and
|
|
|
|
selected for copy/pasting */
|
|
|
|
|
|
|
|
/* Taken from bootstrap */
|
|
|
|
/* See also https://stackoverflow.com/a/27769435/4220738 */
|
|
|
|
.comment-delim {
|
|
|
|
position: absolute;
|
|
|
|
width: 1px;
|
|
|
|
height: 1px;
|
|
|
|
padding: 0;
|
|
|
|
margin: -1px;
|
|
|
|
overflow: hidden;
|
|
|
|
clip: rect(0, 0, 0, 0);
|
|
|
|
white-space: nowrap;
|
|
|
|
border: 0;
|
|
|
|
}
|
2021-10-06 12:02:46 +00:00
|
|
|
|
|
|
|
/* Preformatted and code */
|
|
|
|
|
|
|
|
tt, code, pre {
|
|
|
|
font-family: "Fira Mono", courier;
|
|
|
|
font-weight: 400;
|
|
|
|
}
|
|
|
|
|
|
|
|
pre {
|
|
|
|
padding: 0.1em;
|
2021-11-18 14:08:46 +00:00
|
|
|
border: 1px solid var(--pre-border-color);
|
2021-10-06 12:02:46 +00:00
|
|
|
border-radius: 5px;
|
|
|
|
overflow-x: auto;
|
|
|
|
}
|
|
|
|
|
2021-11-18 14:08:46 +00:00
|
|
|
p code,
|
|
|
|
li code {
|
|
|
|
background-color: var(--li-code-background);
|
|
|
|
color: var(--li-code-color);
|
2021-10-06 12:02:46 +00:00
|
|
|
border-radius: 3px;
|
|
|
|
padding: 0 0.3ex;
|
|
|
|
}
|
|
|
|
|
|
|
|
p a > code {
|
2021-11-18 14:08:46 +00:00
|
|
|
color: var(--link-color);
|
2021-10-06 12:02:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Code blocks (e.g. Examples) */
|
|
|
|
|
|
|
|
pre code {
|
|
|
|
font-size: 0.893rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Code lexemes */
|
|
|
|
|
|
|
|
.keyword {
|
|
|
|
font-weight: 500;
|
|
|
|
}
|
|
|
|
|
2021-11-18 14:08:46 +00:00
|
|
|
.arrow { white-space: nowrap }
|
|
|
|
|
2021-10-06 12:02:46 +00:00
|
|
|
/* Module member specification */
|
|
|
|
|
2021-11-18 14:08:46 +00:00
|
|
|
.spec {
|
|
|
|
background-color: var(--spec-summary-background);
|
2021-10-06 12:02:46 +00:00
|
|
|
border-radius: 3px;
|
2021-11-18 14:08:46 +00:00
|
|
|
border-left: 4px solid var(--spec-summary-border-color);
|
2021-10-06 12:02:46 +00:00
|
|
|
border-right: 5px solid transparent;
|
|
|
|
padding: 0.35em 0.5em;
|
|
|
|
}
|
|
|
|
|
2021-11-18 14:08:46 +00:00
|
|
|
div.spec, .def-doc {
|
2021-10-06 12:02:46 +00:00
|
|
|
margin-bottom: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.spec.type .variant {
|
|
|
|
margin-left: 2ch;
|
|
|
|
}
|
|
|
|
.spec.type .variant p {
|
|
|
|
margin: 0;
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
.spec.type .record {
|
|
|
|
margin-left: 2ch;
|
|
|
|
}
|
|
|
|
.spec.type .record p {
|
|
|
|
margin: 0;
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
|
|
|
|
div.def {
|
|
|
|
margin-top: 0;
|
|
|
|
text-indent: -2ex;
|
|
|
|
padding-left: 2ex;
|
|
|
|
}
|
|
|
|
|
2021-11-18 14:08:46 +00:00
|
|
|
div.def+div.def-doc {
|
2021-10-06 12:02:46 +00:00
|
|
|
margin-left: 1ex;
|
|
|
|
margin-top: 2.5px
|
|
|
|
}
|
|
|
|
|
2021-11-18 14:08:46 +00:00
|
|
|
div.def-doc>*:first-child {
|
2021-10-06 12:02:46 +00:00
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Collapsible inlined include and module */
|
|
|
|
|
2021-11-18 14:08:46 +00:00
|
|
|
.odoc-include details {
|
2021-10-06 12:02:46 +00:00
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
2021-11-18 14:08:46 +00:00
|
|
|
.odoc-include details:after {
|
2021-10-06 12:02:46 +00:00
|
|
|
z-index: -100;
|
|
|
|
display: block;
|
|
|
|
content: " ";
|
|
|
|
position: absolute;
|
|
|
|
border-radius: 0 1ex 1ex 0;
|
|
|
|
right: -20px;
|
|
|
|
top: 1px;
|
|
|
|
bottom: 1px;
|
|
|
|
width: 15px;
|
2021-11-18 14:08:46 +00:00
|
|
|
background: var(--spec-details-after-background, rgba(0, 4, 15, 0.05));
|
|
|
|
box-shadow: 0 0px 0 1px var(--spec-details-after-shadow, rgba(204, 204, 204, 0.53));
|
2021-10-06 12:02:46 +00:00
|
|
|
}
|
|
|
|
|
2021-11-18 14:08:46 +00:00
|
|
|
.odoc-include summary {
|
2021-10-06 12:02:46 +00:00
|
|
|
position: relative;
|
|
|
|
margin-bottom: 20px;
|
|
|
|
cursor: pointer;
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
2021-11-18 14:08:46 +00:00
|
|
|
.odoc-include summary:hover {
|
|
|
|
background-color: var(--spec-summary-hover-background);
|
|
|
|
}
|
|
|
|
|
2021-10-06 12:02:46 +00:00
|
|
|
/* FIXME: Does not work in Firefox. */
|
2021-11-18 14:08:46 +00:00
|
|
|
.odoc-include summary::-webkit-details-marker {
|
2021-10-06 12:02:46 +00:00
|
|
|
color: #888;
|
|
|
|
transform: scaleX(-1);
|
|
|
|
position: absolute;
|
|
|
|
top: calc(50% - 5px);
|
|
|
|
height: 11px;
|
|
|
|
right: -29px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Records and variants FIXME */
|
|
|
|
|
|
|
|
div.def table {
|
|
|
|
text-indent: 0em;
|
|
|
|
padding: 0;
|
|
|
|
margin-left: -2ex;
|
|
|
|
}
|
|
|
|
|
|
|
|
td.def {
|
|
|
|
padding-left: 2ex;
|
|
|
|
}
|
|
|
|
|
2021-11-18 14:08:46 +00:00
|
|
|
td.def-doc *:first-child {
|
|
|
|
margin-top: 0em;
|
2021-10-06 12:02:46 +00:00
|
|
|
}
|
|
|
|
|
2021-11-18 14:08:46 +00:00
|
|
|
/* Lists of @tags */
|
2021-10-06 12:02:46 +00:00
|
|
|
|
2021-11-18 14:08:46 +00:00
|
|
|
.at-tags { list-style-type: none; margin-left: -3ex; }
|
|
|
|
.at-tags li { padding-left: 3ex; text-indent: -3ex; }
|
|
|
|
.at-tags .at-tag { text-transform: capitalize }
|
2021-10-06 12:02:46 +00:00
|
|
|
|
2021-11-18 14:08:46 +00:00
|
|
|
/* Lists of modules */
|
2021-10-06 12:02:46 +00:00
|
|
|
|
2021-11-18 14:08:46 +00:00
|
|
|
.modules { list-style-type: none; margin-left: -3ex; }
|
|
|
|
.modules li { padding-left: 3ex; text-indent: -3ex; margin-top: 5px }
|
|
|
|
.modules .synopsis { padding-left: 1ch; }
|
2021-10-06 12:02:46 +00:00
|
|
|
|
|
|
|
/* Odig package index */
|
|
|
|
|
2021-11-18 14:08:46 +00:00
|
|
|
.packages { list-style-type: none; margin-left: -3ex; }
|
|
|
|
.packages li { padding-left: 3ex; text-indent: -3ex }
|
|
|
|
.packages li a.anchor { padding-right: 0.5ch; padding-left: 3ch; }
|
|
|
|
.packages .version { font-size: 10px; color: var(--by-name-version-color); }
|
|
|
|
.packages .synopsis { padding-left: 1ch }
|
2021-10-06 12:02:46 +00:00
|
|
|
|
|
|
|
.by-name nav a {
|
|
|
|
text-transform: uppercase;
|
|
|
|
font-size: 18px;
|
|
|
|
margin-right: 1ex;
|
2021-11-18 14:08:46 +00:00
|
|
|
color: var(--by-name-nav-link-color,);
|
2021-10-06 12:02:46 +00:00
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.by-tag nav a {
|
|
|
|
margin-right: 1ex;
|
2021-11-18 14:08:46 +00:00
|
|
|
color: var(--by-name-nav-link-color);
|
2021-10-06 12:02:46 +00:00
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
2021-11-18 14:08:46 +00:00
|
|
|
.by-tag ol { list-style-type: none; }
|
|
|
|
.by-tag ol.tags li { margin-left: 1ch; display: inline-block }
|
|
|
|
.by-tag td:first-child { text-transform: uppercase; }
|
2021-10-06 12:02:46 +00:00
|
|
|
|
|
|
|
/* Odig package page */
|
|
|
|
|
|
|
|
.package nav {
|
|
|
|
display: inline;
|
|
|
|
font-size: 14px;
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
|
|
|
|
.package .version {
|
|
|
|
font-size: 14px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.package.info {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.package.info td:first-child {
|
|
|
|
font-style: italic;
|
|
|
|
padding-right: 2ex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.package.info ul {
|
|
|
|
list-style-type: none;
|
|
|
|
display: inline;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.package.info li {
|
|
|
|
display: inline-block;
|
|
|
|
margin: 0;
|
|
|
|
margin-right: 1ex;
|
|
|
|
}
|
|
|
|
|
|
|
|
#info-authors li, #info-maintainers li {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Sidebar and TOC */
|
|
|
|
|
2021-11-18 14:08:46 +00:00
|
|
|
.odoc-toc:before {
|
2021-10-06 12:02:46 +00:00
|
|
|
display: block;
|
|
|
|
content: "Contents";
|
|
|
|
text-transform: uppercase;
|
|
|
|
font-size: 1em;
|
|
|
|
margin: 1.414em 0 0.5em;
|
|
|
|
font-weight: 500;
|
2021-11-18 14:08:46 +00:00
|
|
|
color: var(--toc-before-color);
|
2021-10-06 12:02:46 +00:00
|
|
|
line-height: 1.2;
|
|
|
|
}
|
|
|
|
|
2021-11-18 14:08:46 +00:00
|
|
|
.odoc-toc {
|
2021-10-06 12:02:46 +00:00
|
|
|
position: fixed;
|
|
|
|
top: 0px;
|
|
|
|
bottom: 0px;
|
|
|
|
left: 0px;
|
|
|
|
max-width: 30ex;
|
|
|
|
min-width: 26ex;
|
|
|
|
width: 20%;
|
2021-11-18 14:08:46 +00:00
|
|
|
background: var(--toc-background);
|
2021-10-06 12:02:46 +00:00
|
|
|
overflow: auto;
|
2021-11-18 14:08:46 +00:00
|
|
|
color: var(--toc-color);
|
2021-10-06 12:02:46 +00:00
|
|
|
padding-left: 2ex;
|
|
|
|
padding-right: 2ex;
|
|
|
|
}
|
|
|
|
|
2021-11-18 14:08:46 +00:00
|
|
|
.odoc-toc ul li a {
|
2021-10-06 12:02:46 +00:00
|
|
|
font-family: "Fira Sans", sans-serif;
|
|
|
|
font-size: 0.95em;
|
2021-11-18 14:08:46 +00:00
|
|
|
color: var(--color);
|
2021-10-06 12:02:46 +00:00
|
|
|
font-weight: 400;
|
|
|
|
line-height: 1.6em;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2021-11-18 14:08:46 +00:00
|
|
|
.odoc-toc ul li a:hover {
|
2021-10-06 12:02:46 +00:00
|
|
|
box-shadow: none;
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* First level titles */
|
|
|
|
|
2021-11-18 14:08:46 +00:00
|
|
|
.odoc-toc>ul>li>a {
|
2021-10-06 12:02:46 +00:00
|
|
|
font-weight: 500;
|
|
|
|
}
|
|
|
|
|
2021-11-18 14:08:46 +00:00
|
|
|
.odoc-toc li ul {
|
2021-10-06 12:02:46 +00:00
|
|
|
margin: 0px;
|
|
|
|
}
|
|
|
|
|
2021-11-18 14:08:46 +00:00
|
|
|
.odoc-toc ul {
|
2021-10-06 12:02:46 +00:00
|
|
|
list-style-type: none;
|
|
|
|
}
|
|
|
|
|
2021-11-18 14:08:46 +00:00
|
|
|
.odoc-toc ul li {
|
2021-10-06 12:02:46 +00:00
|
|
|
margin: 0;
|
|
|
|
}
|
2021-11-18 14:08:46 +00:00
|
|
|
.odoc-toc>ul>li {
|
2021-10-06 12:02:46 +00:00
|
|
|
margin-bottom: 0.3em;
|
|
|
|
}
|
|
|
|
|
2021-11-18 14:08:46 +00:00
|
|
|
.odoc-toc ul li li {
|
|
|
|
border-left: 1px solid var(--toc-list-border);
|
2021-10-06 12:02:46 +00:00
|
|
|
margin-left: 5px;
|
|
|
|
padding-left: 12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Mobile adjustements. */
|
|
|
|
|
|
|
|
@media only screen and (max-width: 95ex) {
|
2021-11-18 14:08:46 +00:00
|
|
|
.odoc-content {
|
2021-10-06 12:02:46 +00:00
|
|
|
margin: auto;
|
2021-11-18 14:08:46 +00:00
|
|
|
padding: 2em;
|
2021-10-06 12:02:46 +00:00
|
|
|
}
|
2021-11-18 14:08:46 +00:00
|
|
|
.odoc-toc {
|
2021-10-06 12:02:46 +00:00
|
|
|
position: static;
|
|
|
|
width: auto;
|
|
|
|
min-width: unset;
|
|
|
|
max-width: unset;
|
|
|
|
border: none;
|
|
|
|
padding: 0.2em 1em;
|
|
|
|
border-radius: 5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Print adjustements. */
|
|
|
|
|
|
|
|
@media print {
|
|
|
|
body {
|
|
|
|
color: black;
|
|
|
|
background: white;
|
|
|
|
}
|
|
|
|
body nav:first-child {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Syntax highlighting (based on github-gist) */
|
|
|
|
|
|
|
|
.hljs {
|
|
|
|
display: block;
|
2021-11-18 14:08:46 +00:00
|
|
|
background: var(--code-background);
|
2021-10-06 12:02:46 +00:00
|
|
|
padding: 0.5em;
|
2021-11-18 14:08:46 +00:00
|
|
|
color: var(--color);
|
2021-10-06 12:02:46 +00:00
|
|
|
overflow-x: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hljs-comment,
|
|
|
|
.hljs-meta {
|
|
|
|
color: #969896;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hljs-string,
|
|
|
|
.hljs-variable,
|
|
|
|
.hljs-template-variable,
|
|
|
|
.hljs-strong,
|
|
|
|
.hljs-emphasis,
|
|
|
|
.hljs-quote {
|
|
|
|
color: #df5000;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hljs-keyword,
|
|
|
|
.hljs-selector-tag {
|
|
|
|
color: #a71d5d;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hljs-type,
|
|
|
|
.hljs-class .hljs-title {
|
|
|
|
color: #458;
|
|
|
|
font-weight: 500;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hljs-literal,
|
|
|
|
.hljs-symbol,
|
|
|
|
.hljs-bullet,
|
|
|
|
.hljs-attribute {
|
|
|
|
color: #0086b3;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hljs-section,
|
|
|
|
.hljs-name {
|
|
|
|
color: #63a35c;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hljs-tag {
|
|
|
|
color: #333333;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hljs-attr,
|
|
|
|
.hljs-selector-id,
|
|
|
|
.hljs-selector-class,
|
|
|
|
.hljs-selector-attr,
|
|
|
|
.hljs-selector-pseudo {
|
|
|
|
color: #795da3;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hljs-addition {
|
|
|
|
color: #55a532;
|
|
|
|
background-color: #eaffea;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hljs-deletion {
|
|
|
|
color: #bd2c00;
|
|
|
|
background-color: #ffecec;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hljs-link {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*---------------------------------------------------------------------------
|
|
|
|
Copyright (c) 2016 The odoc contributors
|
|
|
|
|
|
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
|
|
purpose with or without fee is hereby granted, provided that the above
|
|
|
|
copyright notice and this permission notice appear in all copies.
|
|
|
|
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
|
|
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
|
|
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
|
|
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
|
|
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
|
|
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
|
|
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
|
|
---------------------------------------------------------------------------*/
|