feat: improve mobile layout

This commit is contained in:
Caesar Schinas 2019-05-28 22:18:49 +01:00
parent cd08420acc
commit ec9b86cbba
2 changed files with 35 additions and 3 deletions

View file

@ -3,6 +3,7 @@
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<title>Caesar Schinas</title> <title>Caesar Schinas</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://fonts.googleapis.com/css?family=Gentium+Basic&amp;subset=latin-ext" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=Gentium+Basic&amp;subset=latin-ext" rel="stylesheet">
<link rel="stylesheet" href="./font-awesome/css/font-awesome.css" /> <link rel="stylesheet" href="./font-awesome/css/font-awesome.css" />
<link rel="stylesheet" href="./style.css" /> <link rel="stylesheet" href="./style.css" />

View file

@ -12,7 +12,7 @@ body {
max-width: 30em; max-width: 30em;
margin: auto; margin: auto;
padding: 2em; padding: 2em;
font-size: 20px; font-size: 16px;
line-height: 1.5em; line-height: 1.5em;
} }
h1, p { h1, p {
@ -23,13 +23,15 @@ header {
} }
h1 { h1 {
font-weight: normal; font-weight: normal;
font-size: 2em;
margin-right: 0.5em;
} }
h1, .ipa { h1, .ipa {
display: inline-block; display: inline-block;
} }
.ipa { .ipa {
color: #888; color: #888;
margin: 0 0 0 1em; margin: 0;
letter-spacing: 0.05em; letter-spacing: 0.05em;
} }
img.profile { img.profile {
@ -76,3 +78,32 @@ img.profile {
border-color: #999; border-color: #999;
} }
} }
@media (min-width: 480px) {
body {
font-size: 18px;
}
}
@media (min-width: 800px) {
body {
font-size: 20px;
}
}
@media (max-width: 580px) {
img.profile {
height: 5em;
width: 5em;
/* margin-top: 0; */
}
}
@media (max-width: 400px) {
h1 {
font-size: 1.75em;
}
img.profile {
height: 5em;
width: 5em;
margin-top: 0;
}
}