lynnespace/assets/style.css
2021-01-16 19:30:18 +10:00

135 lines
2.1 KiB
CSS

* {
box-sizing: border-box;
}
body {
font-family: sans-serif;
margin: 0;
display: grid;
grid-template-columns: max(325px, 15%) auto;
background: #fafafa;
}
h1, h2, h3, h4, h5, h6 {
font-family: "Open Sans", sans-serif;
}
main article h1 a,
main article h2 a,
main article h3 a,
main article h4 a,
main article h5 a,
main article h6 a {
color: inherit;
text-decoration: none;
}
h1, h2, h3 {
font-weight: 400;
}
h1 {
font-size: 2em;
}
h2 {
font-size: 1.6em;
}
main {
box-shadow: 0 0 40px black;
z-index: 2;
}
main article {
max-width: 1800px;
padding: 0 50px 30px;
margin: 0 auto;
background: #fafafa;
min-height: 100%;
overflow: auto;
font-size: 1.1em;
}
main article h1,
main article h2,
main article h3 {
border-left: 5px solid mediumpurple;
padding-left: 5px;
margin-left: -10px;
}
main article a {
color: #00a;
text-decoration-style: dashed;
text-decoration-color: transparent;
transition: 0.2s all;
}
main article a:hover {
text-decoration-color: unset;
}
p {
line-height: 1.5em;
}
header {
/* sidebar */
position: sticky;
top: 0;
background: #333;
z-index: 1;
height: 100vh;
}
header::after {
/* will use webp with jpeg fallback when
https://developer.mozilla.org/en-US/docs/Web/CSS/image()#browser_compatibility becomes a thing, until then, it's jpeg
only for now :c */
display: block;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: -1;
background: linear-gradient(to bottom, #333, #333 10%, 70%, transparent),
url("/assets/img/background.jpeg") no-repeat bottom center/cover,
#333;
filter: blur(5px) saturate(75%);
content: "";
}
nav a {
color: white;
}
nav a {
padding: 10px 0;
display: block;
width: 100%;
text-align: center;
text-decoration: none;
font-size: 1.5em;
transition: 0.2s all;
position: relative;
}
nav a::before {
width: 5px;
top: 0;
bottom: 0;
left: -5px;
background: mediumpurple;
content: "";
display: block;
position: absolute;
transition: 0.2s all;
}
nav a:hover {
background: #00000044;
}
nav a:hover::before {
left: 0;
}
#logo {
object-fit: contain;
display: block;
width: min(100%, 150px);
height: auto;
margin: 30px auto 50px auto;
}