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

@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;
font-family: 'Ubuntu', sans-serif;
font-weight: 300;
font-size: 17px;
line-height: 1.25;
}
h1, h2, h3, h4 {
font-family: 'Share', cursive;
font-weight: 700;
}
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;
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 {
margin: 1rem;
}
.nav-item:first-child {
font-size: 25px;
}
.nav-item {
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 {
margin-bottom: 20rem;
}
footer {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
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;
}
}