Increased font to match Medium-like size, fixed code missing padding on scroll
This commit is contained in:
parent
113365710d
commit
b50d7ef369
@ -4,9 +4,7 @@ html {
|
|||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: "Literata";
|
font-family: "Literata";
|
||||||
font-size: 1rem;
|
|
||||||
color: var(--content-primary);
|
color: var(--content-primary);
|
||||||
line-height: 1.3rem;
|
|
||||||
margin: auto;
|
margin: auto;
|
||||||
max-width: var(--main-width);
|
max-width: var(--main-width);
|
||||||
padding-left: var(--main-padding);
|
padding-left: var(--main-padding);
|
||||||
@ -22,20 +20,20 @@ body {
|
|||||||
h1 {
|
h1 {
|
||||||
margin-top: var(--h1-margin-top);
|
margin-top: var(--h1-margin-top);
|
||||||
margin-bottom: var(--h1-margin-bottom);
|
margin-bottom: var(--h1-margin-bottom);
|
||||||
font-size: 2em;
|
font-size: var(--h1-font-size);
|
||||||
}
|
}
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
margin-top: var(--h2-margin-top);
|
margin-top: var(--h2-margin-top);
|
||||||
margin-bottom: var(--h2-margin-bottom);
|
margin-bottom: var(--h2-margin-bottom);
|
||||||
font-size: 1.5em;
|
font-size: var(--h2-font-size);
|
||||||
}
|
}
|
||||||
|
|
||||||
h3,
|
h3,
|
||||||
h4,
|
h4,
|
||||||
h5,
|
h5,
|
||||||
h6 {
|
h6 {
|
||||||
font-size: 1.2em;
|
font-size: var(--hx-font-size);
|
||||||
margin-top: var(--hx-margin-top);
|
margin-top: var(--hx-margin-top);
|
||||||
margin-bottom: var(--hx-margin-bottom);
|
margin-bottom: var(--hx-margin-bottom);
|
||||||
}
|
}
|
||||||
@ -43,6 +41,8 @@ h6 {
|
|||||||
p {
|
p {
|
||||||
margin-top: var(--p-margin-top);
|
margin-top: var(--p-margin-top);
|
||||||
margin-bottom: var(--p-margin-bottom);
|
margin-bottom: var(--p-margin-bottom);
|
||||||
|
font-size: var(--p-font-size);
|
||||||
|
line-height: var(--p-line-height);
|
||||||
}
|
}
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
@ -71,12 +71,17 @@ pre {
|
|||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
-ms-overflow-style: none;
|
-ms-overflow-style: none;
|
||||||
scrollbar-width: none;
|
scrollbar-width: none;
|
||||||
|
line-height: 1.3em;
|
||||||
}
|
}
|
||||||
|
|
||||||
pre::-webkit-scrollbar {
|
pre::-webkit-scrollbar {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
code span {
|
||||||
|
display: inline !important;
|
||||||
|
}
|
||||||
|
|
||||||
code {
|
code {
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
-moz-font-feature-settings: "liga=1, dlig=1";
|
-moz-font-feature-settings: "liga=1, dlig=1";
|
||||||
@ -87,6 +92,7 @@ code {
|
|||||||
font-variant-ligatures: contextual;
|
font-variant-ligatures: contextual;
|
||||||
font-family: "Monaspace";
|
font-family: "Monaspace";
|
||||||
font-size: .9em;
|
font-size: .9em;
|
||||||
|
line-height: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -172,8 +178,8 @@ footer a {
|
|||||||
.line-date {
|
.line-date {
|
||||||
font-size: small;
|
font-size: small;
|
||||||
font-family: "Monaspace";
|
font-family: "Monaspace";
|
||||||
min-width: 110px;
|
min-width: 120px;
|
||||||
max-width: 110px;
|
max-width: 120px;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
padding-right: 1rem;
|
padding-right: 1rem;
|
||||||
margin-top: 0rem;
|
margin-top: 0rem;
|
||||||
@ -279,6 +285,8 @@ footer a {
|
|||||||
/* Table of contents */
|
/* Table of contents */
|
||||||
|
|
||||||
.toc {
|
.toc {
|
||||||
|
font-size: var(--p-font-size);
|
||||||
|
line-height: calc(.9 * var(--p-line-height));
|
||||||
margin-top: var(--toc-margin-top);
|
margin-top: var(--toc-margin-top);
|
||||||
margin-bottom: var(--toc-margin-bottom);
|
margin-bottom: var(--toc-margin-bottom);
|
||||||
}
|
}
|
||||||
@ -356,7 +364,7 @@ footer a {
|
|||||||
|
|
||||||
.breadcrumbs {
|
.breadcrumbs {
|
||||||
/* font-family: "Monaspace"; */
|
/* font-family: "Monaspace"; */
|
||||||
font-size: small;
|
font-size: .8em;
|
||||||
margin-bottom: calc(-0.5 * var(--h1-margin-top));
|
margin-bottom: calc(-0.5 * var(--h1-margin-top));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
:root {
|
:root {
|
||||||
--main-width: 750px;
|
--main-width: 780px;
|
||||||
--main-padding: 1rem;
|
--main-padding: 1.4em;
|
||||||
--main-padding-bottom: 3rem;
|
--main-padding-bottom: 3rem;
|
||||||
|
|
||||||
/* header settings */
|
/* header settings */
|
||||||
@ -21,6 +21,12 @@
|
|||||||
--code-margin-top: 2rem;
|
--code-margin-top: 2rem;
|
||||||
--code-margin-bottom: 2rem;
|
--code-margin-bottom: 2rem;
|
||||||
|
|
||||||
|
--h1-font-size: 2em;
|
||||||
|
--h2-font-size: 1.8em;
|
||||||
|
--hx-font-size: 1.3em;
|
||||||
|
--p-font-size: 1em;
|
||||||
|
--p-line-height: 1.5em;
|
||||||
|
|
||||||
/* List indentation */
|
/* List indentation */
|
||||||
--li-indent: 1.5rem;
|
--li-indent: 1.5rem;
|
||||||
--ul-margin-top: 1rem;
|
--ul-margin-top: 1rem;
|
||||||
|
Loading…
Reference in New Issue
Block a user