css: improve layout on small screens

Signed-off-by: Naman Sood <mail@nsood.in>
This commit is contained in:
Naman Sood 2023-05-31 00:41:50 -04:00
parent e3c365a6e4
commit f6ac1ec49a
2 changed files with 33 additions and 4 deletions

View file

@ -203,6 +203,21 @@ body {
&:hover p {
opacity: 1;
}
&:nth-last-child(1), &:nth-last-child(2) {
p {
left: auto;
right: 1.5rem;
}
}
&:nth-child(3) {
p {
left: -100rem;
right: -100rem;
margin: 0 auto;
}
}
}
i {
@ -388,9 +403,7 @@ body {
dialog.change-color-dialog br {
display: none;
}
}
@media(max-width: 25rem) {
.main {
> .text-container {
h1 {
@ -401,6 +414,10 @@ body {
font-size: 1.5rem;
}
}
.contact-methods {
justify-content: center;
margin-top: 2rem;
}
}
}