Skip to content

Commit 1839869

Browse files
committed
fix readabilty of presentations
1 parent 94569c1 commit 1839869

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

obsidian.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,8 +1043,9 @@ export async function wrapInReveal(reveal) {
10431043
10441044
<title>Sample RevealJS with CDN</title>
10451045
1046+
<link href='https://fonts.googleapis.com/css?family=Lato:300,700' rel='stylesheet' type='text/css'>
10461047
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/reveal.css">
1047-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/theme/white.css">
1048+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/theme/moon.css">
10481049
10491050
<style>
10501051
${getFontImports()}
@@ -1061,6 +1062,12 @@ export async function wrapInReveal(reveal) {
10611062
max-width: 100%;
10621063
max-height: 60vh !important;
10631064
}
1065+
1066+
.reveal {
1067+
font-family: "Lato", serif;
1068+
font-size: 32px;
1069+
font-weight: 300;
1070+
}
10641071
</style>
10651072
<link rel="stylesheet" href="/obsidian-page.css">
10661073
<link rel="shortcut icon" href="/assets/favicon.ico" type="image/x-icon" />
@@ -1101,8 +1108,8 @@ export async function wrapInReveal(reveal) {
11011108
// The "normal" size of the presentation, aspect ratio will
11021109
// be preserved when the presentation is scaled to fit different
11031110
// resolutions. Can be specified using percentage units.
1104-
width: "80%",
1105-
height: "80%",
1111+
width: "90%",
1112+
height: "90%",
11061113
11071114
// Factor of the display size that should remain empty around
11081115
// the content

0 commit comments

Comments
 (0)