Skip to content

Commit

Permalink
style: scale to width for mobile phones, increase font, smooth scrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphaelPour committed Jan 23, 2024
1 parent 68bc5b1 commit d50b3d7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion cmd/index.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto+Slab:[email protected]&display=swap" rel="stylesheet">
<style>
body { max-width: 80ch; margin-left: auto; margin-right: auto; font-family: "Roboto Slab", serif;}
html { scroll-behavior: smooth; font-size: 20px;}
body { width: 80ch; margin-left: auto; margin-right: auto; font-family: "Roboto Slab", serif;}
h1 { margin:0px;}
pre { width:100%;overflow:auto}
.date { margin-top:10px;font-size: small; color: gray; }
Expand Down
5 changes: 3 additions & 2 deletions cmd/post.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
<meta property="og:image" content="{{.FeaturedImage}}"/>
{{end}}
<style>
html { scroll-behavior: smooth; font-size: 20px;}
h1 { margin:0px;}
body { max-width:80ch; margin-right: auto; margin-left: auto; font-family: "Roboto Slab", serif}
img { max-width:80ch; }
body { width:80ch; margin-right: auto; margin-left: auto; font-family: "Roboto Slab", serif}
img { width:80ch; }
.footnotes > hr { border: 1px #EEE solid; }
.footnotes > ol { color: gray;}
.date { margin-top:10px;font-size: small; color: gray; }
Expand Down
5 changes: 3 additions & 2 deletions cmd/static.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto+Slab:[email protected]&display=swap" rel="stylesheet">
<style>
html { scroll-behavior: smooth; font-size: 20px;}
h1 { margin:0px;}
body { max-width:80ch; margin-right: auto; margin-left: auto; font-family: "Roboto Slab", serif}
img { max-width:80ch; }
body { width:80ch; margin-right: auto; margin-left: auto; font-family: "Roboto Slab", serif}
img { width:80ch; }
.footnotes > hr { border: 1px #EEE solid; }
.footnotes > ol { color: gray;}
.date { margin-top:10px;font-size: small; color: gray; }
Expand Down

0 comments on commit d50b3d7

Please sign in to comment.