From 31749ee82bad5b025e4f095929d1e602ed52a8ef Mon Sep 17 00:00:00 2001 From: j Date: Mon, 22 Nov 2021 17:41:00 +0100 Subject: [PATCH] play overlay --- app/static/css/partials/_film.scss | 15 +++++++++++++++ app/static/svg/play.svg | 4 ++++ app/templates/film.html | 3 +++ 3 files changed, 22 insertions(+) create mode 100644 app/static/svg/play.svg diff --git a/app/static/css/partials/_film.scss b/app/static/css/partials/_film.scss index 85d34f1..8dd2edb 100755 --- a/app/static/css/partials/_film.scss +++ b/app/static/css/partials/_film.scss @@ -104,11 +104,26 @@ main > .film { text-decoration: none; } figure { + position: relative; img { max-width: 100%; max-height: 100%; object-fit: contain; } + .overlay { + position: absolute; + height: 100%; + width: 100%; + display: flex; + img { + width: 50%; + margin: auto; + padding-bottom: 64px; + &:hover { + filter: invert(1); + } + } + } } } @media screen and (max-width: 799px) { diff --git a/app/static/svg/play.svg b/app/static/svg/play.svg new file mode 100644 index 0000000..4f679c9 --- /dev/null +++ b/app/static/svg/play.svg @@ -0,0 +1,4 @@ + + + + diff --git a/app/templates/film.html b/app/templates/film.html index 4ad7730..c5b21e7 100644 --- a/app/templates/film.html +++ b/app/templates/film.html @@ -79,6 +79,9 @@ body {
+
+ +
{{ item.title | safe }}