com web/pres2: Added a few new styles: core.css derick.css show2.php

[email protected] (Derick Rethans) Tue, 05 Nov 2019 10:42:08 +0000
Newsgroups php.pres
Message-ID <[email protected]>
Commit:    b668d718dcb10b44cf190e7f582aa0451c86a918
Author:    Derick Rethans <[email protected]>         Tue, 5 Nov 2019 10:42:08 +0000
Parents:   b73be6e2b579da6b71320d6265ebd6428b3f9bc0
Branches:  dericks-renderer

Link:       http://git.php.net/?p=web/pres2.git;a=commitdiff;h=b668d718dcb10b44cf190e7f582aa0451c86a918

Log:
Added a few new styles

Changed paths:
  M  core.css
  M  derick.css
  M  show2.php


Diff:
diff --git a/core.css b/core.css
index 182ef16..80826e9 100644
--- a/core.css
+++ b/core.css
@@ -333,7 +333,7 @@ p.attribution
 	text-align: center;
 	font-size: 50%;
 	margin-top: -16px;
-	color: black;
+	color: white;
 	opacity: 0.5;
 }
 
@@ -694,3 +694,15 @@ th, td, tr
 	border: solid 1px gray;
 	padding: 0px;
 }
+
+div.error
+{
+	border: 1px solid white;
+	background-color: #f57900;
+	color: black;
+}
+
+div.error p
+{
+	font-family: monospace !important;
+}
diff --git a/derick.css b/derick.css
index b6b98d4..0e058a9 100644
--- a/derick.css
+++ b/derick.css
@@ -7,7 +7,7 @@ body, h1, h2
 
 div.whole-slide
 {
-	width: 1024px;
+	width: 90%;
 	margin: 0 auto;
 }
 
@@ -41,6 +41,12 @@ div.section-slide div p
 	text-shadow: -2px -2px 3px #000, -1px -1px 1px #fff
 }
 
+ul.noicon
+{
+	list-style-type: none;
+	font-size: 75%;
+}
+
 ul ul li
 {
 	font-size: 80%;
@@ -139,9 +145,14 @@ div.footer-thanks
 	width: 1024px;
 }
 
+div.big
+{
+	font-size: 150%;
+}
+
 pre
 {
-	font-size: 105%;
+	font-size: 175%;
 }
 
 div.result pre {
@@ -189,7 +200,13 @@ table.two
 	text-align: left;
 }
 
-table.two tr
+table.big
+{
+	font-size: 22pt;
+	text-align: left;
+}
+
+table.two tr, table.big tr
 {
 	vertical-align: top;
 }
@@ -218,7 +235,30 @@ div.small
 	font-size: 80%;
 }
 
+div.medium pre
+{
+	font-size: 125%;
+}
+
+div.small pre
+{
+	font-size: 133%;
+}
+
 h1.style-center
 {
 	text-align: center;
 }
+
+div.twitter
+{
+	position: absolute;
+	right: 1em;
+	bottom: 2px;
+	visibility: visible;
+}
+
+tt
+{
+	font-size: 125%;
+}
diff --git a/show2.php b/show2.php
index fc07180..3d4bc6c 100644
--- a/show2.php
+++ b/show2.php
@@ -218,6 +218,7 @@ class Presentation
 		$tpl->send->node = $xml->documentElement;
 		$tpl->send->pres = $this;
 		$tpl->send->pres->forPdf = isset( $_GET['pdf'] );
+		$tpl->send->pres->pdfIndex = isset( $_GET['pdf'] ) ? (int) $_GET['pdf'] : 0;
 		$tpl->send->slideNr = $slideNr;
 		$tpl->send->css = $this->css;