You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
85 lines
1.3 KiB
CSS
85 lines
1.3 KiB
CSS
.wrap {
|
|
max-width: 60rem;
|
|
margin: 0 auto;
|
|
}
|
|
.wrap.slim { max-width: 40rem }
|
|
|
|
body {
|
|
margin: 0;
|
|
box-sizing: border-box;
|
|
font-size: 18px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
header {
|
|
box-shadow: 0 0 20px 5px rgba(0,0,0,0.2);
|
|
padding: .25em .5em;
|
|
margin-bottom: 3rem;
|
|
}
|
|
nav a {
|
|
text-decoration: none;
|
|
color: #000;
|
|
}
|
|
nav a:hover {
|
|
color: blue;
|
|
}
|
|
nav a:before {
|
|
content: "[ ";
|
|
color: #999;
|
|
}
|
|
nav a:after {
|
|
content: " ]";
|
|
color: #999;
|
|
}
|
|
|
|
main { padding: 0 .5rem }
|
|
|
|
article { margin-bottom: 3rem }
|
|
article:after {
|
|
/* reset float and keep bottom margin */
|
|
content: "";
|
|
display: block;
|
|
float: none;
|
|
clear: both;
|
|
}
|
|
article img {
|
|
float: left;
|
|
width: 15rem;
|
|
max-height: 25rem;
|
|
margin-right: 1rem;
|
|
}
|
|
article .title {
|
|
font-weight: bold;
|
|
margin-bottom: .5rem;
|
|
}
|
|
article .meta {
|
|
display: flex;
|
|
margin-bottom: .5rem;
|
|
}
|
|
article .image-info {
|
|
font-size: .8rem;
|
|
color: #444;
|
|
margin-bottom: .5rem;
|
|
}
|
|
|
|
form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
form input, form textarea {
|
|
margin-bottom: 1rem;
|
|
padding: .5rem;
|
|
}
|
|
form input[type=file] { padding: 0 }
|
|
form input[type=submit] { max-width: 20rem }
|
|
|
|
@media screen and (max-width: 900px) {
|
|
article img { width: 10rem }
|
|
}
|
|
@media screen and (max-width: 700px) {
|
|
body { font-size: 16px }
|
|
article img { width: 6rem }
|
|
article .meta { flex-direction: column-reverse }
|
|
form input[type=submit] { max-width: 100% }
|
|
}
|