simple-blog/source/_assets/css/main.css

86 lines
1.1 KiB
CSS
Raw Normal View History

@font-face {
font-family: 'Custom';
src: url("JetBrainsMono[wght].ttf");
}
* {
font-family: 'Custom', monospace;
box-sizing: border-box;
}
body {
margin: 0;
padding: 0;
}
header {
border-bottom: thin solid;
}
header h1 {
max-width: 950px;
font-weight: 650;
padding: 1rem;
margin: 0 auto;
text-align: right;
}
nav {
overflow-x: auto;
white-space: nowrap;
}
nav ul {
list-style-type: none;
padding: 0;
margin: 0 auto;
max-width: 950px;
}
nav ul li {
display: inline-block;
}
nav ul li a {
display: inline-block;
padding: 1rem;
text-decoration: none;
}
nav ul li[aria-current] a {
padding-bottom: .8rem;
border-bottom: .2rem solid;
}
main {
max-width: 950px;
margin: 0 auto;
padding: 0 1rem;
}
article section {
display: flex;
flex-direction: row;
align-items: flex-end;
justify-content: space-between;
}
article section h2 {
margin: 0;
}
article section:first-of-type {
margin-top: 4rem;
}
article section p {
margin: 2rem 0;
}
main hr {
width: 75%;
}
main hr:last-of-type {
display: none;
}