[web-pres2] master: Update and rename css.css to css.php
[email protected] (Aaron Junker via GitHub) Fri, 30 Sep 2022 15:34:24 +0000
| Newsgroups | php.pres |
|---|---|
| Message-ID | <[email protected]> |
Author: Aaron Junker (Aaron-Junker)
Committer: GitHub (web-flow)
Pusher: derickr
Date: 2022-08-19T18:43:17+02:00
Commit: https://github.com/php/web-pres2/commit/9360278f424f3a55f3204dc2975be8038ecc3db4
Raw diff: https://github.com/php/web-pres2/commit/9360278f424f3a55f3204dc2975be8038ecc3db4.diff
Update and rename css.css to css.php
Changed paths:
A css.php
D css.css
Diff:
diff --git a/css.css b/css.php
similarity index 59%
rename from css.css
rename to css.php
index eb57d69..88acc9d 100644
--- a/css.css
+++ b/css.php
@@ -1,9 +1,20 @@
+<?php
+if (empty($pres)) $pres = $presentation;
+?>
+<style title="Default" type="text/css">
body {
+ font-size: <?php echo $pres->basefontsize; ?>;
margin-top:0em;
margin-left:0em;
margin-right:0em;
margin-bottom:0em;
- background-color: #C4C9DF;
+ <?php
+ if ($pres->backgroundcol) { echo "background: {$pres->backgroundcol};\n"; }
+ if ($pres->backgroundimage) echo "background-image: url({$pres->backgroundimage});\n";
+ if ($pres->backgroundfixed) echo "background-attachment : fixed;\n";
+ if ($pres->backgroundrepeat) echo "background-repeat : repeat\n";
+ else echo "background-repeat : no-repeat\n";
+ ?>
}
div.sticky {
margin: 0;
@@ -24,37 +35,56 @@
width: 100%;
}
div.shadow {
+ background: <?php echo $pres->shadowbackground; ?>;
padding: 0.5em;
}
div.navbar {
+ background: <?php echo $pres->navbarbackground; ?>;
padding: 4;
margin: 0;
+ height: <?php echo $pres->navbarheight; ?>;
color: #ffffff;
font-family: verdana, tahoma, arial, helvetica, sans-serif;
z-index: 99;
}
div.emcode {
+ background: <?php echo $pres->examplebackground; ?>;
border: thin solid #000000;
padding: 0.5em;
font-family: monospace;
- overflow: auto;
}
div.output {
+ font-family: monospace;
+ background: <?php echo $pres->outputbackground; ?>;
border: thin solid #000000;
padding: 0.5em;
}
+div.noshadow {
+ font-family: monospace;
+ background: <?php echo $pres->outputbackground; ?>;
+}
table.index {
+ background: <?php echo $pres->examplebackground; ?>;
border: thin dotted #000000;
padding: 0.5em;
+ font-family: monospace;
}
td.index {
+ background: <?php echo $pres->examplebackground; ?>;
padding: 1em;
+ font-family: monospace;
}
+h1 {
+ font-size: 2em;
+}
+p,li {
+ font-size: 2.6em;
+}
a {
text-decoration: none;
}
@@ -111,18 +141,19 @@
border-style : solid;
border-top-width : 1px;
border-right-width : 1px;
- border-bottom-width : 1px;
+ border-bottom-width : 1px;
border-left-width : 1px;
border-right-color : inherit;
border-left-color : inherit;
float : left;
}
-A.linka { text-decoration: none; color: #000000; }
-td.foo {color: #ffffff; font-family: arial,verdana,helvetica; font-size: 70%}
-span.c4 {position: fixed; bottom: 0.5em; right: 4em; top: auto; left: auto; color: #ffffff; font-family: arial,verdana,helvetica; font-size: 70%}
-td.c3 {color: #CC6600; font-family: arial, helvetica, verdana}
-span.c2 {color: #ffffff; font-family: arial,hevetica,verdana}
-span.c5 {position: fixed; bottom: 0.5em; right: 1em; top: auto; left: auto; color: #000000; font-family: arial,verdana,helvetica; font-size: 80%}
+A.linka { text-decoration: none; color: 000000; }
+td.foo {color: ffffff; font-family: arial,verdana,helvetica; font-size: 70%}
+span.c4 {position: fixed; bottom: 0.5em; right: 4em; top: auto; left: auto; color: ffffff; font-family: arial,verdana,helvetica; font-size: 70%}
+td.c3 {color: CC6600; font-family: arial, helvetica, verdana}
+span.c2 {color: ffffff; font-family: arial,hevetica,verdana}
+span.c5 {position: fixed; bottom: 0.5em; right: 1em; top: auto; left: auto; color: 000000; font-family: arial,verdana,helvetica; font-size: 80%}
td.c1 {font-family: arial,helvetica,verdana; font-size: 80%}
+</style>