Skip to content

Commit

Permalink
better browser support
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixMartel committed Jul 9, 2024
1 parent 8f8cacf commit 7e99988
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions src/main_layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,30 @@
}
#sitelayout { display: flex; max-width: min(900px, calc(100vw - 100px)); }
nav { padding: 15px; max-width: 150px; }
nav {
ul {
nav a {
list-style: circle;
position: sticky;
top: 50px;
}
h1 { position: relative; right: 40px; visibility: hidden; color: gray; }
}
main { padding: 15px; width: 100%}
nav h1 {
position: relative;
right: 40px;
visibility: hidden;
color: gray;
}
main { padding: 15px; width: 100%; }
blockquote { background-color: #d0c0fe7f; padding: 10px; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; }
pre { background-color: #d0c0fe7f; }
#nowrap { text-wrap: nowrap; overflow: scroll; width: 100%; }
#wrap { overflow-wrap: anywhere; }
@media (max-width: 900px) {
nav { width: 15px; #navhide { visibility: hidden; } h1 { visibility: visible; } }
nav:hover { width: inherit; #navhide { visibility: visible; } h1 { visibility: hidden; } }
nav { width: 15px; }
nav #navhide { visibility: hidden; }
nav h1 { visibility: visible; }
nav:hover { width: inherit; }
nav:hover #navhide { visibility: visible; }
nav:hover h1 { visibility: hidden; }
}
</style>
[[MATH]]
Expand Down

0 comments on commit 7e99988

Please sign in to comment.