Changeset:
        4457f4583da2
        
https://sourceforge.net/p/mrbs/hg-code/ci/4457f4583da25a00ff6d7290c161f1a911ed1a49
Author:
        Campbell Morrison <[email protected]>
Date:
        Mon Mar 06 15:45:27 2017 +0000
Log message:

Moved colons out of HTML and into CSS

diffstat:

 web/css/mrbs-ielte8.css |   8 +++++---
 web/css/mrbs.css.php    |   6 ++++--
 web/help.php            |  24 ++++++++++++------------
 3 files changed, 21 insertions(+), 17 deletions(-)

diffs (86 lines):

diff -r ea842f2046d0 -r 4457f4583da2 web/css/mrbs-ielte8.css
--- a/web/css/mrbs-ielte8.css   Mon Mar 06 15:10:24 2017 +0000
+++ b/web/css/mrbs-ielte8.css   Mon Mar 06 15:45:27 2017 +0000
@@ -4,12 +4,14 @@
 /* IE8 can't do pseudo-elements ('::') so use a
    pseudo-class (':') */
    
-label:after {
+label:after,
+.list td:first-child:after {
   content: ':';
 }
 
-[lang="fr"] label:after {
-  content: '\00a0:';
+[lang="fr"] label:after,
+[lang="fr"] .list td:first-child:after  {
+  content: '\00a0:';  <?php // &nbsp; before the colon ?>
 }
 
 label.no_suffix:after {
diff -r ea842f2046d0 -r 4457f4583da2 web/css/mrbs.css.php
--- a/web/css/mrbs.css.php      Mon Mar 06 15:10:24 2017 +0000
+++ b/web/css/mrbs.css.php      Mon Mar 06 15:45:27 2017 +0000
@@ -69,11 +69,13 @@
 fieldset fieldset {position: relative; clear: left; width: 100%; padding: 0; 
border: 0; margin: 0}  /* inner fieldsets are invisible */
 fieldset fieldset legend {font-size: 0}        /* for IE: even if there is no 
legend text, IE allocates space  */
 
-label::after {
+label::after,
+.list td:first-child::after {
   content: ':';
 }
 
-[lang="fr"] label::after {
+[lang="fr"] label::after,
+[lang="fr"] .list td:first-child::after  {
   content: '\00a0:';  <?php // &nbsp; before the colon ?>
 }
 
diff -r ea842f2046d0 -r 4457f4583da2 web/help.php
--- a/web/help.php      Mon Mar 06 15:10:24 2017 +0000
+++ b/web/help.php      Mon Mar 06 15:45:27 2017 +0000
@@ -16,30 +16,30 @@
 
 if (!$is_admin)
 {
-  echo "<table class=\"details\">\n";
-  echo "<tr><td><a href=\"http://mrbs.sourceforge.net\";>" . get_vocab("mrbs") 
. "</a>:</td><td>" . get_mrbs_version() . "</td></tr>\n";
+  echo "<table class=\"details list\">\n";
+  echo "<tr><td><a href=\"http://mrbs.sourceforge.net\";>" . get_vocab("mrbs") 
. "</a></td><td>" . get_mrbs_version() . "</td></tr>\n";
   echo "</table>\n";
 }
 else
 {
   // Restrict the configuration and server details to admins, for security 
reasons.
-  echo "<table class=\"details has_caption\">\n";
+  echo "<table class=\"details has_caption list\">\n";
   echo "<caption>" . get_vocab("config_details") . "</caption>\n";
-  echo "<tr><td>" . get_vocab("mrbs_version") . ":</td><td>" . 
get_mrbs_version() . "</td></tr>\n";
-  echo '<tr><td>$auth[\'type\']:</td><td>' . htmlspecialchars($auth['type']) . 
"</td></tr>\n";
-  echo '<tr><td>$auth[\'session\']:</td><td>' . 
htmlspecialchars($auth['session']) . "</td></tr>\n";
+  echo "<tr><td>" . get_vocab("mrbs_version") . "</td><td>" . 
get_mrbs_version() . "</td></tr>\n";
+  echo '<tr><td>$auth[\'type\']</td><td>' . htmlspecialchars($auth['type']) . 
"</td></tr>\n";
+  echo '<tr><td>$auth[\'session\']</td><td>' . 
htmlspecialchars($auth['session']) . "</td></tr>\n";
   echo "</table>\n";
 
 
-  echo "<table class=\"details has_caption\">\n";
+  echo "<table class=\"details has_caption list\">\n";
   echo "<caption>" . get_vocab("server_details") . "</caption>\n";
-  echo "<tr><td>" . get_vocab("database") . ":</td><td>" . db()->version() . 
"</td></tr>\n";
-  echo "<tr><td>" . get_vocab("system") . ":</td><td>" . php_uname() . 
"</td></tr>\n";
-  echo "<tr><td>" . get_vocab("servertime") . ":</td><td>" .
+  echo "<tr><td>" . get_vocab("database") . "</td><td>" . db()->version() . 
"</td></tr>\n";
+  echo "<tr><td>" . get_vocab("system") . "</td><td>" . php_uname() . 
"</td></tr>\n";
+  echo "<tr><td>" . get_vocab("servertime") . "</td><td>" .
        utf8_strftime($strftime_format['datetime'], time()) .
        "</td></tr>\n";
-  echo "<tr><td>" . get_vocab("server_software") . ":</td><td>" . 
htmlspecialchars(get_server_software()) . "</td></tr>\n";
-  echo "<tr><td>PHP:</td><td>" . phpversion() . "</td></tr>\n";
+  echo "<tr><td>" . get_vocab("server_software") . "</td><td>" . 
htmlspecialchars(get_server_software()) . "</td></tr>\n";
+  echo "<tr><td>PHP</td><td>" . phpversion() . "</td></tr>\n";
   echo "</table>\n";
 }
 

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to