Skip to content

Commit

Permalink
fix readabilty of presentations
Browse files Browse the repository at this point in the history
  • Loading branch information
guFalcon committed May 2, 2024
1 parent 94569c1 commit 1839869
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions obsidian.js
Original file line number Diff line number Diff line change
Expand Up @@ -1043,8 +1043,9 @@ export async function wrapInReveal(reveal) {
<title>Sample RevealJS with CDN</title>
<link href='https://fonts.googleapis.com/css?family=Lato:300,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/reveal.js@3.7.0/css/reveal.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/reveal.js@3.7.0/css/theme/white.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/reveal.js@3.7.0/css/theme/moon.css">
<style>
${getFontImports()}
Expand All @@ -1061,6 +1062,12 @@ export async function wrapInReveal(reveal) {
max-width: 100%;
max-height: 60vh !important;
}
.reveal {
font-family: "Lato", serif;
font-size: 32px;
font-weight: 300;
}
</style>
<link rel="stylesheet" href="/obsidian-page.css">
<link rel="shortcut icon" href="/assets/favicon.ico" type="image/x-icon" />
Expand Down Expand Up @@ -1101,8 +1108,8 @@ export async function wrapInReveal(reveal) {
// The "normal" size of the presentation, aspect ratio will
// be preserved when the presentation is scaled to fit different
// resolutions. Can be specified using percentage units.
width: "80%",
height: "80%",
width: "90%",
height: "90%",
// Factor of the display size that should remain empty around
// the content
Expand Down

0 comments on commit 1839869

Please sign in to comment.