[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [community/staging] Update slideshow template with ordering for localization



commit 4fd0dde667b2172c1b9383bdcbab32e6879022af
Author: hiro <hiro@xxxxxxxxxxxxxx>
Date:   Sun Mar 21 19:52:13 2021 +0100

    Update slideshow template with ordering for localization
---
 assets/static/revealjs/dist/theme/tor.css | 21 ++++++++++++++++++++
 lego                                      |  2 +-
 templates/slideshow.html                  | 32 ++++++++++++++++---------------
 3 files changed, 39 insertions(+), 16 deletions(-)

diff --git a/assets/static/revealjs/dist/theme/tor.css b/assets/static/revealjs/dist/theme/tor.css
index 0ff2e67..7dc1a42 100644
--- a/assets/static/revealjs/dist/theme/tor.css
+++ b/assets/static/revealjs/dist/theme/tor.css
@@ -313,6 +313,19 @@ section.has-dark-background, section.has-dark-background h1, section.has-dark-ba
 
 .footer {
   background-color: #683086;
+  min-height: 10%;
+}
+
+.footer img {
+  position:relative;
+  min-height: 1.5em;
+  padding: 5px;
+}
+
+.footer a {
+  font-size: 1.5em !important;
+  padding: 5px;
+  top: 10px;
 }
 
 /*********************************************
@@ -329,3 +342,11 @@ section.has-dark-background, section.has-dark-background h1, section.has-dark-ba
 hr.dark {
   border: 5px solid #683086;
 }
+
+.order-last {
+  text-align: left !important;
+}
+
+.order-first {
+  text-align: right !important;
+}
diff --git a/lego b/lego
index 4cb4064..842b8e9 160000
--- a/lego
+++ b/lego
@@ -1 +1 @@
-Subproject commit 4cb4064486b300f04573b4dde54afa6835dafa63
+Subproject commit 842b8e924653b41b382d9a26eb33ecb4f4638553
diff --git a/templates/slideshow.html b/templates/slideshow.html
index f1d6065..c6b330e 100644
--- a/templates/slideshow.html
+++ b/templates/slideshow.html
@@ -16,24 +16,26 @@
 	<body>
     <div class="reveal">
 			<!-- Any section element inside of this container is displayed as a slide -->
-			<div class="slides">
-				<section class="title" data-background-color="#683086" data-background-image="{{ this.image|asseturl }}" data-background-position="right bottom" data-background-size="3em">
-				  <h3>{{ this.title }}</h3>
-					<hr />
-				  <h4>{{ this.subtitle }}</h4>
-					<p>{{ this.author }}</p>
-				</section>
+			<div class="slides {{ bag('alternatives', this.alt, 'order') }}">
+				<section>
+					<section class="title" data-background-color="#683086" data-background-image="{{ this.image|asseturl }}" data-background-position="right bottom" data-background-size="3em">
+					  <h3>{{ this.title }}</h3>
+						<hr />
+					  <h4>{{ this.subtitle }}</h4>
+						<p>{{ this.author }}</p>
+					</section>
 
-        {{ this.slides }}
+	        {{ this.slides }}
 
-				<div class="footer">
-					<div class="left">
-						<a href="https://torproject.org";>torproject.org</a>
-					</div>
-					<div class="right">
-						<img src="{{ '/static/images/tor-logo/White.png'|asseturl }}">
+					<div class="footer">
+						<div class="left">
+							<a href="https://torproject.org";>torproject.org</a>
+						</div>
+						<div class="right">
+							<img src="{{ '/static/images/tor-logo/White.png'|asseturl }}">
+						</div>
 					</div>
-				</div>
+				</section>
       </div>
 
     </div>



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits