214 lines
2.4 KiB
CSS
214 lines
2.4 KiB
CSS
|
:root {
|
||
|
--b-color: #181818;
|
||
|
--f-color: #d8d8d8;
|
||
|
--fs-color: #888888;
|
||
|
--l-color: #318df7;
|
||
|
}
|
||
|
|
||
|
body {
|
||
|
background: var(--b-color);
|
||
|
padding: 0;
|
||
|
margin: 0;
|
||
|
}
|
||
|
|
||
|
html {
|
||
|
scroll-behavior: smooth;
|
||
|
color-scheme: dark;
|
||
|
}
|
||
|
|
||
|
h1,
|
||
|
h2,
|
||
|
h3,
|
||
|
h4,
|
||
|
h5,
|
||
|
h6,
|
||
|
p,
|
||
|
a,
|
||
|
em,
|
||
|
span,
|
||
|
small {
|
||
|
color: var(--f-color);
|
||
|
font-family: 'Space Mono';
|
||
|
}
|
||
|
|
||
|
.center {
|
||
|
max-width: 36rem;
|
||
|
margin: 0 auto;
|
||
|
}
|
||
|
|
||
|
.space-between {
|
||
|
display: flex;
|
||
|
justify-content: space-between;
|
||
|
}
|
||
|
|
||
|
h1 {
|
||
|
font-size: 2rem;
|
||
|
margin: 0 0 1.25rem 0;
|
||
|
}
|
||
|
|
||
|
h2 {
|
||
|
font-size: 1.5rem;
|
||
|
margin: 0 0 .5rem 0;
|
||
|
}
|
||
|
|
||
|
a {
|
||
|
text-underline-offset: .15rem;
|
||
|
}
|
||
|
|
||
|
header {
|
||
|
height: 1.5rem;
|
||
|
padding: 1.5rem 0;
|
||
|
margin: 0 0 2rem 0;
|
||
|
}
|
||
|
|
||
|
header .logo {
|
||
|
text-decoration: none;
|
||
|
}
|
||
|
|
||
|
header ul,
|
||
|
header .logo {
|
||
|
width: fit-content;
|
||
|
margin: 0;
|
||
|
}
|
||
|
|
||
|
header ul li {
|
||
|
display: inline-block;
|
||
|
margin: 0 .5rem;
|
||
|
}
|
||
|
|
||
|
.hero,
|
||
|
.projects,
|
||
|
.contact {
|
||
|
margin: 4rem 0 6rem 0;
|
||
|
}
|
||
|
|
||
|
.card {
|
||
|
margin: 0 0 1.25rem 0;
|
||
|
}
|
||
|
|
||
|
.card p {
|
||
|
margin: .5rem 0;
|
||
|
}
|
||
|
|
||
|
.modal {
|
||
|
position: fixed;
|
||
|
background: var(--b-color);
|
||
|
top: 0;
|
||
|
right: 0;
|
||
|
bottom: 0;
|
||
|
left: 0;
|
||
|
visibility: hidden;
|
||
|
opacity: 0;
|
||
|
pointer-events: none;
|
||
|
// transition: all 0.3s;
|
||
|
z-index: 999;
|
||
|
}
|
||
|
|
||
|
.modal:target {
|
||
|
visibility: visible;
|
||
|
opacity: 1;
|
||
|
pointer-events: auto;
|
||
|
}
|
||
|
|
||
|
body:has(.modal:target) {
|
||
|
overflow: hidden;
|
||
|
}
|
||
|
|
||
|
.modal .center {
|
||
|
padding: 1.5rem 0 4rem 0;
|
||
|
}
|
||
|
|
||
|
.about h2 {
|
||
|
margin: 4rem 0 1rem 0;
|
||
|
}
|
||
|
|
||
|
.project {
|
||
|
overflow-y: scroll;
|
||
|
}
|
||
|
|
||
|
.project img {
|
||
|
max-width: 100%;
|
||
|
margin: 2rem 0;
|
||
|
}
|
||
|
|
||
|
.project .content {
|
||
|
padding: 0 2rem;
|
||
|
}
|
||
|
|
||
|
.project .content h2 {
|
||
|
margin: .5rem 0;
|
||
|
}
|
||
|
|
||
|
.project .content h3 {
|
||
|
margin: 2rem 0 1rem 0;
|
||
|
}
|
||
|
|
||
|
.project .content img {
|
||
|
margin: 2rem 0 .5rem 0;
|
||
|
}
|
||
|
|
||
|
.project .content em {
|
||
|
display: block;
|
||
|
font-size: .8rem;
|
||
|
text-align: center;
|
||
|
margin: 0 0 3.25rem 0;
|
||
|
}
|
||
|
|
||
|
footer {
|
||
|
height: 1.5rem;
|
||
|
padding: 1.5rem 0;
|
||
|
margin: 6rem 0 0 0;
|
||
|
}
|
||
|
|
||
|
footer p {
|
||
|
font-size: .9rem;
|
||
|
margin: 0;
|
||
|
}
|
||
|
|
||
|
footer p:first-of-type {
|
||
|
float: left;
|
||
|
}
|
||
|
|
||
|
footer a {
|
||
|
float: right;
|
||
|
font-size: .9rem;
|
||
|
margin: 0 .5rem;
|
||
|
}
|
||
|
|
||
|
.unselect {
|
||
|
user-select: none;
|
||
|
-moz-user-select: none;
|
||
|
-khtml-user-select: none;
|
||
|
-webkit-user-select: none;
|
||
|
-o-user-select: none;
|
||
|
}
|
||
|
|
||
|
@media only screen and (max-width: 480px) {
|
||
|
.center {
|
||
|
max-width: 100%;
|
||
|
padding: 0 1rem;
|
||
|
}
|
||
|
|
||
|
.modal .center {
|
||
|
padding: 1.5rem 1rem 4rem 1rem;
|
||
|
}
|
||
|
|
||
|
.project .content {
|
||
|
padding: 0 1rem;
|
||
|
}
|
||
|
|
||
|
footer {
|
||
|
height: unset;
|
||
|
}
|
||
|
|
||
|
footer a,
|
||
|
footer p {
|
||
|
float: unset;
|
||
|
margin: .5rem 0;
|
||
|
}
|
||
|
|
||
|
br {
|
||
|
display: none;
|
||
|
}
|
||
|
}
|