You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
website/assets/style.css

140 lines
2.1 KiB
CSS

4 years ago
@import url('https://fonts.googleapis.com/css2?family=Share:wght@700&family=Ubuntu+Mono&family=Ubuntu:wght@300;700&display=swap');
/* @import url('https://fonts.googleapis.com/css2?family=Sen&family=Work+Sans:wght@700&display=swap'); */
:root {
--accent-1: royalblue;
}
* {
box-sizing: border-box;
}
html {
position: relative;
}
html,
body {
margin: 0;
min-height: 100vh;
display: flex;
flex-direction: column;
4 years ago
font-family: 'Ubuntu', sans-serif;
font-weight: 300;
font-size: 17px;
line-height: 1.25;
}
h1, h2, h3, h4 {
4 years ago
font-family: 'Share', cursive;
font-weight: 700;
}
4 years ago
a, a:focus, a:visited {
color: #666;
text-decoration: #aaa underline;
padding: 1px 2px;
border-radius: 2px;
}
a:hover {
background: var(--accent-1);
color: white;
}
body {
max-width: 100%;
width: 50rem;
margin: 0 auto;
4 years ago
padding: 0 0.5rem;
overflow-y: scroll;
}
nav {
display: flex;
align-items: center;
border-bottom: 1px solid #ddd;
flex-wrap: wrap;
}
.hfill {
flex-grow: 1;
}
.vfill {
flex-grow: 1;
}
.news-list {
display: flex;
}
.news-list > article {
4 years ago
margin: 1rem;
}
.nav-item:first-child {
font-size: 25px;
}
.nav-item {
4 years ago
font-family: 'Share', cursive;
font-weight: 700;
font-size: 21px;
}
.nav-item:hover {
background: #f0f0f0;
}
.nav-item a, .nav-item a:focus, .nav-item a:visited {
display: flex;
align-items: center;
justify-content: center;
padding: 0 0.75rem;
height: 3.25rem;
color: black;
text-decoration: none;
}
body > div:last-of-type {
4 years ago
margin-bottom: 20rem;
}
footer {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
4 years ago
height: 3rem;
display: flex;
align-items: center;
justify-content: center;
border-top: 1px solid #ddd;
}
.footer-item:not(:last-child)::after {
content: '•';
margin: 0 1rem;
}
@media screen and (max-width: 600px) {
body {
width: 100%;
overflow-x: hidden;
}
.news-list {
flex-direction: column;
}
}