Skip to content

Commit

Permalink
Lots of cosmetic things
Browse files Browse the repository at this point in the history
- Start using CSS instead of hard-baking things in html
- Some html fixes in generated pages
- Formatting of html and html-like files
- Using CSS to specify font colors:
    - `span class="highlight"` instead of `<font color="maroon"`
    - `tr class="highlight"` instead of `tr style="color: #62186f"`
- Using CSS to specify background image and Exult logo image
- Adding dark theme
  • Loading branch information
marzojr committed Apr 28, 2024
1 parent 9a921f6 commit a2a4bc7
Show file tree
Hide file tree
Showing 21 changed files with 10,113 additions and 3,425 deletions.
4 changes: 4 additions & 0 deletions base.inc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
if( !isset($MAIN_TEMPLATE) )
$MAIN_TEMPLATE = "main";

// Default value for custom parse
if( !isset($CUSTOM_PARSE) )
$CUSTOM_PARSE = false;

// Content is by default loaded from a data file
if( !isset($CONTENT) && isset($DATAFILE) )
{
Expand Down
6,842 changes: 5,271 additions & 1,571 deletions content/docs.dat

Large diffs are not rendered by default.

3,402 changes: 2,419 additions & 983 deletions content/exult_studio.dat

Large diffs are not rendered by default.

2,444 changes: 1,793 additions & 651 deletions content/faq.dat

Large diffs are not rendered by default.

81 changes: 81 additions & 0 deletions default.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
body {
font-family: helvetica, sans-serif;
font-size: medium;
/* padding-left: 15em; */
text-align: justify;
line-height: 1.4em;
}

div.centered {
display: block;
}

/* Light theme */

body {
background-color: #cccccc;
color: #333366;
background-image: url("images/back.gif");
}

:link {
color: #666699;
}

:visited {
color: #669966;
}

:link:active :visited:active {
color: #ffcc33;
}

span.highlight {
color: maroon;
}

div.exult_logo {
content: url("images/exult_logo_nice.png");
width: 181px;
height: 127px;
}

tr.highlight {
color: #62186f;
}

@media screen and (prefers-color-scheme: dark) {

/* Dark theme */
body {
background-color: #1e2122;
color: #cec7c3;
background-image: url("images/back-dk.gif");
}

:link {
color: #6fa2ea;
}

:visited {
color: #9c6fea;
}

:link:active :visited:active {
color: #ffcc33;
}

div.exult_logo {
content: url("images/exult_logo_nice_dark.png");
width: 181px;
height: 127px;
}

span.highlight {
color: #fa9797;
}

tr.highlight {
color: #e1a5ec;
}
}
Binary file added images/back-dk.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/exult_logo_nice_dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion seventowers/base.inc
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

// Support for outdated browsers (IE)
if (isset($_SERVER["HTTP_USER_AGENT"]) && false != stristr($_SERVER['HTTP_USER_AGENT'], "MSIE 6.0"))
$tpl->assign("OUTDATED_BROWSER_CSS", '<link href="outdated.css" rel="stylesheet" type="text/css" />');
$tpl->assign("OUTDATED_BROWSER_CSS", '<link href="outdated.css" rel="stylesheet" type="text/css"></link>');
else
$tpl->assign("OUTDATED_BROWSER_CSS", '<!-- empty! -->');

Expand Down
41 changes: 34 additions & 7 deletions templates/download.tpl
Original file line number Diff line number Diff line change
@@ -1,10 +1,37 @@
<p>Downloads are hosted on SourceForge. If you have one of the supported systems, you can directly download the appropriate binary distribution. If you have another system, download the source and read the INSTALL file for directions on how to build &amp; run <i>Exult</i>.</p>
<p>For a full list, and also older versions, look <a href="http://sourceforge.net/project/showfiles.php?group_id=2335">here</a>.</p>
<p>Please don't use a downloadmanager to download our releases and additional data files because the links below are not direct links, but links to a page that asks you to select a mirror.</p>
<p>If you have succesfully ported <i>Exult</i> to a platform not listed here, PLEASE drop us a note, telling which OS, compiler etc. you used. Even better would be if you submit to us the changes that were necessary to get it to run so we can incorporate them into future releases, and add instructions to the README.<br/>
But if you really want us to love you, become part of the project and officially maintain your port, that means making sure it builds for each release, and provide if possible a binary for your system. As a reward you'll get your own entry in the <i>Exult</i> credits, this homepage and the docs :)</p>
<p></p>
<p>
Downloads are hosted on SourceForge. If you have one of the supported systems, you can directly download the appropriate binary distribution. If you have another system, download the source and read the INSTALL file for directions on how to build &amp; run
<i>
Exult
</i>
.
</p>
<p>
For a full list, and also older versions, look
<a href="http://sourceforge.net/project/showfiles.php?group_id=2335">
here
</a>
.
</p>
<p>
Please don't use a downloadmanager to download our releases and additional data files because the links below are not direct links, but links to a page that asks you to select a mirror.
</p>
<p>
If you have succesfully ported
<i>
Exult
</i>
to a platform not listed here, PLEASE drop us a note, telling which OS, compiler etc. you used. Even better would be if you submit to us the changes that were necessary to get it to run so we can incorporate them into future releases, and add instructions to the README.
<br />
But if you really want us to love you, become part of the project and officially maintain your port, that means making sure it builds for each release, and provide if possible a binary for your system. As a reward you'll get your own entry in the
<i>
Exult
</i>
credits, this homepage and the docs :)
</p>
<p>
</p>
<table border="0" cellpadding="1" cellspacing="3">
{DOWNLOAD_SECTIONS}
</table>
<p></p>
<p>
</p>
20 changes: 15 additions & 5 deletions templates/download_entry.tpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
<tr>
<td width="10"></td>
<td><a href="http://prdownloads.sourceforge.net/exult/{FILENAME}">{DESCRIPTION}</a></td>
<td colspan="2"></td>
<td width="10">&nbsp;</td>
<td align="right">{SIZE} KB</td>
<td width="10">
</td>
<td>
<a href="http://prdownloads.sourceforge.net/exult/{FILENAME}">
{DESCRIPTION}
</a>
</td>
<td colspan="2">
</td>
<td width="10">
&nbsp;
</td>
<td align="right">
{SIZE} KB
</td>
</tr>
19 changes: 14 additions & 5 deletions templates/download_link.tpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
<tr>
<td width="10"></td>
<td><a href="{URL}">{DESCRIPTION}</a></td>
<td colspan="2"></td>
<td width="10">&nbsp;</td>
<td></td>
<td width="10">
</td>
<td>
<a href="{URL}">
{DESCRIPTION}
</a>
</td>
<td colspan="2">
</td>
<td width="10">
&nbsp;
</td>
<td>
</td>
</tr>
24 changes: 20 additions & 4 deletions templates/download_section.tpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,23 @@
<tr>
<td colspan="2"><b>{SECTION_TITLE}</b></td>
<td width="10"></td>
<td></td>
<td colspan="2">
<b>
{SECTION_TITLE}
</b>
</td>
<td width="10">
</td>
<td>
</td>
</tr>
{SECTION_ENTRIES}
<tr><td width="10">&nbsp;</td><td></td><td width="10"></td><td></td></tr>
<tr>
<td width="10">
&nbsp;
</td>
<td>
</td>
<td width="10">
</td>
<td>
</td>
</tr>
Loading

0 comments on commit a2a4bc7

Please sign in to comment.