Skip to content

Commit

Permalink
added latin modern as default font
Browse files Browse the repository at this point in the history
  • Loading branch information
the-mitr committed Sep 1, 2023
1 parent fa1877a commit f187347
Show file tree
Hide file tree
Showing 4 changed files with 105 additions and 28 deletions.
21 changes: 0 additions & 21 deletions _posts/2023-02-12-charging.md

This file was deleted.

38 changes: 32 additions & 6 deletions tufte.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,31 @@
font-display: swap;
}


<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Latin+Modern+Roman&display=swap">

/* Apply Italic style */
.italic {
font-style: italic;
}

/* Apply Bold style */
.bold {
font-weight: bold;
}

/* Apply Small-caps style */
.small-caps {
font-family: 'Latin Modern Sans Caps', sans-serif;
font-variant: small-caps;
}

/* Apply Latin Modern Sans to <p> elements with the "latin-modern-sans" class */
p.latin-modern-sans {
font-family: 'Latin Modern Sans', sans-serif;
}


/* Tufte CSS styles */
html {
font-size: 15px;
Expand All @@ -49,7 +74,8 @@ body {
margin-left: auto;
margin-right: auto;
padding-left: 12.5%;
font-family: et-book, Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Georgia, serif;
font-family: 'Latin Modern Roman', serif;
/* Fallback to a generic serif font if Latin Modern Roman is unavailable */
background-color: #fffff8;
color: #111;
max-width: 1400px;
Expand Down Expand Up @@ -113,7 +139,7 @@ p.subtitle {
}

.numeral {
font-family: et-book-roman-old-style;
font-family: 'Latin Modern Roman', serif;
}

.danger {
Expand Down Expand Up @@ -300,7 +326,7 @@ width: 55%;

.sidenote-number:after,
.sidenote:before {
font-family: et-book-roman-old-style;
font-family: 'Latin Modern Roman', serif;
position: relative;
vertical-align: baseline;
}
Expand Down Expand Up @@ -332,16 +358,16 @@ table.fullwidth {

div.table-wrapper {
overflow-x: auto;
font-family: "Trebuchet MS", "Gill Sans", "Gill Sans MT", sans-serif;
font-family: 'Latin Modern Sans', sans-serif;
}

.sans {
font-family: "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
font-family: 'Latin Modern Sans', sans-serif;
letter-spacing: .03em;
}

code, pre > code {
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
font-family: 'Latin Modern Mono', monospace;
font-size: 1.0rem;
line-height: 1.42;
-webkit-text-size-adjust: 100%; /* Prevent adjustments of font size after orientation changes in iOS. See https://github.com/edwardtufte/tufte-css/issues/81#issuecomment-261953409 */
Expand Down
Loading

0 comments on commit f187347

Please sign in to comment.