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