Modified css to fit mobile devices

This commit is contained in:
Edgar P. Burkhart 2020-12-20 13:39:49 +01:00
parent d29caf2945
commit 19b0a2ade7
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227

View file

@ -15,33 +15,33 @@ body {
height: 100%; height: 100%;
width: 100%; width: 100%;
margin: 0; margin: 0;
color: #000000de;
} }
.left, .right { .left, .right {
position: absolute; position: absolute;
top: 0; left: 0;
bottom: 0; right: 0;
} }
.right {
right: 0;
background: url("../images/pic1.jpg");
background-size: cover;
background-position: center;
width: 60%;
}
.left { .left {
left: 0; text-align: center;
text-align: right; top: 0;
width: 40%; bottom: 40%;
}
.right {
top: 60%;
bottom: 0;
background: url("../images/pic1.jpg");
background-size: cover;
background-position: center;
} }
.left h1 { .left h1 {
position: absolute; position: absolute;
padding-right: 1em; font-size: 3rem;
height: 1em; height: 1em;
line-height: 1em; line-height: 1em;
font-size: 4rem;
margin: 0; margin: 0;
width: 100%; width: 100%;
@ -62,7 +62,7 @@ footer {
bottom: 0; bottom: 0;
width: 100%; width: 100%;
background: black; background: black;
color: white; color: #ffffffde;
text-align: center; text-align: center;
} }
footer ul { footer ul {
@ -74,10 +74,34 @@ footer li span {
margin-right: 1em; margin-right: 1em;
} }
footer a { footer a {
color: lightgray; color: #dededede;
text-decoration: none; text-decoration: none;
transition: color 50ms; transition: color 50ms;
} }
footer a:hover { footer a:hover {
color: white; color: #ffffffde;
} }
footer a:active {
color: #ffffffde;
}
@media screen and (min-width: 1024px) {
.left, .right {
top: 0;
bottom: 0;
}
.right {
right: 0;
left: 40%
}
.left {
right: 60%;
}
.left h1 {
font-size: 4rem;
text-align: right;
padding-right: 1em;
}
}