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.

260 lines
3.6 KiB
CSS

html,
body {
margin: 0;
box-sizing: border-box;
3 years ago
}
nav {
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 400;
background-color: white;
3 years ago
}
nav a::after {
display: none;
3 years ago
}
nav .content-wrapper {
max-width: var(--content-width);
margin: 0 auto;
padding: 0 var(--app-margin);
3 years ago
}
.content-wrapper {
display: flex;
justify-content: stretch;
3 years ago
}
.content-wrapper > * {
flex: 1;
margin: 0;
3 years ago
}
nav .date {
text-align: right;
3 years ago
}
nav .title {
text-align: center;
3 years ago
}
code {
background-color: white;
3 years ago
}
nav .return:hover {
color: var(--accent);
3 years ago
}
.project--header {
position: relative;
height: 100vh;
background-color: var(--accent);
display: flex;
flex-direction: column;
justify-content: flex-end;
align-items: flex-start;
3 years ago
}
.header--cover {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
margin: 0 auto;
}
3 years ago
.header--cover img {
width: 100%;
height: 100%;
object-fit: cover;
3 years ago
}
.header--title {
display: inline-block;
margin: 0;
position: absolute;
font-size: 48px;
z-index: 100;
background-color: white;
top: 50%;
left: 50%;
/* transform: translate(-50%,-50%); */
text-align: center;
3 years ago
}
.header--links {
position: relative;
z-index: 60;
font-size: 32px;
padding: 0 var(--app-margin);
width: calc(100% - var(--app-margin) * 2);
margin: 0 auto;
margin-bottom: 24px;
max-width: var(--content-width);
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: flex-start;
grid-gap: 8px;
pointer-events: none;
3 years ago
}
.header--links a {
background-color: white;
pointer-events: all;
3 years ago
}
.header--categories {
position: absolute;
left: 0;
top: 32px;
width: 100%;
height: calc(100% - 32px);
z-index: 50;
/* pointer-events: none; */
3 years ago
}
.header--categories .tag {
padding: 0 4px;
background-color: white;
border-left-width: 6px;
border-left-style: solid;
border-left-color: #d5dde8;
3 years ago
}
.project--content {
padding: 0 var(--app-margin);
max-width: var(--content-width);
margin: 0 auto;
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
margin-top: 48px;
margin-bottom: 96px;
3 years ago
}
.project--content h2 {
grid-column: 1 / span 3;
3 years ago
}
.project--content p,
div,
code,
pre,
ul,
ol,
h3,
video {
grid-column: 4 / span 5;
3 years ago
}
.project--content > img {
grid-column: 1 / -1;
margin: 32px 0;
3 years ago
}
.project--content p img {
width: 100%;
height: auto;
3 years ago
}
@media (max-width: 991.98px) {
nav {
padding: 0;
}
nav .date {
display: none;
}
nav .title {
white-space: nowrap;
text-overflow: ellipsis;
padding: 0 var(--app-margin);
}
nav .return {
display: inline-block;
position: fixed;
bottom: 24px;
right: 24px;
width: 48px;
height: 48px;
line-height: 48px;
background-color: white;
border-radius: 50%;
text-align: center;
}
header.project--header {
justify-content: center;
flex-wrap: wrap;
height: auto;
min-height: 100vh;
}
.header--title,
.header--categories,
.header--links {
font-size: 1rem;
position: relative;
width: auto;
margin: 0;
padding: var(--app-margin);
transform: none !important;
left: auto;
top: auto;
}
h1.header--title {
margin: 0 var(--app-margin);
transform: none !important;
}
.header--categories,
.header--links {
display: flex;
justify-content: flex-start;
flex-wrap: wrap;
height: auto;
grid-gap: 8px;
}
.header--categories .tag {
padding: 0 4px;
position: relative;
transform: none !important;
}
.project--content {
display: block;
}
code {
white-space: pre-wrap;
}
3 years ago
}
@media print {
nav {
position: absolute !important;
top: 0;
left: 0;
}
main {
padding: 1rem !important;
}
.return {
display: none !important;
}
}