rudimentary responsiveness

master
Tomáš Mládek 2020-10-11 14:25:06 +02:00
parent ba9f47bb57
commit d98a9f76c8
1 changed files with 36 additions and 9 deletions

View File

@ -6,6 +6,7 @@
<link href="https://necolas.github.io/normalize.css/8.0.1/normalize.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,400;0,700;1,400;1,700&family=Montserrat&display=swap"
rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
font-family: 'Montserrat', sans-serif;
@ -19,6 +20,30 @@
display: flex;
}
@media screen and (max-width: 800px) {
body {
flex-direction: column-reverse;
}
aside {
border-top: 1px solid gray;
}
aside h1 {
text-align: center;
}
aside li {
display: inline-block;
}
}
aside h1 {
font-size: 16pt;
text-decoration: underline;
font-variant: small-caps;
}
img {
max-width: 100%;
max-height: 100vh;
@ -38,14 +63,16 @@
padding: 0 2em;
}
aside {
display: flex;
flex-direction: column;
justify-content: space-between;
min-width: 15%;
width: 15%;
min-height: 100vh;
border-right: 1px solid gray;
@media screen and (min-width: 800px) {
aside {
display: flex;
flex-direction: column;
justify-content: space-between;
min-width: 15em;
width: 15em;
min-height: 100vh;
border-right: 1px solid gray;
}
}
nav ul {
@ -83,7 +110,7 @@
<body>
<aside>
<nav>
<h2>{{garden_title}}</h2>
<h1>{{garden_title}}</h1>
<ul>
{% for file in files %}
<li class="{% if file is containing(" .md