This repository has been archived on 2022-01-01. You can view files and clone it, but cannot push or open issues or pull requests.
Web/css/main.css

84 lines
1.2 KiB
CSS
Raw Normal View History

2020-08-07 09:02:25 +02:00
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Serif:wght@400;700&display=swap');
2020-08-07 08:10:29 +02:00
html {
box-sizing: border-box;
font-family: sans-serif;
}
*, *::before, *::after {
box-sizing: inherit;
}
2020-08-07 08:39:02 +02:00
body {
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
margin: 0;
}
.left, .right {
position: absolute;
top: 0;
bottom: 0;
}
.right {
right: 0;
2020-08-07 09:34:51 +02:00
background: url("../images/pic1.jpg");
2020-08-07 09:02:25 +02:00
background-size: cover;
background-position: center;
width: 60%;
2020-08-07 08:39:02 +02:00
}
.left {
left: 0;
text-align: right;
2020-08-07 09:02:25 +02:00
width: 40%;
2020-08-07 08:39:02 +02:00
}
.left h1 {
position: absolute;
padding-right: 1em;
height: 1em;
line-height: 1em;
font-size: 4rem;
margin: 0;
width: 100%;
2020-08-07 09:02:25 +02:00
font-family: IBM Plex Serif, serif;
2020-08-07 08:39:02 +02:00
}
.left h1:first-of-type {
top: calc( 50% - 1em );
2020-08-07 09:02:25 +02:00
font-weight: 700;
2020-08-07 08:39:02 +02:00
}
.left h1:last-of-type {
bottom: calc( 50% - 1em );
font-weight: 400;
}
2020-08-07 09:02:25 +02:00
footer {
position: absolute;
bottom: 0;
width: 100%;
background: black;
color: white;
text-align: center;
}
footer ul {
list-style: none;
padding: 1em;
}
footer li span {
font-weight: 800;
margin-right: 1em;
}
footer a {
color: lightgray;
text-decoration: none;
transition: color 50ms;
}
footer a:hover {
color: white;
}