Skip to content

Commit

Permalink
fix responsive in markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
Gab committed Jan 8, 2024
1 parent 777d452 commit 1001f91
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 1 deletion.
Binary file added public/assets/1701089457883.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
26 changes: 25 additions & 1 deletion src/pages/work/[...slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,30 @@ const { Content } = await entry.render();
}
}

@media screen (max width: ;) {
.content {
font-size: var(--text-2x1);
display: block;
align-self: flex-start;
}
.content :global(h2) {
font-size: var(--text-3xl);
}

@media (max-width: 50em) {
.back-link {
display: block;
align-self: flex-start;
}
.content {
font-size: var(--text-1x1);
display: block;
align-self: flex-start;
}
.content :global(blockquote) {
font-size: var(--text-1xl);
}
.content :global(h2) {
font-size: var(--text-2xl);
}
}
</style>
6 changes: 6 additions & 0 deletions src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,10 @@ h5 {
gap: 12rem;
}

.gap-50 {
gap: 15rem;
}

@media (min-width: 50em) {
.lg\:gap-2 {
gap: 0.5rem;
Expand All @@ -262,4 +266,6 @@ h5 {
gap: 12rem;
}



}

0 comments on commit 1001f91

Please sign in to comment.