Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/content/_templates/top.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ <h4 class="toc-heading">Table of contents</h4>
<div class="centered phone">
<img class="logo" src="{{RELATIVE_PATH}}/img/icon_cropped.png" width="100" alt=""/>
<h2>AngouriMath</h2>
<p><a class="try-live" href="{{RELATIVE_PATH}}/live/">Try it live</a></p>
</div>
<!--End-->

Expand Down
39 changes: 35 additions & 4 deletions styles.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,35 @@
body {
font-family: "Overpass Mono";
font-size: 14pt;
line-height: 1.5;
line-height: 1.65;
letter-spacing: -0.01em;
overflow-x: hidden;
}

/* Prose in a monospace face tires the eye on long lines: paragraphs and lists stop near seventy
characters, a little apart, so a page reads as paragraphs rather than as one block. */
.main p,
.main li {
max-width: 70ch;
}

.main li {
margin-bottom: 0.45em;
}

/* Code inside a sentence, in the site's own face rather than the browser's monospace, on a tint
so that a formula is told from the words around it. */
:not(pre) > code {
font-family: "Overpass Mono", monospace;
font-size: 0.92em;
padding: 0.08em 0.35em;
border-radius: 4px;
/* A long formula wraps, its tint carried onto each line, rather than pushing a phone's page sideways. */
overflow-wrap: anywhere;
-webkit-box-decoration-break: clone;
box-decoration-break: clone;
}

.regular-table table, .regular-table tbody tr th, .regular-table tr td {
border: 1px solid gray;
border-collapse: collapse;
Expand Down Expand Up @@ -107,9 +132,10 @@ mjx-container[display="true"] {

@media (max-width: 1099px)
{
/* Most of a phone's width for the text: at 70% a line held some twenty characters. */
.main {
width: 70%;
margin-left: 15%;
width: 90%;
margin-left: 5%;
}

iframe {
Expand Down Expand Up @@ -148,8 +174,13 @@ mjx-container[display="true"] {
padding: 15px;
}

/* A phone's first screen shows the name, the way in and the page, not only the logo. */
.logo {
width: 250px;
width: 96px;
}

.head-of-page a.try-live {
font-size: 16pt;
}
}

Expand Down
10 changes: 10 additions & 0 deletions themes.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
@media (prefers-color-scheme: light) {
:not(pre) > code {
background-color: #F1EDF0;
color: #3F3F3F;
}

body {
color: #474747;
background-color: white;
Expand Down Expand Up @@ -59,6 +64,11 @@
}

@media (prefers-color-scheme: dark) {
:not(pre) > code {
background-color: #1D2127;
color: #D7D7D7;
}

body {
color: #A7A7A7;
background-color: #0D1117;
Expand Down
Loading