Skip to content

Commit

Permalink
season volume is dynamic + make mobile width larger and desktop width…
Browse files Browse the repository at this point in the history
… smaller
  • Loading branch information
eyaler committed Mar 17, 2024
1 parent 29d1c3b commit 2dbd0a3
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 9 deletions.
3 changes: 1 addition & 2 deletions resen/media/resen.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion resen/seasons/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<link rel="preload" href="../fonts/MiriamLibre-Regular.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="../fonts/DavidLibre-Medium.woff2" as="font" type="font/woff2" crossorigin>
<link rel="stylesheet" href="../style.css">
<link rel="stylesheet" href="style.css">
<script src="../pages.js"></script>
<link rel="icon" href="../media/resen.svg">
<meta property="og:image" content="https://oulipoh.com/resen/seasons/snippet">
Expand Down Expand Up @@ -67,6 +68,9 @@
<p dir="ltr">
The author thanks Yosefa Raz for her help with the English translation of this passage, and Almog Behar for his help in choosing the liturgical hymn.
</p>
<script>make_footer()</script>
<script>
make_footer()
document.addEventListener('scroll', () => audio.volume = 1 - (scrollY|0)/(document.body.scrollHeight-innerHeight))
</script>
</body>
</html>
5 changes: 2 additions & 3 deletions resen/seasons/media/arim.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 2 additions & 3 deletions resen/seasons/media/veen.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions resen/seasons/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
object {
display: block;
margin-inline: auto;
max-width: var(--media_width);
}

@media (max-width: 480px) {
object {
margin-inline: var(--anti_margin);
max-width: none;
}
}
1 change: 1 addition & 0 deletions resen/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1017,6 +1017,7 @@ a.sponsors {
}
}


/* stuff for https://oulipoh.com/resen/ */

header ~ :not(h2, footer) {
Expand Down

0 comments on commit 2dbd0a3

Please sign in to comment.