Make index responsive
This commit is contained in:
parent
69c639f5db
commit
5e1612774a
@ -63,3 +63,35 @@ h1 {
|
|||||||
footer {
|
footer {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (max-width: 90em) {
|
||||||
|
.container {
|
||||||
|
width: 65em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 68em) {
|
||||||
|
.container {
|
||||||
|
width: 43em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 46em) {
|
||||||
|
.container {
|
||||||
|
width: auto;
|
||||||
|
margin: 2em 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.photo-cards {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.photo-card-image img {
|
||||||
|
width: 100%;
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.photo-card + .photo-card {
|
||||||
|
margin-top: 1em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>photo gallery</title>
|
<title>photo gallery</title>
|
||||||
<link rel="stylesheet" href="./extra/fonts/source-sans-pro.css">
|
<link rel="stylesheet" href="./extra/fonts/source-sans-pro.css">
|
||||||
<link rel="stylesheet" href="./extra/index.css">
|
<link rel="stylesheet" href="./extra/index.css">
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>{{ path.name }}</title>
|
<title>{{ path.name }}</title>
|
||||||
<link rel="stylesheet" href="./extra/fonts/source-sans-pro.css">
|
<link rel="stylesheet" href="./extra/fonts/source-sans-pro.css">
|
||||||
<link rel="stylesheet" href="./extra/photo.css">
|
<link rel="stylesheet" href="./extra/photo.css">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user