WWW/css/styles.css

402 lines
6.9 KiB
CSS
Raw Normal View History

2019-12-31 02:26:38 +01:00
body, html {
height: 100%;
width: 100%;
margin: 0;
padding: 0;
scroll-behavior: smooth;
background-color: black;
}
h1, h2, h3, h4, h5, p {
padding: 0;
margin: 0;
}
2019-12-31 11:07:51 +01:00
#nav-mini, #nav-ctrl {
2019-12-31 02:26:38 +01:00
display: none;
}
#nav {
background-color: black;
position: fixed;
display: flex;
justify-content: center;
top: 0;
width: 100%;
z-index: 1;
2019-12-31 17:51:50 +01:00
box-shadow: 0 0 0.1em dimgray;
2019-12-31 02:26:38 +01:00
}
2019-12-31 11:43:00 +01:00
#nav a, #nav-mini .menu a {
2019-12-31 02:26:38 +01:00
color: white;
display: block;
float: center;
font-family: sans-serif;
2019-12-31 11:43:00 +01:00
font-size: calc(0.75em + 0.05vw);
2019-12-31 02:26:38 +01:00
font-weight: bold;
outline: 0;
padding: 1em;
text-decoration: none;
text-align: center;
text-transform: uppercase;
}
2019-12-31 14:39:19 +01:00
#nav-mini {
position: fixed;
top: 0;
2019-12-31 14:46:37 +01:00
left: 10%;
2019-12-31 14:39:19 +01:00
outline: 0;
text-decoration: none;
z-index: 1;
2019-12-31 16:34:06 +01:00
background-color: black;
2019-12-31 17:51:50 +01:00
box-shadow: 0 0 0.1em dimgray;
border-radius: 0 0 0.1em 0.1em;
2019-12-31 14:39:19 +01:00
}
#nav-mini .menu {
display: none;
background-color: black;
2019-12-31 16:34:06 +01:00
margin: 48px 48px 48px 48px;
2019-12-31 14:39:19 +01:00
}
2019-12-31 11:43:00 +01:00
#nav-mini .menu a {
2019-12-31 16:34:06 +01:00
text-align: center;
padding: 1em 0 1em 0;
2019-12-31 17:51:50 +01:00
border-bottom: 0.1em solid dimgray;
2019-12-31 14:39:19 +01:00
}
2019-12-31 18:14:55 +01:00
#nav a:hover, #nav-mini .menu a:hover {
color: lightgray;
2019-12-31 14:39:19 +01:00
}
#nav-ctrl + label {
width: 3em;
height: 3em;
background-color: white;
background-image: url("../img/menu.svg");
background-position: center;
background-repeat: no-repeat;
background-size: 50%;
cursor: pointer;
float: left;
2019-12-31 17:51:50 +01:00
box-shadow: 0 0 0.1em dimgray;
border-radius: 0 0 0.1em 0.1em;
2019-12-31 14:39:19 +01:00
}
/* #nav-ctrl:hover + label {
filter: invert(100%);
box-shadow: 0 0 0.5em white;
} */
#nav-ctrl:checked + label {
filter: invert(100%);
background-image: url("../img/close.svg");
background-size: 25%;
2019-12-31 17:51:50 +01:00
box-shadow: none;
2019-12-31 14:39:19 +01:00
}
/* #nav-ctrl:checked:hover + label {
filter: invert(0%);
box-shadow: 0 0 0.5em black;
} */
#nav-ctrl:checked + label + .menu {
2019-12-31 16:34:06 +01:00
display: block;
2019-12-31 11:43:00 +01:00
}
2019-12-31 02:26:38 +01:00
#home {
background-image: url("../img/background.jpg");
height: 100%;
width: 100%;
background-position: bottom;
background-repeat: no-repeat;
background-size: cover;
}
#home .content {
margin: 0;
2019-12-31 14:52:07 +01:00
width: 80%;
2019-12-31 02:26:38 +01:00
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
}
#home .title {
color: white;
font-family: sans-serif;
2019-12-31 14:52:07 +01:00
font-size: calc(1em + 4.5vw);
2019-12-31 02:26:38 +01:00
font-weight: bold;
margin-bottom: 0.25em;
text-shadow: 0 0 0.1em black;
}
#home .subtitle {
color: lightgray;
font-family: serif;
font-size: calc(1em + 0.5vw);
font-weight: normal;
font-style: italic;
margin-bottom: 2.5em;
text-shadow: 0 0 0.1em black;
}
#home .social, #footer .social {
display: block;
}
#home .social a, #footer .social a {
outline: 0;
text-decoration: none;
margin: 0.75em;
}
#home .social a img, #footer .social a img {
display: inline-block;
vertical-align: middle;
height: calc(1em + 1vw);
width: calc(1em + 1vw);
}
#home .social a img {
filter: invert(100%) drop-shadow(0 0 0.1em black);
}
#home .social a img:hover {
2019-12-31 18:14:55 +01:00
filter: invert(90%) drop-shadow(0 0 0.1em black);
2019-12-31 02:26:38 +01:00
}
#about, #contact {
background: black;
}
#about .content, #contact .content, #experience .content, #education .content {
width: 80%;
max-width: 50em;
margin: 0 auto;
padding: 6em 1em;
}
2019-12-31 11:28:16 +01:00
#about .left .pic {
2019-12-31 02:26:38 +01:00
border-radius: 100%;
width: 7em;
2019-12-31 11:28:16 +01:00
height: 7em;
background-image: url("../img/profile-pic.jpg");
background-position: center;
background-repeat: no-repeat;
background-size: cover;
2019-12-31 02:26:38 +01:00
}
#about .title, #contact .title {
color: white;
font-family: sans-serif;
font-size: 1.5em;
font-weight: bold;
margin-bottom: 0.5em;
}
#about .text, #contact .text {
color: lightgray;
font-family: sans-serif;
font-size: 1em;
text-align: justify;
}
#about p, #experience p, #education p, #contact p{
margin-bottom: 0.5em;
}
#experience, #education {
background: white;
}
#about .left, #experience .left, #education .left {
float: left;
width: 30%;
text-align: left;
}
#about .right, #experience .right, #education .right {
display: block;
width: 70%;
margin-left: 30%;
}
2019-12-31 17:59:19 +01:00
#experience .content {
border-bottom: 0.1em solid lightgray;
}
2019-12-31 02:26:38 +01:00
#experience .title, #education .title {
display: inline;
color: black;
text-transform: uppercase;
font-family: sans-serif;
font-size: 1em;
font-weight: bold;
padding-bottom: 0.2em;
border-bottom: 0.2em solid lightgray;
}
#experience .organization, #education .university {
color: black;
font-family: sans-serif;
font-size: 1.5em;
font-weight: bold;
margin-bottom: 0.5em;
}
#experience .position, #education .degree {
color: dimgray;
font-family: serif;
font-size: 1.1em;
font-style: italic;
font-weight: normal;
margin-bottom: 0.5em;
}
#experience .date, #education .date {
color: dimgray;
font-family: sans-serif;
font-size: 0.9em;
font-style: normal;
font-weight: normal;
display: inline-block;
}
#experience .description, #education .description {
color: dimgray;
font-family: sans-serif;
font-size: 1em;
font-weight: normal;
text-align: justify;
margin-bottom: 2em;
}
#education .thesis {
color: dimgray;
font-family: sans-serif;
font-size: 0.9em;
font-weight: bold;
margin-bottom: 0.5em;
}
#education .description a {
color: dimgray;
font-family: sans-serif;
font-size: 0.9em;
font-weight: bold;
text-decoration: none;
outline: 0;
}
#contact .text {
display: inline-block;
}
#contact .button {
border-radius: 0.1em;
float: right;
outline: 0;
text-decoration: none;
padding: 0.75em;
color: black;
height: 1.75em;
padding: 0.5em 1em;
background-color: white;
min-width: 12em;
font-size: 1em;
text-align: center;
}
#contact .button:hover, #contact .button:active {
background-color: dimgray;
color: white;
}
#contact .button:hover > img, #contact .button:active > img {
filter: invert(100%);
}
#contact .button img {
filter: invert(0%);
height: 1.75em;
width: 1.75em;
display: inline-block;
vertical-align: middle;
}
#contact .button .label {
display: inline-block;
vertical-align: middle;
font-weight: bold;
padding-left: 1em;
}
#footer {
background-color: black;
text-align: center;
padding: 0 1em 1em;
}
#footer .social a img {
2019-12-31 18:14:55 +01:00
filter: invert(50%) drop-shadow(0 0 0.1em black);
2019-12-31 02:26:38 +01:00
}
#footer .social a img:hover {
filter: invert(100%) drop-shadow(0 0 0.1em black);
}
#footer .text {
margin-top: 2em;
font-size: 0.75em;
font-weight: normal;
text-align: center;
color: gray;
display: block;
}
@media (max-width: 600px) {
/* Navigation */
#nav {
display: none;
}
#nav-mini {
2019-12-31 11:07:51 +01:00
display: block;
2019-12-31 13:22:03 +01:00
}
2019-12-31 02:26:38 +01:00
/* About */
#about .left {
display: none;
}
#about .right {
width: 100%;
margin-left: 0;
}
/* Resume */
#experience .left, #education .left {
float: none;
text-align: center;
width: 100%;
margin-bottom: 3em;
}
#experience .right, #education .right {
width: 100%;
margin-left: 0;
}
/* Contact */
#contact .text {
margin-bottom: 2em;
}
#contact .button {
display: block;
margin: 0 auto;
float: none;
}
}