lynnespace/assets/style.css

104 lines
1.7 KiB
CSS

html, body {
height: 100%;
}
body {
font-family: sans-serif;
margin: 0;
display: grid;
grid-template-columns: max(325px, 15%) auto;
background: #ccc;
}
h1, h2, h3, h4, h5, h6 {
font-family: "Open Sans", sans-serif;
}
h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
color: inherit;
text-decoration: none;
}
h1, h2, h3 {
font-weight: 400;
}
h1 {
font-size: 2em;
}
h2 {
font-size: 1.6em;
}
main article {
max-width: 1800px;
box-shadow: 0 0 20px #777;
padding: 0 50px;
margin: 0 auto;
background: white;
min-height: 100%;
overflow: auto;
font-size: 1.1em;
}
p {
line-height: 1.5em;
}
main article h1,
main article h2,
main article h3 {
border-left: 5px solid mediumpurple;
padding-left: 5px;
margin-left: -10px;
}
header {
/* sidebar */
position: relative;
}
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;
/*background: linear-gradient(to bottom, #333 0%, #333 30%, transparent 80%, transparent 100%), url("/assets/img/background.jpeg") no-repeat bottom center/cover;*/
filter: saturate(33%);
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;
}
nav a:hover {
background: #00000044;
}
#logo {
object-fit: contain;
display: block;
width: min(100%, 150px);
height: auto;
margin: 30px auto 50px auto;
}