video messaging, css improvements, image dimensions

This commit is contained in:
Aaron Gutierrez
2022-02-06 11:33:38 -08:00
parent 0808bc7c1b
commit 2cffbb0b1d
4 changed files with 42 additions and 15 deletions

View File

@@ -1,14 +1,13 @@
img#aaron {
width: 128px;
height: 128px;
}
body {
max-width: 780px;
margin: 0 auto;
padding: 20px;
}
:root {
--padding: 20px;
}
h1 {
font-weight: normal;
}
@@ -23,6 +22,14 @@ footer {
text-align: center;
}
li, p {
line-height: 1.5;
}
li {
margin-bottom: 1em;
}
.img-grid {
display: flex;
flex-wrap: wrap;
@@ -33,12 +40,15 @@ footer {
align-items: flex-end;
display: flex;
margin-bottom: 40px;
margin-bottom: var(--padding);
max-height: min(calc(100vh - 80px), calc(100vw - 40px));
max-height: min(calc(100vh - 80px), calc(100vw - var(--padding)));
overflow: hidden;
}
.img-grid img {
display: block;
height: 100%;
margin-left: auto;
margin-right: auto;
max-width: 100%;
@@ -51,6 +61,7 @@ footer {
}
.img-view img {
height: 100%;
max-height: 100vh;
max-width: 100%;
}
@@ -68,6 +79,12 @@ div.nav {
}
}
@media(min-width:820px) {
:root {
--padding: min(40px, calc((100vw - 820px) / 2 + 20px));
}
}
@media(prefers-color-scheme: dark) {
body {
background: #333;