From 7b200aca5e3c56baabe9bf62c0e70808da858110 Mon Sep 17 00:00:00 2001 From: SBD Date: Thu, 4 Jan 2024 15:55:49 +0300 Subject: [PATCH] 0.0.143 another view slider --- static/aerbimCSS.css | 27 +++++++++++++++----- static/aerbimJS.js | 2 +- templates/blocks/b_slider.html | 46 +++++++++++++++++++--------------- 3 files changed, 48 insertions(+), 27 deletions(-) diff --git a/static/aerbimCSS.css b/static/aerbimCSS.css index fe3eefc..e45892d 100644 --- a/static/aerbimCSS.css +++ b/static/aerbimCSS.css @@ -1160,13 +1160,32 @@ body.n_scroll{ .slider_block_text_container{ width: 100%; + position: absolute; + top: 0; + height: 100%; + margin: auto; +} + +.cut_width_slider{ + height: 100%; position: relative; } +.bottom_part_container_slide{ + position: absolute; + bottom: 80px; +} +.top_part_container_slide{ + position: absolute; + top: 190px; + right: 0; + width: 40%; +} + .functions_btns_slider{ display: block; - position: absolute; - bottom: 25px; + position: relative; + bottom: 0; left: 0; color: #ffffff; } @@ -1180,11 +1199,7 @@ body.n_scroll{ .slider_block_text{ display: block; - position: absolute; - bottom: 80px; - right: 0; color: #ffffff; - width: 40%; } .title_slide{ diff --git a/static/aerbimJS.js b/static/aerbimJS.js index 7236176..f16a22e 100644 --- a/static/aerbimJS.js +++ b/static/aerbimJS.js @@ -237,7 +237,7 @@ function autoPlaySlider () { } } } - },2000) + },5000) } else { // autoPlaySlider() } diff --git a/templates/blocks/b_slider.html b/templates/blocks/b_slider.html index e51d245..60e6c06 100644 --- a/templates/blocks/b_slider.html +++ b/templates/blocks/b_slider.html @@ -9,26 +9,32 @@ {% endif %} {% if slide.name or slide.description %} -
-
- - - {{ forloop.counter }} / {{ page.get_slides|length }} - - -
-
- {% if slide.name %} -
{{ slide.name }}
- {% endif %} - {% if slide.description %} -
{{ slide.description|linebreaksbr }}
- {% endif %} - {% if slide.but_title %} - {% with widget=slide name_w='slide' %} - {% include 'blocks/block_elements/be_button.html' %} - {% endwith %} - {% endif %} +
+
+
+
+ + + {{ forloop.counter }} / {{ page.get_slides|length }} + + +
+
+
+
+ {% if slide.name %} +
{{ slide.name }}
+ {% endif %} + {% if slide.description %} +
{{ slide.description|linebreaksbr }}
+ {% endif %} + {% if slide.but_title %} + {% with widget=slide name_w='slide' %} + {% include 'blocks/block_elements/be_button.html' %} + {% endwith %} + {% endif %} +
+
{% endif %}