[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [community/master] add a missing css rule
commit 0fd1a15c10c9af3b66e5f5dd4fe34cac778aa29e
Author: kez <kez@xxxxxxxxxxxxxx>
Date: Tue Jun 15 01:35:14 2021 -0400
add a missing css rule
---
templates/blocks/slide.html | 12 ++++++++----
templates/blocks/test.html | 1 +
templates/testtemplate.html | 1 +
3 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/templates/blocks/slide.html b/templates/blocks/slide.html
index 33d42e1..57158fe 100644
--- a/templates/blocks/slide.html
+++ b/templates/blocks/slide.html
@@ -13,16 +13,20 @@
<section class="slide-image-left" {% if this.background != "white" %} data-background-color="{{ this.background }}" {% else %} data-background-color="white" {% endif %} >
<h2>{{ this.title }}</h2>
{% if this.image %}
- <div style="display: inline-block; vertical-align: top; width: 46%; text-align: center;"><img data-src="{{ this.image }}"></div>
+ <div style="display: inline-block; vertical-align: top; width: 46%; float: left;"><img data-src="{{ this.image }}"></div>
{% endif %}
- {{ this.description }}
+ <div style="display: inline-block; width: 46%;">
+ {{ this.description }}
+ </div>
</section>
{% elif this.slide_layout == "image_right" %}
<section class="slide-image-right" {% if this.background != "white" %} data-background-color="{{ this.background }}" {% else %} data-background-color="white" {% endif %} >
<h2>{{ this.title }}</h2>
- {{ this.description }}
+ <div style="display: inline-block; width: 46%;">
+ {{ this.description }}
+ </div>
{% if this.image %}
- <div style="display: inline-block; vertical-align: top; width: 46%; text-align: center;"><img data-src="{{ this.image }}"></div>
+ <div style="display: inline-block; vertical-align: top; width: 46%; float: right;"><img data-src="{{ this.image }}"></div>
{% endif %}
</section>
{% else %}
diff --git a/templates/blocks/test.html b/templates/blocks/test.html
new file mode 100644
index 0000000..eba2d81
--- /dev/null
+++ b/templates/blocks/test.html
@@ -0,0 +1 @@
+<h1>test</h1>
diff --git a/templates/testtemplate.html b/templates/testtemplate.html
new file mode 100644
index 0000000..eba2d81
--- /dev/null
+++ b/templates/testtemplate.html
@@ -0,0 +1 @@
+<h1>test</h1>
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits