WWW/css/styles.css
2019-12-31 03:59:25 +02:00

387 lines
6.4 KiB
CSS

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;
}
#nav-mini {
display: none;
}
#nav {
background-color: black;
position: fixed;
display: flex;
justify-content: center;
top: 0;
width: 100%;
z-index: 1;
}
#nav a {
color: white;
display: block;
float: center;
font-family: sans-serif;
font-size: calc(0.75em + 0.1vw);
font-weight: bold;
outline: 0;
padding: 1em;
text-decoration: none;
text-align: center;
text-shadow: 0 0 0.5em black;
text-transform: uppercase;
}
#nav a:hover {
color: gray;
}
#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;
width: 90%;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
}
#home .title {
color: white;
font-family: sans-serif;
font-size: calc(2.25em + 3vw);
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 {
filter: invert(75%) drop-shadow(0 0 0.1em black);
}
#about, #contact {
background: black;
}
#about .content, #contact .content, #experience .content, #education .content {
width: 80%;
max-width: 50em;
margin: 0 auto;
padding: 6em 1em;
}
#about .left img {
border-radius: 100%;
width: 7em;
}
#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%;
}
#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 .content {
border-top: 0.1em solid lightgray;
}
#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 {
filter: invert(25%) drop-shadow(0 0 0.1em black);
}
#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 .menu {
display: none;
box-shadow: 0 0 0.5em black;
}
#nav-mini .menu a {
border-radius: 0.1em;
font-size: 0.75em;
display: block;
padding: 0.75em;
color: white;
background-color: black;
text-decoration: none;
text-transform: uppercase;
font-weight: bold;
outline: 0;
}
#nav-mini .menu a:hover {
color: gray;
}
#nav-mini {
background: black;
/* display: block; */
position: fixed;
top: 0;
left: 2em;
outline: 0;
text-decoration: none;
z-index: 1;
}
#nav-mini:active > img {
filter: invert(100%);
box-shadow: 0 0 0.5em white;
color: gray;
cursor: pointer;
}
#nav-mini:active .menu {
display: block;
}
#nav-mini img {
display: block;
background-color: white;
height: 1.75em;
width: 1.75em;
padding: 0.5em;
box-shadow: 0 0 0.5em black;
}
/* 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;
}
}