about summary refs log tree commit diff stats
path: root/css/common.css
diff options
context:
space:
mode:
authorCase Duckworth2015-03-12 13:01:16 -0700
committerCase Duckworth2015-03-12 13:01:16 -0700
commit2764ce38ff89667fc4073fb66cdd634caaffd613 (patch)
tree2b574940d00219cddba222222ee2ae13d49ea644 /css/common.css
parentRemove lua cruft (diff)
downloadautocento-2764ce38ff89667fc4073fb66cdd634caaffd613.tar.gz
autocento-2764ce38ff89667fc4073fb66cdd634caaffd613.zip
Fix #9 - ekphrastisize some poems
For ekphrastic articles, add `ekphrastic` node to YAML metadata.
This node includes subnodes `image`, `title`, `alt`, `link`, and `class`.
`image` provides a link to the local image--just include the file name
with the extension, not the folder (all images should be in /img/.)
`title` provides the title of the image, and the alt-text, if there
is no `alt` node.
`alt`, if it exists, provides the alt text for the image.
`link`, if present, wraps the image in an `<a>` tag--it should point
to the source web page of the ekphrastic image.
`class`, if present, sets the class(es) for the image, for styling.

In this commit, I've set `ekphrastic` on the four articles that have
them so far: 'The Death Zone,' 'AMBER alert,' 'The moon is gone,' and
'Man.' I've also updated .template.html with the changes, and updated
README.md to reflect the changes in YAML structure.
Diffstat (limited to 'css/common.css')
-rw-r--r--css/common.css5
1 files changed, 1 insertions, 4 deletions
diff --git a/css/common.css b/css/common.css index b61d3f4..59d6d51 100644 --- a/css/common.css +++ b/css/common.css
@@ -93,14 +93,11 @@ a[href^="http"]:active {
93} 93}
94/* links }}} */ 94/* links }}} */
95/* IMAGES {{{ */ 95/* IMAGES {{{ */
96figure { 96.ekphrastic {
97 max-width: 39em; 97 max-width: 39em;
98 margin: auto; 98 margin: auto;
99 text-align: center; 99 text-align: center;
100} 100}
101figcaption {
102 display: none;
103}
104img { 101img {
105 max-width: 100%; 102 max-width: 100%;
106 margin: auto; 103 margin: auto;