Skip to content

Commit

Permalink
styles and fonts updates
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulineNemchak committed Aug 11, 2024
1 parent 90c02e7 commit 3b69892
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 23 deletions.
4 changes: 2 additions & 2 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import { defineConfig } from 'astro/config';


export default defineConfig({
site: 'https://paulinenemchak.dev/',
})
site: 'https://paulinenemchak.dev/'
});
6 changes: 3 additions & 3 deletions src/components/Capybara.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

<style>
@media all and (max-width: 600px) {
.container {
font-size: 8px;
.capybara {
font-size: 0.4rem;
}
}

Expand All @@ -15,7 +15,7 @@
</style>

<figure class='textImage'>
<pre class='container' role="img" aria-label="ASCII image of a Capybara">
<pre class='capybara' role="img" aria-label="ASCII image of a Capybara">
{
`
.;o,
Expand Down
2 changes: 1 addition & 1 deletion src/components/Footer.astro
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import Container from './Container.astro';
fill: var(--purple);
}

.icon:hover {
.link:hover .icon {
fill: var(--purple-light);
}

Expand Down
15 changes: 7 additions & 8 deletions src/layouts/BaseLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,6 @@ import Footer from '../components/Footer.astro';
const { pageTitle } = Astro.props;
---

<style>
body {
display: flex;
flex-direction: column;
min-height: 100%;
}
</style>

<html lang="en">
<head>
<meta charset="utf-8" />
Expand All @@ -25,6 +17,13 @@ const { pageTitle } = Astro.props;
<meta name="viewport" content="width=device-width" />
<meta name="generator" content={Astro.generator} />
<title>{pageTitle}</title>
<style>
body {
display: flex;
flex-direction: column;
min-height: 100%;
}
</style>
</head>
<body>
<Header />
Expand Down
1 change: 0 additions & 1 deletion src/layouts/MarkdownPostLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const date = formatDate(frontmatter.pubDate);
<BaseLayout pageTitle={frontmatter.title}>
<article>
<h1>{frontmatter.title}</h1>
<p><em>{frontmatter.description}</em></p>
<slot />
<time datetime={frontmatter.pubDate}>{date}</time>
<TagList tags={tags} />
Expand Down
16 changes: 8 additions & 8 deletions src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ body {
padding: 0;
margin: 0;
font-family: system-ui, sans-serif;
font-size: 18px;
font-size: 22px;
background: var(--white);
color: var(--purple);
overflow-x: hidden;
Expand All @@ -29,7 +29,7 @@ a:visited {
}

h1 {
font-size: 80px;
font-size: 3.25rem;
margin-top: 0;
margin-left: -20px;
line-height: 1em;
Expand All @@ -39,11 +39,11 @@ h1 {
h3 {
margin-top: 30px;
margin-bottom: 10px;
font-size: 22px;
font-size: 1.5rem;
}

p {
margin: 5px;
margin: 0.75rem 0;
}

.visually-hidden:not(:focus):not(:active) {
Expand All @@ -69,15 +69,15 @@ img {
}

@media all and (max-width: 600px) {
.capybara {
font-size: 10px;
body {
font-size: 18px;
}

h1 {
font-size: 50px;
font-size: 2rem;
}

h3 {
font-size: 16px;
font-size: 1.5rem;
}
}

0 comments on commit 3b69892

Please sign in to comment.