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>
|
</header>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
* {
|
* {
|
||||||
color: var(--primary-text);
|
color: var(--primary-text);
|
||||||
}
|
}
|
||||||
|
|
||||||
header {
|
header {
|
||||||
padding: 24px;
|
padding: 24px;
|
||||||
|
|
@ -39,7 +39,6 @@
|
||||||
nav {
|
nav {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
|
|
@ -48,6 +47,17 @@
|
||||||
font-size: 1.5rem;
|
font-size: 1.5rem;
|
||||||
padding-left: 16px;
|
padding-left: 16px;
|
||||||
color: var(--primary-text);
|
color: var(--primary-text);
|
||||||
|
width: fit-content;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-left {
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-right {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
justify-content: end;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-right > a {
|
.nav-right > a {
|
||||||
|
|
|
||||||
|
|
@ -16,11 +16,7 @@ const img = findImageByPath(post.image.path);
|
||||||
<a href={url} class="no-link-link">
|
<a href={url} class="no-link-link">
|
||||||
<div class="wide-container">
|
<div class="wide-container">
|
||||||
<div class="image-col col rounded">
|
<div class="image-col col rounded">
|
||||||
<Image
|
<Image src={img} alt={post.image.alt} layout="constrained" />
|
||||||
src={img}
|
|
||||||
alt={post.image.alt}
|
|
||||||
layout="constrained"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="text-col col">
|
<div class="text-col col">
|
||||||
<div class="top-info">
|
<div class="top-info">
|
||||||
|
|
@ -77,4 +73,18 @@ const img = findImageByPath(post.image.path);
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: 800px) {
|
||||||
|
.wide-container {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.col {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.image-col img {
|
||||||
|
position: static;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
@ -18,6 +18,7 @@ body {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
min-width: 380px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-link {
|
.nav-link {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue