summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--html/style.css31
1 files changed, 28 insertions, 3 deletions
diff --git a/html/style.css b/html/style.css
index 419c901..f472ff6 100644
--- a/html/style.css
+++ b/html/style.css
@@ -97,7 +97,6 @@ dd {
97 margin: 0; 97 margin: 0;
98} 98}
99 99
100/* Make default font-size 1rem and add smooth scrolling to anchors */
101html { 100html {
102 font-size: 1.4rem; 101 font-size: 1.4rem;
103 scroll-behavior: smooth; 102 scroll-behavior: smooth;
@@ -116,6 +115,7 @@ body {
116 counter-reset: theorem; 115 counter-reset: theorem;
117 counter-reset: definition; 116 counter-reset: definition;
118 counter-reset: sidenote-counter; 117 counter-reset: sidenote-counter;
118 counter-reset: figure;
119 119
120 color: #eceff4; 120 color: #eceff4;
121 background-color: #2e3440; 121 background-color: #2e3440;
@@ -151,6 +151,8 @@ a:focus {
151img { 151img {
152 max-width: 100%; 152 max-width: 100%;
153 display: block; 153 display: block;
154 /* useful for images with transparent backgrounds */
155 background-color: white;
154} 156}
155 157
156/* Inherit fonts for inputs and buttons */ 158/* Inherit fonts for inputs and buttons */
@@ -317,7 +319,7 @@ dd {
317} 319}
318 320
319/* Center align author name, use small caps and add vertical spacing */ 321/* Center align author name, use small caps and add vertical spacing */
320.author { 322.author, .subtitle {
321 margin: 0.85rem 0; 323 margin: 0.85rem 0;
322 font-variant-caps: small-caps; 324 font-variant-caps: small-caps;
323 text-align: center; 325 text-align: center;
@@ -537,9 +539,11 @@ blockquote .sidenote, blockquote .marginnote {
537 text-align: left; 539 text-align: left;
538} 540}
539 541
542/*
540.marginnote > code, .sidenote > code { 543.marginnote > code, .sidenote > code {
541 font-size: 1rem; 544 font-size: 1rem;
542} 545}
546*/
543 547
544input.margin-toggle { 548input.margin-toggle {
545 display: none; 549 display: none;
@@ -553,7 +557,28 @@ label.margin-toggle:not(.sidenote-number) {
553 display: none; 557 display: none;
554} 558}
555 559
556@media (max-width: 165ch) { 560figure {
561 counter-increment: figure;
562 text-align: center;
563 margin: 2em 0;
564}
565
566figure > img {
567 margin: auto;
568 padding: 1em;
569}
570
571figure figcaption {
572 font-size: 0.9em;
573 font-style: italic;
574}
575
576figure figcaption::before {
577 content: 'Figure ' counter(figure) ': ';
578 color: #abb9cf;
579}
580
581@media (max-width: 110rem) {
557 body { 582 body {
558 padding: 2rem 1.25rem; 583 padding: 2rem 1.25rem;
559 max-width: 80ch; 584 max-width: 80ch;