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.
280 lines
4.3 KiB
CSS
280 lines
4.3 KiB
CSS
html, body {
|
|
margin: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
nav {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
z-index: 400;
|
|
background-color: white;
|
|
}
|
|
|
|
nav a::after{
|
|
display: none;
|
|
}
|
|
|
|
nav .content-wrapper {
|
|
max-width: var(--content-width);
|
|
margin: 0 auto;
|
|
padding: 0 var(--app-margin);
|
|
}
|
|
|
|
.content-wrapper {
|
|
display: flex;
|
|
justify-content: stretch;
|
|
}
|
|
|
|
.content-wrapper > * {
|
|
flex: 1;
|
|
margin: 0;
|
|
}
|
|
|
|
nav .date {
|
|
text-align: right;
|
|
}
|
|
|
|
nav .title {
|
|
text-align: center;
|
|
}
|
|
|
|
code {
|
|
background-color: white;
|
|
}
|
|
|
|
nav .return:hover{
|
|
color: var(--accent);
|
|
}
|
|
|
|
|
|
|
|
.project--header{
|
|
position: relative;
|
|
height: 100vh;
|
|
background-color: var(--accent);
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: flex-end;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.header--cover {
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
margin: 0 auto;
|
|
|
|
}
|
|
|
|
.header--cover img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
.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;
|
|
|
|
|
|
}
|
|
|
|
.header--links a {
|
|
background-color: white;
|
|
pointer-events: all;
|
|
|
|
}
|
|
|
|
.header--categories {
|
|
position: absolute;
|
|
left: 0;
|
|
top: 32px;
|
|
width: 100%;
|
|
height: calc(100% - 32px);
|
|
z-index: 50;
|
|
/* pointer-events: none; */
|
|
}
|
|
|
|
.header--categories .tag {
|
|
|
|
|
|
|
|
padding: 0 4px;
|
|
background-color: white;
|
|
border-left-width: 6px;
|
|
border-left-style: solid;
|
|
border-left-color: #D5DDE8;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.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;
|
|
}
|
|
|
|
.project--content h2 {
|
|
grid-column: 1 / span 3;
|
|
}
|
|
|
|
|
|
.project--content p, div, code, pre, ul, ol, h3 {
|
|
grid-column: 4 / span 5;
|
|
}
|
|
|
|
.project--content > video, .project--content > img {
|
|
grid-column: 1 / -1;
|
|
margin: 32px 0;
|
|
}
|
|
|
|
.project--content p img {
|
|
width: 100%;
|
|
height: auto;
|
|
|
|
|
|
}
|
|
|
|
|
|
@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;
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
@media print {
|
|
|
|
nav {
|
|
position: absolute!important;
|
|
top: 0;
|
|
left: 0;
|
|
}
|
|
|
|
main {
|
|
padding: 1rem!important;
|
|
}
|
|
|
|
.return {
|
|
display: none!important;
|
|
}
|
|
} |