diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-01-04 23:41:56 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-01-04 23:42:08 +0100 |
| commit | 28f10cff41050a74b02cf40ffb2cfaaa9d72f4bb (patch) | |
| tree | 42a906bfc3582f2e89d5b64f564870751db81037 | |
| parent | 276c16e1055c23350abd3d9d071cfce9b4f1b27f (diff) | |
add wide/fullwidth sections
| -rw-r--r-- | megapixels/app/site/parser.py | 4 | ||||
| -rw-r--r-- | site/assets/css/css.css | 8 | ||||
| -rw-r--r-- | site/templates/datasets.html | 2 |
3 files changed, 12 insertions, 2 deletions
diff --git a/megapixels/app/site/parser.py b/megapixels/app/site/parser.py index d3eccfca..f739315a 100644 --- a/megapixels/app/site/parser.py +++ b/megapixels/app/site/parser.py @@ -103,6 +103,10 @@ def parse_markdown(sections, s3_path, skip_h1=False): groups.append(format_section(current_group, s3_path)) groups.append(format_metadata(section)) current_group = [] + elif '![fullwidth:' in section: + groups.append(format_section(current_group, s3_path)) + groups.append(format_section([section], s3_path, type='fullwidth')) + current_group = [] elif '![wide:' in section: groups.append(format_section(current_group, s3_path)) groups.append(format_section([section], s3_path, type='wide')) diff --git a/site/assets/css/css.css b/site/assets/css/css.css index 7e354a4c..81b2febd 100644 --- a/site/assets/css/css.css +++ b/site/assets/css/css.css @@ -312,9 +312,15 @@ section.images { width: 186px; } section.wide { - width: 100%; + width: 960px; } section.wide .image { + max-width: 960px; +} +section.wide { + width: 100%; +} +section.fullwidth .image { max-width: 100%; } .caption { diff --git a/site/templates/datasets.html b/site/templates/datasets.html index ba230eee..a37d722d 100644 --- a/site/templates/datasets.html +++ b/site/templates/datasets.html @@ -4,7 +4,7 @@ {{ content }} - <section> + <section class="wide"> <h2>Dataset Portraits</h2> <p> We have prepared detailed studies of some of the more noteworthy datasets. |
