Finish image includes

• Finish the image-gallery
• Add Figure-Image with a single image, which can be floated to the left
or right, or fill the entire document width
• Publish the first real blog post!
This commit is contained in:
2017-12-24 22:55:29 -08:00
parent 59f76eb93e
commit 5a46b532cd
10 changed files with 142 additions and 49 deletions

View File

@ -142,6 +142,7 @@ p {
}
h1,h2,h3 {
clear: both;
margin: {
top: 0px;
bottom: 10px;
@ -159,38 +160,74 @@ small {
font-size: 0.8em;
}
figure {
.figure-gallery {
margin: 0;
.gallery-grid {
margin-left: -20px;
margin-right: -20px;
line-height: 0;
.figure-contents {
display: flex;
flex-flow: row wrap;
justify-content: center;
img {
width: auto;
margin: 3px;
height: 220px;
}
@media screen and (max-width: 500px) {
margin-left: -20px;
img {
height: 160px
}
}
}
a {
padding: 3px;
.gallery-solo {
margin: 0;
height: 100%;
width: auto;
flex-basis: auto;
flex-shrink: 1;
}
img {
margin: auto;
max-height: 240px;
min-height: 100px;
}
figcaption {
text-align: center;
line-height: 0;
img {
height: auto;
width: 100%;
margin: 3px auto;
}
}
}
.figure-image {
width: 100%;
margin: 0;
margin-bottom: 20px;
img {
width: 100%;
height: auto;
}
}
.figure-float {
width: 50%;
margin: 10px;
img {
width: 100%;
height: auto;
}
}
figcaption {
text-align: center;
}
// narrow screens override
@media screen and (max-width: $mobile-width) {