From d3c0e1e4664eeefd049a174a429f611b72fcc141 Mon Sep 17 00:00:00 2001 From: Adrien Beudin Date: Fri, 20 May 2016 08:47:02 +0200 Subject: [PATCH] update material theme --- prosopopee/prosopopee.py | 1 + prosopopee/themes/material/static/css/styles.css | 2 +- prosopopee/themes/material/templates/index.html | 6 +++--- .../themes/material/templates/sections/full-picture.html | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/prosopopee/prosopopee.py b/prosopopee/prosopopee.py index 6187a76..08f3fdb 100644 --- a/prosopopee/prosopopee.py +++ b/prosopopee/prosopopee.py @@ -80,6 +80,7 @@ class Video(object): if options.get("resize"): command = "{binary} {loglevel} -i {source} {resize} -vframes 1 -y {target}".format(**ffmpeg_switches) + print(command) error(os.system(command) == 0, "%s command failed" % ffmpeg_switches["binary"]) else: command = "{binary} {loglevel} -i {source} {video} {vbitrate} {other} {audio} {abitrate} {resolution} {format} -y {target}".format(**ffmpeg_switches) diff --git a/prosopopee/themes/material/static/css/styles.css b/prosopopee/themes/material/static/css/styles.css index a0e03fc..1be7505 100644 --- a/prosopopee/themes/material/static/css/styles.css +++ b/prosopopee/themes/material/static/css/styles.css @@ -9,7 +9,7 @@ main { } .parallax-container { - height: 800px; + height: 720px; min-height: 250px; margin-bottom: 20px; background-color: rgba(0, 0, 0, .4); diff --git a/prosopopee/themes/material/templates/index.html b/prosopopee/themes/material/templates/index.html index 9b5242a..ba2fc46 100644 --- a/prosopopee/themes/material/templates/index.html +++ b/prosopopee/themes/material/templates/index.html @@ -8,9 +8,9 @@ {% block content %}
- {% for galleries_line in galleries|reverse|batch(2)|reverse %} + {% for galleries_line in galleries|reverse|batch(1)|reverse %} {% for gallery in galleries_line|reverse %} -
+
{% endfor %} - {% endfor %} + {% endfor %}
diff --git a/prosopopee/themes/material/templates/sections/full-picture.html b/prosopopee/themes/material/templates/sections/full-picture.html index 1cce668..2dd8bc7 100644 --- a/prosopopee/themes/material/templates/sections/full-picture.html +++ b/prosopopee/themes/material/templates/sections/full-picture.html @@ -7,7 +7,7 @@
{% if video %} - +