2023-11-11 14:34:42 +00:00
|
|
|
@import url('https://cdnjs.cloudflare.com/ajax/libs/lato-font/3.0.0/css/lato-font.min.css');
|
|
|
|
@import url('https://cdnjs.cloudflare.com/ajax/libs/juliamono/0.051/juliamono.css');
|
2021-12-12 12:21:53 +00:00
|
|
|
|
|
|
|
* {
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
2023-11-11 14:34:42 +00:00
|
|
|
font-size: 17px;
|
|
|
|
font-variant-ligatures: none;
|
|
|
|
font-family: 'Lato Medium';
|
2023-06-07 06:01:32 +00:00
|
|
|
color: var(--text-color);
|
|
|
|
background: var(--body-bg);
|
2021-12-12 12:21:53 +00:00
|
|
|
}
|
2023-06-07 06:01:32 +00:00
|
|
|
|
2023-11-11 16:18:46 +00:00
|
|
|
input, select, textarea, button{font-family:inherit;}
|
|
|
|
|
2023-06-07 06:01:32 +00:00
|
|
|
a {
|
|
|
|
color: var(--link-color);
|
|
|
|
}
|
|
|
|
|
2021-12-12 12:21:53 +00:00
|
|
|
h1, h2, h3, h4, h5, h6 {
|
2023-11-11 14:34:42 +00:00
|
|
|
font-family: 'Lato Medium';
|
2023-11-13 22:13:26 +00:00
|
|
|
font-size: 17px;
|
2021-12-12 12:21:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
body { line-height: 1.5; }
|
|
|
|
nav { line-height: normal; }
|
|
|
|
|
|
|
|
:root {
|
|
|
|
--header-height: 3em;
|
2023-06-07 06:01:32 +00:00
|
|
|
--fragment-offset: calc(var(--header-height) + 1em);
|
|
|
|
--content-width: 55vw;
|
|
|
|
|
2021-12-12 12:21:53 +00:00
|
|
|
--header-bg: #f8f8f8;
|
2023-06-07 06:01:32 +00:00
|
|
|
--body-bg: white;
|
|
|
|
--code-bg: #f3f3f3;
|
|
|
|
--text-color: black;
|
|
|
|
--link-color: hsl(210, 100%, 30%);
|
|
|
|
|
|
|
|
--implicit-arg-text-color: var(--text-color);
|
|
|
|
|
|
|
|
--def-color: #92dce5;
|
|
|
|
--def-color-hsl-angle: 187;
|
|
|
|
--theorem-color: #8fe388;
|
|
|
|
--theorem-color-hsl-angle: 115;
|
|
|
|
--axiom-and-constant-color: #f44708;
|
|
|
|
--axiom-and-constant-color-hsl-angle: 16;
|
|
|
|
--structure-and-inductive-color: #f0a202;
|
|
|
|
--structure-and-inductive-color-hsl-angle: 40;
|
|
|
|
--starting-percentage: 100;
|
|
|
|
|
|
|
|
--hamburger-bg-color: #eee;
|
|
|
|
--hamburger-active-color: white;
|
|
|
|
--hamburger-border-color: #ccc;
|
|
|
|
|
|
|
|
--tags-border-color: #555;
|
|
|
|
|
2021-12-12 12:21:53 +00:00
|
|
|
--fragment-offset: calc(var(--header-height) + 1em);
|
|
|
|
--content-width: 55vw;
|
|
|
|
}
|
2023-06-08 05:52:51 +00:00
|
|
|
/* automatic dark theme if no javascript */
|
2023-06-07 06:01:32 +00:00
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
|
:root {
|
|
|
|
--header-bg: #111010;
|
|
|
|
--body-bg: #171717;
|
|
|
|
--code-bg: #363333;
|
|
|
|
--text-color: #eee;
|
|
|
|
--link-color: #58a6ff;
|
|
|
|
|
|
|
|
--implicit-arg-text-color: var(--text-color);
|
|
|
|
|
|
|
|
--def-color: #1F497F;
|
|
|
|
--def-color-hsl-angle: 214;
|
|
|
|
--theorem-color: #134E2D;
|
|
|
|
--theorem-color-hsl-angle: 146;
|
|
|
|
--axiom-and-constant-color: #6B1B1A;
|
|
|
|
--axiom-and-constant-color-hsl-angle: 1;
|
|
|
|
--structure-and-inductive-color: #73461C;
|
|
|
|
--structure-and-inductive-color-hsl-angle: 29;
|
|
|
|
--starting-percentage: 30;
|
|
|
|
|
|
|
|
--hamburger-bg-color: #2d2c2c;
|
|
|
|
--hamburger-active-color: black;
|
|
|
|
--hamburger-border-color: #717171;
|
|
|
|
|
|
|
|
--tags-border-color: #AAA;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-06-09 21:10:06 +00:00
|
|
|
[data-theme="light"] {
|
|
|
|
color-scheme: light;
|
|
|
|
|
|
|
|
--header-height: 3em;
|
|
|
|
--fragment-offset: calc(var(--header-height) + 1em);
|
|
|
|
--content-width: 55vw;
|
|
|
|
|
|
|
|
--header-bg: #f8f8f8;
|
|
|
|
--body-bg: white;
|
|
|
|
--code-bg: #f3f3f3;
|
|
|
|
--text-color: black;
|
|
|
|
--link-color: hsl(210, 100%, 30%);
|
|
|
|
|
|
|
|
--implicit-arg-text-color: var(--text-color);
|
|
|
|
|
|
|
|
--def-color: #92dce5;
|
|
|
|
--def-color-hsl-angle: 187;
|
|
|
|
--theorem-color: #8fe388;
|
|
|
|
--theorem-color-hsl-angle: 115;
|
|
|
|
--axiom-and-constant-color: #f44708;
|
|
|
|
--axiom-and-constant-color-hsl-angle: 16;
|
|
|
|
--structure-and-inductive-color: #f0a202;
|
|
|
|
--structure-and-inductive-color-hsl-angle: 40;
|
|
|
|
--starting-percentage: 100;
|
|
|
|
|
|
|
|
--hamburger-bg-color: #eee;
|
|
|
|
--hamburger-active-color: white;
|
|
|
|
--hamburger-border-color: #ccc;
|
|
|
|
|
|
|
|
--tags-border-color: #555;
|
|
|
|
|
|
|
|
--fragment-offset: calc(var(--header-height) + 1em);
|
|
|
|
--content-width: 55vw;
|
|
|
|
}
|
|
|
|
|
2023-06-08 05:52:51 +00:00
|
|
|
[data-theme="dark"] {
|
|
|
|
color-scheme: dark;
|
|
|
|
|
|
|
|
--header-bg: #111010;
|
|
|
|
--body-bg: #171717;
|
|
|
|
--code-bg: #363333;
|
|
|
|
--text-color: #eee;
|
|
|
|
--link-color: #58a6ff;
|
|
|
|
|
|
|
|
--implicit-arg-text-color: var(--text-color);
|
|
|
|
|
|
|
|
--def-color: #1F497F;
|
|
|
|
--def-color-hsl-angle: 214;
|
|
|
|
--theorem-color: #134E2D;
|
|
|
|
--theorem-color-hsl-angle: 146;
|
|
|
|
--axiom-and-constant-color: #6B1B1A;
|
|
|
|
--axiom-and-constant-color-hsl-angle: 1;
|
|
|
|
--structure-and-inductive-color: #73461C;
|
|
|
|
--structure-and-inductive-color-hsl-angle: 29;
|
|
|
|
--starting-percentage: 30;
|
|
|
|
|
|
|
|
--hamburger-bg-color: #2d2c2c;
|
|
|
|
--hamburger-active-color: black;
|
|
|
|
--hamburger-border-color: #717171;
|
|
|
|
|
|
|
|
--tags-border-color: #AAA;
|
|
|
|
}
|
|
|
|
|
2021-12-12 12:21:53 +00:00
|
|
|
@supports (width: min(10px, 5vw)) {
|
|
|
|
:root {
|
|
|
|
--content-width: clamp(20em, 55vw, 60em);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#nav_toggle {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
label[for="nav_toggle"] {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
header {
|
|
|
|
height: var(--header-height);
|
|
|
|
float: left;
|
|
|
|
position: fixed;
|
|
|
|
width: 100vw;
|
|
|
|
max-width: 100%;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
|
|
|
--header-side-padding: 2em;
|
|
|
|
padding: 0 var(--header-side-padding);
|
|
|
|
background: var(--header-bg);
|
|
|
|
z-index: 1;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
|
|
|
}
|
|
|
|
@supports (width: min(10px, 5vw)) {
|
|
|
|
header {
|
|
|
|
--header-side-padding: calc(max(2em, (100vw - var(--content-width) - 30em) / 2));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@media screen and (max-width: 1000px) {
|
|
|
|
:root {
|
|
|
|
--content-width: 100vw;
|
|
|
|
}
|
|
|
|
|
|
|
|
.internal_nav {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
body .nav {
|
|
|
|
width: 100vw;
|
|
|
|
max-width: 100vw;
|
|
|
|
margin-left: 1em;
|
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
body main {
|
|
|
|
width: unset;
|
|
|
|
max-width: unset;
|
|
|
|
margin-left: unset;
|
|
|
|
margin-right: unset;
|
|
|
|
}
|
|
|
|
body .decl > div {
|
|
|
|
overflow-x: unset;
|
|
|
|
}
|
|
|
|
|
|
|
|
#nav_toggle:not(:checked) ~ .nav {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
#nav_toggle:checked ~ main {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
label[for="nav_toggle"]::before {
|
|
|
|
content: '≡';
|
|
|
|
}
|
|
|
|
label[for="nav_toggle"] {
|
|
|
|
display: inline-block;
|
|
|
|
margin-right: 1em;
|
2023-06-07 06:01:32 +00:00
|
|
|
border: 1px solid var(--hamburger-border-color);
|
2021-12-12 12:21:53 +00:00
|
|
|
padding: 0.5ex 1ex;
|
|
|
|
cursor: pointer;
|
2023-06-07 06:01:32 +00:00
|
|
|
background: var(--hamburger-bg-color);
|
2021-12-12 12:21:53 +00:00
|
|
|
}
|
|
|
|
#nav_toggle:checked ~ * label[for="nav_toggle"] {
|
2023-06-07 06:01:32 +00:00
|
|
|
background: var(--hamburger-active-color);
|
2021-12-12 12:21:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
body header h1 {
|
|
|
|
font-size: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
header {
|
|
|
|
--header-side-padding: 1ex;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@media screen and (max-width: 700px) {
|
|
|
|
header h1 span { display: none; }
|
|
|
|
:root { --header-side-padding: 1ex; }
|
|
|
|
#search_form button { display: none; }
|
|
|
|
#search_form input { width: 100%; }
|
2023-01-25 22:57:10 +00:00
|
|
|
header #autocomplete_results {
|
2021-12-12 12:21:53 +00:00
|
|
|
left: 1ex;
|
|
|
|
right: 1ex;
|
|
|
|
width: inherit;
|
|
|
|
}
|
|
|
|
body header > * { margin: 0; }
|
|
|
|
}
|
|
|
|
|
|
|
|
header > * {
|
|
|
|
display: inline-block;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0 1em;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
|
|
|
header h1 {
|
|
|
|
font-weight: normal;
|
|
|
|
font-size: 160%;
|
|
|
|
}
|
|
|
|
|
|
|
|
header header_filename {
|
|
|
|
font-size: 150%;
|
|
|
|
}
|
|
|
|
@media (max-width: 80em) {
|
|
|
|
.header .header_filename {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* inserted by nav.js */
|
2023-01-25 22:57:10 +00:00
|
|
|
#autocomplete_results {
|
2021-12-12 12:21:53 +00:00
|
|
|
position: absolute;
|
|
|
|
top: var(--header-height);
|
|
|
|
right: calc(var(--header-side-padding));
|
|
|
|
width: calc(20em + 4em);
|
|
|
|
z-index: 1;
|
|
|
|
background: var(--header-bg);
|
|
|
|
border: 1px solid #aaa;
|
|
|
|
border-top: none;
|
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: auto;
|
|
|
|
max-height: calc(100vh - var(--header-height));
|
|
|
|
}
|
|
|
|
|
2023-01-25 22:57:10 +00:00
|
|
|
#autocomplete_results:empty {
|
2021-12-12 12:21:53 +00:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2023-01-25 22:57:10 +00:00
|
|
|
#autocomplete_results[state="loading"]:empty {
|
2021-12-12 12:21:53 +00:00
|
|
|
display: block;
|
|
|
|
cursor: progress;
|
|
|
|
}
|
2023-01-25 22:57:10 +00:00
|
|
|
#autocomplete_results[state="loading"]:empty::before {
|
2021-12-12 12:21:53 +00:00
|
|
|
display: block;
|
|
|
|
content: ' 🐙 🐙 🐙 🐙 🐙 🐙 🐙 🐙 🐙 🐙 🐙 🐙 🐙 🐙 🐙 ';
|
|
|
|
padding: 1ex;
|
|
|
|
animation: marquee 10s linear infinite;
|
|
|
|
}
|
|
|
|
@keyframes marquee {
|
|
|
|
0% { transform: translate(100%, 0); }
|
|
|
|
100% { transform: translate(-100%, 0); }
|
|
|
|
}
|
|
|
|
|
2023-01-25 22:57:10 +00:00
|
|
|
#autocomplete_results[state="done"]:empty {
|
2021-12-12 12:21:53 +00:00
|
|
|
display: block;
|
|
|
|
text-align: center;
|
|
|
|
padding: 1ex;
|
|
|
|
}
|
2023-01-25 22:57:10 +00:00
|
|
|
#autocomplete_results[state="done"]:empty::before {
|
2021-12-12 12:21:53 +00:00
|
|
|
content: '(no results)';
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
|
2023-01-25 22:57:10 +00:00
|
|
|
#autocomplete_results a {
|
2021-12-12 12:21:53 +00:00
|
|
|
display: block;
|
|
|
|
color: inherit;
|
|
|
|
padding: 1ex;
|
|
|
|
border-left: 0.5ex solid transparent;
|
|
|
|
padding-left: 0.5ex;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2023-01-26 01:09:47 +00:00
|
|
|
|
2023-01-28 19:16:49 +00:00
|
|
|
#autocomplete_results .selected .result_link a {
|
2023-06-07 06:01:32 +00:00
|
|
|
background: var(--body-bg);
|
|
|
|
border-color: var(--structure-and-inductive-color);
|
2021-12-12 12:21:53 +00:00
|
|
|
}
|
|
|
|
|
2023-01-25 22:57:10 +00:00
|
|
|
|
2023-01-28 19:16:49 +00:00
|
|
|
#search_results {
|
|
|
|
display: table;
|
|
|
|
width: 100%;
|
|
|
|
}
|
2023-01-25 22:57:10 +00:00
|
|
|
#search_results[state="done"]:empty::before {
|
|
|
|
content: '(no results)';
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
|
2023-01-28 19:16:49 +00:00
|
|
|
#search_results .result_link, #search_results .result_doc {
|
|
|
|
border-bottom: 1px solid rgba(0, 0, 0, 0.8);
|
2023-01-26 01:09:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.search_result {
|
|
|
|
display: table-row;
|
|
|
|
}
|
|
|
|
|
|
|
|
.result_link, .result_doc {
|
|
|
|
display: table-cell;
|
|
|
|
overflow: hidden;
|
2023-01-28 19:16:49 +00:00
|
|
|
word-break: break-word;
|
2023-01-26 01:09:47 +00:00
|
|
|
}
|
|
|
|
|
2021-12-12 12:21:53 +00:00
|
|
|
main, nav {
|
|
|
|
margin-top: calc(var(--header-height) + 1em);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* extra space for scrolling things to the top */
|
|
|
|
main {
|
|
|
|
margin-bottom: 90vh;
|
|
|
|
}
|
|
|
|
|
|
|
|
main {
|
|
|
|
max-width: var(--content-width);
|
|
|
|
/* center it: */
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
nav {
|
|
|
|
float: left;
|
|
|
|
height: calc(100vh - var(--header-height) - 1em);
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
overflow: auto;
|
|
|
|
scrollbar-width: thin;
|
|
|
|
scrollbar-color: transparent transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
nav:hover {
|
|
|
|
scrollbar-color: gray transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
nav {
|
|
|
|
--column-available-space: calc((100vw - var(--content-width) - 5em)/2);
|
|
|
|
--column-width: calc(var(--column-available-space) - 1ex);
|
|
|
|
--dist-to-edge: 1ex;
|
|
|
|
width: var(--content-width);
|
|
|
|
max-width: var(--column-width);
|
|
|
|
}
|
|
|
|
@supports (width: min(10px, 5vw)) {
|
|
|
|
.nav { --desired-column-width: 20em; }
|
|
|
|
.internal_nav { --desired-column-width: 30em; }
|
|
|
|
nav {
|
|
|
|
--column-available-space: calc(max(0px, (100vw - var(--content-width) - 5em)/2));
|
|
|
|
--column-width: calc(clamp(0px, var(--column-available-space) - 1ex, var(--desired-column-width)));
|
|
|
|
--dist-to-edge: calc(max(1ex, var(--column-available-space) - var(--column-width)));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav { left: var(--dist-to-edge); }
|
|
|
|
.internal_nav { right: var(--dist-to-edge); }
|
|
|
|
|
|
|
|
.internal_nav .nav_link, .taclink {
|
|
|
|
/* indent everything but first line by 2ex */
|
|
|
|
text-indent: -2ex; padding-left: 2ex;
|
|
|
|
}
|
|
|
|
|
2022-07-21 20:06:26 +00:00
|
|
|
.navframe {
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
2022-10-27 21:40:53 +00:00
|
|
|
.navframe .nav {
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
|
2021-12-12 12:21:53 +00:00
|
|
|
.internal_nav .imports {
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tagfilter-div {
|
|
|
|
margin-bottom: 1em;
|
|
|
|
}
|
|
|
|
.tagfilter-div > summary {
|
|
|
|
margin-bottom: 1ex;
|
|
|
|
}
|
|
|
|
|
2022-01-20 14:01:51 +00:00
|
|
|
/* top-level modules in left navbar */
|
|
|
|
.nav .module_list > details {
|
|
|
|
margin-top: 1ex;
|
|
|
|
}
|
|
|
|
|
2022-02-23 15:28:15 +00:00
|
|
|
.nav details > * {
|
2021-12-12 12:21:53 +00:00
|
|
|
padding-left: 2ex;
|
|
|
|
}
|
2022-02-18 06:03:54 +00:00
|
|
|
|
2022-02-23 15:28:15 +00:00
|
|
|
.nav summary {
|
|
|
|
cursor: pointer;
|
|
|
|
padding-left: 0;
|
|
|
|
}
|
|
|
|
|
2021-12-12 12:21:53 +00:00
|
|
|
.nav summary::marker {
|
|
|
|
font-size: 85%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav .nav_file {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav h3 {
|
|
|
|
margin-block-end: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* People use way too long declaration names. */
|
|
|
|
.internal_nav, .decl_name {
|
|
|
|
overflow-wrap: break-word;
|
|
|
|
}
|
|
|
|
|
2023-03-04 09:36:49 +00:00
|
|
|
/* Add a linebreak after a declaration name. */
|
|
|
|
.decl_name::after {
|
|
|
|
content: "\A";
|
|
|
|
white-space: pre;
|
|
|
|
}
|
|
|
|
|
2022-02-23 15:28:15 +00:00
|
|
|
.nav_link {
|
|
|
|
overflow-wrap: break-word;
|
|
|
|
}
|
|
|
|
|
2022-07-22 15:18:09 +00:00
|
|
|
.navframe {
|
|
|
|
--header-height: 0;
|
|
|
|
}
|
|
|
|
|
2023-06-08 05:52:51 +00:00
|
|
|
#settings {
|
|
|
|
margin-top: 5em;
|
|
|
|
}
|
|
|
|
#settings h3 {
|
|
|
|
font-size: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
#color-theme-switcher {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
padding: 0 2ex;
|
|
|
|
flex-flow: row wrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* custom radio buttons for dark/light switch */
|
|
|
|
#color-theme-switcher input {
|
|
|
|
-webkit-appearance: none;
|
|
|
|
-moz-appearance: none;
|
|
|
|
appearance: none;
|
|
|
|
display: inline-block;
|
|
|
|
box-sizing: content-box;
|
|
|
|
height: 1em;
|
|
|
|
width: 1em;
|
|
|
|
background-clip: content-box;
|
|
|
|
padding: 2px;
|
|
|
|
border: 2px solid transparent;
|
|
|
|
margin-bottom: -4px;
|
|
|
|
border-radius: 50%;
|
|
|
|
}
|
|
|
|
#color-theme-dark { background-color: #444; }
|
|
|
|
#color-theme-light { background-color: #ccc; }
|
|
|
|
#color-theme-system {
|
|
|
|
background-image: linear-gradient(60deg, #444, #444 50%, #CCC 50%, #CCC);
|
|
|
|
}
|
|
|
|
#color-theme-switcher input:checked {
|
|
|
|
border-color: var(--text-color);
|
|
|
|
}
|
|
|
|
|
2021-12-12 12:21:53 +00:00
|
|
|
.decl > div, .mod_doc {
|
|
|
|
padding-left: 8px;
|
|
|
|
padding-right: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.decl {
|
|
|
|
margin-top: 20px;
|
|
|
|
margin-bottom: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.decl > div {
|
|
|
|
/* sometimes declarations arguments are way too long
|
|
|
|
and would continue into the right column,
|
|
|
|
so put a scroll bar there: */
|
|
|
|
overflow-x: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Make `#id` links appear below header. */
|
|
|
|
.decl, h1[id], h2[id], h3[id], h4[id], h5[id], h6[id] {
|
|
|
|
scroll-margin-top: var(--fragment-offset);
|
|
|
|
}
|
|
|
|
/* don't need as much vertical space for these
|
|
|
|
inline elements */
|
|
|
|
a[id], li[id] {
|
|
|
|
scroll-margin-top: var(--header-height);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* HACK: Safari doesn't support scroll-margin-top for
|
|
|
|
fragment links (yet?)
|
|
|
|
https://caniuse.com/mdn-css_properties_scroll-margin-top
|
|
|
|
https://bugs.webkit.org/show_bug.cgi?id=189265
|
|
|
|
*/
|
|
|
|
@supports not (scroll-margin-top: var(--fragment-offset)) {
|
|
|
|
.decl::before, h1[id]::before, h2[id]::before, h3[id]::before,
|
|
|
|
h4[id]::before, h5[id]::before, h6[id]::before,
|
|
|
|
a[id]::before, li[id]::before {
|
|
|
|
content: "";
|
|
|
|
display: block;
|
|
|
|
height: var(--fragment-offset);
|
|
|
|
margin-top: calc(-1 * var(--fragment-offset));
|
|
|
|
box-sizing: inherit;
|
|
|
|
visibility: hidden;
|
|
|
|
width: 1px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* hide # after markdown headings except on hover */
|
|
|
|
.markdown-heading:not(:hover) > .hover-link {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
main h2, main h3, main h4, main h5, main h6 {
|
|
|
|
margin-top: 2rem;
|
|
|
|
}
|
|
|
|
.decl + .mod_doc > h2,
|
|
|
|
.decl + .mod_doc > h3,
|
|
|
|
.decl + .mod_doc > h4,
|
|
|
|
.decl + .mod_doc > h5,
|
|
|
|
.decl + .mod_doc > h6 {
|
|
|
|
margin-top: 4rem;
|
|
|
|
}
|
|
|
|
|
2022-01-06 13:19:14 +00:00
|
|
|
.def, .instance {
|
2023-06-07 06:01:32 +00:00
|
|
|
border-left: 10px solid var(--text-color);
|
|
|
|
border-top: 2px solid var(--text-color);
|
2021-12-12 12:21:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.theorem {
|
2023-06-07 06:01:32 +00:00
|
|
|
border-left: 10px solid var(--theorem-color);
|
|
|
|
border-top: 2px solid var(--theorem-color);
|
2021-12-12 12:21:53 +00:00
|
|
|
}
|
|
|
|
|
2022-06-19 14:41:59 +00:00
|
|
|
.axiom, .opaque {
|
2023-06-07 06:01:32 +00:00
|
|
|
border-left: 10px solid var(--axiom-and-constant-color);
|
|
|
|
border-top: 2px solid var(--axiom-and-constant-color);
|
2021-12-12 12:21:53 +00:00
|
|
|
}
|
|
|
|
|
2022-01-06 13:19:14 +00:00
|
|
|
.structure, .inductive, .class {
|
2023-06-07 06:01:32 +00:00
|
|
|
border-left: 10px solid var(--structure-and-inductive-color);
|
|
|
|
border-top: 2px solid var(--structure-and-inductive-color);
|
2021-12-12 12:21:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.fn {
|
|
|
|
display: inline-block;
|
|
|
|
/* border: 1px dashed red; */
|
|
|
|
text-indent: -1ex;
|
|
|
|
padding-left: 1ex;
|
|
|
|
white-space: pre-wrap;
|
|
|
|
vertical-align: top;
|
|
|
|
}
|
|
|
|
|
|
|
|
.fn { --fn: 1; }
|
|
|
|
.fn .fn { --fn: 2; }
|
|
|
|
.fn .fn .fn { --fn: 3; }
|
|
|
|
.fn .fn .fn .fn { --fn: 4; }
|
|
|
|
.fn .fn .fn .fn .fn { --fn: 5; }
|
|
|
|
.fn .fn .fn .fn .fn .fn { --fn: 6; }
|
|
|
|
.fn .fn .fn .fn .fn .fn .fn { --fn: 7; }
|
|
|
|
.fn .fn .fn .fn .fn .fn .fn .fn { --fn: 8; }
|
|
|
|
.fn {
|
|
|
|
transition: background-color 100ms ease-in-out;
|
|
|
|
}
|
|
|
|
|
2022-01-06 13:19:14 +00:00
|
|
|
.def .fn:hover, .instance .fn:hover {
|
2023-06-07 06:01:32 +00:00
|
|
|
background-color: hsla(var(--def-color-hsl-angle), 61%, calc(var(--starting-percentage) - 5%*var(--fn)));
|
|
|
|
box-shadow: 0 0 0 1px hsla(var(--def-color-hsl-angle), 61%, calc(var(--starting-percentage) - 5%*(var(--fn) + 1)));
|
2021-12-12 12:21:53 +00:00
|
|
|
border-radius: 5px;
|
|
|
|
}
|
|
|
|
.theorem .fn:hover {
|
2023-06-07 06:01:32 +00:00
|
|
|
background-color: hsla(var(--theorem-color-hsl-angle), 62%, calc(var(--starting-percentage) - 5%*var(--fn)));
|
|
|
|
box-shadow: 0 0 0 1px hsla(var(--theorem-color-hsl-angle), 62%, calc(var(--starting-percentage) - 5%*(var(--fn) + 1)));
|
2021-12-12 12:21:53 +00:00
|
|
|
border-radius: 5px;
|
|
|
|
}
|
2022-06-19 14:41:59 +00:00
|
|
|
.axiom .fn:hover, .opaque .fn:hover {
|
2023-06-07 06:01:32 +00:00
|
|
|
background-color: hsla(var(--axiom-and-constant-color-hsl-angle), 94%, calc(var(--starting-percentage) - 5%*var(--fn)));
|
|
|
|
box-shadow: 0 0 0 1px hsla(var(--axiom-and-constant-color-hsl-angle), 94%, calc(var(--starting-percentage) - 5%*(var(--fn) + 1)));
|
2021-12-12 12:21:53 +00:00
|
|
|
border-radius: 5px;
|
|
|
|
}
|
2022-01-06 13:19:14 +00:00
|
|
|
.structure .fn:hover, .inductive .fn:hover, .class .fn:hover {
|
2023-06-07 06:01:32 +00:00
|
|
|
background-color: hsla(var(--structure-and-inductive-color-hsl-angle), 98%, calc(var(--starting-percentage) - 5%*var(--fn)));
|
|
|
|
box-shadow: 0 0 0 1px hsla(var(--structure-and-inductive-color-hsl-angle), 98%, calc(var(--starting-percentage) - 5%*(var(--fn) + 1)));
|
2021-12-12 12:21:53 +00:00
|
|
|
border-radius: 5px;
|
|
|
|
}
|
|
|
|
|
2022-01-04 07:23:39 +00:00
|
|
|
.decl_args, .decl_type .decl_parent {
|
2021-12-12 12:21:53 +00:00
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
|
|
|
|
.implicits, .impl_arg {
|
2023-06-07 06:01:32 +00:00
|
|
|
color: var(--text-color);
|
2023-03-04 09:36:49 +00:00
|
|
|
white-space: normal;
|
2021-12-12 12:21:53 +00:00
|
|
|
}
|
|
|
|
|
2022-01-04 07:23:39 +00:00
|
|
|
.decl_kind, .decl_name, .decl_extends {
|
2021-12-12 12:21:53 +00:00
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* break long declaration names at periods where possible */
|
|
|
|
.break_within {
|
|
|
|
word-break: break-all;
|
|
|
|
}
|
|
|
|
|
|
|
|
.break_within .name {
|
|
|
|
word-break: normal;
|
|
|
|
}
|
|
|
|
|
|
|
|
.decl_header {
|
|
|
|
/* indent everything but first line twice as much as decl_type */
|
|
|
|
text-indent: -8ex; padding-left: 8ex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.decl_type {
|
|
|
|
margin-top: 2px;
|
|
|
|
margin-left: 4ex; /* extra indentation */
|
|
|
|
}
|
|
|
|
|
2022-04-09 19:39:34 +00:00
|
|
|
.imports li, code, .decl_header, .attributes, .structure_field_info,
|
2023-11-24 12:40:20 +00:00
|
|
|
.constructor, .instances li, .instances-for-list li, .equation, .structure_ext_ctor {
|
2023-11-11 14:34:42 +00:00
|
|
|
font-size: 16px;
|
|
|
|
font-family: 'JuliaMono', monospace;
|
2021-12-12 12:21:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
pre {
|
|
|
|
white-space: break-spaces;
|
|
|
|
}
|
|
|
|
|
2023-06-07 06:01:32 +00:00
|
|
|
code, pre { background: var(--code-bg); }
|
2021-12-12 12:21:53 +00:00
|
|
|
code, pre { border-radius: 5px; }
|
|
|
|
code { padding: 1px 3px; }
|
|
|
|
pre { padding: 1ex; }
|
|
|
|
pre code { padding: 0 0; }
|
|
|
|
|
|
|
|
#howabout code { background: inherit; }
|
|
|
|
#howabout li { margin-bottom: 0.5ex; }
|
|
|
|
|
|
|
|
.structure_fields, .constructors {
|
|
|
|
display: block;
|
|
|
|
padding-inline-start: 0;
|
|
|
|
margin-top: 1ex;
|
|
|
|
text-indent: -2ex; padding-left: 2ex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.structure_field {
|
|
|
|
display: block;
|
2022-01-04 07:23:39 +00:00
|
|
|
margin-left: 2ex;
|
2021-12-12 12:21:53 +00:00
|
|
|
}
|
|
|
|
|
2022-07-21 18:23:27 +00:00
|
|
|
.inductive_ctor_doc {
|
|
|
|
text-indent: 2ex;
|
2023-11-11 14:34:42 +00:00
|
|
|
font-family: 'Lato Medium';
|
2023-11-13 22:13:26 +00:00
|
|
|
font-size: 17px;
|
2022-07-21 18:23:27 +00:00
|
|
|
}
|
|
|
|
|
2022-04-09 19:39:34 +00:00
|
|
|
.structure_field_doc {
|
|
|
|
text-indent: 0;
|
2023-11-11 14:34:42 +00:00
|
|
|
font-family: 'Lato Medium';
|
2023-11-13 22:13:26 +00:00
|
|
|
font-size: 17px;
|
2022-04-09 19:39:34 +00:00
|
|
|
}
|
|
|
|
|
2022-02-02 11:53:04 +00:00
|
|
|
.structure_ext_fields {
|
|
|
|
display: block;
|
|
|
|
padding-inline-start: 0;
|
|
|
|
margin-top: 1ex;
|
|
|
|
text-indent: -2ex; padding-left: 2ex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.structure_ext_fields .structure_field {
|
|
|
|
margin-left: -1ex !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.structure_ext_ctor {
|
|
|
|
display: block;
|
|
|
|
text-indent: -3ex;
|
|
|
|
}
|
|
|
|
|
2021-12-12 12:21:53 +00:00
|
|
|
.constructor {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
.constructor:before {
|
|
|
|
content: '| ';
|
|
|
|
color: gray;
|
|
|
|
}
|
|
|
|
|
|
|
|
/** Don't show underline on types, to prevent the ≤ vs < confusion. **/
|
|
|
|
a:link, a:visited, a:active {
|
2023-06-07 06:01:32 +00:00
|
|
|
color:var(--link-color);
|
2021-12-12 12:21:53 +00:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
/** Show it on hover though. **/
|
|
|
|
a:hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
|
|
|
|
.impl_arg {
|
|
|
|
font-style: italic;
|
|
|
|
transition: opacity 300ms ease-in;
|
|
|
|
}
|
|
|
|
|
|
|
|
.decl_header:not(:hover) .impl_arg {
|
|
|
|
opacity: 30%;
|
|
|
|
transition: opacity 1000ms ease-out;
|
|
|
|
}
|
|
|
|
|
|
|
|
.gh_link {
|
2022-06-19 14:41:59 +00:00
|
|
|
float: right;
|
|
|
|
margin-left: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ink_link {
|
2021-12-12 12:21:53 +00:00
|
|
|
float: right;
|
|
|
|
margin-left: 20px;
|
|
|
|
}
|
|
|
|
|
2022-06-19 14:41:59 +00:00
|
|
|
|
2021-12-12 12:21:53 +00:00
|
|
|
.docfile h2, .note h2 {
|
|
|
|
margin-block-start: 3px;
|
|
|
|
margin-block-end: 0px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.docfile h2 a {
|
2023-06-07 06:01:32 +00:00
|
|
|
color: var(--text-color);
|
2021-12-12 12:21:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.tags {
|
|
|
|
margin-bottom: 1ex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tags ul {
|
|
|
|
display: inline;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tags li {
|
2023-06-07 06:01:32 +00:00
|
|
|
border: 1px solid var(--tags-border-color);
|
2021-12-12 12:21:53 +00:00
|
|
|
border-radius: 4px;
|
|
|
|
list-style-type: none;
|
|
|
|
padding: 1px 3px;
|
|
|
|
margin-left: 1ex;
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* used by nav.js */
|
|
|
|
.hide { display: none; }
|
|
|
|
|
|
|
|
.tactic, .note {
|
|
|
|
border-top: 3px solid #0479c7;
|
|
|
|
padding-top: 2em;
|
|
|
|
margin-top: 2em;
|
|
|
|
margin-bottom: 2em;
|
|
|
|
}
|