feat: improve mobile layout
This commit is contained in:
parent
cd08420acc
commit
ec9b86cbba
2 changed files with 35 additions and 3 deletions
|
|
@ -3,6 +3,7 @@
|
|||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>Caesar Schinas</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link href="https://fonts.googleapis.com/css?family=Gentium+Basic&subset=latin-ext" rel="stylesheet">
|
||||
<link rel="stylesheet" href="./font-awesome/css/font-awesome.css" />
|
||||
<link rel="stylesheet" href="./style.css" />
|
||||
|
|
|
|||
35
style.css
35
style.css
|
|
@ -12,7 +12,7 @@ body {
|
|||
max-width: 30em;
|
||||
margin: auto;
|
||||
padding: 2em;
|
||||
font-size: 20px;
|
||||
font-size: 16px;
|
||||
line-height: 1.5em;
|
||||
}
|
||||
h1, p {
|
||||
|
|
@ -23,13 +23,15 @@ header {
|
|||
}
|
||||
h1 {
|
||||
font-weight: normal;
|
||||
font-size: 2em;
|
||||
margin-right: 0.5em;
|
||||
}
|
||||
h1, .ipa {
|
||||
display: inline-block;
|
||||
}
|
||||
.ipa {
|
||||
color: #888;
|
||||
margin: 0 0 0 1em;
|
||||
margin: 0;
|
||||
letter-spacing: 0.05em;
|
||||
}
|
||||
img.profile {
|
||||
|
|
@ -76,3 +78,32 @@ img.profile {
|
|||
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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue