# HG changeset patch # User Goffi # Date 1594883314 -7200 # Node ID a0e889d73badbb5e5d4ea4457f14fd229cccc8e9 # Parent 80cfec962b1e3dc824d7b3ba5017f4f0bacfb871 bulma (photo): slideshow CSS + template for slideshow and the comments panel used inside. diff -r 80cfec962b1e -r a0e889d73bad sat_templates/templates/bulma/blog/comments_panel.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sat_templates/templates/bulma/blog/comments_panel.html Thu Jul 16 09:08:34 2020 +0200 @@ -0,0 +1,15 @@ +{% import 'input/textbox.html' as textbox with context %} +{% import 'blog/macros.html' as blog with context %} + +
+
+
+
+ {{ blog.show_items(comments, expanded=true, dates_fmt='relative') }} +
+ {{- textbox.comment_or_login(service=comments_service, node=comments_node) -}} +
+
+
+
+
diff -r 80cfec962b1e -r a0e889d73bad sat_templates/templates/bulma/photo/album.html --- a/sat_templates/templates/bulma/photo/album.html Thu Jul 16 09:08:34 2020 +0200 +++ b/sat_templates/templates/bulma/photo/album.html Thu Jul 16 09:08:34 2020 +0200 @@ -1,3 +1,5 @@ +{# FIXME: Q&D way to add a CSS from node_modules, it should be imported directly with the python module #} +{{ css_files.append(build_path+"node_modules/swiper/css/swiper.min.css") or "" }} {% extends 'base/base.html' %} {% import 'components/avatar.html' as avatar with context %} {% import 'input/textbox.html' as textbox with context %} diff -r 80cfec962b1e -r a0e889d73bad sat_templates/templates/bulma/photo/item.html --- a/sat_templates/templates/bulma/photo/item.html Thu Jul 16 09:08:34 2020 +0200 +++ b/sat_templates/templates/bulma/photo/item.html Thu Jul 16 09:08:34 2020 +0200 @@ -1,7 +1,7 @@
diff -r 80cfec962b1e -r a0e889d73bad sat_templates/templates/bulma/photo/slideshow.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sat_templates/templates/bulma/photo/slideshow.html Thu Jul 16 09:08:34 2020 +0200 @@ -0,0 +1,14 @@ +
+ +
+ + +
+
+
+
+
+
+
+
+
diff -r 80cfec962b1e -r a0e889d73bad sat_templates/templates/bulma/static/styles.css --- a/sat_templates/templates/bulma/static/styles.css Thu Jul 16 09:08:34 2020 +0200 +++ b/sat_templates/templates/bulma/static/styles.css Thu Jul 16 09:08:34 2020 +0200 @@ -132,6 +132,105 @@ transition: transform 0.15s ease-in; } +.click_to_close { + cursor: pointer; +} + +/********** + * panels * + **********/ + +.panel_wrapper { + position: absolute; + top: 0; + right: 0; + height: 100vh; + width: 100vw; + z-index: 150; +} + +.comments_side_panel { + position: absolute; + top: 0; + right: 0; + height: 100vh; + width: 0; + max-width: 80%; + z-index: 200; + background: white; + transition: width 0.3s ease-out; +} + +.comments_side_panel.open { + width: 55rem; + transition: width 0.3s ease-out; +} + +/************* + * slideshow * + *************/ + +.slideshow { + position: absolute; + top: 0; + left: 0; + width: 100vw; + height: 100vh; + background-color: black; + color: white; + z-index: 100; + /* color: white; */ +} + +div.slideshow>button.delete { + z-index: 100; + background-color: var(--grey-light); + position: absolute; + top: 1rem; + right: 2rem; +} + +div.slideshow>div.click_to_comment { + z-index: 100; + position: absolute; + right: 1.7rem; + bottom: 2rem; + cursor: pointer; +} + +div.slideshow>div.comments__count { + z-index: 100; + position: absolute; + right: 1.7rem; + bottom: 0.5rem; + font-weight: bold; +} + +.swiper-slide { + display: flex; + align-items: center; + justify-content: center; +} + +.swiper-container { + height: 100%; + width: 100%; +} + +.swiper-button-prev { + left: 2.1rem !important; + color: #f1f1f1 !important; +} + +.swiper-button-next { + right: 2.1rem !important; + color: #f1f1f1 !important; +} + +.slide_img { + max-height: 100%; + max-width: 100%; +} /*************** * progression *