blog/src/styles.css

124 lines
2.3 KiB
CSS
Raw Normal View History

@import url('styles/reset.css');
2025-04-17 00:07:08 -04:00
@import url('styles/fonts.css');
@import url('styles/variables.css');
body {
column-gap: var(--gap-md);
display: grid;
2025-04-17 00:07:08 -04:00
font-family: "Fira Mono", monospace;
font-optical-sizing: auto;
font-weight: 300;
font-style: normal;
font-size: 62.5%;
grid-template-areas: "nav content";
grid-template-columns: 3fr 9fr;
margin: auto;
padding-top: var(--gap-md);
max-width: 1200px;
}
2025-04-16 17:25:02 -04:00
body > header {
border: 2px solid var(--color-bg);
grid-area: nav;
height: max-content;
width: max-content;
}
body > header > .title {
background-color: var(--color-bg);
color: var(--color-on-bg);
padding: var(--size-md) var(--size-xl);
}
body > header > .title > h1 {
font-size: var(--font-title);
font-weight: 300;
margin: 0;
}
2025-04-22 23:15:46 -04:00
body > header > nav {
display: flex;
flex-direction: column;
font-size: var(--font-nav);
}
body > header > nav > a {
padding: var(--size-xs) var(--size-xl);
text-decoration: none;
}
body > header > nav > a.current {
background-color: var(--color-bg);
color: var(--color-on-bg);
}
body > header > nav > a:first-child.current {
border-top: 1px solid var(--color-on-bg);
}
main {
align-items: center;
2025-04-16 17:25:02 -04:00
display: flex;
flex-direction: column;
font-size: var(--font-body);
grid-area: content;
}
2025-04-16 17:25:02 -04:00
main > .thought {
border: 2px solid var(--color-black);
width: 75%;
}
2025-04-23 00:12:42 -04:00
main > .thought:not(:last-child) {
margin-bottom: var(--size-2x);
}
main > .thought > header {
align-items: center;
2025-04-23 00:12:42 -04:00
display: grid;
font-size: var(--font-post-header);
2025-04-23 00:12:42 -04:00
grid-template-columns: max-content auto max-content;
padding: var(--size-md) var(--size-md) 0 var(--size-md);
}
2025-04-23 00:12:42 -04:00
main > .thought > header img {
height: 20px;
width: 20px;
}
2025-04-23 00:12:42 -04:00
main > .thought > header > .hash {
margin-right: var(--size-sm);
}
main > .thought > header > .link {
display: flex;
flex-direction: column;
justify-content: center;
visibility: hidden;
}
main > .thought:hover > header > .link {
visibility: visible;
}
main > .thought > .content {
border-top: 2px solid var(--color-black);
margin-top: var(--size-md);
padding: var(--size-xl) var(--size-2x);
2025-04-16 17:25:02 -04:00
}
main > article.thought > .content {
border-top: unset;
margin-top: unset;
}
main > .thought > .content > p:first-of-type {
2025-04-16 17:25:02 -04:00
margin: 0;
}
main > .thought > footer {
background-color: var(--color-bg);
color: var(--color-on-bg);
padding: var(--size-md);
}