changes regarding mobile view
All checks were successful
Build and Deploy Astro App / build_and_deploy (push) Successful in 45s
All checks were successful
Build and Deploy Astro App / build_and_deploy (push) Successful in 45s
This commit is contained in:
parent
bbf8175ee3
commit
c2030c8806
4 changed files with 30 additions and 12 deletions
|
|
@ -14,9 +14,9 @@
|
|||
</header>
|
||||
|
||||
<style>
|
||||
* {
|
||||
color: var(--primary-text);
|
||||
}
|
||||
* {
|
||||
color: var(--primary-text);
|
||||
}
|
||||
|
||||
header {
|
||||
padding: 24px;
|
||||
|
|
@ -39,7 +39,6 @@
|
|||
nav {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
|
@ -48,6 +47,17 @@
|
|||
font-size: 1.5rem;
|
||||
padding-left: 16px;
|
||||
color: var(--primary-text);
|
||||
width: fit-content;
|
||||
}
|
||||
|
||||
.nav-left {
|
||||
}
|
||||
|
||||
.nav-right {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: end;
|
||||
|
||||
}
|
||||
|
||||
.nav-right > a {
|
||||
|
|
|
|||
|
|
@ -16,11 +16,7 @@ const img = findImageByPath(post.image.path);
|
|||
<a href={url} class="no-link-link">
|
||||
<div class="wide-container">
|
||||
<div class="image-col col rounded">
|
||||
<Image
|
||||
src={img}
|
||||
alt={post.image.alt}
|
||||
layout="constrained"
|
||||
/>
|
||||
<Image src={img} alt={post.image.alt} layout="constrained" />
|
||||
</div>
|
||||
<div class="text-col col">
|
||||
<div class="top-info">
|
||||
|
|
@ -77,4 +73,18 @@ const img = findImageByPath(post.image.path);
|
|||
justify-content: space-between;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 800px) {
|
||||
.wide-container {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.col {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.image-col img {
|
||||
position: static;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -1,3 +0,0 @@
|
|||
---
|
||||
|
||||
---
|
||||
|
|
@ -18,6 +18,7 @@ body {
|
|||
flex-direction: column;
|
||||
flex: 1;
|
||||
padding: 0;
|
||||
min-width: 380px;
|
||||
}
|
||||
|
||||
.nav-link {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue